Eurotraintrip
Interior of the Invernadero de Atocha, the tropical garden inside Madrid Atocha station

The Invernadero de Atocha, a tropical garden planted inside the old 1892 trainshed at Madrid Atocha, where AVE trains from Barcelona arrive.

Photo: Daderot / Wikimedia Commons (Public Domain)

Barcelona to Madrid by Train

A domestic route within Spain.

Reviewed by Eurotraintrip on 2026-07-30

Duration
2h 30m3h 20m
Price from
23 EUR
Distance
621 km
Operators
Renfe AVERenfe AVLOOuigo Espanairyo
Frequency
Up to 30 direct trains per day

Compare and book BarcelonaMadrid tickets

Check prices

What makes Barcelona to Madrid different

  • The Renfe/Siemens Velaro trainset used on this line hit 403.7 km/h during homologation testing in July 2006 on this exact Madrid-Barcelona corridor, ahead of the line's February 2008 opening - still the highest speed ever recorded on Spanish rails.
  • Two different rolling-stock families share this line at two different top commercial speeds: the Talgo 350 (Class 102) runs at up to 330 km/h, while the Siemens Velaro (Class 103) is certified for the full 350 km/h - so the train type you're booked on affects your actual travel time, not just the operator.
  • Barcelona Sants underwent a major expansion tied to the 1992 Barcelona Olympics, more than 15 years before the AVE reached the city in 2008 - the station was built for a very different purpose than the high-speed service that now dominates its platforms.

Barcelona station

Departs from Barcelona Sants, the city's main station, connected to metro lines L3 and L5 with a short walk to Placa d'Espanya - security screening for AVE departures happens at dedicated gates separate from the metro concourse, so budget extra time during peak hours.

Madrid station

Arrives at Madrid Atocha (Puerta de Atocha), where the original 1892 iron-and-glass trainshed - retired from train use in 1992 when the adjacent AVE terminal opened - was converted into the Invernadero de Atocha, a roughly 4,000-square-metre indoor tropical garden with palms and a turtle pond that every arriving passenger walks past on the way to the metro (Atocha Renfe, Line 1).

Train vs. other options

Driving the AP-2/A-2 motorways between Barcelona and Madrid covers the same roughly 620km and takes about 6 hours without stops - more than double the train's city-centre time, and that's before counting AP-2 tolls, which the AVE avoids entirely. Flying is faster in the air (about 1h15m) but rarely beats the train door-to-door once both airports' transfer times are added.

Booking tips

  • Book as early as possible - like all AVE corridors, fares rise the closer you get to departure, and the cheapest AVLO and iryo entry-tier seats sell out first.
  • iryo's cheapest 'Inicial' fare bundles less flexibility (no seat selection, tighter baggage allowance) than its pricier 'Idea' and 'Infinita' tiers - compare tiers, not just the headline price, before booking.
  • Renfe's delay-compensation policy became more generous again from 1 January 2026: a 50% refund after 15 minutes late and 100% after 30 minutes on AVE and AVLO - worth factoring in if you're choosing between a cheap no-frills fare and a pricier flexible one.

Good to know: iryo sells three fare tiers on this route - Inicial, Idea and Infinita - that bundle seat selection, baggage and change/refund flexibility differently rather than just charging more for the same ticket; picking the cheapest tier without checking what it excludes is a common Barcelona-Madrid booking mistake with iryo specifically.

Frequently asked questions

How long is the train from Barcelona to Madrid?

The fastest direct trains take around 2 hours 30 minutes. Services with extra stops take up to about 3 hours 20 minutes.

How much does the train from Barcelona to Madrid cost?

Fares start from around 23 EUR for advance-purchase tickets, though prices vary considerably by operator, fare tier and how early you book.

What happens if my AVE train from Barcelona to Madrid is delayed?

As of January 2026, Renfe refunds 50% of the fare for delays over 15 minutes and 100% for delays over 30 minutes on AVE and AVLO services.

Related routes