Distance Formula Calculator

The straight-line distance between two points.

Geometry Calculators Free, no sign-up Runs in your browser

Distance Formula Calculator tool

—
Distance
—
Change in X
—
Change in Y
—
Midpoint
—
Slope

About the Distance Formula Calculator

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.

How to use the Distance Formula Calculator

  1. Choose dimensionsThe fields below change to match what you pick, so only the figures that matter to your case are asked for.
  2. Enter x1, y1 and z1Decimals are fine, and thousands separators are accepted and ignored.
  3. Read the distance, change in x and change in yThe figures update as you type. The Calculate button is there if you would rather press something, but nothing waits for it.
  4. Copy or check the resultCopy the summary with the copy button, or read the formula with your own numbers in it.

Features

  • Shows distance, change in x, change in y, midpoint and slope together, so you are not running it twice
  • Prints the formula with your own figures substituted in
  • Updates as you type, with no button to press and no page reload
  • Copy the result in one click
  • Free, no sign-up, and it runs entirely in your browser

Who uses this tool

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:

  • Finding the distance between two coordinates
  • Checking a distance formula answer in homework
  • Measuring a diagonal from grid references
  • Working in three dimensions for a CAD or physics problem

Frequently asked questions

Does the order of the points matter?

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.

Is this the same as Pythagoras?

Yes. The distance formula is the Pythagorean theorem written in coordinates, with the differences in x and y as the two legs.

What about distance on a map?

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 Calculator

Midpoint, missing endpoint and any division ratio.

Geometry Calculators Use tool

Slope Calculator

Slope between two points, with angle and line equation.

Geometry Calculators Use tool

Triangle Calculator

Triangle sides, angles, area and type from any three facts.

Geometry Calculators Use tool

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.