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
- Subtract the coordinates
- Distance = length of that vector
- Check: the same distance from B to A
Change the numbers and solve your own
The method in brief
- Gradient m = (y2 - y1) ÷ (x2 - x1): rise over run.
- Put the gradient and one point into y - y1 = m(x - x1), then tidy to y = mx + c.
- Midpoint = ((x1 + x2) ÷ 2, (y1 + y2) ÷ 2).
- Distance = √((x2 - x1)² + (y2 - y1)²), which is Pythagoras on the two differences.
Full guide: Straight lines and coordinates.