Worked solution: distance between (1,2) and (4,6)

Step-by-step working for this straight line and coordinate geometry problem, produced and checked by the solver.

Distance between two points Answer checked
Answer
d=5d = 5
  1. Subtract the coordinates
  2. Distance = length of that vector
  3. Check: the same distance from B to A

Change the numbers and solve your own

The method in brief

  1. Gradient m = (y2 - y1) ÷ (x2 - x1): rise over run.
  2. Put the gradient and one point into y - y1 = m(x - x1), then tidy to y = mx + c.
  3. Midpoint = ((x1 + x2) ÷ 2, (y1 + y2) ÷ 2).
  4. Distance = √((x2 - x1)² + (y2 - y1)²), which is Pythagoras on the two differences.

Full guide: Straight lines and coordinates.

More GCSE examples on this topic