Skip to main content
Barcelona Sagrada Familia at golden hour

Distance Guide

Distance from Madrid to Barcelona

Driving distance
383 mi
617 km
Straight-line
314 mi
505 km
🚗 Drive time
6 hr 29 min
approx.
✈️ Flight time
1 hr 5 min
nonstop

Madrid to Barcelona is about 383 miles (617 km) by road and 314 miles in a straight line. The drive takes around 6 hr 29 min. The distance is the same in reverse, from Barcelona to Madrid.

What This Distance Means for Your Trip

At 383 miles, this is a driving distance rather than a flying one — and a train or bus is often an option too. A scheduled flight would cover only about 314 miles in the air, and once you factor in getting to the airport, checking in and clearing security, that airport time alone cancels out anything saved aloft. For a trip this length, driving is almost always the practical choice.

Want the full side-by-side on time, cost and hassle? See our drive-or-fly breakdown for Madrid to Barcelona.

How we calculate these figures

Straight-line distance uses the great-circle (haversine) formula between each city's centre coordinates. Road distance applies a circuity factor of roughly 1.2–1.4× to reflect that roads are not straight. Driving time assumes typical blended speeds for a trip of this length, and flight time is the great-circle distance at about 875 km/h cruise plus around 30 minutes for taxi, climb, descent and approach. The door-to-door air estimate adds about three hours for airport access, check-in, security and boarding. Real figures vary with your exact route, traffic, weather, aircraft and connections.

Madrid to Barcelona is Spain's most important domestic route — 390 miles northeast across the Meseta and through Zaragoza. Renfe's AVE high-speed train covers it in 2 hours 30 minutes at up to 300 km/h, making it one of Europe's most compelling train journeys.

The drive on the A-2 passes through the dramatically flat Castilian plateau before climbing through Aragon to the coastal strip. Zaragoza, Spain's fifth-largest city, makes an excellent stop.

Stops Along the Way

📍
Zaragoza

Spain's underrated fifth city — the spectacular Basílica del Pilar and Aljafería Palace make it one of the finest quick stops on any Spanish road trip.

Meeting someone from Barcelona? Find the exact halfway point between Madrid and Barcelona so neither of you drives the whole way — or plan evenly-spaced rest and fuel stops along the route.

Tips for This Trip

The AVE is one of Europe's best high-speed trains

At 2h30m, Renfe's AVE is faster door-to-door than flying for most travellers — no airport queues, central stations, and punctuality above 95%.

Book AVE tickets well in advance

Early booking on Renfe's website can secure tickets for €20–50 each way. Last-minute prices can be €80–120.

The drive involves Spanish tolls

The A-2 between Zaragoza and Barcelona requires tolls totalling around €25–30 for a one-way trip.

🏨 Hotels in Barcelona

Compare 2M+ properties on Booking.com — free cancellation on most stays. Filter by price, neighborhood, and traveler ratings.

Search Hotels in Barcelona

Affiliate link — we may earn a small commission at no extra cost to you.

Frequently Asked Questions

Barcelona is about 310 miles (499 km) from Madrid in a straight line, and approximately 390 miles (628 km) by road via the A-2 motorway northeast through Zaragoza.