Distance and dividing a line

Two formulae find the length of a line segment and the point that splits it in any ratio.

Practise this lesson free (7 questions)

More tools

Distance

The distance between (x1, y1) and (x2, y2) is
โˆš[(x2 โˆ’ x1)2 + (y2 โˆ’ y1)2]
(1, 2) to (7, 10): โˆš(36 + 64) = 10

Midpoint

((x1 + x2)2, (y1 + y2)2)
Midpoint of (โˆ’4, 7) and (6, โˆ’1) is (1, 3).

Dividing in a ratio

The point dividing A(x1, y1) to B(x2, y2) in the ratio m : n is
((nx1 + mx2)(m + n), (ny1 + my2)(m + n))
A(1, 2), B(10, 14), ratio 1 : 2: (2 + 103, 4 + 143) = (4, 6)
Worked example

Find the distance between (โˆ’3, 4) and (2, โˆ’8).

  1. Differences: 5 and โˆ’12
  2. โˆš(25 + 144) = โˆš169

Answer: 13

Key idea

Distance = โˆš[(x2 โˆ’ x1)2 + (y2 โˆ’ y1)2]. The point dividing AB in m : n is A + m(m + n) of the way to B.

Quick check

Try two quick questions

See if it has sunk in. Answers are marked straight away.

Extra practice

2 more questions

Try each one, then tap to check.

  1. Find the distance between (2, 3) and (5, 7).

    Show the answer

    Answer: 5

    โˆš(32 + 42) = โˆš25 = 5.

  2. Find the distance between (โˆ’4, 1) and (2, โˆ’7).

    Show the answer

    Answer: 10

    โˆš(62 + 82) = โˆš100 = 10.

Check you have got it

Answer 7 quick questions with instant marking. If you get one wrong, GCSE-ready shows you why and gives you another go. It is free, and you do not need an account.

Video for this lesson coming soon. Subscribe on YouTube

Sources and references

Facts checked against the sources below, 17 October 2026. Last updated 2 October 2026. Spotted a mistake? Tell us and we will fix it.