
The concourse at Barcelona Sants, the terminus for AVE trains arriving from Madrid.
Photo: MNXANL / Wikimedia Commons (CC BY-SA 4.0)Madrid to Barcelona by Train
A domestic route within Spain.
Reviewed by Eurotraintrip on 2026-07-25
- Duration
- 2h 30m – 3h 20m
- Price from
- 23 EUR
- Distance
- 621 km
- Operators
- Renfe AVERenfe AVLOOuigo Espanairyo
- Frequency
- Up to 30 direct trains per day
Compare and book Madrid–Barcelona tickets
Check pricesWhat makes Madrid to Barcelona different
- This is the busiest air-vs-rail corridor in Europe where rail has won decisively: about 75% of travelers now choose the train over flying, up from roughly 60% in the late 2010s, after the AVE overtook air travel for good back in 2012.
- The route carried 14.6 million passengers in 2024 alone (up 6% on 2023), which is what makes it profitable enough to support four competing high-speed operators on the same tracks — a rare setup even by European standards.
- Some AVLO and iryo services stop at Zaragoza-Delicias, Lleida Pirineus and Camp de Tarragona, so a handful of departures take closer to 3h20m rather than the fastest 2h30m nonstop runs — worth checking before you book if speed matters.
Madrid station
Departs from Madrid Atocha (Puerta de Atocha), in central Madrid with direct metro (Atocha Renfe, lines 1) and a short walk to Retiro Park — arrive at least 30-45 minutes early since security screening is required before boarding, similar to a low-key airport check.
Barcelona station
Arrives at Barcelona Sants, the city's main station, connected to metro lines L3 and L5 — it's about 2km from Las Ramblas, so most travelers take a 10-minute metro ride rather than walking with luggage.
Train vs. other options
Flying takes about 1h15m in the air, but once you add airport transfers, check-in and security on both ends, door-to-door time is often close to or longer than the 2h30m city-center-to-city-center train — which is the main reason rail overtook air travel on this specific route back in 2012.
Booking tips
- Book 2-3 months ahead for the cheapest AVE fares — prices rise as the departure date gets closer.
- Ouigo and iryo are budget alternatives to Renfe AVE and can be significantly cheaper on the same route.
- Trains arrive at Barcelona Sants and depart from Madrid Atocha — both are central and well connected by metro.
Good to know: Renfe's low-cost AVLO brand does not include seat selection in its cheapest Basic fare — you're auto-assigned a seat unless you pay an extra 8 EUR per journey to pick one, and AVLO's 2x2 layout (no middle seats) means solo travelers often end up next to a stranger regardless.
While you're in Barcelona

Sagrada Familia, Gaudi's still-unfinished basilica and Barcelona's most-visited site.
Photo: Bgag / Wikimedia Commons (CC BY-SA 3.0)Between the Gothic Quarter's medieval alleys and a proper sand beach a 10-minute metro ride from downtown, Barcelona rewards a couple of unhurried days — just don't expect to walk into Sagrada Familia without a booking.
Full Barcelona travel guide →Frequently asked questions
How long is the train from Madrid to Barcelona?
The fastest direct trains take around 2 hours 30 minutes. Some services with extra stops (Zaragoza, Lleida, Camp de Tarragona) take up to 3 hours 20 minutes.
How much does the train from Madrid to Barcelona cost?
Fares start from around 23 EUR for advance-purchase tickets in standard class, but prices vary a lot by operator, class, and how early you book.
Which train operators run this route?
Renfe (AVE and the low-cost AVLO), Ouigo Espana, and iryo all operate high-speed trains between Madrid and Barcelona — one of the few European routes with four competing high-speed operators.
Is it better to fly or take the train from Madrid to Barcelona?
Most travelers now choose the train — about 75% of Madrid-Barcelona trips on these two modes are by rail, since city-center-to-city-center train time is competitive with flying once airport transfers are factored in.