Math Solver Free

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.