Built and fact-checked by the DocNectar team — see our editorial standards
Key Features
Instant Calculation
Get accurate results in real time with our optimized algorithm.
Mobile Friendly
Fully responsive design. Works on all devices & screen sizes.
Privacy Focused
Your data stays on your device. We don't store any inputs.
100% Free
No hidden costs. This tool is completely free forever.
The distance formula extends naturally from 2D to 3D by adding a z-term under the square root — it's just the Pythagorean theorem applied twice in succession. This calculation is fundamental to 3D computer graphics and game engines (checking how far apart two objects or a player and an enemy are), CAD and mechanical design (verifying clearances between components), physics simulations (computing gravitational or electrostatic force, which depends on the distance between two bodies in space), and GPS/robotics applications that track position in three dimensions including altitude.
How it works
Enter both points' x, y, and z coordinates. The calculator finds the difference along each axis, squares each difference, adds the three squared differences together, and takes the square root: d=√((x2-x1)²+(y2-y1)²+(z2-z1)²). This is the same Euclidean distance formula from 2D, just with one more squared term added for the z-axis.
- Enter point 1 — x1.
- Enter point 1 — y1.
- Enter point 1 — z1.
- Enter point 2 — x2.
- Enter point 2 — y2.
- Enter point 2 — z2.
- Click Calculate to see your results.
Examples
(1,2,3) to (4,6,3)
d=√((4-1)²+(6-2)²+(3-3)²)=√(9+16+0)=√25=5.
(0,0,0) to (2,3,6)
d=√(2²+3²+6²)=√(4+9+36)=√49=7.
Common mistakes to avoid
- Forgetting the z-term entirely and computing only the 2D distance.
- Forgetting to square the differences before summing them (adding raw differences instead).
- Mixing up coordinates between the two points (e.g., pairing point 1's x with point 2's y).
- Forgetting to take the final square root and reporting the sum of squares as the distance.