3D Distance Calculator
Calculate the straight-line distance between two points in 3D space using their x, y and z coordinates, free and instant in your browser.
Enter Values
How to use this calculator
- Enter the x, y, z of both points.
- Read the distance.
How it works
Distance = √((x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²) — Pythagoras extended to three dimensions.
Worked example
(0,0,0) to (1,2,2). = 3.
Common mistakes
- Forgetting the z term — that gives the 2D distance, not 3D.
- Swapping coordinates between the two points.
Frequently asked questions
How do I find the distance between two 3D points?
Distance = √((x2−x1)² + (y2−y1)² + (z2−z1)²) — the Pythagorean theorem extended to three axes.
How is it different from 2D distance?
It adds the z-axis term; in 2D you only use the x and y differences.
Does this work in 2D?
Yes — set both z values to 0 and it reduces to the standard 2D distance.
Related tools
- Distance Between Points Calculator
- Midpoint Calculator
- Slope Calculator
- Slope Intercept Form Calculator
- Average End Area Volume Calculator
- Annulus Area Calculator
Explore more in Geometry, Shape, Area & Volume.
Cite this tool
Zerdly. (2026). 3D Distance Calculator. Retrieved from https://www.zerdly.com/tools/distance-3d-calculator/
Tip: Enter any known values to calculate the remaining results.
All calculations run in your browser. Your inputs are never saved or transmitted.



