Distances between cities
90 city pairs with their straight-line and driving distance, drive time, both halfway points (on the straight line and on the road), bearing, time difference and approximate flight time. Every page has its own map and explains where each figure comes from.
Measure the distance between any two placesSpain
Madrid to the provincial capitals and big cities, the Barcelona corridor and the regional pairs people search for most.
| Cities | Straight line | By road | Driving |
|---|---|---|---|
| Madrid to Barcelona | 506 km | 617 km | 6 hr 50 min |
| Madrid to Valencia | 302 km | 355 km | 3 hr 55 min |
| Madrid to Seville | 391 km | 534 km | 5 hr 55 min |
| Madrid to Zaragoza | 274 km | 315 km | 3 hr 30 min |
| Madrid to Málaga | 415 km | 535 km | 6 hr 5 min |
| Madrid to Bilbao | 322 km | 397 km | 4 hr 25 min |
| Madrid to Alicante | 360 km | 420 km | 4 hr 35 min |
| Madrid to A Coruña | 510 km | 593 km | 6 hr 30 min |
| Madrid to Granada | 360 km | 420 km | 4 hr 45 min |
| Madrid to Salamanca | 177 km | 216 km | 2 hr 35 min |
| Madrid to Toledo | 68.6 km | 74.7 km | 1 hr |
| Madrid to Valladolid | 162 km | 190 km | 2 hr 30 min |
| Madrid to Córdoba | 296 km | 394 km | 4 hr 30 min |
| Madrid to Murcia | 349 km | 397 km | 4 hr 25 min |
| Madrid to Santander | 338 km | 395 km | 4 hr 55 min |
| Madrid to San Sebastián | 352 km | 452 km | 5 hr 5 min |
| Madrid to Oviedo | 372 km | 450 km | 5 hr 5 min |
| Madrid to Santiago de Compostela | 488 km | 593 km | 6 hr 40 min |
| Madrid to Segovia | 69.4 km | 97.2 km | 1 hr 20 min |
| Madrid to Cádiz | 488 km | 651 km | 7 hr 10 min |
| Madrid to Badajoz | 329 km | 402 km | 4 hr 25 min |
| Madrid to León | 288 km | 338 km | 3 hr 50 min |
| Madrid to Burgos | 213 km | 244 km | 2 hr 50 min |
| Madrid to Pamplona | 316 km | 387 km | 4 hr 45 min |
| Barcelona to Valencia | 303 km | 351 km | 4 hr 5 min |
| Barcelona to Zaragoza | 257 km | 311 km | 3 hr 30 min |
| Barcelona to Bilbao | 469 km | 610 km | 6 hr 40 min |
| Barcelona to Girona | 85.8 km | 103 km | 1 hr 20 min |
| Barcelona to Tarragona | 82.8 km | 96.8 km | 1 hr 20 min |
| Barcelona to Seville | 831 km | 997 km | 11 hr 5 min |
| Seville to Málaga | 159 km | 214 km | 2 hr 40 min |
| Seville to Granada | 214 km | 254 km | 3 hr 5 min |
| Seville to Córdoba | 121 km | 144 km | 1 hr 45 min |
| Seville to Cádiz | 99.0 km | 121 km | 1 hr 30 min |
| Málaga to Granada | 88.5 km | 128 km | 1 hr 40 min |
| Valencia to Alicante | 125 km | 178 km | 2 hr |
| Bilbao to San Sebastián | 76.4 km | 103 km | 1 hr 20 min |
| Bilbao to Santander | 75.2 km | 101 km | 1 hr 20 min |
| Oviedo to Gijón | 25.3 km | 32.6 km | 28 min |
| Vigo to Santiago de Compostela | 73.1 km | 91.6 km | 1 hr 15 min |
United States
The most searched routes: coast to coast, the Texas Triangle, California and Nevada, the East Coast, Chicago and Florida.
| Cities | Straight line | By road | Driving |
|---|---|---|---|
| New York to Los Angeles | 2,451 mi | 2,794 mi | 49 hr 45 min |
| New York to Chicago | 714 mi | 790 mi | 14 hr 50 min |
| New York to Boston | 190 mi | 214 mi | 4 hr 45 min |
| New York to Washington, DC | 204 mi | 227 mi | 4 hr 50 min |
| New York to Philadelphia | 80.6 mi | 94.1 mi | 2 hr 5 min |
| New York to Miami | 1,089 mi | 1,279 mi | 24 hr 10 min |
| New York to Atlanta | 746 mi | 880 mi | 16 hr 55 min |
| New York to Orlando | 938 mi | 1,076 mi | 20 hr 25 min |
| Los Angeles to San Francisco | 347 mi | 382 mi | 7 hr 10 min |
| Los Angeles to Las Vegas | 229 mi | 270 mi | 4 hr 55 min |
| Los Angeles to San Diego | 112 mi | 120 mi | 2 hr 25 min |
| Los Angeles to Chicago | 1,744 mi | 2,019 mi | 35 hr 25 min |
| Los Angeles to Phoenix | 358 mi | 373 mi | 6 hr 40 min |
| San Francisco to Seattle | 679 mi | 807 mi | 15 hr 35 min |
| San Francisco to Las Vegas | 418 mi | 568 mi | 10 hr 35 min |
| San Francisco to Sacramento | 75.0 mi | 87.4 mi | 1 hr 50 min |
| San Diego to Las Vegas | 265 mi | 331 mi | 6 hr 5 min |
| Seattle to Portland | 145 mi | 173 mi | 3 hr 25 min |
| Phoenix to Las Vegas | 256 mi | 285 mi | 5 hr 55 min |
| Denver to Salt Lake City | 372 mi | 520 mi | 9 hr |
| Chicago to Houston | 938 mi | 1,085 mi | 19 hr 50 min |
| Chicago to Detroit | 239 mi | 281 mi | 5 hr 15 min |
| Chicago to Milwaukee | 83.1 mi | 90.0 mi | 1 hr 55 min |
| Chicago to Indianapolis | 164 mi | 180 mi | 3 hr 35 min |
| Chicago to St. Louis | 260 mi | 295 mi | 5 hr 35 min |
| Chicago to Minneapolis | 356 mi | 413 mi | 7 hr 50 min |
| Dallas to Houston | 225 mi | 240 mi | 4 hr 15 min |
| Dallas to Austin | 182 mi | 195 mi | 3 hr 30 min |
| Dallas to San Antonio | 252 mi | 273 mi | 4 hr 55 min |
| Houston to Austin | 147 mi | 162 mi | 3 hr |
| Houston to San Antonio | 190 mi | 195 mi | 3 hr 30 min |
| Austin to San Antonio | 73.5 mi | 79.2 mi | 1 hr 30 min |
| Boston to Washington, DC | 395 mi | 439 mi | 9 hr 15 min |
| Philadelphia to Washington, DC | 124 mi | 137 mi | 3 hr 5 min |
| Atlanta to Nashville | 215 mi | 249 mi | 4 hr 45 min |
| Atlanta to Orlando | 401 mi | 437 mi | 7 hr 55 min |
| Nashville to Memphis | 197 mi | 212 mi | 3 hr 55 min |
| Miami to Orlando | 204 mi | 233 mi | 4 hr 20 min |
| Miami to Tampa | 205 mi | 279 mi | 5 hr 10 min |
| Orlando to Tampa | 77.4 mi | 84.5 mi | 1 hr 40 min |
Across borders
Madrid to Lisbon, Porto and Paris, London to Paris through the tunnel, and US cities to Canada.
| Cities | Straight line | By road | Driving |
|---|---|---|---|
| Madrid to Lisbon | 505 km | 627 km | 6 hr 45 min |
| Madrid to Porto | 423 km | 555 km | 6 hr 20 min |
| Madrid to Paris | 1,052 km | 1,268 km | 13 hr 25 min |
| Barcelona to Paris | 830 km | 1,036 km | 10 hr 50 min |
| Barcelona to Andorra la Vella | 136 km | 199 km | 2 hr 45 min |
| Seville to Lisbon | 314 km | 459 km | 5 hr |
| Vigo to Porto | 121 km | 147 km | 1 hr 45 min |
| London to Paris | 214 mi | 294 mi | 5 hr 50 min |
| New York to Toronto | 345 mi | 478 mi | 9 hr 55 min |
| Seattle to Vancouver | 119 mi | 140 mi | 3 hr |
How they’re calculated
The straight line is the geodesic on the WGS84 ellipsoid, computed with GeographicLib between the points on our place pages (the GNIS city center in the US and Spain’s IGN gazetteer; elsewhere, GeoNames). It’s the same calculation as Mapsfera’s distance tools.
Driving distance and time come from the fastest car route on the public FOSSGIS OSRM server, with OpenStreetMap data. They were requested once (routes from October 31, 2026), never more than one request every two seconds, and stored with the site. Times assume no traffic and no stops.
Flight time is a simple estimate (30 minutes plus the straight line at 800 km/h, about 500 mph), only from 500 km (310 miles) up. The time difference comes from each city’s time zone in mid-January and mid-July.
Frequently asked questions
Why doesn’t the driving distance match Google Maps?
Each service uses its own map and speeds. Here the route is OSRM’s fastest, using OpenStreetMap data, between the city centers on our place pages. Differences are usually a few miles; OSRM’s time tends to be a bit longer because it assumes cautious speeds.
What is the straight-line distance?
The shortest distance between two points over the Earth’s surface, “as the crow flies”. It’s measured on the WGS84 ellipsoid, the Earth model GPS uses, and a long one looks slightly curved on a flat map.
Can I calculate the distance between other cities?
Yes: the distance calculator works for any two places in the world, and the distance between cities tools cover any two US cities or Spanish municipalities, with the driving route.
Measure it yourself on the map
- Distance between two points Measure the distance between any two places or points on the map, in miles or kilometers.
- Distance between cities Pick two US cities and get the distance between them, both in a straight line and by road.
- Distance between cities in Spain Pick two Spanish cities and get the distance between them, both in a straight line and by road.
- Straight line vs driving distance Compare the as-the-crow-flies distance with the real driving distance and see how much the road adds.
- Halfway point Find the exact halfway point between two places and see it on the map, ready to share.