Are three points collinear? Distances, slopes and the traps
There are two standard tests for three points on one line: the two shorter distances add up to the longest, or the slopes between the points match. Both are quick. Most mistakes come from squaring the wrong way, rounding too early, or dividing by a zero run.
The points below are invented practice points. For the distance formula and a basic collinearity question, see the Class 10 coordinate geometry chapter page.
The two tests
- Distance test: find AB, BC and AC with the distance formula and keep the roots exact. The points are collinear exactly when the two smaller distances add up to the largest.
- Slope test: the slope from A to B equals the slope from B to C. This needs every x-difference to be non-zero.
- Never add squared distances to decide this. That tests for a right angle.
Example 1: the two short distances add up to the long one
A = (−3, −2), B = (1, 4), C = (5, 10). AB = 2√13, BC = 2√13, AC = 4√13.
AB = √((1 − (−3))² + (4 − (−2))²) = √(16 + 36) = √52 = 2√13. BC = √((5 − 1)² + (10 − 4)²) = √(16 + 36) = 2√13. AC = √((5 − (−3))² + (10 − (−2))²) = √(64 + 144) = √208 = 4√13. Then AB + BC = 2√13 + 2√13 = 4√13 = AC, so the points are collinear and B lies between A and C.
Check: Slope test: from A to B the slope is 6/4 = 3/2, and from B to C it is 6/4 = 3/2. Same slope, same answer.
Example 2: a vertical line, where slope has no value
A = (3, −4), B = (3, 1), C = (3, 7). AB = 5, BC = 6, AC = 11.
All three points have x = 3. AB = |1 − (−4)| = 5, BC = |7 − 1| = 6, AC = |7 − (−4)| = 11. Since 5 + 6 = 11, they are collinear. The distances here are whole numbers, so there are no roots to handle.
Check: The slope test breaks on this line, because every run (change in x) is 0 and you cannot divide by 0. The distance test has no such gap. A common-x or common-y check also works here.
Example 3: why adding the squares is the wrong test
A = (−2, 6), B = (1, 6), C = (1, 10). AB = 3, BC = 4, AC = 5.
AB = 3, BC = 4, AC = 5. Squares: AB² + BC² = 9 + 16 = 25 = AC². The squares add up, yet 3 + 4 = 7 is not 5, so the points are not collinear. They form a right angle at B. Now go back to Example 2: AB² + BC² = 25 + 36 = 61, but AC² = 121. Those points are collinear, and the squares do not add.
Check: Squares adding to the third square is the Pythagoras test for a right angle. For collinearity, the distances themselves must add. Squaring both sides properly gives (AB + BC)² = AC², which also has the extra term 2 × AB × BC.
A near miss that rounding can hide
A = (2, −1), B = (6, 2), C = (10, 6). AB = 5, BC = 4√2, AC = √113.
AB = √(16 + 9) = 5. BC = √(16 + 16) = 4√2, about 5.657. AC = √(64 + 49) = √113, about 10.630. Then AB + BC is about 10.657, which is not 10.630. The points are not collinear. If you round every distance to a whole number, you get 5 + 6 = 11 and 11, and the test seems to pass. Do not round distances to decide collinearity. Use exact roots, or use the slope test: the slope from A to B is 3/4, and from B to C it is 4/4 = 1.
Try two yourself
First: are K = (−3, −5), L = (0, 1) and M = (3, 7) collinear? Second: are D = (−2, 3), E = (−1, 6) and F = (2, 10) collinear? Use exact roots.
Show the worked self-check
First: KL = √(9 + 36) = √45 = 3√5. LM = √(9 + 36) = 3√5. KM = √(36 + 144) = √180 = 6√5. Since 3√5 + 3√5 = 6√5, they are collinear. Slopes agree too: 6/3 = 2 and 6/3 = 2.
Second: DE = √(1 + 9) = √10. EF = √(9 + 16) = 5. DF = √(16 + 49) = √65. The sum √10 + 5 is about 8.16, while √65 is about 8.06. They differ, so the points are not collinear. Slopes agree with that: 3 from D to E and 4/3 from E to F.
Limits of this page
- The distance test needs exact roots. A decimal that has been rounded can hide a near miss.
- The slope test cannot be used when two points share an x-value; use the distance test or compare x-values.
- These checks handle three points. They do not replace the area method for a triangle.
- The points are practice values, not a textbook exercise key.
Common questions
Why test AB + BC = AC and not AB² + BC² = AC²?
Squares adding up is the test for a right angle at B. For three points on one line, the lengths add: AB + BC = AC. The squared version leaves out the cross term 2 × AB × BC.
Which is better, the distance test or the slope test?
Both are valid. Slopes are quick when no x-values match. The distance test also works on a vertical line. When you have time, run both. If they disagree, one calculation has an error.
Which point do I treat as the middle one?
Work out all three distances. The longest is the candidate for the full length. If the two shorter ones add up to it, the points are collinear and the shared point sits between the others.
Can I compare decimal distances instead of roots?
Only if you keep enough digits to separate close values, and the near-miss example shows how rounding to whole numbers can pass a false triple. Exact roots or slopes are safer for a yes or no answer.
Sources and scope
Source checked . It supports the distance formula and the use of distances to test whether three points are collinear. The points, traps and practice here are original EZT work.