Geometry
Distance in 3D
Euclidean distance in 3D.
Formula
Formula
d = √Δx2 + Δy2 + Δz2
Variables
| Symbol | Definition | Type & range | Units | Role |
|---|---|---|---|---|
| x₁,y₁,z₁ | first point | computed result | — | result |
| x₂,y₂,z₂ | second point | computed result | — | result |
Try it yourself
Interactive calculator
Worked examples
Example 1
Givenx₁ = 0, y₁ = 0, z₁ = 0, x₂ = 1, y₂ = 2, z₂ = 2
Result3
Example 2
Givenx₁ = 1, y₁ = 1, z₁ = 1, x₂ = 4, y₂ = 5, z₂ = 1
Result5