Distance Between Two Points Calculator – 2D and 3D
Find straight-line Cartesian distance. Set both z coordinates to zero for a plane.
Formula
d = √[(x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²]
Distance (coordinate unit) ≈ sqrt(((3)-(0))^2+((4)-(0))^2+((0)-(0))^2)
How to use
- Enter the coordinates of both points.
- Use the same unit and scale on every axis.
- Read the distance in that same unit.
Examples
- (0;0;0) → (3;4;0): d = 5.
Frequently asked questions
Can I use two dimensions?
Yes. Set z₁=z₂=0.
Does this calculate road distance?
No. It measures a straight line in Cartesian coordinates.
May coordinates be negative?
Yes. Negative coordinates and coincident points are supported.
Sources
Updated: