GlobalFree to use

Distance between cities: km, miles and flight time

Find the straight-line distance between 100 cities in Canada, the US, India and around the world, in kilometres, miles and nautical miles, with an estimated flight time, compass bearing, midpoint and a visual scale.

Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.

Input

Tip: press Ctrl + Enter to run

Your result

Your result will appear here.

About this tool

This tool gives the great-circle distance (the shortest path over the Earth’s surface) between the centres of about 100 cities in Canada, the United States, India and around the world. It also estimates a non-stop flight time, gives the initial compass bearing from the first city and the geographic midpoint, and compares the distance with familiar journeys on a visual scale.

Straight-line distances are what airlines and maps use as a baseline. Road distances are almost always longer, often by 10–40%, and longer still where mountains, lakes or borders get in the way.

How to use it

  1. Choose the city you are starting from.
  2. Choose the destination city.
  3. Run it to see the distance, flight time, bearing and midpoint.

How the calculation works

Haversine formula: d = 2R · asin(√(sin²(Δφ/2) + cos φ₁ cos φ₂ sin²(Δλ/2))) with R = 6,371 km, using city-centre coordinates. Bearing is the initial great-circle course. Flight time ≈ 30 minutes plus distance ÷ about 800 km/h.

haversine: d = 2R · asin(√(sin²(Δφ/2) + cos φ₁ cos φ₂ sin²(Δλ/2))); flight ≈ d ÷ 800 km/h + 30 min

Worked example

London to New York is 5,570 km (3,461.18 mi or 3,007.68 nmi) in a straight line, with an estimated flight time of 7 hrs 28 mins. The initial bearing from London is 288°, west-northwest, because the great-circle route curves north over the Atlantic; the midpoint is at 52.37° N 41.29° W.

Sample input and result

From city: Calgary (Canada)
To city: Toronto (Canada)

→ Straight-line distance: 2,711 km
→ Miles: 1,684.42 mi
→ Nautical miles: 1,463.72 nmi
→ Estimated flight time: 3 hrs 53 mins
→ Initial compass bearing: 94° (E)

Limitations

  • Spherical-Earth model; ellipsoidal distances can differ by up to about 0.5%.
  • Uses city-centre coordinates.
  • Flight time ignores winds, routing and taxiing.

Last updated:

Frequently asked questions

Is this the driving distance?

No. It is the shortest distance over the Earth’s surface, often called “as the crow flies”. Roads are rarely straight, so the driving distance is usually 10 to 40% longer, and more around mountains or water.

How is the flight time estimated?

It assumes an average speed of 800 km/h plus 30 minutes for take-off, climb and landing. Scheduled times also depend on winds, routing and the aircraft, so treat it as a rough guide.

Why does the bearing not point straight at the destination on a flat map?

Great circles look curved on most map projections; the shortest route from London to New York starts out heading northwest.

How accurate are the distances?

Within about 0.5% of distances on the true, slightly flattened Earth.

Can I enter any city?

Only the built-in list; for other places enter coordinates in the latitude and longitude calculator.

Troubleshooting

My airline shows a different distance.

Airlines measure between airports, not city centres.

Road distance is much longer.

Roads follow terrain and infrastructure; this is the straight line.

A city is missing.

Use latitude and longitude for any location.

Privacy & Free to use

Are my inputs stored?

Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.

Is this tool free?

Yes. No signup or payment is required.

Processed in your browser

Useful next steps