Distance Formula Calculator

Distance between points in 2D or 3D — instantly and free.

How the Distance Formula Works

The distance formula is the Pythagorean theorem in disguise. The horizontal gap between two points is one leg of a right triangle, the vertical gap is the other leg, and the straight-line distance is the hypotenuse.

2D and 3D Versions

In 2D you square two differences; in 3D you square three. The pattern extends to any number of dimensions — just keep adding squared coordinate differences under the square root.

Exact vs. Decimal Answers

Many distances are irrational (like √50). Geometry classes often want the exact radical form, while applied problems want the decimal — this tool shows both.

The same right-triangle idea powers our Pythagorean theorem calculator — and you can check the arithmetic with the four-function calculator.

Frequently Asked Questions

What is the distance formula?

d = √[(x₂−x₁)² + (y₂−y₁)²] — it is the Pythagorean theorem applied to the horizontal and vertical gaps between two points.

How do you find distance in 3D?

Add the squared z-difference: d = √[(x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²].

What is the difference between distance and displacement?

Distance is the total path length (always positive); displacement is the straight-line change from start to finish, which is what this formula computes.

Is this calculator free?

Yes — every tool on Math Solver Free is free with no sign-up, and all calculations run in your browser.