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.
Reviewed by the thecalcu.com team · Last updated July 30, 2026
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.
Why Use a Distance Between Coordinates Calculator?
Knowing two locations' coordinates doesn't immediately tell you how far apart they are, the relationship between latitude/longitude differences and actual distance changes depending on where on Earth you are, since lines of longitude get closer together near the poles. Manually working out this distance requires the haversine formula, which involves several trigonometric steps that are easy to get wrong by hand.
This calculator handles that computation instantly. A logistics planner comparing two warehouse locations, a travel blogger estimating flight distances between cities, or a student verifying a geography assignment can all get an accurate straight-line distance in seconds rather than working through spherical trigonometry manually.
Who Should Use This Calculator?
- Travellers and trip planners estimating straight-line distances between cities or landmarks before booking flights.
- Logistics and supply chain planners comparing distances between warehouses, depots, or delivery points.
- Students and educators working through geography or trigonometry problems involving real-world coordinates.
- Developers building location-based features who want to verify a haversine distance calculation against a known reference.
- Radio, aviation, and maritime enthusiasts calculating great-circle distances between stations, airports, or ports.
What Insights Does the Distance Calculator Give You?
The calculator returns the same great-circle distance expressed in both common units:
- Distance (km), the metric distance, the unit most commonly used internationally and in India.
- Distance (miles), the imperial equivalent, useful for contexts that report distances in miles, such as US-based references.
Because this is a straight-line distance, it represents the shortest theoretically possible path between the two points, actual travel distance by road, sea, or air route will typically be longer.
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.
Show formula & methodology ↓Show less ↑
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