About this calculator
Enter the x, y and z of both points.
How to use it
- Enter point 1.
- Enter point 2.
- Read the distance.
The formula
d = √((x₂ − x₁)² + (y₂ − y₁)² + (z₂ − z₁)²)
- z
- the third coordinate
Worked example
(1, 2, 3) to (4, 6, 15)
- Gaps 3, 4 and 12.
- d = √(9 + 16 + 144) = 13.
What the result means
The same formula gives the space diagonal of a box.
Assumptions
- All lengths in the same unit.
Limitations
- Results are rounded to 10 significant figures.
Frequently asked questions
What is the 3D distance formula?
√(Δx² + Δy² + Δz²).
What is the midpoint in 3D?
The average of each coordinate.
Where is it used?
In physics, graphics, engineering and data analysis.
Last reviewed on 3 October 2026. Found a mistake? Tell us.

