Distance Formula Calculator

Find the straight-line distance between two coordinate points by turning delta x and delta y into the legs of a right triangle.

Measure the direct line between two points

The distance formula measures the direct segment between two grid positions. It is useful for coordinate grids, map-style layouts, pixel positions, and checking when two points are actually the same point.

Calculate coordinate distance

  1. Enter both points.
  2. Compute delta x.
  3. Compute delta y.
  4. Square both changes.
  5. Add them and take the square root.

Loading tool...

Delta values and straight-line distance

Distance combines horizontal and vertical change into one length.

Horizontal changeΔx=x2-x1
Vertical changeΔy=y2-y1
Distance formuladistance=Δx2+Δy2
Coordinate formdistance=x2-x12+y2-y12
Example62+82=10

Map and grid notes

  • Use the same units on both axes.
  • Straight-line distance is not route length.
  • Point order does not matter.
  • Identical points return zero.

FAQ

Is distance the same as delta x or delta y?

No. Delta x and delta y are the horizontal and vertical changes. Distance combines both into one straight-line length.

What happens if both points are the same?

Both coordinate changes are zero, so the square root is zero. The distance from a point to itself is 0.