View of Barcelona cityscape from a rooftop with tiled architecture
Routes

Barcelona to Madrid

Spain's flagship AVE high-speed line in under three hours.

By the Viamo editorial team · Editor Terje Moy · Last updated July 2026 · 5 min read

Fastest ~2h30 by train

At a glance Typical options on this route – details, caveats and booking advice below.
🚆 Train~2h30–3hRenfe AVE, compulsory reservation, city centre to centre
🚌 Bus~7–9hALSA/FlixBus, very low fares esp. overnight
✈️ Flight~55min airVueling/Iberia Express/Ryanair; competitive only with light luggage
🚗 Car~6h~620 km motorway, tolls; Zaragoza breaks the route

Planning this trip? Currency converter · Jet-lag calculator · Trip budget · Compare routes

Barcelona and Madrid are just over 600 kilometres apart, yet you can be in the heart of one city from the heart of the other in under three hours — thanks to Spain's flagship AVE high-speed line. Train, plane, bus and car each have their moment; here is how they stack up so you can make the right call for your trip.

The quickest way: the AVE high-speed train

The AVE (Alta Velocidad Española), operated by Renfe, runs between Barcelona Sants and Madrid Puerta de Atocha in roughly 2 hours 30 minutes to 3 hours, depending on which service you catch. Trains run frequently throughout the day — typically every hour or two during the day — and arrive right in the centre of each city, with the metro accessible from both stations.

This is one of the fastest city-centre-to-city-centre links in Europe, and the speed largely explains why it dominates this corridor. Book early and advance fares can be surprisingly reasonable; leave it late and prices climb steeply. A seat reservation is compulsory on all AVE services, so a rail pass alone will not get you aboard — you need to book a reservation on top, and these fill up. Renfe's own website and app are the most direct booking route, though international rail booking platforms also cover it.

Renfe also runs a slower Alvia service on the same corridor that takes a little longer but may be cheaper, and occasionally offers more departure times.

Tip: Arrive a few minutes early — AVE check-in closes a few minutes before departure and the gates are enforced. Missing your train is frustrating when trains are running every hour.

The cheapest way: the long-distance bus

Several operators, including ALSA and FlixBus, run coaches between Barcelona and Madrid. Journey times are typically 7–9 hours — a very different proposition from the train — but fares can be very low, particularly if you travel overnight and save on a night's accommodation.

Buses generally depart from and arrive at dedicated coach stations. For travellers who are not in a hurry and want to stretch their money as far as possible, the bus is worth considering, especially on routes where the coach company has a promotion or the train is fully booked at accessible prices.

The fastest door-to-door (sometimes): flying

The flight between Barcelona El Prat and Madrid Barajas takes barely 55 minutes in the air, and on a good day with carry-on only and a short security queue, the total time door-to-door can be competitive. On a bad day — or with checked luggage, a slow bus into the city and a queue at Barajas — the train wins handily.

Budget carriers including Vueling, Iberia Express and Ryanair fly the route frequently. However, given that both airports sit well outside their city centres, the train remains the default choice for most travellers doing city-to-city. Flying makes the most sense if you are already near an airport, have an onward connection, or find a genuinely cheap fare at the right time.

The scenic way: driving

The drive is roughly 620 km mostly on motorway — straight, fast and not especially scenic. Expect around 6 hours of pure driving, plus motorway tolls and the cost of fuel. If you are based in a city and don't need a car, renting one just for this trip is rarely worth it. The journey shines if you are doing a broader Spanish road trip and want to link the two cities with stops along the way — Zaragoza breaks the route nicely and is worth a few hours.

If you do cross the route by car, be aware that Spain has strict rules on what you must carry (reflective jacket in the cabin, warning triangles), and motorway tolls on this corridor add up. See our guide to motorway tolls explained for a run-down of how the Spanish toll system works.

Rail passes and this route

Interrail and Eurail pass holders can use their pass on AVE services, but a paid seat reservation is still required — and reservation quotas are limited. If you are combining this journey with a wider European rail trip, check how seat reservations work on high-speed trains before assuming your pass covers everything. For Spain in general, the Spain by AVE guide covers the network and booking strategy in more depth.

Which should you choose?

For the vast majority of travellers, the AVE train is the obvious answer: it is fast, frequent, comfortable and city-centre to city-centre. The time saved over flying, once you factor in airports, is significant. Choose the bus if price is your only concern and you don't mind a long journey. Choose to fly only if you are connecting to another flight or find a remarkable fare. And drive only if you have a car and want the flexibility of stopping along the way.

For context on how the AVE fits into Europe's broader high-speed network, see our overview of high-speed trains in Europe.

Frequently asked questions

How long does the AVE train take from Barcelona to Madrid?

The fastest direct AVE services take around 2 hours 30 minutes to just under 3 hours, with frequent departures throughout the day from Barcelona Sants to Madrid Puerta de Atocha.

Is a seat reservation compulsory on the AVE?

Yes. All Renfe AVE services require a paid seat reservation. A rail pass alone does not entitle you to board — you need to book a reservation in addition, and availability can be limited on busy travel days.

Which is better, the train or flying between Barcelona and Madrid?

For most travellers the train wins: both stations are in the city centre, there is no security queue to speak of, and the total door-to-door time is generally shorter. Flying makes sense primarily if you are starting near an airport or have a connecting flight.

Are there overnight trains between Barcelona and Madrid?

Not regularly on this corridor — daytime AVE services are so frequent that overnight trains have largely been replaced. Check Renfe's current timetable, as the network does evolve.

Sources and further reading: