The Distance & Midpoint Formulas on the Coordinate Plane
Two points on a coordinate plane raise two natural questions: how far apart are they, and what point sits exactly halfway between them? The distance formula answers the first: . The midpoint formula answers the second: .
Neither formula is new math. The distance formula is the Pythagorean theorem wearing coordinates, and the midpoint formula is nothing more than averaging. Once you see where each one comes from, there's very little left to memorize.
The distance formula is the Pythagorean theorem
Take the segment below from to . Slide right from one endpoint and up to the other, and the dashed legs form a right triangle: a horizontal leg of and a vertical leg of . The segment itself is the hypotenuse, so by the Pythagorean theorem its length is .
That's all the distance formula says: is the horizontal leg, is the vertical leg, and the square root puts the hypotenuse back together. It doesn't matter which point you call — the differences get squared, so any negative signs wash out.
The midpoint formula is an average
The point halfway between two numbers is their average. The midpoint of a segment does that twice — once for the -coordinates and once for the -coordinates: .
The most common midpoint mistake is subtracting instead of adding. Subtraction belongs to the distance formula; the midpoint adds the coordinates and halves them. If your midpoint doesn't land between the two endpoints, check that first.
In the figure below, sits exactly halfway along the segment — its coordinates are the averages of the two endpoints'.
Answers that aren't whole numbers
Distances often come out as square roots — that's normal. If the legs are and , the distance is , which simplifies to . Leave it as a simplified radical unless the problem asks for a decimal.
Midpoints can have fraction coordinates for the same reason averages can: the midpoint of and is . A fraction there is a correct answer, not a mistake.
Worked examples
Example 1: a whole-number distance
Find the distance between and .
Answer:
Example 2: a radical answer
Find the exact distance between and .
Answer:
Example 3: finding a midpoint
Find the midpoint of the segment with endpoints and .
Answer:
Example 4: finding a missing endpoint
The midpoint of a segment is , and one endpoint is . Find the other endpoint.
Answer:
Try one yourself
Common questions
Does it matter which point I call ?
No. In the distance formula the differences get squared, so swapping the points flips the signs but not the answer. In the midpoint formula you're adding, and addition works in either order. Pick whichever assignment keeps the arithmetic comfortable.
How are the distance formula and the Pythagorean theorem related?
They're the same statement. The horizontal change and the vertical change are the legs of a right triangle, and the segment between the points is the hypotenuse. The distance formula is just solved for with coordinates plugged in.
How do I keep the two formulas from getting mixed up?
Match the operation to the job. Distance measures a gap, and gaps come from subtracting; the midpoint is an average, and averages come from adding and dividing by . If you catch yourself subtracting inside a midpoint, stop and re-set-up.
Want the video version?
Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.