GPS Distance & Bearing Calculator (Haversine)

Great-circle distance, initial bearing and midpoint between two latitude/longitude coordinates.

Results

Distance—
Distance—
Distance—
Initial bearing—
Midpoint—

How to use the GPS Distance & Bearing Calculator

  1. Enter or select: Latitude 1, Longitude 1, Latitude 2, Longitude 2.
  2. The results (Distance, Initial bearing, Midpoint) are calculated instantly as you type.
  3. 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.