Getting the Train from Barcelona to Madrid: What It Actually Costs

The train from Barcelona to Madrid takes about 2 hours 30 minutes and runs roughly 30 times a day. That part is simple. The prices are where it gets interesting: depending on which train operator you book with, when you book, and which class you choose, the same train journey can cost anywhere from €9 to well over €60. The difference is not about luck. It is about knowing what each train service offers and booking at the right time.

Three train operators run direct high-speed trains between Barcelona Sants and Madrid Puerta de Atocha: Renfe (Spain’s national train operator), Iryo (the Italian-backed newcomer that launched in 2022), and Ouigo (the budget French operator that arrived in 2021). All three share the same 621-km high-speed track and reach Madrid in roughly the same time. The difference is entirely in what you pay and what you get. Here is what each one actually costs.

Barcelona to Madrid by Train: What Each Operator Charges

Prices vary by travel date, time of day, and how far in advance you book. The figures below reflect genuine advance fares available when booking several weeks ahead.

Operator Cheapest fare (advance) Standard fare Luggage included Trains per day
Renfe AVE From €17 €40–€68+ 1 bag + 1 suitcase 20+
Iryo From €15 €30–€50+ 3 pieces free (inc. 2 suitcases) 16
Ouigo From €9 €20–€35 1 bag + 1 cabin bag (suitcases extra) 5

Renfe AVE: Spain's National Train from Barcelona

Renfe is Spain’s national train operator and runs the most departures on this route. AVE trains depart roughly every 30 minutes at peak times, so if your plans are flexible this is the easiest operator to work with. The cheapest advance Renfe train tickets start around €17 (Básico class), while standard class prices can reach €68 or more for a Confort seat with extra legroom. A useful protection for travellers: if your Renfe train arrives more than 15 minutes late, the operator automatically refunds 50% of your ticket. This policy was reinstated in January 2026 and neither Iryo nor Ouigo currently offer the same.

Worth knowing: Avlo, Renfe’s own low-cost sub-brand that once offered tickets from €7 on this route, was pulled from the Barcelona–Madrid corridor in September 2025. Standard AVE services absorbed those departures, so any fares you may have seen advertised under the Avlo name on this route no longer exist.

Iryo: The Best High-Speed Train to Madrid

Iryo launched in November 2022 as Spain’s first private high-speed operator and has become a genuine alternative to Renfe for traveling from Barcelona to Madrid. The cheapest Inicial class starts from around €15 and includes a trolley service. The top tier, Infinita, adds a full meal and wider 2+1 seating for around €50. Onboard you get free unlimited WiFi, power outlets at every seat, and a café-bar with Spanish tapas.

For tourists travelling with luggage, Iryo is the smarter pick. Every ticket includes three pieces free: a small cabin bag plus two full-sized suitcases (up to 85 × 55 × 35 cm each, combined 25 kg). Ouigo charges extra for suitcases. So if you are dragging bags, Iryo’s real cost is often lower than its headline price suggests.

Local tip

Every Iryo ticket includes a free Cercanías (suburban rail) connection at both ends of the journey. After arriving at Madrid Atocha, you can continue onto Madrid’s suburban rail network at no extra charge using the same QR code from your ticket. Valid for up to 4 hours after arrival. If your hotel is near a Cercanías stop, it saves you a metro fare in both directions. No other operator on this route offers this, and it is buried so deep in Iryo’s small print that most travellers never find out about it.

Ouigo Trains: The Cheapest Tickets from Barcelona

Ouigo is the French-owned budget operator that arrived in Spain in 2021 and changed what “cheap” meant on this route. Adult fares start at €9, children aged 4 to 13 pay €7, and children under 3 travel free. Book several weeks in advance and those prices are real, not teaser fares. Ouigo runs about five trains a day, which limits flexibility compared to Renfe or Iryo.

There is one thing about the Ouigo experience that has nothing to do with price: the trains are double-decker TGVs, the same high-speed rolling stock used in France. The upper deck sits noticeably higher than a standard train, and watching the Spanish meseta pass at 300 km/h from up there is something else entirely. For most tourists it will be the only time they ever ride a double-decker high-speed train.

The main trade-off is luggage. One small bag and one cabin bag are included per passenger. Any suitcase costs extra at booking. Factor that in before comparing Ouigo’s headline price with Iryo.

How to Find Cheap Train Tickets and Book Your Train

Booking early is the single biggest factor in getting cheap train tickets from Barcelona to Madrid. You can buy tickets for this journey up to 9 months ahead with Ouigo, and up to 90 days ahead with Renfe. The cheapest fares sell out first and prices vary depending on the time of day and how close to departure you book. For Renfe, booking 2 to 3 months ahead typically saves up to 70% compared to buying on the day. That advance window is where the cheap tickets actually live.

Other tips that make a real difference: check train times before you commit to a departure, as mid-morning and early afternoon trains are consistently cheaper than peak departures (roughly 06:00–10:00 and 15:00–19:00 on weekdays). Return tickets on Renfe cost less than two separate one-way fares. And when you book train tickets directly on each operator’s own website, you avoid the service fees charged by third-party platforms.

To compare all three operators at once and find the fastest train available for your dates, check current fares and book your train here. Prices update in real time and show availability across all services.

Barcelona Sants Station and Madrid Atocha: What to Know

All Barcelona–Madrid trains depart from Barcelona Sants (Metro: L3 and L5, Sants-Estació). Arrive at least 20 minutes before your scheduled departure. All major Spanish high-speed stations have airport-style X-ray baggage screening, and if you miss it you miss the train. There is no workaround and no fast lane.

In Madrid, most trains arrive at Puerta de Atocha (Metro line 1, Atocha Renfe station). Some Iryo services also stop at Chamartín (Metro lines 1 and 10). Check your ticket for the arrival station before planning your onward connection.

Train Travel vs Flight: The Journey from Barcelona to Madrid

A flight between Barcelona and Madrid takes about 1 hour 20 minutes in the air. The Spanish high-speed train takes 2 hours 30 minutes. But the full door-to-door picture is different. Getting to the airport, clearing security, boarding, and then travelling from Barajas to central Madrid adds at least 90 minutes at each end. For most people, travel by train is the best way to get from Barcelona to Madrid: the journey time is comparable to flying, the stations are central, and there are no baggage fees or airport queues. All three operators also run the Madrid to Barcelona train, so booking a return is just as easy.

Barcelona to Madrid Train: Frequently Asked Questions

How long does the train from Barcelona to Madrid take?

The fastest services take approximately 2 hours 30 minutes. Times can vary slightly depending on the operator and any scheduled track maintenance.

What is the cheapest train from Barcelona to Madrid?

Ouigo has the lowest headline fares, starting at €9 for adults when booked well in advance. Iryo’s Inicial class starts around €15 and includes free suitcase allowance, which often makes it cheaper in total for travellers with luggage.

How far in advance should I book?

As early as possible. Ouigo opens bookings up to 9 months ahead; Renfe sells up to 90 days before travel. The cheapest fares sell out weeks before the travel date. Last-minute prices can be four to five times the advance fare.

Which station in Barcelona do trains to Madrid leave from?

All Barcelona–Madrid high-speed trains depart from Barcelona Sants (Metro: L3 and L5, Sants-Estació). Arrive at least 20 minutes early for security screening.

Which station in Madrid do trains from Barcelona arrive at?

Most services arrive at Madrid Puerta de Atocha (Metro line 1, Atocha Renfe station). Some Iryo trains also stop at Madrid Chamartín (Metro lines 1 and 10). Check your ticket for the correct station.

Is the train better than flying from Barcelona to Madrid?

For most travellers, yes. The flight is shorter in the air, but door-to-door the total journey time is similar once you add airport transfers and check-in at both ends. The train departs and arrives at city-centre stations, with no baggage fees or separate security queues.

Does Iryo include a free transport connection in Madrid?

Yes. Iryo includes a free Cercanías (suburban rail) connection using the QR code on your ticket. Key Madrid Cercanías stops include Atocha, Sol, Chamartín, and Nuevos Ministerios. The connection is not valid on the metro, but if your accommodation is near a Cercanías line it removes the need to buy a separate metro ticket at all.