Mileage Calculator
Creator
Reviewer
Enter a starting city and a destination, then press Calculate. This mileage calculator shows the distance between them in miles and kilometers, plus a rough estimated driving time.
This is straight-line (“as the crow flies”) distance, not real driving distance, see the “See the real driving route on Google Maps” link in the result for the actual road distance and directions for that specific trip.
Straight-line distance versus driving distance
This calculator reports the straight-line distance between two city centers: the length of the most direct possible line connecting them, ignoring roads, terrain, and everything else in between. A real driving distance is almost always longer, since roads curve around lakes, mountains, other towns, and each other rather than cutting a straight path. The gap between the two numbers is usually somewhere between 10% and 40% depending on the terrain and road layout between the two places, sometimes more in mountainous or coastal areas where roads have to wind considerably.
Worked example. New York and Boston sit close enough, and with a reasonably direct interstate connecting them, that straight-line and driving distance land in the same rough neighborhood: this calculator's straight-line figure comes out under 200 miles, while the real driving route along I-95 is closer to 215 miles. For a pair of cities separated by a mountain range or a large body of water, the gap is usually much larger, since the straight line cuts through the obstacle while any real road has to go around it.
The table pairs this calculator's straight-line figure for seven city pairs with the approximate road distance between the same cities on the most direct interstate route. The road figures are rounded to the nearest five miles and shift by a few miles between mapping services, depending on where in each city the route starts and ends.
| City pair | Miles as the crow flies | Road miles, approx. | Road ÷ straight line |
|---|---|---|---|
| New York to Washington | 204.1 | 225 | 1.10 |
| New York to Boston | 190.0 | 215 | 1.13 |
| Atlanta to Nashville | 215.2 | 250 | 1.16 |
| Chicago to Detroit | 238.4 | 280 | 1.17 |
| Los Angeles to Las Vegas | 228.8 | 270 | 1.18 |
| Seattle to Portland | 144.8 | 175 | 1.21 |
| Denver to Salt Lake City | 370.9 | 520 | 1.40 |
The road adds only about 10 percent between New York and Washington, the smallest gap in the table, and about 40 percent between Denver and Salt Lake City, the largest, where the highways detour around the mountains. The seven ratios average about 1.19, so multiplying a straight-line figure by 1.2 makes a fair first guess at a typical road distance. It is only a first guess, because a bay or a mountain range between two cities can push a route well outside that range.
How the straight-line distance is calculated
The distance between two points on a sphere, which the Earth approximately is, is calculated with the haversine formula, using each city's latitude and longitude:
where:
- d
- Straight-line distance between the two cities
- r
- Earth’s radius, 3,958.8 miles in this calculator
- φ_1, φ_2
- Latitudes of the two cities
- Δφ
- Difference in latitude
- Δλ
- Difference in longitude
The formula accounts for the Earth's curvature, so it stays accurate for city pairs on opposite sides of the globe, not just nearby ones. This calculator runs it directly in your browser using each city's bundled coordinates; nothing is looked up from an external service.
Worked example, New York to Los Angeles. The calculator holds 40.7143 N, 74.0060 W for New York and 34.0522 N, 118.2437 W for Los Angeles. With the angles converted to radians for the sine and cosine steps, the formula works out as follows.
| Step | Value |
|---|---|
| Difference in latitude | 6.6621 degrees |
| Difference in longitude | 44.2377 degrees |
| sin ^2(Δφ/2) | 0.003376 |
| sin ^2(Δλ/2) | 0.141774 |
| cos φ_1 cos φ_2 | 0.75797 × 0.82853 = 0.62800 |
| a | 0.003376 + 0.62800 × 0.141774 = 0.092410 |
| 2arcsin √a | 0.61776 radians |
| d = 3958.8 × 0.61776 | 2,445.6 miles |
Straight-line distances between major U.S. cities
If you only need a common pair, the chart below saves running the calculator. It lists the straight-line miles from ten U.S. cities to five well-known destinations, rounded to the nearest mile. Every number comes from the function the calculator itself runs, with the same coordinates, so the chart and the tool always agree, and a dash marks a city measured against itself.
| Straight-line miles | To New York | To Chicago | To Los Angeles | To Miami | To Seattle |
|---|---|---|---|---|---|
| Distance from NYC | – | 712 | 2,446 | 1,092 | 2,402 |
| Distance from San Jose | 2,549 | 1,837 | 306 | 2,559 | 710 |
| Distance from Chicago | 712 | – | 1,741 | 1,189 | 1,733 |
| Distance from Atlanta | 746 | 587 | 1,933 | 606 | 2,178 |
| Distance from San Diego | 2,428 | 1,730 | 111 | 2,268 | 1,064 |
| Distance from Houston | 1,417 | 939 | 1,371 | 967 | 1,889 |
| Distance from Sacramento | 2,500 | 1,788 | 361 | 2,547 | 625 |
| Distance from Charlotte, NC | 531 | 587 | 2,115 | 654 | 2,281 |
| Distance from Detroit | 481 | 238 | 1,979 | 1,155 | 1,933 |
| Distance from Denver | 1,627 | 917 | 830 | 1,724 | 1,020 |
Find the starting city in the left column and the destination across the top. Distances read the same in both directions, so Chicago to Los Angeles is the same 1,741 miles as Los Angeles to Chicago. For any pair that is not in the chart, type the two names into the calculator above.
When straight-line distance is the number you want
Straight-line distance answers a different question from the drive, and for some questions it is the better answer. Radio and cell coverage, delivery radius limits and any search for places within a set number of miles all work in a straight line, because a signal does not follow a road. Flights follow routes close to a great circle, so this also works as a rough airline distance calculator or air mileage calculator for two city centers. Airports sit outside the center, so the flight distance to or from an airport differs a little from the figure here.
The same measurement goes by several names. Distance as the crow flies, as the bird flies mileage, great-circle distance and airline distance all describe the shortest path over the Earth's surface between two points. That makes this an as-the-crow-flies distance calculator as much as a mileage calculator, and the distance the crow flies is never longer than any road or flight route between the same two places.
Why this mileage calculator does not offer real driving distance
A real driving distance and turn-by-turn driving time come from a routing engine, a service that has an actual digital map of every road, current speed limits, and often live traffic, and calculates the shortest or fastest real route between two points along that road network. Running that kind of service costs money per request and requires a paid API key from a provider like Google Maps, so rather than build a calculator that quietly breaks once a usage limit or a subscription lapses, this tool sticks to something it can compute entirely on its own, the straight-line distance, and states that limitation plainly instead of hiding it. For the real route, the result includes a direct link to Google Maps with both cities already filled in.
Reading the estimated driving time
The estimated driving time divides the straight-line distance by an assumed average speed to produce a rough number, not a real routing estimate. It does not know the actual roads, speed limits, traffic conditions, or how winding a real route is, so treat it as a loose planning figure, useful for a rough sense of scale (a two-hour trip versus a two-day trip), not a number to build a real travel schedule around. The Google Maps link in the result gives an actual driving-time estimate for the real route instead.
For a quick sense of scale, the table shows what the assumed 55 mph average gives for common distances. Real trips run longer once stops, traffic and slower roads at either end are added, and shorter on open highway with a higher speed limit. Use it to judge whether the trip from point A to point B is a matter of hours or of days, not to set a departure time. As a drive time calculator it is deliberately crude; the speed calculator solves for time, speed or distance when you know two of the three and want to try a different average speed.
| Distance | Kilometers | Estimated time |
|---|---|---|
| 10 miles | 16 km | 11m |
| 25 miles | 40 km | 27m |
| 50 miles | 80 km | 55m |
| 100 miles | 161 km | 1h 49m |
| 150 miles | 241 km | 2h 44m |
| 200 miles | 322 km | 3h 38m |
| Distance | Kilometers | Estimated time |
|---|---|---|
| 250 miles | 402 km | 4h 33m |
| 300 miles | 483 km | 5h 27m |
| 400 miles | 644 km | 7h 16m |
| 500 miles | 805 km | 9h 5m |
| 750 miles | 1,207 km | 13h 38m |
| 1,000 miles | 1,609 km | 18h 11m |
How to find distance between two cities
- Type the starting city in the From box and pick it from the suggestions.
- Type the destination in the To box the same way.
- Press Calculate to see the distance in miles and kilometers, with the estimated driving time underneath.
- Open the Google Maps link in the result for the real route and its driving time, then press Clear to try another pair.
Entering a city correctly
Start typing a city name in either field and matching suggestions appear; picking one from the list guarantees it parses correctly. Typing by hand works too, as a plain city name (“Boston”) or, for a U.S. or Canadian city whose name exists in more than one state or province (“Portland” is both Oregon and Maine), the city followed by its state or province abbreviation (“Portland, OR” or “Portland OR”, either format works). A name the calculator does not recognize, or one that matches more than one place, is flagged directly rather than guessed at.
Which kind of mileage do you need?
People type “mileage” into a search box and mean several different things. This calculator answers the first row of the table; the others have a tool of their own or a one-line calculation.
| What you want to know | Where to get it |
|---|---|
| How far apart two cities are in a straight line | This calculator |
| The real driving distance and time between two addresses | The Google Maps link in the result, or any maps app |
| Miles per gallon from a fill-up | Gas mileage calculator |
| What the fuel for a trip will cost | Fuel cost calculator |
| Time, speed or distance when you know two of the three | Speed calculator |
| Distance between two latitude and longitude points | Distance calculator |
| A business mileage reimbursement | Road miles multiplied by the per-mile rate; no city list is needed |
Converting the result to other units
The result already shows both miles and kilometers, so no separate conversion step is needed either way. For a unit this calculator does not cover directly, such as nautical miles, the unit converter handles length conversions generally.
Frequently asked questions
Is this real driving distance, like what Google Maps would show?
Why doesn’t this calculator use a live routing service?
How is the estimated driving time calculated?
Which cities does this calculator know?
Why did it say a city name matches more than one place?
Can I get the distance in kilometers instead of miles?
Does this calculator store or send my searches anywhere?
What is the distance between two places as the crow flies?
How many miles is it from New York to Los Angeles?
How long does it take to drive 200 miles?
How long does it take to drive 50 miles?
How far is Chicago from New York?
How far is New York from me?
Can I use this as a halfway point between two cities calculator?
Can I use this to calculate mileage reimbursement?
Once you know the distance, the fuel cost calculator estimates what the real trip will cost in fuel based on distance, your vehicle's fuel economy, and a price per unit of fuel, and the gas mileage calculator works out MPG or km/L from a trip's distance and fuel used.
Related tools: Date Calculator, Hours Calculator and Square Footage Calculator. More are grouped under Everyday Calculators, and every tool on the site is listed at all calculators.
