Skip to main content

Distance Formula Calculator

Euclidean distance in any dimension.

Interactive Tool
Live Calculation

Distance Formula Calculator

undefined

Evaluated Formula:undefined
Guidance:
The formula is a direct application of the Pythagorean theorem.
Distance is always non-negative.
Distance
5

Calculated instantly

Embed this calculator

Put this calculator on your own site with the snippet below. The frame contains the tool only, reports its own height, and carries a visible link back to the full page. Embedding is free; keep the attribution link as it is, and do not wrap the frame in a way that hides it.

Preparing the embed code for this page...

What This Calculator Does

The Distance Formula Calculator finds the Euclidean distance between two points. It works in both 2D and 3D and is derived from the Pythagorean theorem.

How It Works

2D: d = sqrt((x2-x1)^2 + (y2-y1)^2). 3D: add (z2-z1)^2.

Example

Points (1,2) and (4,6): d = sqrt(9+16) = 5.

Formula

Distance
d = sqrt((x2-x1)^2 + (y2-y1)^2)

Reading the Results

Distance

The straight-line distance between the two points.

Frequently Asked Questions

What is the distance formula?

d = sqrt((x2-x1)^2 + (y2-y1)^2) for 2D. It is derived from the Pythagorean theorem.

Can I use this for 3D?

Yes. Add (z2-z1)^2 under the square root for the 3D distance formula.

Is this the shortest path?

Yes. Euclidean distance is the straight-line distance, the shortest path between two points in flat space.