In short
The moment a problem hands you two points (x_1, y_1) and (x_2, y_2), your hand should already be doing two things in this exact order:
- Compute the slope: \quad m = \dfrac{y_2 - y_1}{x_2 - x_1}
- Plug into point-slope form using either point: \quad y - y_1 = m(x - x_1)
That is the whole recipe. Two steps, sixty seconds, equation on the page. Whether the question wants y = mx + c or ax + by + c = 0 at the end is a one-line tidy-up afterwards.
This is a recipe chapter. A sibling article proves that two points pin down a unique line — that is the why. Another sibling shows what to do when a problem hands you a point and a slope already — that is one shortcut. This article is the how when the problem gives you two points and you must do both things — first manufacture the slope yourself, then feed it into point-slope. Why this is the fastest path: any other route (solve two simultaneous equations in m and c, or use the determinant form, or hunt for the y-intercept first) needs more steps and more chances to slip a sign. Slope-then-point-slope is two operations, both mechanical.
In CBSE Class 11, "find the equation of the line passing through (x_1, y_1) and (x_2, y_2)" is among the most-tested line-equation question types — it appears in every board paper, every NCERT exercise, every JEE Mains paper that touches straight lines. Make it a reflex.
The recipe card
Worked example 1 — the friendly case
Line through $(1, 3)$ and $(4, 9)$
Step 1 — slope. Label (x_1, y_1) = (1, 3) and (x_2, y_2) = (4, 9).
Step 2 — point-slope. Drop m = 2 and (x_1, y_1) = (1, 3) into y - y_1 = m(x - x_1):
(Optional tidy-up to slope-intercept form.) Expand the right side and move the 3 over:
Sanity check with the spare point. Plug (4, 9) into y = 2x + 1: 2(4) + 1 = 9. Tick. The line is correct.
Why two steps and not one: there is a "two-point form" \dfrac{y - y_1}{x - x_1} = \dfrac{y_2 - y_1}{x_2 - x_1} that fuses both steps into one written line. It works, but in practice students slip negatives inside the big fraction. Splitting into "first compute m as a number, then write point-slope" gives you a clean intermediate to check.
Worked example 2 — slope through the origin's x-coordinate
Line through $(0, 5)$ and $(3, -4)$
Step 1 — slope. Take (x_1, y_1) = (0, 5) and (x_2, y_2) = (3, -4).
Step 2 — point-slope. Use the friendlier point (0, 5) (any zero coordinate makes the algebra easier):
Check with the spare point (3, -4): -3(3) + 5 = -9 + 5 = -4. Tick.
Why pick (0, 5) as (x_1, y_1): when one of the two points has a zero coordinate, plugging it into point-slope kills a bracket and saves an algebra step. The form y - y_1 = m(x - x_1) never cares which of the two given points you call "point one" — both produce the same line — so use the friendlier one.
Worked example 3 — negatives in x_1
Line through $(-2, 1)$ and $(2, 9)$
Step 1 — slope. Take (x_1, y_1) = (-2, 1) and (x_2, y_2) = (2, 9).
Step 2 — point-slope. Drop m = 2 and (-2, 1):
Notice the double negative collapsed to a plus inside the bracket. Expanding:
Check with (2, 9): 2(2) + 5 = 9. Tick.
Sign-and-bracket pitfall
The single most common mistake on this question type is mishandling negatives — both inside the slope subtraction and inside the x - x_1 bracket of point-slope. Two places to slow down.
Pitfall 1 — y_2 - y_1 when y_1 is negative. Suppose (x_1, y_1) = (3, -2) and (x_2, y_2) = (7, 6). Then
Not 6 - 2 = 4. The minus sign in the formula plus the minus sign on y_1 = -2 multiply to a plus. The slope is m = 8 / (7 - 3) = 8/4 = 2. Why this matters: students who write 6 - 2 = 4 get m = 1 and a wrong line that still "looks reasonable" — there is no obvious error to catch. The check using the spare point is the only safety net, so do it.
Pitfall 2 — x - x_1 in point-slope when x_1 is negative. From example 3, (x_1, y_1) = (-2, 1) gives
Write the bracket as (x - (-2)) first, then simplify to (x + 2). Skipping the intermediate step is where students drop the sign and write (x - 2) — which moves the line two units in the wrong direction.
Habit to build: always write the formula with the variables first, then substitute numbers in the next line. Two lines, not one. The cost is three seconds; the saving is not failing the question.
Which point to call (x_1, y_1)?
Either. The line through (1, 3) and (4, 9) is the same line whether you label them 1-then-2 or 2-then-1.
If you flip the labels, the slope flips sign in both numerator and denominator and ends up unchanged:
same as before. And point-slope using the other point also gives the same line — try it from example 1 with (4, 9):
identical to y - 3 = 2(x - 1). So pick whichever point makes the arithmetic easier — usually the one with smaller numbers, integer coordinates, or a zero.
Vertical-line edge case
If x_1 = x_2 (the two points share the same x-coordinate), the slope formula gives a zero denominator — undefined. That's geometry telling you the line is vertical, and you should write it as x = x_1 directly. No point-slope needed. Why no slope exists: a vertical line rises infinitely for zero horizontal change, so \Delta y / \Delta x has no finite value. The recipe doesn't apply, but the answer is still one line of writing.
Going deeper
For the curious
The two-step recipe — compute slope, then point-slope — is the cleanest two-point-to-line algorithm in the plane. JEE Advanced asks for variants in three dimensions and in parametric form, both of which generalise this same idea: the "direction" of the line (the 3D analogue of slope) is computed from \vec{r}_2 - \vec{r}_1, and the line is then written as \vec{r} = \vec{r}_1 + t(\vec{r}_2 - \vec{r}_1) — a vector point-slope.
The same two-step structure also underlies linear interpolation, finite-difference derivatives, and the chord-and-tangent method in early calculus. In every case: subtract to get a rate, then anchor at one known point. Once the recipe is automatic in 2D, the 3D and the calculus versions feel obvious instead of new.
References
- NCERT Class 11 Mathematics, Chapter 10: Straight Lines — the two-point form is derived in Section 10.3.2.
- Khan Academy — Writing equations of lines from two points.
- Wikipedia — Linear equation: two-point form.