Barcelona to Madrid: Road Trip Guide & Distance

313.9 miles 505.1 km · straight line
383.1 miles actual route 616.5 km · driving distance
6h 52min estimated drive time
€60 - €74 estimated fuel cost
~1h 8min flight time
260° W bearing direction

How far is Barcelona from Madrid?

The distance from Barcelona to Madrid is 313.9 miles (505.1 km) as the crow flies. Madrid is located W of Barcelona. By car, the driving distance is approximately 383.1 miles, taking about 6h 52min. A direct flight would take roughly 1h 8min. Both are located in Spain.

This is a solid day of driving. Be sure to take breaks every 2-3 hours to avoid driver fatigue, and plan your meals ahead of time. Since you'll be heading mostly West, pack a good pair of sunglasses if you plan to drive during the late afternoon to avoid the harsh sun glare.

Coordinates come from public place data for Barcelona and Madrid. The driving distance uses an OSRM road-route result when route data is available. Fuel, flight, bus, and train values are planning estimates and can change by date, provider, road closures, and border rules.

How to Get from Barcelona to Madrid

Method Time Est. Cost Best For
Drive 6h 52min €60 - €74 Flexible stops
Fly ~1h 8min $80–200* Speed
Bus ~8h 14min $31–$57* Budget
Train ~6h 31min $46–$134* Comfort

Quick Facts

Barcelona
41.39°N, 2.17°E
Europe/Madrid
12m elevation
Madrid
40.42°N, 3.70°W
Europe/Madrid
667m elevation
Explore more routes from Madrid

Did You Know?

  • At walking speed (3 mph), it would take about 105 hours of non-stop walking
  • By bicycle at 12 mph, the journey would take roughly 26 hours
  • You could travel this distance about 79.3 times to circle the Earth's equator
Data Sources & Estimate Notes GeoNames · OpenStreetMap · OSRM