Two Point Form: Formula Derivation and Worked Examples

#Two Point Form
TL;DR
The two point form writes a line's equation from any two of its points. Learn the formula, two ways to derive it, when it breaks, and six worked examples.
Vaishali Tomarยทreviewed byShikha SharmaLast updated on December 2, 202614 min read

Key Points

  • For points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2): yโˆ’y1=y2โˆ’y1x2โˆ’x1(xโˆ’x1)y - y_1 = \frac{y_2 - y_1}{x_2 - x_1}(x - x_1).
  • The fraction is the slope, so the two point form is the point-slope form with the slope worked out from the points.
  • It breaks only when x1=x2x_1 = x_2. Then the line is vertical and its equation is x=x1x = x_1.
  • Either point can be the first one; both choices give the same line.
  • Check every answer by putting both original points back into the equation.

Two Readings Are Enough to Write the Whole Rule

Two facts about water, freezing and boiling, are enough to convert any temperature.

  • Water freezes at 00 ยฐC, which is 3232 ยฐF, and boils at about 100100 ยฐC, which is 212212 ยฐF.
  • Those are two points, (0,32)(0, 32) and (100,212)(100, 212). The two point form turns them into the full rule, F=95C+32F = \frac{9}{5}C + 32.
  • The same move works wherever a relationship is a straight line: two measured points fix the whole thing.

What Is the Two Point Form?

The two point form is the equation of a line written straight from two known points on it, (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2):

yโˆ’y1=y2โˆ’y1x2โˆ’x1โ€‰(xโˆ’x1)y - y_1 = \frac{y_2 - y_1}{x_2 - x_1}\,(x - x_1)
  • (x,y)(x, y) stands for any point on the line.
  • The fraction y2โˆ’y1x2โˆ’x1\frac{y_2 - y_1}{x_2 - x_1} is the slope: rise over run between the two points.
  • So it is the point-slope form yโˆ’y1=m(xโˆ’x1)y - y_1 = m(x - x_1), with mm computed instead of given.
the slope from A to B equals the slope from A to any point P on the line
The line through A(1, 2) and B(3, 5) on a grid, with a general point P(x, y) further along it. The slope triangle from A to B has run 2 and rise 3; the triangle from A to P has run x โˆ’ 1 and rise y โˆ’ 2, so (y โˆ’ 2) รท (x โˆ’ 1) = 3 รท 2.

The key idea: every point on a straight line has the same slope to a fixed point on it.

How the Two Point Form Is Derived

Two different ideas, slope and area, both lead to the same formula.

Proof 1: the slope is the same everywhere

  1. The slope between the two known points is m=y2โˆ’y1x2โˆ’x1m = \frac{y_2 - y_1}{x_2 - x_1}.
  2. The slope from (x1,y1)(x_1, y_1) to a general point (x,y)(x, y) on the line must be the same: yโˆ’y1xโˆ’x1\frac{y - y_1}{x - x_1}.
  3. Set them equal: yโˆ’y1xโˆ’x1=y2โˆ’y1x2โˆ’x1\frac{y - y_1}{x - x_1} = \frac{y_2 - y_1}{x_2 - x_1}.
  4. Multiply both sides by (xโˆ’x1)(x - x_1) to get the two point form.

A point off the line would give a different slope from (x1,y1)(x_1, y_1), so only points on the line fit.

Proof 2: a flat triangle has no area

Take the known points A and B and a third point P.

  • If P is off the line, triangle ABP has some area. If P is on the line, the triangle squashes flat and its area is 00.
  • The coordinate area formula is half of a determinant, so P is on line AB exactly when
โˆฃxy1x1y11x2y21โˆฃ=0\begin{vmatrix} x & y & 1 \\ x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \end{vmatrix} = 0
a point lies on the line through A and B exactly when the triangle ABP has zero area
Two panels with A(1, 2) and B(3, 5). Left: P(1, 6) is off the line and triangle ABP has area 4. Right: P(5, 8) is on the line and the triangle flattens to area 0.

For A(1,2)(1, 2) and B(3,5)(3, 5), expanding gives โˆ’3x+2yโˆ’1=0-3x + 2y - 1 = 0, which is 3xโˆ’2y+1=03x - 2y + 1 = 0: the same line as Example 1. The determinant returns in the area of a triangle in coordinate geometry.

Three Ways to Write the Same Line

The two point form has close relatives, each the same line written to avoid a different problem.

Version Equation Good for
Two point form yโˆ’y1=y2โˆ’y1x2โˆ’x1(xโˆ’x1)y - y_1 = \frac{y_2 - y_1}{x_2 - x_1}(x - x_1) the standard form
Symmetric form yโˆ’y1y2โˆ’y1=xโˆ’x1x2โˆ’x1\frac{y - y_1}{y_2 - y_1} = \frac{x - x_1}{x_2 - x_1} x and y on equal terms
Cross-multiplied (yโˆ’y1)(x2โˆ’x1)=(y2โˆ’y1)(xโˆ’x1)(y - y_1)(x_2 - x_1) = (y_2 - y_1)(x - x_1) no division anywhere

The cross-multiplied version never divides, so it never breaks, even for a vertical line (Example 2).

When the Two Point Form Breaks

The formula divides by x2โˆ’x1x_2 - x_1, so it fails when the two points share an x-value.

  • Then the points sit one above the other and the line is a vertical line. It has no slope, so write it directly as x=x1x = x_1.
  • Points with the same y-value are fine. The slope is 00 and the formula gives a horizontal line, y=y1y = y_1.
  • Zero on top of a fraction is fine; zero underneath is not.
  • If the "two" points are the same point, there is no single line: the formula gives 00\frac{0}{0}.
the two point form fails for a vertical line but works for a horizontal line
Two panels. Left: the points (2, โˆ’2) and (2, 3) share x = 2, so the run is 2 โˆ’ 2 = 0, the slope 5 รท 0 has no value, and the line is x = 2. Right: the points (โˆ’2, 1) and (3, 1) share y = 1, so the slope is 0 รท 5 = 0 and the line is y = 1.

How to Use the Two Point Form

Six steps cover every case.

  1. Label the points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2). Either can be first: swapping them flips the sign of both top and bottom, so the slope stays the same.
  2. Check the x-values. If x1=x2x_1 = x_2, stop: the line is x=x1x = x_1.
  3. Find the slope m=y2โˆ’y1x2โˆ’x1m = \frac{y_2 - y_1}{x_2 - x_1}, with the same point "second" on top and underneath.
  4. Substitute into yโˆ’y1=m(xโˆ’x1)y - y_1 = m(x - x_1).
  5. Tidy into the form asked for, such as y=mx+cy = mx + c or ax+by+c=0ax + by + c = 0.
  6. Check by putting both original points into your final equation.

Try It Yourself

In the tool, drag the blue handles to (โˆ’3,4)(-3, 4) and (1,โˆ’2)(1, -2), the points of Example 4: the slope reads โˆ’32-\frac{3}{2}. Drag the orange handles to (โˆ’1,1)(-1, 1) and (2,โˆ’3.5)(2, -3.5), which also fit 3x+2y+1=03x + 2y + 1 = 0, and the verdict reads "coincident". Stack one blue handle above the other and the slope reads "undefined".

Examples of Two Point Form

Six examples, from a clean pair of points to fractions and a real fare.

Example 1

Find the equation of the line through (1, 2) and (3, 5).

  1. Slope: m=5โˆ’23โˆ’1=32m = \frac{5 - 2}{3 - 1} = \frac{3}{2}.
  2. Substitute: yโˆ’2=32(xโˆ’1)y - 2 = \frac{3}{2}(x - 1).
  3. Multiply by 2: 2yโˆ’4=3xโˆ’32y - 4 = 3x - 3, so 3xโˆ’2y+1=03x - 2y + 1 = 0.
  4. Check (3, 5): 9โˆ’10+1=09 - 10 + 1 = 0.

Final answer: 3xโˆ’2y+1=03x - 2y + 1 = 0, or y=32x+12y = \frac{3}{2}x + \frac{1}{2}.

Example 2

Find the equation of the line through (2, 4) and (2, 9).

  1. The formula first: m=9โˆ’42โˆ’2=50m = \frac{9 - 4}{2 - 2} = \frac{5}{0}. Stop: a fraction with 0 underneath has no value.
  2. The points share x=2x = 2, so the line is vertical.
  3. The cross-multiplied form confirms it: (yโˆ’4)(2โˆ’2)=(9โˆ’4)(xโˆ’2)(y - 4)(2 - 2) = (9 - 4)(x - 2) gives 0=5(xโˆ’2)0 = 5(x - 2).

Final answer: x=2x = 2.

Example 3

Find the equation of the line through (5, 0) and (0, 5).

  1. Slope: m=5โˆ’00โˆ’5=โˆ’1m = \frac{5 - 0}{0 - 5} = -1.
  2. Substitute: yโˆ’0=โˆ’1(xโˆ’5)y - 0 = -1(x - 5), so y=โˆ’x+5y = -x + 5.
  3. Both points sit on the axes, so the intercept form x5+y5=1\frac{x}{5} + \frac{y}{5} = 1 gives the same line.

Final answer: x+yโˆ’5=0x + y - 5 = 0.

Example 4

Find the equation of the line through (โˆ’3, 4) and (1, โˆ’2).

  1. Slope: m=โˆ’2โˆ’41โˆ’(โˆ’3)=โˆ’64=โˆ’32m = \frac{-2 - 4}{1 - (-3)} = \frac{-6}{4} = -\frac{3}{2}.
  2. Substitute: yโˆ’4=โˆ’32(xโˆ’(โˆ’3))=โˆ’32(x+3)y - 4 = -\frac{3}{2}\big(x - (-3)\big) = -\frac{3}{2}(x + 3).
  3. Multiply by 2: 2yโˆ’8=โˆ’3xโˆ’92y - 8 = -3x - 9, so 3x+2y+1=03x + 2y + 1 = 0.
  4. Check (1, โˆ’2): 3โˆ’4+1=03 - 4 + 1 = 0.
the two point form gives 3x + 2y + 1 = 0 for the points (โˆ’3, 4) and (1, โˆ’2)
The line through (โˆ’3, 4) and (1, โˆ’2) on a grid with a run of 1 โˆ’ (โˆ’3) = 4 and a rise of โˆ’2 โˆ’ 4 = โˆ’6, giving slope โˆ’3/2 and the equation 3x + 2y + 1 = 0.

Final answer: 3x+2y+1=03x + 2y + 1 = 0.

Example 5

Find the equation of the line through (ยฝ, 3) and (3/2, 7).

  1. Slope: m=7โˆ’332โˆ’12=41=4m = \frac{7 - 3}{\frac{3}{2} - \frac{1}{2}} = \frac{4}{1} = 4.
  2. Substitute: yโˆ’3=4(xโˆ’12)=4xโˆ’2y - 3 = 4\left(x - \tfrac{1}{2}\right) = 4x - 2.
  3. So y=4x+1y = 4x + 1. Check (32,7)\left(\frac{3}{2}, 7\right): 6+1=76 + 1 = 7.

Final answer: y=4x+1y = 4x + 1.

Example 6

A taxi charges a fixed booking fee plus a rate per kilometre. A 2 km ride costs 5 dollars and a 6 km ride costs 13 dollars. Write the fare as a line.

  1. Let xx be distance in km and yy the fare. The points are (2, 5) and (6, 13).
  2. Slope: m=13โˆ’56โˆ’2=2m = \frac{13 - 5}{6 - 2} = 2, the rate of 2 dollars per km.
  3. Substitute: yโˆ’5=2(xโˆ’2)y - 5 = 2(x - 2), so y=2x+1y = 2x + 1.
  4. The constant 1 is the fare for a 0 km ride, the booking fee, as the slope-intercept form shows.
the taxi fare line from two rides, checked by putting both rides back into the equation
A graph of fare against distance: the line y = 2x + 1 passes through (2, 5) and (6, 13), each checked by substitution, and meets the fare axis at (0, 1), the 1-dollar booking fee.

Final answer: y=2x+1y = 2x + 1.

Why Two Point Form Matters: "Two Dots Are Enough to Fix a Line"

You only ever need two points to pin down a whole line, and that economy is what makes the form useful.

  • Why two? One point is not enough: a whole fan of lines passes through it. Euclid's first postulate, around 300 BCE, says a straight line can be drawn from any point to any point.
  • Why not three? A third point may not land on the line, so check it. If it fits, the three points are collinear.
  • Converting temperatures. From (0, 32) and (100, 212) the slope is 95\frac{9}{5}. Body temperature, 37 ยฐC, gives 98.6 ยฐF, and โˆ’40 ยฐC gives โˆ’40 ยฐF.
  • Reading between table values. The line through two table entries estimates the values between them. This is linear interpolation, good when the change is close to steady.
  • Pricing with a fixed fee. Any "fixed amount plus a rate" charge can be recovered from two bills, as in Example 6.
  • Finding the centre. Once two points fix a line, the midpoint formula finds the point halfway between them.
two fixed points of water give the whole Celsius to Fahrenheit conversion line
A graph of Fahrenheit against Celsius: the line F = (9/5)C + 32 through freezing (0, 32) and boiling (100, 212), with body temperature (37, 98.6) and the crossing point (โˆ’40, โˆ’40) where the scales agree.

Real measurements rarely sit exactly on one line, which is why scientists fit a line of best fit through many points. That idea starts here.

Common Mistakes With the Two Point Form

Three errors appear when the formula meets messy numbers.

Mistake 1: Mixing the order of subtraction

Where it slips in: Subtracting "bigger minus smaller" out of habit loses track of which point is which.

Don't do this: Write y2โˆ’y1x1โˆ’x2\frac{y_2 - y_1}{x_1 - x_2}, with the points in opposite orders.

The correct way: Keep one point "second" on top and underneath: y2โˆ’y1x2โˆ’x1\frac{y_2 - y_1}{x_2 - x_1}. Check the sign against a sketch: a line falling to the right needs a negative slope.

Mistake 2: Pushing on with a zero underneath

Where it slips in: Two points share an x-value, and they go into the formula anyway.

Don't do this: Treat 50\frac{5}{0} as a number, or round it to "a very big slope".

The correct way: Check the x-values first. If they match, the answer is x=x1x = x_1. Matching y-values are fine: they give a zero slope line, y=y1y = y_1. The student who memorised the formula but never met this case freezes here.

Mistake 3: Losing a minus sign inside the bracket

Where it slips in: A point has a negative coordinate, and xโˆ’(โˆ’3)x - (-3) becomes xโˆ’3x - 3.

Don't do this: Drop the double negative.

The correct way: Write the bracket out in full, xโˆ’(โˆ’3)x - (-3), then simplify to x+3x + 3. Put both points into the final equation; if one fails, a sign went missing.

Conclusion

  • The two point form finds a line from two points: it is point-slope form with the slope computed.
  • It works because a straight line has the same slope everywhere; the zero-area triangle gives a second proof.
  • It fails only when the points share an x-value, and then the line is x=x1x = x_1.
  • Subtract in a consistent order, and check both points in the answer.

A Practical Next Step

Try these on squared paper, then plot each line and check both points sit on it.

  1. Find the line through (0, 1) and (4, 9).
  2. Find the line through (โˆ’2, 3) and (2, โˆ’5).
  3. Does the two point form apply to (5, 1) and (5, 8)?

Answer to Question 1: y=2x+1y = 2x + 1.

Answer to Question 2: y=โˆ’2xโˆ’1y = -2x - 1. If your slope came out positive, go back to Mistake 1.

Answer to Question 3: no; the line is vertical, x=5x = 5.

To practise building lines from points with a teacher, explore Bhanzu's geometry tutor or math classes online.

Want a live Bhanzu trainer to walk your child through equations of lines? Book a free demo class.

Read More

Research Behind This Article

  1. OpenStax, Elementary Algebra 2e, Section 4.6: Find the Equation of a Line (an equation from two points). openstax.org
  2. OpenStax, College Algebra 2e, Section 4.1: Linear Functions (writing the equation of a line through two points, and linear models). openstax.org
  3. Euclid, Elements, Book I, Postulate 1 (a straight line can be drawn from any point to any point), D. E. Joyce, Clark University. mathcs.clarku.edu
  4. NIST, SI Units: Temperature (the freezing and boiling points of water and the exact Celsius-Fahrenheit conversion). nist.gov

Quick Quiz: Check Yourself

Three levels, questions with figures, instant feedback with the reason.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is the difference between the two point form and standard form?
The two point form is built straight from two points. Standard form, Ax+By+C=0Ax + By + C = 0, is what you usually tidy the result into. Both describe the same line.
Is the two point form the same as the point-slope form?
Almost. Point-slope form needs the slope given; the two point form works it out from the two points first.
Does it matter which point I call point 1?
No. The slope is unchanged and both points are on the same line, so the tidy equation comes out identical.
Can the two point form give a vertical line?
Not in its usual form, because it would divide by zero. The cross-multiplied form can, and it gives x=x1x = x_1.
Can the two point form give me y = mx + b?
Yes. Expand the bracket and add y1y_1 to both sides, as in Example 1.
โœ๏ธ Written By
Vaishali Tomar
Vaishali Tomar
Subject Matter Expert
Vaishali Tomar is an educator and content specialist with over four years of experience teaching and developing learning resources for students from UKG to Grade 8. At Bhanzu, she creates lesson plans, assessments and educational content that simplify math through structured, student-friendly learning. She holds an M.Sc. in Computer Science and co-founded Qeemle, an online magazine, during her college years, which built her skills in content creation and editing.
LinkedIn
๐Ÿ”ฌ Reviewed By
Shikha Sharma
Subject Matter Expert
Book a FREE Demo ClassBook Now โ†’