Coordinate Distance Calculator
Calculate the distance between two GPS coordinates. Get km, miles, nautical miles, bearing, and midpoint — using Haversine or Vincenty formula.
51.5074 · 51°30'26"N · 51°30.4333'N ·
51.5074N
What This Tool Calculates
Great-circle distance — the shortest path between two points on the Earth's surface.
How to Use
Frequently Asked Questions
Haversine assumes the Earth is a perfect sphere (radius 6371 km) and computes the great-circle distance. It is fast and accurate to within 0.5% for most purposes. Vincenty uses the WGS84 ellipsoid (semi-major axis 6378.137 km, flattening 1/298.257) which better represents Earth's actual shape — slightly flattened at the poles. Vincenty is accurate to within 0.5 mm. For everyday use the difference is negligible. For surveying, aviation, or precise long-distance navigation, use Vincenty.
Three formats are supported: (1) Decimal Degrees (DD) — e.g. 51.5074 or
-0.1278; (2) Degrees Minutes Seconds (DMS) — e.g. 51°30'26"N or
51 30 26 N; (3) Degrees Decimal Minutes (DDM) — e.g.
51°30.4333'N. You can also write 51.5074N or 0.1278W. Formats can
be mixed between the two points.
Bearing is the direction of travel measured in degrees clockwise from true north (0° = north, 90° = east). The initial bearing is the direction you start heading when leaving Point A. The final bearing is the direction you are travelling when you arrive at Point B. These differ for any non-trivial distance because you follow a great-circle arc on a curved Earth — your heading changes continuously along the route.
A nautical mile is exactly 1,852 metres (1.852 km). It is the standard unit in maritime and aviation navigation because 1 nautical mile equals 1 arcminute of latitude — making chart reading and dead reckoning intuitive. Speed in nautical miles per hour is called a knot. 1 nm = 1.15078 statute miles.
On a Mercator map (used by most web maps) straight lines are lines of constant bearing (rhumb lines), not the shortest path. The shortest path between two points on a sphere curves toward the nearest pole — that is the great-circle route. For a flight from London to Los Angeles, the great-circle route passes over Greenland, which looks like a detour on a flat map but is actually shorter. The great-circle distance is always ≤ the rhumb-line distance.