How to use the Distance Formula Calculator
- Enter x and y for each point.
- Read the distance, the midpoint and the working.
How it works
d = √((x₂ − x₁)² + (y₂ − y₁)²). The midpoint is ((x₁ + x₂)/2, (y₁ + y₂)/2).
Worked examples
(−2, 1) to (4, 9)
√(6² + 8²) = √100 = 10. Midpoint (1, 5).
Frequently asked questions
Why does it look like Pythagoras?
It is: the horizontal and vertical changes are the legs of a right triangle and the distance is the hypotenuse.
G
Built and reviewed by Guru G
Calculation logic is covered by automated tests against known values. Last reviewed Nov 8, 2026. Found a problem? Let us know — see our editorial policy.