Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

Great-circle distance—km

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.

Great Circle Distance Calculator

Point 1 latitude (decimal degrees, north +): enter a number from -90 to 90. Prefilled example: 40.6413.

Point 1 longitude (decimal degrees, east +): enter a number from -180 to 180. Prefilled example: -73.7781.

Point 2 latitude (decimal degrees, north +): enter a number from -90 to 90. Prefilled example: 51.47.

Point 2 longitude (decimal degrees, east +): enter a number from -180 to 180. Prefilled example: -0.4543.

Sphere radius (km), Earth mean radius by default: enter 0 or more. Prefilled example: 6,371.

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.

  1. Point 1 latitude (decimal degrees, north +): enter a number from -90 to 90.
  2. Point 1 longitude (decimal degrees, east +): enter a number from -180 to 180.
  3. Point 2 latitude (decimal degrees, north +): enter a number from -90 to 90.
  4. Point 2 longitude (decimal degrees, east +): enter a number from -180 to 180.
  5. Sphere radius (km), Earth mean radius by default: enter 0 or more.
  6. 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

  1. Km=R×2×atan2⁡(sin⁡(rad⁡(la−l)2)2+cos⁡(rad⁡(l))×cos⁡(rad⁡(la))×sin⁡(rad⁡(lon−lo)2)2,1−sin⁡(rad⁡(la−l)2)2−cos⁡(rad⁡(l))×cos⁡(rad⁡(la))×sin⁡(rad⁡(lon−lo)2)2)
Symbols used in the formula
SymbolMeaningUnit
lPoint 1 latitude (decimal degrees, north +)
loPoint 1 longitude (decimal degrees, east +)
laPoint 2 latitude (decimal degrees, north +)
lonPoint 2 longitude (decimal degrees, east +)
RSphere radius (km), Earth mean radius by default
KmGreat-circle distancekm
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 default6,371
Great-circle distance (miles)3442.40
Central angle (degrees)49.8225
Initial bearing from point 1 (degrees from north)51.4
  1. Km=6,371×2×atan2⁡(sin⁡(rad⁡(51.47−40.6413)2)2+cos⁡(rad⁡(40.6413))×cos⁡(rad⁡(51.47))×sin⁡(rad⁡(−0.4543−−73.7781)2)2,1−sin⁡(rad⁡(51.47−40.6413)2)2−cos⁡(rad⁡(40.6413))×cos⁡(rad⁡(51.47))×sin⁡(rad⁡(−0.4543−−73.7781)2)2)=5,540.01

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.

Questions answered

Related calculators