Home · Math · Plane Geometry · Three-Dimensional Distance Calculator

Three-Dimensional Distance Calculator

Distance between two points in 3D space - Pythagoras extended to three coordinate differences.

Your figures

Example result — edit the figures to make it yours

5

Distance

Difference dx3.00
Difference dy4.00
Difference dz0.00

What this calculator does

Distance between two points in 3D space - Pythagoras extended to three coordinate differences. Every figure on this page is computed from the formula or definition stated below, with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

d = sqrt(dx^2 + dy^2 + dz^2)

The 3D distance extends the planar formula with the third axis: sqrt((x2-x1)^2 + (y2-y1)^2 + (z2-z1)^2). The individual coordinate differences are shown as well.

All coordinates must share one unit. Setting the z values equal reduces this to the ordinary 2D distance.

Worked example

With the example inputs this page opens with (x1 1, y1 2, z1 3, x2 4), the result is 5.00 — distance. Change any figure and the result updates with the same formula.

Quick reference

Quick reference — varying x1
x1Distance
0.55.32
0.85.12
15.00
1.254.85
1.54.72
24.47

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Three-Dimensional Distance Calculator work?

Distance between two points in 3D space - Pythagoras extended to three coordinate differences. Point 1 (x y z) - Point 2 (x y z) -> Distance. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Three-Dimensional Distance Calculator need?

Point 1 (x y z) - Point 2 (x y z) -> Distance. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Three-Dimensional Distance Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.