← All guides

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.

Video lesson: Distance and midpoint (free, with subtitles)

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

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.

Practice: Distance and midpoint All courses