Geometry

Distance and Midpoint Formula: How to Use Both, with Examples

The distance formula is the Pythagorean theorem on a grid, and the midpoint formula is an average. Work both on the same points so one checks the other, then handle negative coordinates, radical answers, a missing endpoint, a right triangle and a town map, plus the 3D version.

Frequently asked questions

What is the distance formula?

For points (x₁, y₁) and (x₂, y₂), the distance is d = √((x₂ − x₁)² + (y₂ − y₁)²). Subtract the x-coordinates, subtract the y-coordinates, square both differences, add them and take the square root. For (−2, 3) and (4, −5) the differences are 6 and −8, so d = √(36 + 64) = √100 = 10.

How is the distance formula related to the Pythagorean theorem?

The segment between two points is the hypotenuse of a right triangle whose legs are the horizontal change and the vertical change. The Pythagorean theorem gives d² = (x₂ − x₁)² + (y₂ − y₁)², and taking the positive square root gives the distance formula. Squaring removes any negative sign, so no absolute value bars are needed.

How do you find the midpoint of two points?

Average the x-coordinates and average the y-coordinates separately: M = ((x₁ + x₂)/2, (y₁ + y₂)/2). For (−4, 1) and (−1, 7) that gives (−5/2, 8/2) = (−2.5, 4). A half in the answer is normal whenever two coordinates add to an odd number. Check it by confirming the midpoint is the same distance from both endpoints.

How do you find the other endpoint if you know the midpoint?

Rearrange the midpoint formula: x₂ = 2m − x₁ and y₂ = 2n − y₁, where (m, n) is the midpoint and (x₁, y₁) is the known endpoint. With midpoint (2, −1) and endpoint (−3, 4), the other end is (2(2) + 3, 2(−1) − 4) = (7, −6). Averaging (−3, 4) and (7, −6) gives back (2, −1), which confirms it.

Does it matter which point is (x₁, y₁) in the distance formula?

No. Swapping the points changes each difference to its opposite, such as 6 to −6, and opposites have the same square, so the distance is unchanged. Just stay consistent inside each bracket: if the x-difference starts with point B, the y-difference should start with point B too. The midpoint formula adds coordinates, so order never matters there either.

Try these solvers

Geometry9 min read

Pythagorean Theorem Explained — Formula, Proofs & Practice Problems

The Pythagorean theorem is one of the most important formulas in math. Learn the formula, see a visual proof, and practice with worked examples.

Algebra9 min read

Simplifying Radicals and Rational Exponents — Rules You Need

Radicals and exponents follow clear rules that, once mastered, make simplification fast and reliable. Learn the key rules, see worked examples, and practice.

Geometry13 min read

Conic Sections — Circles, Ellipses, Parabolas, and Hyperbolas

Master the four conic sections — circles, ellipses, parabolas, and hyperbolas — with this complete guide. Covers standard equations, key features, graphing, and real-world applications.

Need help solving a problem?

Snap a photo and get instant step-by-step solutions with Solver AI.