Distance calculator

Measure the straight-line distance between two points or places, with the initial bearing and the great-circle midpoint.

Geocoding results come from OpenStreetMap data (© OpenStreetMap contributors, ODbL) via Nominatim, cached on our server. Map tiles © OpenStreetMap contributors.

Two ways to measure

The haversine formula treats the Earth as a sphere with a mean radius of 6,371.0088 km. It is simple, and its error against the true ellipsoidal distance stays below about 0.5%. Vincenty's inverse formula works on the WGS84 ellipsoid and is accurate to a fraction of a millimetre. The headline figure uses Vincenty. For nearly antipodal points, where Vincenty can fail to converge, it falls back to haversine.

The initial bearing is the compass direction you would set off in from the first point. On a great circle the bearing changes along the way, which is why the final bearing differs.