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.
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
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
| x1 | Distance |
|---|---|
| 0.5 | 5.32 |
| 0.8 | 5.12 |
| 1 | 5.00 |
| 1.25 | 4.85 |
| 1.5 | 4.72 |
| 2 | 4.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.