3D Distance Calculator
Straight-line distance between two points in space.
Enter your values
ⓘ Live results
Results
- Distance
- 13
- Midpoint
- (2.5, 4, 9)
- Δx, Δy, Δz
- 3, 4, 12
- 2D distance (xy only)
- 5
- Manhattan distance
- 19
- Unit direction vector
- (0.2308, 0.3077, 0.9231)
Quick answer
The 3D distance formula extends Pythagoras: d = √((x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²).
d = √(Δx² + Δy² + Δz²)
How to use the 3D Distance Calculator
- 1Enter the coordinates of the first point.
- 2Enter the coordinates of the second point.
- 3Read the straight-line distance, or the Manhattan distance for grid-based movement.
Worked example
Using the values the calculator loads with:
Inputs
- x₁1
- y₁2
- z₁3
- x₂4
- y₂6
- z₂15
Results
- Distance13
- Midpoint(2.5, 4, 9)
- Δx, Δy, Δz3, 4, 12
- 2D distance (xy only)5
- Manhattan distance19
- Unit direction vector(0.2308, 0.3077, 0.9231)
Frequently asked questions
What is Manhattan distance?
The sum of the absolute coordinate differences — the distance when you can only travel along the axes, like city blocks.
Can I use it for 2D?
Yes, just set both z values to 0.
About this calculator
- Built and reviewed by James Whitfield · How we build and test calculators
- Report an error
Results are estimates for general information. For medical, legal, structural or financial decisions, confirm with a qualified professional.