Distance calculator

Measure the distance between coordinates in 2D, in 3D, or across the globe.

Coordinate distance
5

Both points use the same coordinate units.

Breakdown & share
Δx
3
Δy
4
Estimates only.

Your inputs

Example values. Change any of them.

How it’s worked out

See how we got 5

Coordinate distance = √(Δx² + Δy² + Δz²). Geographic distance = 2R × asin(√h), with h from the haversine of the latitude and longitude differences.

  1. Subtract corresponding coordinates.
  2. Find √((3)² + (4)²) = 5.

About this calculator

Geographic distances use a spherical Earth radius of 6,371.0088 km. They represent direct travel across the surface.

Worked example

Coordinate distance · 5

Coordinate distance = √(Δx² + Δy² + Δz²). Geographic distance = 2R × asin(√h), with h from the haversine of the latitude and longitude differences.

  1. Subtract corresponding coordinates.
  2. Find √((3)² + (4)²) = 5.

Formula sources

Reference checked November 22, 2026.