Great Circle Distance Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter the latitude and longitude of two places in decimal degrees to get the great-circle distance between them and the initial compass bearing.
Result
Great-circle distancekm
Great-circle distance (miles)
- Central angle (degrees)
- Initial bearing from point 1 (degrees from north)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
Affiliate link
This is an affiliate link: FiftyCalc may earn a commission if you buy through it. This does not change the result.
Ovago sells airline tickets. Visit Ovago
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Point 1 latitude (decimal degrees, north +): enter a number from -90 to 90.
- Point 1 longitude (decimal degrees, east +): enter a number from -180 to 180.
- Point 2 latitude (decimal degrees, north +): enter a number from -90 to 90.
- Point 2 longitude (decimal degrees, east +): enter a number from -180 to 180.
- Sphere radius (km), Earth mean radius by default: enter 0 or more.
- Read the result: Great-circle distance; the panel also shows Great-circle distance (miles), Central angle (degrees) and Initial bearing from point 1 (degrees from north).
How this calculator works
The haversine formula gives the central angle c between two points on a sphere: a = sin²(Δφ/2) + cos φ₁ cos φ₂ sin²(Δλ/2), c = 2 atan2(√a, √(1 − a)), where φ is latitude and λ longitude. The distance is d = R × c.
R defaults to the Earth's volumetric mean radius, 6,371.000 km, from the NASA Earth Fact Sheet (nssdc.gsfc.nasa.gov/planetary/factsheet/earthfact.html, read October 27, 2026). The Earth is slightly flattened (equatorial radius 6,378.137 km, polar 6,356.752 km on the same sheet), so a spherical distance can differ from an ellipsoidal one by up to about 0.5%.
Miles use the international mile of 63,360 inches with the inch defined as exactly 25.4 mm (NIST, nist.gov/pml/owm/si-units-length, read October 27, 2026), so 1 mile = 1.609344 km. The initial bearing is θ = atan2(sin Δλ cos φ₂, cos φ₁ sin φ₂ − sin φ₁ cos φ₂ cos Δλ).
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Point 1 latitude (decimal degrees, north +) | ||
| Point 1 longitude (decimal degrees, east +) | ||
| Point 2 latitude (decimal degrees, north +) | ||
| Point 2 longitude (decimal degrees, east +) | ||
| Sphere radius (km), Earth mean radius by default | ||
| Great-circle distance | km | |
atan2(y, x) | the angle, in radians, of the point (x, y) measured from the positive x-axis. | |
rad(x) | the angle x, converted from degrees to radians. |
Worked example
| Point 1 latitude (decimal degrees, north +) | 40.6413 |
|---|---|
| Point 1 longitude (decimal degrees, east +) | -73.7781 |
| Point 2 latitude (decimal degrees, north +) | 51.47 |
| Point 2 longitude (decimal degrees, east +) | -0.4543 |
| Sphere radius (km), Earth mean radius by default | 6,371 |
| Great-circle distance (miles) | 3442.40 |
|---|---|
| Central angle (degrees) | 49.8225 |
| Initial bearing from point 1 (degrees from north) | 51.4 |
Great-circle distance 5540.01 km
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
How far is New York JFK from London Heathrow along a great circle?
With R = 6,371 km, about 5,540 km or 3,442 miles.
Why is the great-circle route curved on a flat map?
A great circle is the shortest path on a sphere. Most flat map projections distort it, so it looks like an arc bending toward the pole.