Great Circle Distance Calculator
Last updated: 2026-08-24
TL;DR: To calculate the great circle distance between two points, use the haversine formula: d = 2r × arcsin(√(sin²((lat₂ − lat₁)/2) + cos(lat₁) × cos(lat₂) × sin²((lon₂ − lon₁)/2))), where all latitude and longitude values must first be converted from degrees to radians, and r is the Earth’s radius (6,371 km).
What Is the Great Circle Distance Calculator?
The Great Circle Distance Calculator is a free online tool that computes the shortest path between two points on the surface of a sphere — specifically, the Earth. Unlike a straight line on a flat map, the shortest route between two global coordinates follows the arc of a great circle, which is the largest circle that can be drawn on a sphere’s surface. This distance is the true minimum travel path, making it the gold standard for aviation, maritime navigation, and long‑haul logistics.
You need this calculator if you are a pilot planning a transatlantic route, a ship captain charting an ocean crossing, a logistics manager estimating fuel costs for international freight, or a GIS professional analyzing global point‑to‑point distances. Even hikers planning a multi‑country trek or students solving geography problems will find it indispensable because it accounts for the curvature of the Earth, giving results that are typically 5% to 10% shorter than distances measured on a flat projection map.
In practical terms, the calculator eliminates the guesswork of manual spherical trigonometry. You simply enter the latitude and longitude of your departure point (Latitude 1 and Longitude 1) and your destination (Latitude 2 and Longitude 2), and the tool instantly returns the great circle distance in kilometers (or miles, if you prefer). This output is the exact arc length along the Earth’s surface, not the straight‑line chord that cuts through the planet.
How to Use the Calculator
Using the tool is straightforward, but precision in input format is critical. Follow these steps:
- Locate the input fields: The calculator presents four fields: Latitude 1, Longitude 1, Latitude 2, and Longitude 2.
- Enter Latitude 1: Type the decimal degrees of your starting point. For example, use 40.7128 for New York (positive for North, negative for South).
- Enter Longitude 1: Type the decimal degrees of your starting point’s east‑west position. For New York, use -74.0060 (negative for West, positive for East).
- Enter Latitude 2: Type the decimal degrees of your destination. For London, use 51.5074.
- Enter Longitude 2: Type the destination’s longitude. For London, use -0.1278.
- Click the “Calculate” button: The tool instantly processes the inputs and displays the great circle distance in kilometers (or miles, depending on the chosen unit).
- Review the output: The result is the minimum surface distance. If you also see a bearing, it represents the initial compass direction from point 1 to point 2.
Example: For New York (40.7128, -74.0060) to London (51.5074, -0.1278), the calculator returns approximately 5,570 km. Enter the coordinates exactly as decimals — do not include degree symbols or hemisphere letters (N, S, E, W), as these will cause errors.
Formula and Calculation Method
The calculator uses the haversine formula, which is designed to find the angular distance between two points on a sphere. The formula assumes a perfectly spherical Earth with a mean radius of 6,371 kilometers (3,959 miles). Here is the mathematical expression in plain language:
Step 1: Convert all latitude and longitude values from degrees to radians. To convert, multiply each degree value by (π/180). For example, New York’s latitude of 40.7128° becomes 0.7105 radians.
Step 2: Calculate the differences in latitude (Δlat) and longitude (Δlon) between the two points, also in radians.
Step 3: Apply the haversine formula:
a = sin²(Δlat / 2) + cos(lat₁) × cos(lat₂) × sin²(Δlon / 2)
c = 2 × atan2(√a, √(1 − a))
d = r × c
Where r is the Earth’s radius (6,371 km), and d is the great circle distance.
Worked example with real numbers: Calculate the distance from New York (40.7128°N, 74.0060°W) to London (51.5074°N, 0.1278°W).
- Convert to radians: lat₁ = 40.7128 × π/180 = 0.7105; lon₁ = -74.0060 × π/180 = -1.2916; lat₂ = 51.5074 × π/180 = 0.8991; lon₂ = -0.1278 × π/180 = -0.0022.
- Δlat = 0.8991 − 0.7105 = 0.1886; Δlon = -0.0022 − (-1.2916) = 1.2894.
- sin²(0.1886/2) = sin²(0.0943) = 0.00888.
- cos(0.7105) = 0.7594; cos(0.8991) = 0.6241; sin²(1.2894/2) = sin²(0.6447) = 0.3549.
- a = 0.00888 + (0.7594 × 0.6241 × 0.3549) = 0.00888 + 0.1681 = 0.17698.
- c = 2 × atan2(√0.17698, √0.82302) = 2 × 0.4361 = 0.8722 radians.
- d = 6,371 × 0.8722 = 5,557 km.
This matches the calculator’s output of approximately 5,557 km, confirming the accuracy of the method.
Practical Examples
To illustrate the calculator’s versatility, here are three realistic scenarios with different coordinate pairs and what the results mean in real‑world terms.
| Scenario | Point 1 (Lat, Lon) | Point 2 (Lat, Lon) | Result (km) | Practical Meaning |
|---|---|---|---|---|
| Flight: Tokyo to Los Angeles | 35.6762, 139.6503 | 34.0522, -118.2437 | 8,815 km | Shortest air route; a typical Boeing 777 covers this in ~11 hours at cruising speed, saving ~500 km compared to a flat‑map route. |
| Shipping: Cape Town to Sydney | -33.9249, 18.4241 | -33.8688, 151.2093 | 10,982 km | This is the minimum ocean distance; actual sea routes are longer due to currents and landmasses, but this sets the fuel‑cost baseline. |
| Urgent delivery: New York to Mumbai | 40.7128, -74.0060 | 19.0760, 72.8777 | 12,554 km | For express cargo flights, this is the absolute shortest route over the North Pole, which is why polar routes are used to cut flight time. |
Each result represents the arc length along the Earth’s surface. For example, the Tokyo–Los Angeles route is notable because the great circle path actually crosses Alaska and the Aleutian Islands, far north of the straight line on a Mercator map — a classic demonstration of why this calculator matters.
Tips for Accurate Results
- Always use decimal degrees, not degrees/minutes/seconds: The calculator expects formats like 40.7128, not 40° 42′ 46″. If your coordinates are in DMS, convert first (divide minutes by 60 and seconds by 3600).
- Respect the sign convention: Northern latitudes are positive, southern latitudes are negative. Western longitudes (e.g., the Americas) must be entered as negative numbers; eastern longitudes (Europe, Asia) are positive. Getting the sign wrong can result in a distance error of thousands of kilometers.
- Convert degrees to radians if you are replicating the formula manually: The calculator does this internally, but if you check the math yourself, remember that all trigonometric functions in the haversine formula require radians. A common mistake is feeding degrees directly into sin() or cos(), producing wildly incorrect results.
- Do not confuse great circle distance with loxodromic (rhumb line) distance: The great circle is the shortest path but requires constant heading changes. The loxodromic path holds a constant compass bearing but is longer. For short distances under 100 km, the difference is negligible, but for intercontinental routes, it can be 5–10% longer.
- Use the correct Earth radius: The calculator assumes a mean radius of 6,371 km. If you are working with a different reference ellipsoid (e.g., WGS84’s equatorial radius of 6,378 km), your manual results will vary by about 0.2%, but the calculator’s output is consistent for general navigation.
- Check for antipodal points: If two points are exactly opposite on the globe, the haversine formula can suffer from numerical precision issues due to the square root term. The calculator handles this, but if you manually compute, expect a result near 20,015 km (half the Earth’s circumference).
Frequently Asked Questions
What is the difference between great circle distance and straight‑line distance?
The straight‑line (Euclidean) distance is the chord that cuts through the Earth’s interior between two points. The great circle distance is the arc along the surface. For any two points on a sphere, the great circle distance is always longer than the chord, but it is the shortest possible route along the surface. In practice, the difference is small (under 1% for distances under 1,000 km) but becomes significant for long‑haul routes. For example, the chord distance from New York to London is about 5,552 km, while the great circle distance is 5,557 km — a difference of only 5 km. However, for a route like New York to Sydney (great circle ~15,950 km), the chord is about 15,870 km, a difference of 80 km. The calculator specifically outputs the surface arc, not the chord, which is what navigators need.
Why does my GPS show a different distance than this calculator?
There are three main reasons. First, GPS devices often calculate road, trail, or flight‑plan distances that follow actual travel paths, not theoretical great circles. Second, many consumer GPS units use the Vincenty formula on an ellipsoidal Earth model, which accounts for the slight flattening at the poles, yielding results that differ by up to 0.5% from the haversine formula on a perfect sphere. Third, GPS route planners incorporate constraints like air traffic corridors, ocean currents, or terrain, which force deviations from the shortest arc. For a pure geometric distance between two coordinates on a smooth sphere, this calculator’s result is the mathematically correct minimum — the GPS distance will always be equal to or greater than this value.
Can I use this calculator for distance on other planets or moons?
Technically, yes, but you must adjust for the celestial body’s radius. The haversine formula works for any sphere, but the calculator here is hard‑coded to Earth’s mean radius of 6,371 km. If you need the great circle distance on Mars (radius 3,390 km) or the Moon (radius 1,737 km), you would need to multiply the calculator’s result (in angular terms) by the correct radius. For a quick approximation, take the Earth‑based output and multiply by (target radius / 6,371). For example, a distance that computes to 1,000 km on Earth would be about 532 km on Mars (1,000 × 3,390 / 6,371). However, this is only valid if the coordinates are expressed in the same lat/lon system, which aligns with the planet’s rotation axis. For most practical Earth‑based navigation, this calculator is the intended tool.
Related Calculators
FAQ
What is a great circle distance?
A great circle is the largest circle that can be drawn on a sphere's surface, and the great circle distance is the shortest path between two points along that circle's arc. This calculator computes that distance, which is the actual shortest route between two locations on Earth, unlike a straight line through the planet's interior.
What units does the calculator output for distance?
The calculator provides results in multiple units, including kilometers, miles, and nautical miles, so you can choose the one that best fits your needs. You can also switch the output unit before calculating, and the result will display the distance in all three units simultaneously for easy comparison.
How accurate is the calculation compared to real-world travel?
The calculation uses the Haversine formula, which gives a highly accurate spherical distance with an error of less than 0.5% for most Earth distances, assuming a perfectly spherical Earth. Real-world travel distances may differ slightly due to terrain, flight paths, or routing constraints, but for straight-line air or sea navigation, this is the most accurate method.
Do I need to input coordinates in decimal degrees or can I use degrees/minutes/seconds?
You can input coordinates in decimal degrees (e.g., 40.7128, -74.0060) for maximum simplicity, but the calculator also accepts degrees with minutes and seconds (e.g., 40°42'46"N, 74°0'21"W) if you prefer that format. Just ensure you use negative values for west and south coordinates in decimal form, or specify N/S/E/W in the DMS format to avoid errors.