FireCADCalc

Great-Circle Distance and Bearing (Haversine)

Great-circle distance, central angle and initial bearing between two points given by latitude and longitude, by the haversine formula on a spherical Earth.

Inputs

Examples: Illustrative Mumbai to New DelhiLondon to New YorkAcross the equator and date line

Accepted: -90 to 90 °
Accepted: -180 to 180 °
Accepted: -90 to 90 °
Accepted: -180 to 180 °
Accepted: 0.001 to 1,000,000 km

Results

The haversine form hav c = hav Δφ + cos φ₁ cos φ₂ hav Δλ stays accurate for short distances, where the plain spherical law of cosines loses precision. Distance is R·c with the mean Earth radius 6,371.0088 km (IUGG); on the ellipsoid true distances differ by up to about 0.5 %. The initial bearing changes along a great circle except along the equator or a meridian.

Great-circle distance8,166.1km
Central angle73.440°
Initial bearing from point 1 (from north)48.994°

Download PDF CSV Link to this result Compare another case

Log in to save calculations to your dashboard.

Worked example

Example: Illustrative Mumbai to New Delhi. The inputs, in the units selected above:

InputValue
Latitude of point 1 (north positive)19.076 °
Longitude of point 1 (east positive)72.878 °
Latitude of point 228.614 °
Longitude of point 277.209 °
Earth radius6,371.0 km

Applying the formula below gives:

ResultValue
Great-circle distance1,148.1 km
Central angle10.325 °
Initial bearing from point 1 (from north)21.710 °

Open this example in the calculator and change any input.

Formula

\(a = \sin^2\frac{\Delta\varphi}{2} + \cos\varphi_1\cos\varphi_2\sin^2\frac{\Delta\lambda}{2}, \quad d = 2R\,\operatorname{atan2}(\sqrt a, \sqrt{1-a})\)

Variables

Symbol Meaning SI unit
\(\varphi_1\) Latitude of point 1 (north positive) rad
\(\lambda_1\) Longitude of point 1 (east positive) rad
\(\varphi_2\) Latitude of point 2 rad
\(\lambda_2\) Longitude of point 2 rad
\(R\) Earth radius m
\(d\) Great-circle distance m
\(c\) Central angle rad
\(\theta_0\) Initial bearing from point 1 (from north) rad

Method and standards

Haversine.

Where it is used

  • Pipeline, transmission line and logistics distance estimates.
  • Radio path and flight distances.

Common mistakes

  • Entering west longitudes as positive.
  • Mixing degrees-minutes with decimal degrees.

Assumptions and limits

  • Spherical Earth; no terrain or altitude.

References

  • Haversine formula on a sphere

Questions and answers

How accurate is the spherical Earth?

Within about 0.5 %; for survey-grade work use an ellipsoidal (Vincenty or Karney) method.

Why does the bearing change along the route?

A great circle crosses successive meridians at different angles; only the start bearing is given.

What do the defaults represent?

Illustrative coordinates of Mumbai and New Delhi.

Method and article reviewed by FireCAD engineering on 17 November 2026. Every result is checked against an independent calculation on each release: how we verify our calculators.

Sources

Sinnott, Virtues of the Haversine, Sky and Telescope 68 (1984)

Related calculators

Free engineering calculators: every page computes in SI and converts to your units. Results are for engineering estimation; verify critical designs against the referenced standards.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.