Barcelona to Madrid by train
Barcelona-Sants → Madrid-Puerta de Atocha
Trains link Barcelona (Barcelona-Sants) and Madrid (Madrid-Puerta de Atocha) in about 3h 17m 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 17m
- Typical
- ≈ 3h 35m
- Direct trains
- Yes
- Fewest changes
- 0
- Operators
- Ouigo España, Renfe

How long does the train from Barcelona to Madrid take?
The fastest trains cover Barcelona to Madrid in about 3h 17m; a typical journey takes around 3h 35m.
Is there a direct train from Barcelona to Madrid?
Yes: direct trains run between Barcelona-Sants and Madrid-Puerta de Atocha.
Is the train or a flight faster from Barcelona to Madrid?
Door to door, the train typically wins: about 3h 55m 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 55m
- 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 Barcelona or Madrid
More trains from Barcelona
- Barcelona → Girona ≈ 47 min · direct
- Barcelona → Perpignan ≈ 1h 25m · direct
- Barcelona → Zaragoza ≈ 1h 26m · direct
- Barcelona → Montpellier ≈ 3h 13m · direct
- Barcelona → Marseille ≈ 5h 06m · direct
- Barcelona → Lyon ≈ 5h 13m · direct
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.