Distance Calculator

Compute distances on plane, space, and Earth with interactive tools

📏

Distance Calculator

Calculate distances in a 2D plane, 3D space, between latitude/longitude coordinates, or directly on an interactive world map.

2D Distance

Formula

d = √((x2 − x1)^2 + (y2 − y1)^2)

Result

3D Distance

Formula

d = √((x2 − x1)^2 + (y2 − y1)^2 + (z2 − z1)^2)

(x1, y1, z1) (x2, y2, z2) d Δx Δy Δz

Result

Distance Based on Latitude and Longitude

Latitude 1Longitude 1
Point 1:
Latitude 2Longitude 2
Point 2:

Methods

Haversine: Great-circle distance on a sphere.

Lambert: Ellipsoidal surface distance, generally more accurate.

Result

Distance on Map

Click to place two markers and compute the shortest distance (great circle/air distance). Drag markers to reposition.