Great Circle Calculator

Quick answer

The great circle calculator finds the shortest distance between two places on Earth from their latitude and longitude, on a sphere (haversine) and on the WGS-84 ellipsoid (Lambert's formula), plus the initial bearing.

Distance on a sphere (R = 6,371.0088 km)
8,759.924
Distance on the WGS-84 ellipsoid (Lambert)
8,780.903
Initial bearing (from north)
34.13 °
Central angle
78.779779 °

The shortest route between two points on a sphere follows a great circle, which is why flights from Europe to North America swing north over Greenland. Pilots, sailors and GIS software all use great-circle distances.

How to use the Great Circle Calculator

  1. Latitude A (°)
  2. A: N or S
  3. Longitude A (°)
  4. A: E or W
  5. Latitude B (°)
  6. B: N or S
  7. Longitude B (°)
  8. B: E or W

Results update as you type, and everything is calculated in your browser.

How it works

Enter both coordinates in decimal degrees and choose N/S and E/W. The default example is Los Angeles (LAX) to London Heathrow (LHR).

Inputs explained

Field What to enter
Latitude A (°) A number
A: N or S Choose one: N, S
Longitude A (°) A number
A: E or W Choose one: E, W
Latitude B (°) A number
B: N or S Choose one: N, S
Longitude B (°) A number
B: E or W Choose one: E, W

What each result means

  • Distance on a sphere (R = 6,371.0088 km) = 6371.0088×[σ]
  • Distance on the WGS-84 ellipsoid (Lambert) = 6378.137×([σ2] – ([X] + [Y])÷(2×298.257223563))
  • Initial bearing (from north) = mod(deg(atan2(sin([Δλ])×cos([φ2]), cos([φ1])×sin([φ2]) – sin([φ1])×cos([φ2])×cos([Δλ]))), 360)
  • Central angle = deg([σ])

Example values

How the main result changes when Latitude A changes and everything else stays at the example values above:

Latitude A (°) Distance on a sphere (R = 6,371.0088 km) (km)
16.97 10,331.902
25.46 9,544.349
33.94 8,759.924
42.43 7,984.31
50.91 7,224.269
67.88 5,789.262

Formula

a = sin²(Δφ/2) + cos φ₁·cos φ₂·sin²(Δλ/2), σ = 2·atan2(√a, √(1 − a)), d = R·σ Initial bearing θ = atan2(sin Δλ·cos φ₂, cos φ₁ sin φ₂ − sin φ₁ cos φ₂ cos Δλ)

Worked example

Inputs: Latitude A (°): 33.94; A: N or S: N; Longitude A (°): 118.4; A: E or W: W; Latitude B (°): 51.47; B: N or S: N; Longitude B (°): 0.4543; B: E or W: W.
Results: Distance on a sphere (R = 6,371.0088 km) = 8,759.924 km; Distance on the WGS-84 ellipsoid (Lambert) = 8,780.903 km; Initial bearing (from north) = 34.13 °; Central angle = 78.779779 °.

Key terms

Great circle
The intersection of a sphere with a plane through its centre.
Haversine
hav θ = sin²(θ/2).

Frequently asked questions

Why do flights look curved on a map?

Flat maps distort the sphere; the great circle is actually the shortest path.

How accurate is the haversine formula?

Within about 0.5%, because Earth is not a perfect sphere.

What is the ellipsoid distance?

The distance on the WGS-84 model of Earth used by GPS; Lambert's formula is accurate to about 10 m.

What is the initial bearing?

The compass direction to start in; it changes along a great circle.

Sources

  1. Wolfram MathWorld: Great circle
  2. NOAA: Inverse and forward geodetic calculations

Cite this calculator

Speedy Calculator. (2026). Great Circle Calculator. Speedy Calculator. https://speedycalculator.com/calculators/math/great-circle/