Geo Distance Calculator

Type two latitude / longitude pairs and get the great-circle distance (haversine or Vincenty), the initial compass bearing, and the geographic midpoint. Switch units, pick a city preset, batch a list. Live, in your browser, no upload.

A
Preset
B
Preset
Distance unit
Formula
Distance
Initial bearing A → B
Midpoint spherical midpoint between A and B
Formulas used

Haversine treats the Earth as a sphere with the IUGG mean radius (6,371,008.8 m). It is fast and within ~0.5% of geodesic distances for most pairs.

Vincenty inverse uses the WGS-84 ellipsoid (a = 6,378,137 m, f = 1/298.257223563) and is more accurate for long east-west legs, but can fail to converge for nearly antipodal pairs (the calculator returns in that case).

Midpoint is the spherical midpoint (the average of A and B on the sphere), NOT a naive arithmetic mean — the naive form gives wrong longitudes near the antimeridian.

Convention

Latitude and longitude are decimal degrees. North and east are positive; south and west are negative. The calculator accepts hemispheres only via the sign of the value (e.g. -33.8688, 151.2093 for Sydney), not via N/S/ E/W letters.