CZ
CalcyZone
Geodesy & Distance CalcyZone Calculator

Haversine Great-Circle Distance Calculator

Compute the shortest great-circle distance between any two coordinates on Earth using the Haversine formula.

Great-Circle Distance
5570.23 km
Central Angle (radians)
0.87431 rad
Central Angle (degrees)
50.094°
Haversine Parameter (a)
0.179236

Step-by-step working

  1. Convert coordinates to radians: φ1 = 0.7106 rad, φ2 = 0.899 rad, Δφ = 0.1884 rad, Δλ = 1.2894 rad.
  2. Calculate chord square: a = sin²(0.0942) + cos(0.7106) × cos(0.899) × sin²(0.6447) = 0.179236.
  3. Calculate angular distance: c = 2 × atan2(√0.1792, √(1 - 0.1792)) = 0.87431 radians (50.09°).
  4. Multiply by Earth radius (R = 6371 km): distance = 5570.23 km.
Equivalent Distances in Alternative Units
UnitDistance Value
Kilometers (km)5570.23 km
Miles (mi)3461.18 mi
Nautical Miles (NM)3007.68 NM

Mathematical Formula

a = sin²(Δφ/2) + cos(φ₁)·cos(φ₂)·sin²(Δλ/2); c = 2·atan2(√a, √(1−a)); d = R·c

Overview & Explanation

The Haversine formula calculates the shortest distance between two points on the surface of a sphere using their latitude and longitude coordinates. It remains one of the fundamental equations in celestial navigation, geodesy, and GIS mapping. By accounting for the spherical curvature of the Earth, it offers vastly greater accuracy for geographic measurements than flat planar Euclidean approximations.

How It Works

  • Convert the latitudes and longitudes of both points from decimal degrees to radians.
  • Calculate the square of half the chord length (a) using the differences in latitude and longitude.
  • Determine the angular distance (c) in radians and multiply it by Earth's mean radius in your desired unit.

Practical Applications

  • Aviation and maritime navigation for flight planning and nautical path estimation.
  • Geographic Information Systems (GIS) and mobile apps for proximity and store-locator queries.
  • Telecommunications and logistics routing to calculate line-of-sight path lengths between stations.

New York to London

Calculate the great-circle flight path distance between New York City (JFK) and London (LHR).

1

Inputs

Point 1 Latitude (°): 40.7128 · Point 1 Longitude (°): -74.006 · Point 2 Latitude (°): 51.5074 · Point 2 Longitude (°): -0.1278 · Distance Unit: Kilometers (km)

= entered
2

Step 1

Convert coordinates to radians: φ1 = 0.7106 rad, φ2 = 0.899 rad, Δφ = 0.1884 rad, Δλ = 1.2894 rad.

3

Step 2

Calculate chord square: a = sin²(0.0942) + cos(0.7106) × cos(0.899) × sin²(0.6447) = 0.179236.

4

Step 3

Calculate angular distance: c = 2 × atan2(√0.1792, √(1 - 0.1792)) = 0.87431 radians (50.09°).

5

Step 4

Multiply by Earth radius (R = 6371 km): distance = 5570.23 km.

6

Great-Circle Distance

Result

= 5570.23 km

Tokyo to Sydney

Estimate trans-Pacific distance from Tokyo to Sydney in statute miles.

1

Inputs

Point 1 Latitude (°): 35.6762 · Point 1 Longitude (°): 139.6503 · Point 2 Latitude (°): -33.8688 · Point 2 Longitude (°): 151.2093 · Distance Unit: Miles (mi)

= entered
2

Step 1

Convert coordinates to radians: φ1 = 0.6227 rad, φ2 = -0.5911 rad, Δφ = -1.2138 rad, Δλ = 0.2017 rad.

3

Step 2

Calculate chord square: a = sin²(-0.6069) + cos(0.6227) × cos(-0.5911) × sin²(0.1009) = 0.332104.

4

Step 3

Calculate angular distance: c = 2 × atan2(√0.3321, √(1 - 0.3321)) = 1.22835 radians (70.38°).

5

Step 4

Multiply by Earth radius (R = 3958.8 mi): distance = 4862.74 mi.

6

Great-Circle Distance

Result

= 4862.74 mi

How it's calculated & sources

a = sin²(Δφ/2) + cos(φ₁)·cos(φ₂)·sin²(Δλ/2); c = 2·atan2(√a, √(1−a)); d = R·c

Frequently Asked Questions

What Earth radius is used in this calculation?
This calculator uses the IUGG (International Union of Geodesy and Geophysics) mean Earth radius of 6,371.0088 kilometers (approx. 3,958.761 miles or 3,440.069 nautical miles).
How accurate is the Haversine formula for Earth?
Because the Earth is an oblate spheroid rather than a true sphere, the Haversine formula typically carries an error of up to 0.3% to 0.5%, which is sufficient for most navigational estimates.
Why use Haversine instead of the spherical Law of Cosines?
The spherical Law of Cosines suffers from severe floating-point rounding errors when calculating small distances (e.g., points a few meters apart). The Haversine formula remains numerically well-conditioned even for very small separations.
When should Vincenty's formulae be used instead?
For sub-millimeter precision surveying or legal boundary determinations, Vincenty's ellipsoidal formulae or Karney's geodesic algorithms are preferred over spherical approximations.