Distance formula and midpoint formula
Find the distance between two points with d = √((x₂ − x₁)² + (y₂ − y₁)²) and the midpoint with the averages, with worked examples.
d = √((x₂ − x₁)² + (y₂ − y₁)²) M = ((x₁ + x₂)/2, (y₁ + y₂)/2)
Example 1
From (1, 2) to (4, 6): d = √(3² + 4²) = √25 = 5. Midpoint: ((1 + 4)/2, (2 + 6)/2) = (2.5, 4).
Example 2, with negatives
From (−2, 3) to (4, −5): d = √(6² + (−8)²) = √(36 + 64) = √100 = 10. Midpoint: (1, −1).
Why the distance formula works
Draw a right triangle with the two points at the ends of the hypotenuse. The legs are the horizontal change and the vertical change, so the distance comes straight from the Pythagorean theorem.
Why the midpoint is an average
Halfway between two numbers is their average. The midpoint just does that for x and for y separately.
Common mistakes
- Subtracting in the midpoint formula. It's a sum divided by 2.
- Losing a negative: (−5 − 3)² = (−8)² = 64.
Practice it free
Watch the full lesson and try questions with new numbers every time, with the worked steps shown if you get one wrong.