CAD / Coordinate Distance Calculator

Coordinate Distance Calculator

Calculate signed coordinate changes and 2D/3D straight-line distances between two Cartesian points.

Inputs

Updates as you type

Results

3D distance

13
Results
2D distance5
ΔX · horizontal difference3
ΔY · vertical difference4
ΔZ12

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

From (0,0,0) to (3,4,12), the 2D distance is 5 and the 3D distance is 13. Distance uses the same unit as the coordinates. From (1200, 350, 0) mm to (4200, 2350, 1500) mm, ΔX is 3,000, ΔY 2,000 and ΔZ 1,500 mm; the plan distance is about 3,605.551 mm and the 3D straight-line distance about 3,905.125 mm.

How to use

  1. Enter X, Y and Z for both points in one consistent coordinate unit.
  2. For a planar calculation, set both Z values to zero. All six coordinate fields require values.
  3. 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.

KEEP WORKING