Last verified · v1.0
Calculator · math
Great Circle Distance Calculator
Compute the great circle distance between two coordinates using the Haversine formula. Enter latitude and longitude in decimal degrees for results in km, miles, or nautical miles.
Inputs
Great Circle Distance
—
Explain my result
Get a plain-English breakdown of your result with practical next steps.
The formula
How the
result is
computed.
What Is Great Circle Distance?
The great circle distance is the shortest path between two points on the surface of a sphere, measured along the curved surface rather than through the interior. Every great circle is formed by the intersection of a sphere and a plane passing through the sphere's center. Pilots, navigators, and geospatial engineers rely on great circle routes to minimize travel distance and fuel consumption across oceans and continents.
The Haversine Formula
The great circle calculator uses the Haversine formula, a spherical trigonometry equation that computes central angles between two points defined by latitude and longitude. Named after the haversine function — hav(θ) = sin²(θ/2) — the formula was codified in 19th-century navigation tables and remains a cornerstone of geospatial computation. According to Map Projections Used by the U.S. Geological Survey (Bulletin 1532), spherical approximations are sufficient for most navigation applications where sub-meter precision is not required.
Formula Variables
- φ₁, φ₂ — Latitudes of Point 1 and Point 2 in radians (multiply decimal degrees by π/180)
- Δφ — Difference in latitudes (φ₂ − φ₁)
- Δλ — Difference in longitudes (λ₂ − λ₁)
- R — Mean radius of the Earth, approximately 6,371 km (3,958.8 miles or 3,440.1 nautical miles)
- a — Intermediate haversine value: sin²(Δφ/2) + cos(φ₁)·cos(φ₂)·sin²(Δλ/2)
- d — Great circle distance in the selected unit
Step-by-Step Derivation
The computation proceeds in four stages:
- Convert all latitude and longitude values from decimal degrees to radians by multiplying each by π/180.
- Compute the intermediate variable a = sin²(Δφ/2) + cos(φ₁) · cos(φ₂) · sin²(Δλ/2).
- Compute the central angle c = 2 · arctan2(√a, √(1−a)).
- Multiply by Earth's mean radius: d = R · c.
Using arctan2 rather than plain arcsin improves numerical stability for both very short and very long distances, avoiding precision loss near 0° and 180°. The Harvey Mudd College analysis Modeling Flight over a Spherical Earth confirms that the arctan2 variant maintains accuracy across all angular ranges encountered in real-world navigation.
Worked Example: New York City to London
Enter the following coordinates to compute the transatlantic great circle distance:
- Point 1 (New York City): lat = 40.7128°N, lon = −74.0060°W
- Point 2 (London, UK): lat = 51.5074°N, lon = −0.1278°W
Converting to radians: φ₁ ≈ 0.7104 rad, φ₂ ≈ 0.8989 rad, Δφ ≈ 0.1884 rad, Δλ ≈ 1.2893 rad.
Intermediate value: a ≈ sin²(0.0942) + cos(0.7104)·cos(0.8989)·sin²(0.6447) ≈ 0.0089 + 0.7578 × 0.6261 × 0.3608 ≈ 0.1801.
Central angle: c = 2 · arctan2(√0.1801, √0.8199) ≈ 0.8769 rad.
Distance: d = 6,371 km × 0.8769 ≈ 5,585 km (3,470 miles or 3,016 nautical miles). This figure closely matches published JFK–LHR flight-planning data used by major transatlantic carriers.
Practical Applications
Aviation and Flight Planning
Airlines use great circle routes to reduce fuel burn on every long-haul flight. The polar great circle route from Los Angeles (LAX) to Seoul (ICN) — approximately 9,620 km — saves over 600 km compared to a path plotted along a flat Mercator map, translating to significant fuel and emissions savings per flight.
Maritime Navigation
Ocean-going vessels plot great circle routes to shorten ocean passages. The route from San Francisco to Yokohama, Japan spans roughly 8,280 km along a great circle, arcing far north toward the Aleutian Islands — a path that appears counterintuitive on a flat map but is geometrically optimal on the globe.
GPS, Geofencing, and Logistics
Mobile applications and logistics platforms use the Haversine formula to compute delivery radii, match drivers to riders, and trigger location-based alerts in real time as GPS coordinates update. As the U.S. DOT Geometric Analysis of an Observer on a Spherical Earth documents, spherical distance modeling underpins a wide range of positioning and surveillance systems, from air traffic control to autonomous vehicle routing.
Limitations and Accuracy
The Haversine formula models the Earth as a perfect sphere with radius 6,371 km. The actual Earth is an oblate spheroid, with an equatorial radius of 6,378.1 km and a polar radius of 6,356.8 km. For aviation, shipping, and logistics, the spherical approximation introduces an error of less than 0.5% — well within operational tolerances. Applications requiring sub-meter geodetic precision, such as land surveying or precision agriculture, should use the Vincenty formula or WGS-84 ellipsoidal models instead.
Reference