Midpoint Calculator
Midpoint, missing endpoint and any division ratio.
The straight-line distance between two points.
Distance Formula Calculator finds the straight-line distance between two points, in two or three dimensions. The formula is Pythagoras applied to coordinates: square the change in each direction, add them, take the square root.
The working is printed step by step because the formula is one people are asked to reproduce rather than just use. Seeing the differences, then the squares, then the sum, then the root makes it clear why the order matters and why a sign error in the differences does not affect the answer -- the squaring removes it.
The midpoint and the slope come free from the same two points and are usually wanted alongside the distance, so they are shown rather than requiring a second tool. A vertical line is reported as vertical rather than as infinity, because that is what an undefined slope means.
The page shows its working, not just its answer. Where there is a formula it is printed with your own numbers substituted in, so you can check the result rather than take it on trust -- which is the difference between a calculator you can use for something that matters and one you cannot.
Everything runs inside your browser. What you type is never uploaded, never logged and never stored, and the calculator keeps working if your connection drops after the page has loaded.
Looking for something this does not cover? FreeToolsZone.org is more free browser-based tools, organised by job, and it is worth a look if distance formula calculator is only part of what you are working on.
The distance formula calculator is used by writers, developers, students, marketers and anyone else who needs the job done once without installing software. Common cases include:
No. The differences are squared, so swapping the points gives the same distance. It does flip the sign of the slope's components, but not the slope itself.
Yes. The distance formula is the Pythagorean theorem written in coordinates, with the differences in x and y as the two legs.
For short distances this is fine. Over long distances on the Earth's surface you need great circle distance, which accounts for curvature and is a different calculation.
If the distance formula calculator is not quite what you need, these other free tools solve closely related problems, and there are 16 more in geometry calculators.
Midpoint, missing endpoint and any division ratio.
Slope between two points, with angle and line equation.
Right triangle sides and angles by Pythagoras.
Triangle sides, angles, area and type from any three facts.
Least squares line with slope, intercept and r squared.
Checked and rebuilt on 2026-10-14. The method this calculator uses is described in the section above, and corrections go through the contact page.