How to use this calculator
Calculate shortest spherical surface distance, departure and arrival bearings, and a great-circle midpoint between geographic coordinates.
- Enter Start latitude (degrees north), Start longitude (degrees east), End latitude (degrees north), End longitude (degrees east), then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Spherical great circle distance and bearings explained
How the calculation works
δ=atan2(|u1×u2|,u1·u2); distance=Rδ; midpoint direction∝u1+u2.
Convert latitude and longitude to unit Cartesian directions. Cross-and-dot central angle avoids the poor conditioning of acos at very short distances. Bearings follow the local north/east convention and generally change along a great-circle route.
Set up the calculation
lat1— Start latitude (degrees north)- Start latitude in degrees north; positive is north of the equator.
lon1— Start longitude (degrees east)- Start longitude in degrees east; positive is east of Greenwich.
lat2— End latitude (degrees north)- Destination latitude in degrees north; positive is north of the equator.
lon2— End longitude (degrees east)- Destination longitude in degrees east; positive is east of Greenwich.
R— Spherical reference radius (km)- Radius of the assumed sphere in kilometres. The default mean Earth radius produces a spherical, not ellipsoidal, distance.
Limits of this model
Spherical geometry, not an ellipsoidal geodesic or road route. Coincident and antipodal points lack unique bearings; an antipodal midpoint is undefined. Bearings at poles depend on the coordinate reference convention.
Check this example
Start latitude (degrees north) = 49.8397; Start longitude (degrees east) = 24.0297; End latitude (degrees north) = 50.4501; End longitude (degrees east) = 30.5234; Spherical reference radius (km) = 6371.0088.
- Spherical shortest surface distance: 467.53103745 km
- Initial great-circle bearing: 79.170647 degrees
- Arrival forward bearing: 84.157913 degrees
- Midpoint latitude longitude: 50.19017439, 27.25580987 degrees
The example joins Lviv-like and Kyiv-like coordinates on a mean-radius sphere. Its length is a curved surface path rather than a planar latitude-longitude difference or a road distance.
Reading the outputs
Bearings wrap to 0–360 degrees clockwise from north. The arrival bearing is the forward direction of travel at the endpoint, not the reverse bearing back to the start.
Frequently asked questions
Is longitude east-positive?
Yes. Use negative longitude west of Greenwich.
Why are departure and arrival bearings different?
A great-circle course generally changes relative to local north.
Is this survey-grade distance?
No. A sphere neglects Earth flattening; use an appropriate ellipsoidal method for that purpose.
How do I use the Spherical great circle distance and bearings calculator?
Enter Start latitude (degrees north), Start longitude (degrees east), End latitude (degrees north), End longitude (degrees east), then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Spherical great circle distance and bearings?
Start latitude (degrees north) = 49.8397; Start longitude (degrees east) = 24.0297; End latitude (degrees north) = 50.4501; End longitude (degrees east) = 30.5234; Spherical reference radius (km) = 6371.0088. Spherical shortest surface distance: 467.53103745 km Initial great-circle bearing: 79.170647 degrees Arrival forward bearing: 84.157913 degrees Midpoint latitude longitude: 50.19017439, 27.25580987 degrees The example joins Lviv-like and Kyiv-like coordinates on a mean-radius sphere. Its length is a curved surface path rather than a planar latitude-longitude difference or a road distance.
Background or definition reference: GeographicLib coordinate-system documentation.
Read our calculation methodology.