FullCalculator

Latitude/Longitude Distance Calculator

Distance Between Coordinates

Calculate distance between two lat/long points

DMS to Decimal Converter

Convert degrees-minutes-seconds to decimal coordinates

Formula

Haversine: a = sin2((lat2-lat1)/2) + cos(lat1) x cos(lat2) x sin2((lon2-lon1)/2); d = 2R x atan2(sqrt(a), sqrt(1-a)); R = 6,371 km.

Frequently Asked Questions

What is the Haversine formula?
The Haversine formula calculates the shortest distance between two points on a sphere from their latitudes and longitudes. It accounts for Earth's curvature, making it more accurate than simple Euclidean distance for geographic calculations. Formula: a = sin2(dlat/2) + cos(lat1) x cos(lat2) x sin2(dlon/2).
How do I find GPS coordinates?
In Google Maps, right-click any location and select the coordinates shown. On iPhone, use the Compass app or drop a pin in Maps. On Android, long-press in Google Maps. Coordinates are shown as latitude (N/S) and longitude (E/W) in decimal degrees.
What is the difference between DMS and decimal degrees?
DMS (degrees-minutes-seconds) format looks like 40° 42' 46" N. Decimal degrees format is 40.7128°. To convert: Decimal = Degrees + Minutes/60 + Seconds/3600. Most GPS apps and mapping software use decimal degrees.

You may also need