Madrid to Barcelona by train
Madrid-Puerta de Atocha → Barcelona-Sants
Trains link Madrid (Madrid-Puerta de Atocha) and Barcelona (Barcelona-Sants) in about 3h 02m at best, with no changes needed. The corridor is part of the AVE (621 km, typically 2 h 30 min), one of 1562 routes plotted in the World Train Map atlas.
- Fastest
- ≈ 3h 02m
- Typical
- ≈ 3h 27m
- Direct trains
- Yes
- Fewest changes
- 0
- Operators
- Renfe, Ouigo España

How long does the train from Madrid to Barcelona take?
The fastest trains cover Madrid to Barcelona in about 3h 02m; a typical journey takes around 3h 27m.
Is there a direct train from Madrid to Barcelona?
Yes: direct trains run between Madrid-Puerta de Atocha and Barcelona-Sants.
Is the train or a flight faster from Madrid to Barcelona?
Door to door, the train typically wins: about 3h 45m city centre to city centre, against roughly 4h 10m for a typical flight once airport time is counted. The train also emits about 3× less CO₂e, even on conservative official emission factors.
- Train, door to door
- ≈ 3h 45m
- Flight, door to door
- ≈ 4h 10m (est.)
- CO₂e per passenger
- ~21 kg train · ~68 kg plane
Flight time and emissions are transparent estimates, not airline schedules: method, factors and all 109 compared pairs on Train vs plane in Europe.
This corridor in the atlas
- AVE Scheduled at 300 km/h, this line flipped one of the world’s busiest air routes to rail.
Legendary routes through Madrid or Barcelona
More trains from Madrid
- Madrid → Zaragoza ≈ 1h 35m · direct
- Madrid → Córdoba ≈ 1h 44m · direct
- Madrid → Valencia ≈ 2h 01m · direct
- Madrid → Seville ≈ 2h 39m · direct
- Madrid → Málaga ≈ 2h 46m · direct
- Madrid → Santiago de Compostela ≈ 3h 22m
More train routes in Spain.
Journey figures are typical values sampled from public European schedule data; exact times vary by day. Always check the operator when booking.