A distance calculator between cities tells you how far apart two places are. This one gives the straight-line distance, also called the air distance or the distance as the crow flies: the shortest path over the Earth's surface between the two city centers. Pick two cities from the list and see the distance in kilometers, miles and nautical miles, plus the compass direction from one to the other.
How to use the distance calculator between cities
- Choose the starting city. Start typing and pick it from the suggestions. Old and short names work too, such as Bangalore, Bombay or NYC.
- Choose the destination. Press Swap cities to reverse the route.
- Read the distance. It appears in miles by default, or in kilometers if you choose, with the other unit, nautical miles and the direction below.
For a town that isn't listed, type its latitude and longitude in decimal degrees, separated by a comma.
How the distance is worked out
The calculator uses the haversine formula, which gives the great-circle distance between two points on a sphere from their latitudes and longitudes. It treats the Earth as a sphere with NASA's volumetric mean radius of 6,371 km. The real Earth is slightly flattened at the poles, so the result can differ from the most precise figure by up to about 0.5%: close enough for planning, but not for surveying. City coordinates come from Wikidata and mark each city's center.
Straight-line distance vs road distance
The distance by road or rail is always longer than the straight line, because routes curve around hills, rivers and coastlines and pass through other towns. How much longer depends on the route. Flights follow something close to the great-circle path, so the straight-line distance is a good guide to flying distance, although air routes also bend around airspace and weather.
Popular routes
Common searches include Delhi to Mumbai, Delhi to Jaipur, Delhi to Agra, Delhi to Chandigarh, Kolkata to Delhi, Mumbai to Pune, Mumbai to Goa, Bangalore to Chennai, Hyderabad to Bangalore, Chennai to Hyderabad, New York to Boston and Los Angeles to Las Vegas. For Goa, the calculator uses Panaji, the state capital.
Miles and nautical miles
A mile is exactly 1.609344 km, and a nautical mile, used at sea and in the air, is exactly 1.852 km. To convert other distances, use the miles to km converter.
Straight-line distances for common routes
These are the figures the calculator gives for some popular pairs, rounded to the nearest whole number, with the direction you would set off in from the first city.
| Route | Kilometers | Miles | Direction |
|---|---|---|---|
| Delhi to Mumbai | 1,154 | 717 | Southwest |
| Mumbai to Pune | 120 | 75 | Southeast |
| Bengaluru to Chennai | 291 | 181 | East |
| New York City to Boston | 306 | 190 | Northeast |
| Los Angeles to Las Vegas | 367 | 228 | Northeast |
| London to Paris | 344 | 213 | Southeast |
| New York City to London | 5,570 | 3,461 | Northeast |
Each figure is measured between the city center points in the calculator’s list, so the distance between two airports or two suburbs can differ by a few kilometers.
Worked example: New York City to Boston step by step
The calculator places New York City at 40.7128° north, 74.0061° west and Boston at 42.3603° north, 71.0578° west. West longitudes are negative, so you would type them as -74.0061 and -71.0578 with a minus sign.
- Find the differences. The latitudes differ by 1.6475° and the longitudes by 2.9483°.
- Apply the haversine formula. It combines the two differences with the cosine of each latitude, because lines of longitude get closer together away from the equator. For this pair the result, called a, is about 0.000577.
- Turn it into an angle. The central angle between the cities is 2 × arcsin(√a), about 0.04806 radians.
- Multiply by the Earth’s radius. 0.04806 × 6,371 km gives about 306 km, which is 190 miles.
The same steps work for any two points, which is why you can type your own latitude and longitude for a place that isn’t listed.
Why the direction back isn’t simply the opposite
The direction row shows the compass bearing at the start of the route, measured clockwise from north, along with the nearest of eight compass points. On a short route, the way back is close to the opposite direction: New York City to Boston starts at about 52°, northeast, and Boston to New York City at about 234°, southwest.
On a long route the great-circle path curves across the map. New York City to London starts at about 51°, northeast, but London to New York City starts at about 288°, which is west rather than southwest. The heading changes along the way, so the direction shown is only the one you would face when you set off.
How much the Earth’s shape matters
NASA gives the Earth’s equatorial radius as 6,378.137 km and its polar radius as 6,356.752 km, with a volumetric mean radius of 6,371 km.[2] The calculator uses the mean. To see how much the choice changes the answer, the New York City to London distance comes to about 5,576 km with the equatorial radius and about 5,558 km with the polar radius, against 5,570 km with the mean. That is a spread of under half a percent, and for short routes like Mumbai to Pune it doesn’t change the rounded figure at all.
Common mistakes
- Swapping latitude and longitude. Type latitude first, then longitude. Latitude runs from −90 to 90, longitude from −180 to 180.
- Dropping the minus sign. Places west of Greenwich and south of the equator have negative values. Leaving the sign off moves the point to the other side of the world.
- Using degrees and minutes. The box needs decimal degrees. Convert a reading like 15° 29′ with the DMS converter first.
- Planning a drive from this figure. Use a map app for the road distance, then the trip cost calculator for the fuel.
What next
Use this often? Add Distance Cal to your Home screen.
Frequently asked questions
How does the distance calculator between cities work?
It takes the latitude and longitude of each city and uses the haversine formula to find the shortest distance over the Earth's surface, on a sphere with a radius of 6,371 km.
What is the distance from Delhi to Mumbai?
The straight-line distance between the centers of Delhi and Mumbai is about 1,154 km, or 717 miles. The distance by road is longer.
Is this the road distance?
No. It is the straight-line, or air, distance. Roads and railways follow longer routes, so the distance you drive will be more.
What if my city isn't in the list?
Type its latitude and longitude in decimal degrees, such as 15.49, 73.83, and the calculator uses that point.
How far is New York City from Boston in a straight line?
About 306 km, or 190 miles, between the two city centers. You set off to the northeast. The drive is longer, because roads don’t follow a straight line.
Why does the distance change slightly with the Earth’s radius?
The Earth is a little wider at the equator than from pole to pole. The calculator uses NASA’s mean radius of 6,371 km, so results can differ from more precise methods by a fraction of a percent.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.