Great Circle Distance Calculator
Free Great circle distance Converter for geography & distance units. Enter a value to see equivalent measurements across systems.
Reviewed for accuracy by Manoj Kumar, Mathematics Educator
Great Circle Distance Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: d = 2R * arcsin(sqrt(sin((lat2-lat1)/2)^2 + cos(lat1)*cos(lat2)*sin((lon2-lon1)/2)^2))
Worked example โ Distance: 5,570.25 km | 3,461.05 miles | 3,007.69 nautical miles | Bearing: 51.37 degrees
Formula
d = 2R * arcsin(sqrt(sin((lat2-lat1)/2)^2 + cos(lat1)*cos(lat2)*sin((lon2-lon1)/2)^2))
The Haversine formula calculates the great circle distance by first computing the haversine of the central angle between two points. It uses latitude and longitude in radians, with R being Earth's mean radius of 6,371 km. The formula handles antipodal points correctly and avoids numerical issues at small distances.
Worked Examples
Example 1: New York to London Flight Distance
Problem:Calculate the great circle distance from New York (40.7128 N, 74.006 W) to London (51.5074 N, 0.1278 W).
Solution:Using Haversine formula with R = 6,371 km: dLat = 10.7946 deg, dLon = 73.8782 deg a = sin(5.3973)^2 + cos(40.7128) * cos(51.5074) * sin(36.9391)^2 c = 2 * atan2(sqrt(a), sqrt(1-a)) Distance = 6371 * c
Result:Distance: 5,570.25 km | 3,461.05 miles | 3,007.69 nautical miles | Bearing: 51.37 degrees
Example 2: Sydney to Tokyo
Problem:Find the distance from Sydney (-33.8688, 151.2093) to Tokyo (35.6762, 139.6503).
Solution:dLat = 69.545 deg, dLon = -11.559 deg Apply Haversine formula with Earth radius 6,371 km. Compute intermediate value a, then angular distance c.
Result:Distance: approximately 7,823 km | 4,861 miles | Initial bearing: 338.68 degrees
Frequently Asked Questions
What is the great circle distance?
The great circle distance is the shortest distance between two points on the surface of a sphere, measured along the surface of the sphere rather than through it. On Earth, this represents the shortest flight path between two locations. The concept comes from the fact that the shortest path on a sphere always lies along a great circle, which is a circle whose center coincides with the center of the sphere. Airlines use great circle routes to minimize fuel consumption and flight time.
What is the Haversine formula?
The Haversine formula is a mathematical equation used to calculate the great circle distance between two points on a sphere given their latitude and longitude. It uses the haversine function, which is defined as hav(theta) = sin squared of theta divided by 2. The formula is particularly well-conditioned for numerical computation, avoiding floating point errors that can occur with other spherical trigonometry formulas at small distances. It assumes a perfect sphere, so results may differ slightly from real Earth distances due to the oblate shape of our planet.
How accurate is the Haversine formula for Earth distances?
The Haversine formula typically provides accuracy within about 0.3% of the true distance because it models Earth as a perfect sphere with radius 6,371 km. In reality, Earth is an oblate spheroid with an equatorial radius about 21 km larger than the polar radius. For higher accuracy, the Vincenty formula uses an ellipsoidal model and provides accuracy to within 0.5 mm. For most practical purposes including aviation and navigation, the Haversine formula provides more than sufficient accuracy.
What is the initial bearing in navigation?
The initial bearing, also called forward azimuth, is the compass direction you would need to travel from the starting point to reach the destination along the great circle path. Unlike a rhumb line which maintains a constant bearing, the bearing along a great circle route continuously changes as you travel. The initial bearing is measured in degrees clockwise from true north, where 0 degrees is north, 90 degrees is east, 180 degrees is south, and 270 degrees is west.
Why do flight paths shown on airline maps look curved instead of straight?
The curve you see on an in-flight map or airline route diagram is not a detour, it is the great circle route rendered onto a flat map projection, which distorts straight spherical paths into arcs. Most world maps use a Mercator-style projection that preserves angles and shapes reasonably well near the equator but stretches distances and directions dramatically near the poles, so a genuinely shortest path between two mid-to-high-latitude cities (say, New York to Tokyo) appears to bow northward toward the Arctic on the map even though it is the most direct route by actual flown distance. This is also why a globe, not a flat map, is the only projection where a great circle route always appears as a straight line.
References
Reviewed for accuracy by Manoj Kumar, Mathematics Educator ยท Editorial policy
Related Calculators
๐งฎHaversine Distance Calculator
Calculate haversine distance with inputs, formulas, and instant results.
๐งฎDistance Between Coordinates Calculator
Calculate distance between coordinates with inputs, formulas, and instant results.
๐งฎDistance on MAP Calculator
Calculate distance on map with inputs, formulas, and instant results.
๐งฎMAP Scale to Distance Calculator
Calculate map scale to distance with inputs, formulas, and instant results.
๐งฎStep Length to Distance Converter
Calculate step length to distance converter with inputs, formulas, and instant results.
๐งฎFeet to Meters Converter
Convert between feet, meters, yards, and miles for distance and height.
๐งฎMiles to Kilometers Converter
Convert distance between miles, kilometers, nautical miles, and meters.
๐งฎAstronomical Unit Calculator
Calculate astronomical unit with inputs, formulas, and instant results.