Distance Formula Calculator

Calculate the straight-line distance between two points.

How far apart two points are

The distance formula gives the straight-line distance between two points from their coordinates. This calculates it, one of the most-used results in coordinate geometry, whether for maths, graphics or measuring on a plane.

Enter two points to find the distance between them.

It's really Pythagoras in disguise

The distance formula looks like something to memorise, but it is simply the Pythagorean theorem applied to two points. The horizontal gap between the points and the vertical gap form the two shorter sides of a right triangle, and the straight-line distance between the points is the hypotenuse — so the distance is the square root of the sum of the squared horizontal and vertical gaps. Seeing it this way makes it easy to remember and understand rather than a formula pulled from nowhere. It extends straight to three dimensions by adding the squared gap in the third direction under the same square root. This connection between a triangle theorem and coordinate distance is one of the neat unifying ideas that ties geometry together.

Distance Formula Calculator FAQ

How does the distance formula relate to Pythagoras?

It is the Pythagorean theorem applied to two points — the horizontal and vertical gaps are the two shorter sides, and the distance is the hypotenuse.

Does it work in three dimensions?

Yes — add the squared gap in the third direction under the same square root, and it gives the straight-line distance in 3D.

Is anything uploaded?

No. The calculation happens in your browser.

More Math tools