simplemaplab

Distance Between Two Cities

Search, click the map, or use GPS to calculate the distance between any two US cities. Shows miles, km, population comparison, and estimated driving distance.

Definition
What is city-to-city distance?
The straight-line distance between the population-weighted centroids of two US cities. Calculated using the Haversine great-circle formula — the shortest path over Earth's curved surface.
Coverage
How many cities?
27,722 US cities and towns are searchable — every populated place in the Census records. Autocomplete sorts by population so major cities appear first.
Interaction
Three ways to search
Type city names with autocomplete, click the map to auto-detect the nearest city, or use GPS with "Detect My Location." First input sets origin, second sets destination.
Cost
Is this free?
Yes — no sign-up, no API key. All 27,722 cities are pre-loaded in your browser for instant results. Works offline after the initial page load.
Loading city database...

How to use the city distance calculator

1
Search, click, or use GPS for the first city
Type a city name — autocomplete shows matches sorted by population. Or click the map to detect the nearest city (green marker). Or tap "Detect My Location" for GPS-based detection.
2
Set the second city the same way
The second action (search, click, or GPS) sets the destination (red marker). Use the swap button to reverse direction at any time.
3
Read the results
Results appear instantly: straight-line distance in miles and km, estimated driving distance, bearing, and a side-by-side comparison of both cities with population, county, state, and coordinates.

Popular city-to-city distances

Straight-line distances between major US city pairs. Driving distance and time are estimates (1.3× straight-line at 55 mph average).

FromToStraight-lineEst. driveEst. time
New York, NYLos Angeles, CA2,451 mi~3,186 mi~58h
Chicago, ILHouston, TX940 mi~1,222 mi~22h
New York, NYChicago, IL714 mi~928 mi~17h
Los Angeles, CASan Francisco, CA347 mi~451 mi~8h
Miami, FLAtlanta, GA594 mi~772 mi~14h
Dallas, TXHouston, TX225 mi~293 mi~5h
Boston, MANew York, NY190 mi~247 mi~4.5h
Seattle, WAPortland, OR145 mi~189 mi~3.5h
Denver, COPhoenix, AZ586 mi~762 mi~14h
Washington, DCNew York, NY204 mi~265 mi~5h
San Francisco, CASeattle, WA679 mi~883 mi~16h
Philadelphia, PANew York, NY81 mi~105 mi~2h
EXAMPLE
New York to Los Angeles: The straight-line distance is 2,451 miles. The most common driving route (I-80 or I-70) is about 2,790 miles — 1.14× the straight-line. Our 1.3× estimate gives 3,186 miles, which is conservative but accounts for detours and urban routing.

What people use city distance for

Road trip planning

Get a quick estimate before mapping a detailed route. The straight-line distance gives a lower bound; multiply by 1.3 for a rough driving estimate. Compare multiple destination cities to find the closest option for a weekend trip.

Relocation research

When considering a move, compare distances from your current city to multiple candidates. The population comparison helps understand the size difference — moving from Houston (3.2M) to Austin (1.1M) is a significant lifestyle change beyond just the 146-mile drive.

Geography education and trivia

Answer questions like "Is Denver closer to Phoenix or Dallas?" (Phoenix: 586 mi vs Dallas: 663 mi). Great for geography classes, quiz bowls, and dinner-table debates.

Sales territory and travel planning

Sales teams use city distances to plan travel routes, estimate reimbursement, and optimize visit schedules. The bearing tells you which direction to head — useful when planning multi-city trips.

Shipping and logistics estimates

Estimate shipping costs between metro areas before getting a formal carrier quote. For ZIP-level precision, use our Distance Between ZIP Codes tool.

Long-distance relationship planning

Know exactly how far apart you are, estimate travel times, and find the halfway point for meeting in the middle.

How the distance is calculated

Each of the 27,722 cities has a population-weighted centroid — the average location of all residents, not the geographic center. This matters for sprawling cities where the center of population may be miles from the city hall.

The tool computes the Haversine great-circle distance between the two centroids. This is the shortest possible path over Earth's curved surface — the same formula used in aviation and marine navigation.

Why not driving distance? Driving distance requires a routing engine and real-time road data. For actual drive time analysis, use our Drive Time Map, which follows real roads using the Valhalla routing engine and OpenStreetMap data.

Related tools

Glossary

Population-weighted centroid
The "average" location of all residents in a city, weighted by where people actually live. More accurate for distance than the geographic center.
Great-circle distance
The shortest path between two points on a sphere, following the surface. Always shorter than driving distance.
Haversine formula
The trigonometric formula used to compute great-circle distance. Standard in navigation, aviation, and GIS.
Bearing
Compass direction from one city to another, in degrees clockwise from north. 0° = N, 90° = E, 180° = S, 270° = W.
Straight-line distance
"As the crow flies" — the shortest possible distance, ignoring roads, terrain, and obstacles.
Driving distance
The distance following actual roads. Always longer than straight-line. Estimated here as 1.3× straight-line.
Data sources
City centroids and demographics: US Census Bureau ACS via SimpleMaps. 27,722 cities aggregated from ZIP code data with population-weighted centroids. Map tiles: OpenFreeMap. Distance: Haversine great-circle on WGS84 (R = 3,958.8 mi).

Frequently asked questions

Type both city names in the search fields above, click two points on the map, or use "Detect My Location" for GPS. The tool instantly shows straight-line distance, estimated driving distance, and a comparison of both cities.
The Haversine great-circle formula computes the shortest distance between the population-weighted centroids of both cities. This is the "as the crow flies" distance — not driving distance.
Straight-line distance multiplied by 1.3. This is a widely-used approximation. Actual driving varies: flat terrain with highways might be 1.2×, mountainous terrain with winding roads might be 1.5×.
27,722 US cities and towns, derived from Census ZIP code data. Every populated place with a name in Census records is searchable.
Yes. First click sets the origin (green pin) by finding the nearest city. Second click sets the destination (red pin). Pins appear immediately on click.
Google Maps shows driving distance along roads. This tool shows straight-line distance. A 200-mile straight-line might be 260 miles driving on flat terrain, or 340 miles through mountains.
This tool covers US cities only. For worldwide distance, use our Distance Between Two Places tool which accepts any location on Earth.
The autocomplete shows state abbreviation and population next to each match (e.g., "Portland, OR" vs "Portland, ME"). Select the correct one from the dropdown.
Population is aggregated from US Census Bureau ZIP code data via SimpleMaps. Coordinates are population-weighted centroids for accuracy.
The farthest two cities in the contiguous US are approximately 2,800 miles apart (e.g., Miami, FL to Seattle, WA). Including Alaska, Barrow, AK to Key West, FL is about 4,500 miles.
The estimate assumes 55 mph average over the estimated driving distance. This is rough — highway trips average 60-65 mph, urban trips average 25-35 mph. For accurate drive time, use our Drive Time Map.
Yes — completely free, no sign-up, no API key. All city data is pre-loaded in your browser for instant results.
This tool searches US cities by name with autocomplete and shows population/county data. The Distance Between Two Places tool works worldwide and accepts any point — addresses, landmarks, or coordinates.
Yes — use our Find Cities in Radius tool. Set a center point and radius, and it lists all cities within that distance with population data.

Related tools