Great Circle Distance Calculator
This calculator uses the haversine formula to find the great circle distance (shortest distance on Earth's surface) between two points specified by latitude and longitude coordinates. Enter two coordinate pairs in decimal degrees format (positive for north/east, negative for south/west), and the calculator displays the distance in kilometers, miles, and nautical miles. The haversine formula is numerically stable and accurate for all distances, from meters to thousands of kilometers. Great circle distance is essential for navigation, aviation, geography, and cartography. Airlines use great circle routes to minimize fuel consumption and flight time between distant cities.
Haversine formula
a = sin²(Δlat/2) + cos(lat1) * cos(lat2) * sin²(Δlon/2)
c = 2 * arcsin(sqrt(a))
d = R * c
where R = 6,371 km (Earth's mean radius)
Δlat and Δlon are in radians
Unit conversion factors
- 1 kilometer = 0.621371 miles
- 1 kilometer = 0.539957 nautical miles
- 1 nautical mile = 1.85200 kilometers
Great circle distance calculator: frequently asked questions
What is the great circle distance?
The great circle distance is the shortest distance between two points on a sphere (the surface of the Earth). A great circle is any circle on a sphere that has the same center and radius as the sphere. The shortest path between two points follows a great circle, not a straight line on a flat map.
What is the haversine formula?
The haversine formula calculates great circle distance from two lat/long pairs. It is numerically stable and avoids rounding errors. The formula uses: a = sin²(Δlat/2) + cos(lat1) * cos(lat2) * sin²(Δlon/2); then d = 2R * arcsin(sqrt(a)), where R is Earth's radius (6,371 km).
Why do straight lines on maps curve on a globe?
Maps project the 3D Earth onto a 2D surface, distorting distances and directions. On a flat map, the shortest path looks curved when viewed on a globe. Following a great circle (which looks curved on a Mercator map) is actually the shortest route. Airlines use great circle routes to minimize flight distances.
What are latitude and longitude?
Latitude measures distance north or south of the equator, from 0 to 90 degrees. North latitudes are positive; south are negative. Longitude measures distance east or west of the Prime Meridian, from 0 to 180 degrees. East longitudes are positive; west are negative. Together they uniquely identify any location on Earth.
What is Earth's radius?
Earth is not a perfect sphere but an oblate spheroid (flattened at poles). The mean radius is approximately 6,371 km, used for most distance calculations. The equatorial radius is 6,378 km; the polar radius is 6,357 km. Different contexts may use slightly different values.
Official sources
- Haversine formula: Wikipedia (for reference).
- Earth radius: NIST.
Reviewed by the CalculatorHub team, edited by James Graham, 14 June 2026. See our methodology.