Geometry Intro distancemidpointcoordinate geometry

Distance & Midpoint Formulas

The Pythagorean theorem and an average, doing most of coordinate geometry.

Video by Khan Academy — “Distance formula | Analytic geometry | Geometry | Khan Academy” Watch on YouTube

The explanation

Key idea Distance is Pythagoras on the gaps; midpoint is the average of the coordinates.

Two formulas cover most coordinate geometry.

Distance: d = √((x₂ − x₁)² + (y₂ − y₁)²)

That is just the Pythagorean theorem. The horizontal gap and the vertical gap are the legs of a right triangle, and the distance is the hypotenuse.

Midpoint: ((x₁ + x₂)/2, (y₁ + y₂)/2)

Average the x's, average the y's. The answer is a point, so it needs both coordinates.

Because both differences get squared, the order of subtraction does not matter for distance. It very much does for slope.

A common variant gives you the midpoint and one endpoint and asks for the other. Do not average — work backwards: the midpoint is as far from the known endpoint as the unknown one is, so double the midpoint and subtract.

Worked example

M(3, −1) is the midpoint of AB with A(−2, 5). Find B, then find AB.

  1. x of B: 2(3) − (−2) = 8.
  2. y of B: 2(−1) − 5 = −7. So B(8, −7).
  3. AB = √((8+2)² + (−7−5)²) = √(100 + 144).
  4. = √244 = 2√61.

Answer: B(8, −7) and AB = 2√61 ≈ 15.6

Common mistakes

  • Averaging the midpoint with the known endpoint when finding the missing endpoint.
  • Forgetting to square both differences before adding.