Coordinate Distance Calculator
Calculate signed coordinate changes and 2D/3D straight-line distances between two Cartesian points.
Inputs
Updates as you typeResults
3D distance
| 2D distance | 5 |
|---|---|
| ΔX · horizontal difference | 3 |
| ΔY · vertical difference | 4 |
| ΔZ | 12 |
Overview
Calculate signed coordinate changes and 2D/3D straight-line distances between two Cartesian points. Use it to check the straight-line distance between two points given as coordinates, such as points on a piping isometric, equipment nozzle positions or survey coordinates.
Formula
ΔX = X2 − X1 · ΔY = Y2 − Y1 · ΔZ = Z2 − Z1 d2D = √(ΔX² + ΔY²) d3D = √(ΔX² + ΔY² + ΔZ²)
Example
How to use
- Enter X, Y and Z for both points in one consistent coordinate unit.
- For a planar calculation, set both Z values to zero. All six coordinate fields require values.
- Read ΔX, ΔY, ΔZ, XY-plane distance and 3D straight-line distance; outputs use the input coordinate unit.
Engineering notes
- Use the same Cartesian coordinate system, origin and unit for both points.
- Latitude/longitude angles and curved surface distances require different formulas. This result is a straight-line distance, not a path length.
- Pipe length take-off needs the actual route (the sum of the X, Y and Z runs through the elbows), not the straight-line distance. This result is the shortest distance between the two points.
- Results use the coordinates' unit. Do not mix mm and m coordinates; align them first with the length converter if needed.
Frequently asked questions FAQ
Does swapping the points change the distance?
No. The distances stay the same while ΔX, ΔY and ΔZ change sign.
If I leave Z blank, do I get only the 2D distance?
Every coordinate field needs a value. For a plan distance only, enter 0 for both Z values; the 2D distance is always shown regardless of Z.
Can I also get the direction between the points?
The plan direction angle is in the coordinate offset calculator, which shows the angle from the +X axis with the horizontal and vertical changes.
Related tools
CAD Scale Calculator
Convert drawing length to real length or the reverse using a 1:n scale and optional scale presets.
Open calculatorScale Conversion Calculator
Calculate the AutoCAD SCALE factor between two drawing scales for the same real object.
Open calculatorOffset Calculator
Find horizontal and vertical coordinate differences, straight distance and the direction angle from the positive X-axis.
Open calculator