Distance Calculator
Measure the distance between two places from their GPS coordinates. Paste latitude and longitude in decimal degrees or degrees, minutes and seconds, and get the great-circle distance in kilometres, miles and nautical miles, plus the starting compass bearing and the midpoint.
Decimal (28.6139, 77.2090) or degrees, minutes, seconds (28°36'50"N 77°12'32"E)
- Distance (km)
- 1,144.526
- Miles
- 711.176
- Nautical miles
- 617.995
- Initial bearing
- 203.6° (SSW)
- Midpoint
- 23.86007° N, 74.96346° E
- On a sphere (haversine)
- 1,148.096 km
Main result: shortest path over the WGS-84 ellipsoid (the Earth model GPS uses), by Vincenty’s formula. Read as: from 28.61390° N, 77.20900° E to 19.07600° N, 72.87770° E.
This is the straight-line distance over the Earth’s surface (“as the crow flies”). Road, rail and flight-path distances are longer.
About Distance Calculator
Distance Calculator works out how far apart two points on Earth are from their latitude and longitude. It gives the length of the shortest path over the planet’s surface, known as the great-circle or geodesic distance, in kilometres, statute miles and nautical miles, along with the compass direction to set off in and the halfway point.
The main figure is computed on the WGS-84 ellipsoid, the slightly flattened Earth model that GPS receivers, survey tools and aviation charts rely on. It uses an iterative method published by Thaddeus Vincenty in 1975. A simpler spherical estimate from the haversine formula appears next to it, so you can see how much the Earth’s shape matters for your route.
When to use it
- Checking the straight-line distance between two cities, airports or ports.
- Measuring how far apart two survey points, drone waypoints or field sites are.
- Estimating a flight or sailing leg before using proper navigation software.
Worked example
The page opens with New Delhi (28.6139, 77.2090) and Mumbai (19.0760, 72.8777). The ellipsoidal distance is about 1,144.5 km, roughly 711 miles or 618 nautical miles. The initial bearing is 203.6°, south-south-west, and the midpoint falls near the Rajasthan and Madhya Pradesh border. The spherical figure is about 3.6 km longer.
Coordinates can also be typed in degrees, minutes and seconds, such as 40°26′46″N 79°58′56″W, or as 40 26 46 N, 79 58 56 W.
Good to know
- Distances are “as the crow flies”. Roads, railways and real flight paths are longer.
- Southern latitudes and western longitudes are negative, or add S and W after the number.
- For points almost exactly opposite each other on the globe, the ellipsoid method can fail to settle; the page then falls back to the spherical result and says so.
- It cannot look up place names. Copy coordinates from a map app. To measure a recorded track instead, open it in the GPX Viewer.
How to use Distance Calculator
- Enter the first point as latitude, longitude (copy it from a map app).
- Enter the second point the same way.
- Read the distance, bearing and midpoint. Use Swap to reverse the direction.
Privacy: how it works
Calculations run in your browser. Nothing you type is sent anywhere.
Frequently asked questions
Is this the driving distance?
No. It is the shortest distance over the Earth’s surface, “as the crow flies”. Roads wind around, so a driving route is usually 20–40% longer. Use a maps app for road distances.
How accurate is it?
The main figure uses Vincenty’s formula on the WGS-84 ellipsoid, the same Earth model as GPS, which is accurate to well under a millimetre. The simpler spherical (haversine) figure is shown too; it can be off by up to about 0.5%.
How do I get coordinates for a place?
In most map apps, press and hold (or right-click) a spot and the latitude and longitude appear, ready to copy. South latitudes and west longitudes are negative, or you can add S and W.