GPS Coordinates Distance Calculator (Haversine 3D Globe)
Calculate the great-circle distance in km, miles, and nautical miles plus initial bearing between two latitude/longitude points on a rotatable 3D globe.
Input Parameters
ℹ️ Format: Decimal degrees — Lat (-90 to 90), Lon (-180 to 180) · Google Maps paste supported
Point A
Point B
💡 Tip: You can also paste (12, 13, 14) directly into any box.
Distance (Miles)
3,461.18 mi
Nautical Miles
3,007.68 NM
Initial Bearing
51.2°
Central Angle
50.094°
Formula & Step-by-Step Calculation
d = 2R · arcsin(√(sin²(Δφ/2) + cos(φ₁)cos(φ₂)sin²(Δλ/2)))
-
1
Convert degrees to radians
φ₁ = 0.7106 rad, φ₂ = 0.899 rad, Δφ = 0.1884, Δλ = 1.2894 -
2
Compute Haversine intermediate (a)
a = sin²(Δφ/2) + cos(φ₁)cos(φ₂)sin²(Δλ/2) = 0.179236 -
3
Compute angular distance (c)
c = 2 · atan2(√a, √(1−a)) = 0.874309 rad -
4
Multiply by Earth mean radius (R = 6371 km)
d = R · c = 6371 × 0.874309 = 5,570.22 km (3,461.18 mi)
Worked Example
Sample inputs and verified result: Point A Latitude (°) = 40.7128, Point A Longitude (°) = -74.006, Point B Latitude (°) = 51.5074, Point B Longitude (°) = -0.1278
Great-Circle Distance: 5,570.22 km
Frequently Asked Questions
How accurate is the Haversine formula?
It models Earth as a sphere (R = 6,371 km) and is accurate within ~0.3% globally, ideal for navigation and travel planning.