← BBobop

Haversine Distance Calculator

Calculate great-circle distances between points using the Haversine formula. Full step-by-step breakdown. Zero dependencies.

Enter Coordinates

NYC→London Tokyo→Sydney Paris→Cairo SF→Mexico City Singapore→Moscow Antipodal (max)

Point A

Point B

Distance Results

Step-by-Step Calculation

The Haversine Formula

a = sin2(Δφ/2) + cos(φ1) · cos(φ2) · sin2(Δλ/2)
c = 2 · atan2(√a, √(1-a))
d = R · c

Where:
φ = latitude in radians
λ = longitude in radians
R = Earth's mean radius (6,371 km)

The Haversine formula gives the great-circle distance — the shortest distance between two points on a sphere. Accuracy is ~0.5% vs the ellipsoidal Vincenty formula, which accounts for Earth's flattening.