Distance Between Cities Calculator
Choose two or more major cities and compare every straight-line distance in kilometers and miles.
How to use the Distance Between Cities Calculator
What does the Distance Between Cities Calculator do?
Calculate straight-line distance between two or more major world cities in kilometers and miles; It applies this page-specific rule: the calculator uses each city's latitude and longitude with the haversine formula.
Which inputs does this calculator use?
To calculate straight-line distance between two or more major world cities in kilometers and miles, enter City 1, City 2; keep every value in the same example; select Calculate distances when the values are ready; Start with a familiar case covered by this rule - Actual driving routes, rail journeys, and flight paths will usually be longer - so the expected result can confirm the settings.
How should the calculator result be read?
For a result intended to calculate straight-line distance between two or more major world cities in kilometers and miles, actual driving routes, rail journeys, and flight paths will usually be longer; read city 2 together with the original city 1 rather than as an isolated answer, and confirm that its units or structure match the intended use.
Can I compare more than two cities?
When the goal is to calculate straight-line distance between two or more major world cities in kilometers and miles, yes.
Is this the driving distance?
When using the page to calculate straight-line distance between two or more major world cities in kilometers and miles, no.
Limits and accuracy
When using this calculator to calculate straight-line distance between two or more major world cities in kilometers and miles, the result covers the stated calculation and supplied values, not every real-world factor; check the entered values, units, rounding, and assumptions before using the answer for an important decision; keep city 1 until the output has been checked in its intended destination. For a repeatable check when you need to calculate straight-line distance between two or more major world cities in kilometers and miles, record City 1 alongside the final output and selected options.
How city distance is calculated
The calculator uses each city's latitude and longitude with the haversine formula. This gives the great-circle, or “as the crow flies,” distance over Earth.
Actual driving routes, rail journeys, and flight paths will usually be longer. Online search covers cities and postal codes worldwide through Open-Meteo. A built-in major-city list remains available if the connection is unavailable.
Frequently asked questions
Can I compare more than two cities?
Yes. Add cities and the tool calculates the distance between every possible pair.
Is this the driving distance?
No. It is the shortest surface distance between the city coordinates.