GPS Distance & Bearing Calculator (Haversine)
Great-circle distance, initial bearing and midpoint between two latitude/longitude coordinates.
How to use the GPS Distance & Bearing Calculator
- Enter or select: Latitude 1, Longitude 1, Latitude 2, Longitude 2.
- The results (Distance, Initial bearing, Midpoint) are calculated instantly as you type.
- Use “Copy link” to share the calculation with the same input values.
Formula
- a = sin²(Δφ/2) + cos φ₁ cos φ₂ sin²(Δλ/2)
- d = 2R·asin(√a)
About this tool
Default example: Tirana → Vlorë. Mean Earth radius 6371.0088 km.