Distance Between Coordinates Calculator
MathFind the distance between two GPS coordinates using the haversine formula. Enter latitude and longitude for two points and get the distance in km or miles.
Distance (km)
What is a Distance?
A Distance Between Coordinates Calculator finds the great-circle distance between two points on Earth, given each point's latitude and longitude. This is the same calculation mapping software, GPS systems, and flight planners use to determine the straight-line distance between two locations — accounting for the fact that the Earth is a sphere, not a flat plane, so simple Pythagorean distance doesn't apply directly to geographic coordinates.
This calculator uses the haversine formula, the standard method for this calculation, to convert two latitude/longitude pairs into a distance in kilometres and miles. It pairs well with the Mileage Calculator and Fuel Cost Calculator — once you know the distance between two points, those tools help estimate the cost and fuel needed to travel it.
How to use this Distance calculator
- Find the coordinates of your first location (for example, using Google Maps) and enter them in Point A Latitude and Point A Longitude.
- Find the coordinates of your second location and enter them in Point B Latitude and Point B Longitude.
- Read the Distance (km) result for the straight-line distance in kilometres.
- Check the Distance (miles) card if you need the result in miles instead.
- Open the step-by-step breakdown to see both coordinate pairs and the calculated distance together.
Formula & Methodology
The calculator uses the haversine formula to compute great-circle distance: a = sin²(Δlat/2) + cos(lat1) × cos(lat2) × sin²(Δlon/2) c = 2 × atan2(√a, √(1−a)) Distance = R × c, where R = 6,371 km (Earth's mean radius) Worked example: for New Delhi (28.6139°N, 77.2090°E) and Mumbai (19.0760°N, 72.8777°E): - Δlat ≈ 9.5379°, Δlon ≈ 4.3313° - Applying the haversine formula gives a distance of approximately 1,150 km (about 715 miles).
Frequently Asked Questions