Distance Between GPS Coordinates

Enter the GPS coordinates of two points in DD or DMS format — the calculator will compute the great-circle distance in kilometers and miles.

See also: Distance Between Two Points (2D), Distance Between Two Points (3D).

Calculator

Supported formats: decimal degrees (e.g., 50.4500, -30.5233) or degrees, minutes, seconds (e.g., 50°27'0"N, 50 27 0 N, 50:27:0.5 N).

decimal places

To compute the distance between two points on a sphere (the Earth), the Haversine formula is used. It accounts for the spherical shape of the planet and gives the great-circle distance.

Haversine formula:

a= sin2 (φ2φ12) + cos(φ1) cos(φ2) sin2 (λ2λ12) c= 2 atan2 (a,1a) d=Rc

where φ is latitude, λ is longitude (in radians), and R = 6371 km is Earth's mean radius.

Coordinate formats:

  • Decimal degrees (DD): 50.4500° — directly from a GPS device or Google Maps.
  • Degrees-minutes-seconds (DMS): 50°27′0″N 30°31′24″E — classic cartographic notation.

Converting DMS → DD: DD = degrees + minutes/60 + seconds/3600. S and W directions yield negative values. Used for navigation, travel, logistics, and calculating routes between cities.