Determine the shortest distance between two points on the Earth's surface using geographic coordinates.
Enter the latitude and longitude for two points to compute the great-circle distance, the most direct route across a sphere.
Click on any example to load its coordinates into the calculator.
Calculate the flight distance between JFK International Airport and Heathrow Airport.
P1: (40.7128, -74.0060)
P2: (51.5074, -0.1278)
Determine the direct air travel distance between two major Asia-Pacific cities.
P1: (-33.8688, 151.2093)
P2: (35.6895, 139.6917)
Find the shipping or flight route distance between the UAE and South Africa.
P1: (25.276987, 55.296249)
P2: (-33.9249, 18.4241)
Calculate a long-haul distance crossing the equator and multiple continents.
P1: (-0.1807, -78.4678)
P2: (1.3521, 103.8198)
a = sin²(Δφ/2) + cos(φ1) * cos(φ2) * sin²(Δλ/2)
c = 2 * atan2(√a, √(1−a))
d = R * c
φ1
, φ2
are the latitudes of the two points in radians.Δφ
is the difference in latitude (φ2 - φ1
).Δλ
is the difference in longitude (λ2 - λ1
) in radians.R
is the Earth's mean radius (approx. 6,371 km or 3,959 miles).atan2
is a common variant of the arctangent function that handles the quadrant of the result correctly.