Distance Calculator (Between Cities). Enter a starting city and a destination city to calculate the distance between two locations worldwide. Get results in kilometers, miles, and nautical miles — all at once. Works for any two cities, towns, airports, or named places on Earth. Also try the calculate Easter Date.
Use this distance calculator between cities to see how far apart two places are before you drive, walk or book a flight. Enter city names, addresses or coordinates, and you get the geodesic straight-line distance in miles and kilometers, a figure you can then check against the road on a map.
How to Use This Distance Calculator Between Cities
This free distance calculator needs only two positions: a starting point and a destination. Type a city, a street address or a zipcode, or paste latitude and longitude in decimal degrees. South and west values take a minus sign, so Denver is 39.7392, −104.9903.
Enter where you are measuring the distance from, then where you are going.
Check that each marker on the map sits in the right town, because many city names repeat across states and countries.
Calculate, then read the result in the units your job requires.
For a journey with several stops, measure each leg and add the legs together. A single line from first to last point skips everything in between.
Any distance between two points follows the same logic. An online distance calculator that accepts multiple points simply sums consecutive pairs. Pasting readings from your phone turns it into a GPS distance calculator, so you can measure the distance between two locations that have no postal address, such as a trailhead and a campsite.
Units: Miles, Kilometers and Nautical Miles
One statute mile is exactly 1.609344 km, or 5,280 feet. One nautical mile is exactly 1.852 km, so nautical miles run about 15% longer than land ones. Meters and feet suit short hops within a town, while the larger units are easier to read between distant locations.
Straight-Line Distance vs Road Distance Between Two Cities
The as-the-crow-flies figure is the shortest path over the earth's surface. It ignores rivers, mountain passes and one-way systems. A road distance follows real roads, so it is nearly always longer. Use the first for radius rules and flight comparisons, and the second for anything you will actually travel on wheels.
Great-Circle Distance and the Haversine Formula
The great-circle distance treats the planet as a sphere with a mean radius of 6,371.0088 km. The haversine formula turns two latitudes \(\varphi_1, \varphi_2\) and the longitude gap \(\Delta\lambda\) into that arc length. Convert every angle to radians first.
Here \(a\) measures how far apart the points are on a unit sphere, \(R\) is the radius and \(d\) is your answer in the same unit as \(R\). The compass heading at departure comes from a companion expression:
The real planet is slightly flattened. A more detailed geodesic solution on the WGS84 ellipsoid usually differs from the spherical result by no more than about 0.5%.
Worked Example: Air Distance From Denver to Nashville
Suppose you want the air distance from Denver (39.7392, −104.9903) to Nashville (36.1627, −86.7816).
Step
Value
Latitude gap \(\Delta\varphi\)
−0.062422 rad
Longitude gap \(\Delta\lambda\)
0.317802 rad
Haversine term \(a\)
0.016518
Central angle \(2\arcsin\sqrt{a}\)
0.257755 rad
Distance \(d\)
1,642.2 km = 1,020.4 mi = 886.7 nmi
Initial bearing
98.2° (just south of due east)
That is also 1,642,159 meters, or 5,387,660 feet. The ellipsoid method gives 1,645.7 km, only 3.5 km (0.21%) more. A flat-map shortcut that treats every degree as 111.2 km returns about 2,063 km, roughly a quarter too high, because longitude lines converge toward the poles. This is why aviation and maritime navigation work along curved arcs.The central angle multiplied by Earth's radius gives the surface arc between them.
Mileage Calculator Basics: Driving Distance and Drive Time
A mileage calculator answers a different question: how much pavement lies between the two places. If you only have the straight line, multiply it by a detour factor. On well-connected highways, 1.15 to 1.30 is a reasonable working assumption. For Denver to Nashville, that suggests a driving distance of about 1,173 to 1,327 mi.
At a factor of 1.20 and an average of 58 mph, 1,224 mi takes about 21.1 hours behind the wheel, before breaks. Traffic, terrain and weather stretch the travel duration, and trucks are often slower than a passenger vehicle. Budget fuel and tolls from the road figure, never from the straight line.A 20% detour allowance turns the straight line into a planning figure for the road.
Turn-by-turn driving directions add what the arithmetic cannot: turning points, exit numbers, closures and the order of the highways you will use.
Compare Routes by Shortest Distance
When a mapping service offers suggested routes, compare the route information side by side. The shortest distance is not always the fastest: a 40 mi saving through mountain towns can lose an hour to speed limits and signals. Pick by time when your schedule is tight and by length when fuel cost matters most. To judge each option, divide its length by the calculator's straight-line figure. For Denver to Nashville, 1,224 over 1,020 gives 1.20, so a much higher ratio signals a big detour.
Checking the Distance Between Two Locations for a Short-Haul Run
I'm dispatching a furniture delivery and need the distance from a warehouse in east Columbus to a customer in Pittsburgh. The question is whether my driver stays inside the federal 150 air-mile short-haul radius (49 CFR 395.1(e)(1)). If so, and the driver is back and released within 14 hours, timecards can replace the daily electronic log.
In the distance calculator between cities, I enter the starting point as latitude and longitude, 39.9884 and −82.9115, then the destination, 40.4468 and −80.0158. I use door coordinates because a city-centre pin could shift a borderline answer. The haversine term is 0.000388, giving an air distance of 251.1 km, or 156.0 mi.
At first glance 156 beats 150, so the run looks outside. It isn't. An air mile is a nautical mile, so the limit is 172.6 statute mi, and my result is 135.6 nautical miles: inside. An ellipsoid cross-check gives 135.9.
Next I change only the drop-off:
Destination
nmi
mi
Within 150?
Pittsburgh
135.6
156.0
Yes
Greensburg, PA
155.9
179.4
No
Holding Pittsburgh's latitude, the boundary falls about 17 mi east of my customer. Anything within a mile of it deserves an ellipsoid check and a word with whoever handles compliance.
The radius says nothing about drive time. For route planning I assume the road distance is 1.25 times the line, about 195 mi each way, and a loaded average of 52 mph. That is 7.5 hours round trip on the highways, leaving 6.5 for unloading, traffic and breaks. I book it as short-haul, but I'd watch the clock more than the radius: one slow dock could break the 14-hour condition. Before release, I confirm the real driving distance with truck-legal turn-by-turn directions, not a mileage calculator estimate.
Use the Calculator as a Trip Planner
Before a road trip, measure each overnight leg and keep it within a day you can safely handle. A straight-line check quickly shows which cities fall inside a weekend radius. Then bring in route planning tools to find hotels, restaurants and rest areas near the places where you expect to stop.
Walkers and cyclists can use the same figures as a lower bound. A footpath is rarely as direct as the arc, so treat the number as the minimum length of the journey and confirm access on a local map. For a flight, add taxi, boarding and climb time to the air figure.
Distance Between Cities Calculator Results: Reference Pairs
These spherical results use city-centre coordinates, so expect small differences if you measure from an airport or a suburb.
City pair
mi
km
nmi
Chicago to Houston
942
1,516
818
Seattle to Phoenix
1,114
1,794
968
Toronto to Miami
1,237
1,991
1,075
Madrid to Berlin
1,161
1,869
1,009
Mumbai to Bengaluru
525
845
456
Sydney to Perth
2,045
3,290
1,777
The Sydney to Perth row is a useful reminder: a long desert crossing looks simple as an arc, yet your plans depend on where the sealed highway and service stations are.