• Practice
  • About 17 min
  • 5 practice questions

Using the distance formula: collinearity, shapes and unknown points

Use the distance formula to test whether points are collinear, identify triangles and quadrilaterals, find a point equidistant from given points, find a circumcentre, and find an unknown co-ordinate.

If something looks wrong, please tell us.

By the end of this lesson you can

  • Decide whether three points are collinear by comparing distances.
  • Show that given points form a right triangle, an equilateral triangle, a parallelogram, a rhombus, a rectangle or a square.
  • Find a point equidistant from given points, a circumcentre, or a missing co-ordinate.

Once lengths can be calculated, many geometric facts can be checked purely by arithmetic: whether three points lie on a line, what kind of triangle they make, or where the centre of a circle through them is.

Collinear points

Three points A, B, C are collinear exactly when the sum of two of the distances AB, BC, AC equals the third. Otherwise they form a triangle.

Worked example 1: collinear or not?

  • A(−2, −1), B(1, 3), C(7, 11): AB = √(9 + 16) = 5, BC = √(36 + 64) = 10, AC = √(81 + 144) = 15. Since 5 + 10 = 15, the points are collinear, with B between A and C.
  • P(0, 0), Q(3, 4), R(6, 2): PQ = 5, QR = √(9 + 4) = √13 ≈ 3.61, PR = √(36 + 4) = √40 ≈ 6.32. No sum of two equals the third, so they form a triangle.

Recognising shapes

What to check
ShapeTest with distances
Right triangleSquare of the longest side = sum of squares of the other two
Equilateral triangleAll three sides equal
ParallelogramBoth pairs of opposite sides equal
RhombusAll four sides equal
RectangleOpposite sides equal and diagonals equal
SquareAll four sides equal and diagonals equal

Worked example 2: a right triangle and a square

A(1, 1), B(4, 1), C(4, 5): AB = 3, BC = 4, AC = √(9 + 16) = 5, and 3² + 4² = 5², so the triangle is right-angled at B. For A(0, 0), B(3, 1), C(2, 4), D(−1, 3): AB = BC = CD = DA = √10, and the diagonals AC = √(4 + 16) = √20 and BD = √(16 + 4) = √20 are equal, so ABCD is a square.

Equidistant points and circumcentres

To find a point P equidistant from A and B, write PA² = PB² (squaring avoids square roots) and simplify; the squared terms cancel and a linear equation remains.

Worked example 3: a point on the X-axis

Find the point on the X-axis equidistant from A(2, 5) and B(6, 3). Working: let P = (x, 0). PA² = PB² gives (x − 2)² + 25 = (x − 6)² + 9, so x² − 4x + 29 = x² − 12x + 45, 8x = 16 and x = 2. P = (2, 0). Check: PA = 5 and PB = √(16 + 9) = 5.

Worked example 4: a circumcentre

Find the circumcentre of △ABC with A(0, 0), B(8, 0), C(0, 6). Working: let P(a, b). PA² = PB² gives a² + b² = (a − 8)² + b², so 16a = 64 and a = 4. PA² = PC² gives a² + b² = a² + (b − 6)², so 12b = 36 and b = 3. The circumcentre is (4, 3) and the radius is √(16 + 9) = 5. (The triangle is right-angled at A, and (4, 3) is the midpoint of the hypotenuse BC, as expected.)

Worked example 5: an unknown co-ordinate

The distance between (1, y) and (4, 2) is 5. Working: 9 + (y − 2)² = 25, so (y − 2)² = 16, y − 2 = ±4 and y = 6 or y = −2. Both answers are correct: there are two such points.

Collinear: two distances add up to the third. Equidistant: set the squared distances equal. A square root equation can have two answers (±).

— Applications of the distance formula

Key takeaways: compare distances to test collinearity and to classify shapes; for squares and rectangles also compare the diagonals. Use squared distances when finding equidistant points or circumcentres, and remember the ± when solving for an unknown co-ordinate.

Check your understanding

  1. 1. Which three points are collinear?

    1. (0, 0), (1, 2), (3, 5)
    2. (1, 1), (2, 3), (3, 5)
    3. (1, 0), (2, 2), (4, 3)
    4. (0, 1), (2, 2), (3, 4)
    Show answer

    Answer: B. For (1, 1), (2, 3), (3, 5): the two short distances are √(1 + 4) = √5 each, and the long one is √(4 + 16) = √20 = 2√5. Since √5 + √5 = 2√5, they are collinear.

  2. 2. Which point on the Y-axis is equidistant from A(3, 0) and B(−1, 4)?

    1. (0, 2)
    2. (0, −1)
    3. (0, 1)
    4. (0, 3)
    Show answer

    Answer: C. Let P(0, y). PA² = PB²: 9 + y² = 1 + (y − 4)² = y² − 8y + 17, so 8y = 8 and y = 1. Check: PA = √10 = PB.

  3. 3. The distance between (x, 3) and (2, −1) is 5. What can x be?

    1. 5 only
    2. 5 or −1
    3. −1 only
    4. 3 or −3
    Show answer

    Answer: B. (x − 2)² + 16 = 25 gives (x − 2)² = 9, so x − 2 = ±3 and x = 5 or −1.

  4. 4. What kind of triangle has vertices (0, 0), (4, 0) and (2, 2√3)?

    1. Right-angled
    2. Isosceles but not equilateral
    3. Scalene
    4. Equilateral
    Show answer

    Answer: D. The sides are 4, √(4 + 12) = 4 and √(4 + 12) = 4. All three are equal, so it is equilateral.

  5. 5. What is the circumcentre of the triangle with vertices (0, 0), (6, 0) and (0, 8)?

    1. (3, 4)
    2. (2, 8/3)
    3. (6, 8)
    4. (4, 3)
    Show answer

    Answer: A. PA² = PB² gives a = 3 and PA² = PC² gives b = 4, so the circumcentre is (3, 4), the midpoint of the hypotenuse; the radius is 5.

Sign in to keep track of the lessons you finish.

Next lesson → The section formula

Privacy · Terms · Refunds · Delivery