# Great Circle Calculator

URL: https://speedycalculator.com/calculators/math/great-circle/
Last updated: 2026-11-08

> 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.

## Inputs

- Latitude A (°)
- A: N or S
- Longitude A (°)
- A: E or W
- Latitude B (°)
- B: N or S
- Longitude B (°)
- B: E or W

## Results

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

## 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 Δλ)
```

## Explanation

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

- **Latitude A (°)**
- **A: N or S**
- **Longitude A (°)**
- **A: E or W**
- **Latitude B (°)**
- **B: N or S**
- **Longitude B (°)**
- **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

FieldWhat to enterLatitude A (°)A numberA: N or SChoose one: N, SLongitude A (°)A numberA: E or WChoose one: E, WLatitude B (°)A numberB: N or SChoose one: N, SLongitude B (°)A numberB: E or WChoose 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.9710,331.90225.469,544.34933.948,759.92442.437,984.3150.917,224.26967.885,789.262

## 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).

## FAQ

**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

- [Wolfram MathWorld: Great circle](https://mathworld.wolfram.com/GreatCircle.html)
- [NOAA: Inverse and forward geodetic calculations](https://www.ngs.noaa.gov/TOOLS/Inv_Fwd/Inv_Fwd.html)
