Haversine Great-Circle Calculator
GPS Coordinates Distance Calculator
Calculate the exact straight-line distance, flight trajectory, and compass bearing between any two latitude and longitude coordinate points.
Calculate Distance
Popular Route Presets:
Calculated Distance
Kilometers
29.41
km
Miles
18.27
mi
Nautical Miles:
15.88 NM
Initial Heading:
177.1° S
Visual Geodetic Path Line
Showing direct route
How the Haversine Distance Formula Works
Because the Earth is an oblate spheroid, calculating straight-line distances between two points requires spherical trigonometry. The Haversine Formula calculates the great-circle distance (the shortest path across the curved surface of a sphere):
a = sin²(Δlat/2) + cos(lat1) * cos(lat2) * sin²(Δlon/2)
c = 2 * atan2(√a, √(1−a))
d = R * c (where Earth radius R ≈ 6,371 km)
c = 2 * atan2(√a, √(1−a))
d = R * c (where Earth radius R ≈ 6,371 km)
This formula provides the fundamental calculation utilized in aircraft flight route planning, maritime navigation, and satellite distance tracking.