Skip to content

Distance Formula Calculator

Distance between two points, which is Pythagoras in disguise.

Work out Distance Formula. Distance between two points, which is Pythagoras in disguise. Free, with no account and nothing to download.

Written and maintained by Mohit PatelLast checked August 4, 2026How we build these

Distance between the points

6.708204

√(3² + 6²)

Slope (m)2
Rise6
Run3
Distance6.708204
Midpoint(2.5, 5)
Angle from horizontal63.4349°
Equationy = 2x + 0

The distance formula is the Pythagorean theorem wearing different clothes. The horizontal gap 3 and the vertical gap 6 are the two legs of a right triangle, and the distance is its hypotenuse: √(9 + 36) = 6.708204.

How the Distance Formula Calculator works

The distance formula is the Pythagorean theorem wearing different clothes. The horizontal and vertical gaps between two points are the legs of a right triangle, and the distance between them is its hypotenuse.

Also known as: distance between two points · euclidean distance calculator · distance formula · coordinate distance calculator

Frequently asked questions

What is the distance formula?

√((x₂−x₁)² + (y₂−y₁)²). It is a² + b² = c² applied to the horizontal and vertical gaps.

Does the order of the points matter?

No. The differences get squared, which discards the sign, so measuring from either end gives the same distance.

How is this related to Pythagoras?

It is the same theorem. Draw a right triangle with one leg horizontal and one vertical between the points, and the distance is the hypotenuse.

What if the points share a coordinate?

The distance is just the difference in the other coordinate. One of the legs is zero, and the triangle collapses to a straight line.

Put this calculator on your own site

Free to use, on any site, commercial or not. Paste this where you want it to appear. It is a plain iframe, so it works in WordPress, Squarespace, Wix, Webflow, Ghost and anything else that accepts HTML.

The one-line version
<iframe src="https://www.thecalclibrary.com/embed/distance-formula-calculator" width="100%" height="640" style="border:1px solid #e2e8f0;border-radius:12px" loading="lazy" title="Distance Formula Calculator"></iframe>

The only condition is that the credit line stays visible. It sits inside the frame, so you do not have to do anything to keep it.

Related calculators