·

Madrid to Barcelona by train

Direct high-speed trains from Madrid Atocha to Barcelona Sants take 3h02 to 3h47, with Ouigo fares advertised from €9.

Temple of the Sacred Heart on Tibidabo hill in Barcelona at sunset
Typical duration
3h02 to 3h47
Changes
Direct
Origin
Madrid
Destination
Barcelona
Country
Spain

The fastest direct trains from Madrid to Barcelona take 3 hours 2 minutes, and most journeys take between 3h02 and 3h47. Renfe (AVE), iryo and Ouigo all run the route from Madrid Puerta de Atocha-Almudena Grandes to Barcelona Sants. Ouigo advertises fares from €9 on its Madrid to Barcelona page (checked 9 November 2026), though the lowest price we saw for same-day travel that day was €25. Since 5 February 2026, speed limits on the line have added about 25 minutes to the trip, so older guides that quote 2h30 are out of date.

The route covers about 504 km between the two city-centre stations. Ouigo runs 5 direct trains a day each way on its own timetable, and Renfe and iryo run more. Booking-site timetable data for October 2026 lists departures from 06:09 to 20:30 on a normal weekday. None requires a change.

Train is by far the most popular way to travel between Madrid and Barcelona. Even at 3 hours, you arrive in a central station, while a flight adds airport transfers, check-in and security at both ends. Choose the train unless your hotel is genuinely near one of the airports.

Key facts at a glance

  • Departure station (Madrid): Madrid Puerta de Atocha-Almudena Grandes, used by every Renfe, iryo and Ouigo departure in the timetable data we checked
  • Arrival station (Barcelona): Barcelona Sants, for all three operators
  • Fastest journey time: 3 hours 2 minutes (Renfe, iryo and Ouigo all run trains at this time)
  • Typical journey time: 3h02 to 3h47, with about 3h17 the usual figure on Renfe and iryo according to booking-site data
  • Operators: Renfe (AVE), iryo, Ouigo
  • Lowest advertised fare: Ouigo from €9 (Ouigo's own page, checked 9 November 2026)
  • Daytime only: the timetables we checked show no overnight service

Why the journey takes longer since February 2026

Before February 2026 the fastest trains took about 2 hours 30 to 37 minutes. After the Adamuz accident, Adif, the state infrastructure manager, imposed temporary speed limits of 160 km/h on sections of the Madrid to Barcelona line, and from 5 February 2026 Renfe, iryo and Ouigo lengthened their schedules by about 25 minutes. The limits are temporary, but the press reported in February 2026 that the longer journeys would last at least until the end of 2026, and Cadena SER reported in May 2026 that the sector expects them to continue beyond 2026. Plan on the times shown below and check the journey time for your specific train when you book.

Fares

OperatorClass or fare typeLowest fare seen
OuigoEssentialFrom €9 (advertised on ouigo.com); €25 for same-day travel on 9 November 2026
RenfeBásico, Elige Estándar, Elige Confort, PrémiumOmio sample fares: AVE €32 to €88 for travel on 10 November 2026
iryoInicial, Inicial Superior, Infinita, Infinita BistróOmio sample fares: about €36 to €39 for travel on 10 November 2026

Fares checked on 9 November 2026 for travel in November 2026. These are dated observations, not promises. The €9 headline is Ouigo's advertised starting price and is not available on every date, so treat the booking page as the real price for your day. The Renfe and iryo figures are Omio sample fares for travel on 10 November 2026, taken from a large booking site. Look up your date on renfe.com and iryo.eu and compare them with Ouigo before you decide.

Timetable

Ouigo publishes its own timetable, so its times below come from the operator. Renfe and iryo times and train counts below come from booking-site timetable data (BlaBlaCar, October 2026), not from a Renfe or iryo page, so treat them as a guide and confirm your train on renfe.com or iryo.eu. Renfe's own route page gives one figure: the first train from Madrid Puerta de Atocha-Almudena Grandes at 06:20.

Ouigo (operator timetable)

From MadridFrom Barcelona
Direct trains per day55
Departures06:22, 09:31, 13:42, 16:22, 20:1007:35, 10:40, 13:50, 17:40, 20:20
Journey time3h02 (non-stop) to 3h273h02 (non-stop) to 3h30

Renfe and iryo (booking-site timetable data, October 2026)

Monday to Friday, from MadridRenfeiryo
Direct trains2514
First departure06:1606:09
Last departure20:3019:29
Fastest journey3h023h02
Slowest journey3h473h31

The same data lists fewer trains at weekends: 14 on Saturdays and 20 on Sundays for Renfe, and 13 on both days for iryo. Check the first and last departure for your own date, especially from Barcelona. Some Ouigo trains are non-stop and some stop at Zaragoza-Delicias or Camp de Tarragona, which is why Ouigo times vary between 3h02 and 3h30.

Train types and services

On this corridor the three operators are different products, not interchangeable. Your choice changes your fare, how long the journey takes, what you can carry, and how easily you can change plans. Pick Renfe or iryo for more departures and more flexibility, and Ouigo if you book early, travel light and want the lowest advertised price.

Renfe AVE

AVE is Renfe's high-speed service, and the booking-site data above lists more AVE departures than iryo or Ouigo run. Renfe's own route page gives 06:20 for the first train from Madrid Puerta de Atocha-Almudena Grandes. The booking-site data shows 06:16 for the first Monday to Friday departure, so use the time shown when you book.

Renfe sells four ticket types on AVE:

  • Básico: the lowest price. A change costs €10 plus any fare difference, and cancellation is not included.
  • Elige Estándar: your first change is free (you pay any fare difference), and cancelling refunds 70%.
  • Elige Confort: the same change and refund terms as Elige Estándar, with an XL Confort seat and a meal served at your seat.
  • Prémium: unlimited free changes, a refund of up to 100%, a meal at your seat and access to the Salas Club lounge.

Renfe also sells a Pack Superflex add-on for €10 on Elige tickets, which bundles unlimited changes, the Puente AVE option and a full refund. Add-ons like this can only be bought with the ticket, so decide at checkout. All Renfe tickets can be cancelled free of charge within two hours of purchase.

Your Renfe ticket for AVE includes one free Cercanías commuter-train journey (Cercanías Combinado), which is useful for getting to the station or to your hotel instead of paying for a separate local ticket.

AVE suits travellers who want the most departures to choose from, the option to change or cancel, or who are using an Interrail pass. Choose Ouigo instead only if your dates are fixed and your luggage is light.

Ouigo

Ouigo is a French-owned low-cost operator running a separate commercial service on the Madrid to Barcelona route. It is not part of Renfe. Ouigo's page quotes fares from €9 per adult and a flat €7 fare for children aged 4 to 13. Babies travel free on a parent's lap.

Ouigo's own timetable lists 5 trains a day from Madrid, at 06:22, 09:31, 13:42, 16:22 and 20:10, and 5 from Barcelona, at 07:35, 10:40, 13:50, 17:40 and 20:20. Two of the Madrid departures (13:42 and 16:22) are non-stop and take 3h02. The others take between 3h18 and 3h27 and stop at Zaragoza-Delicias, Camp de Tarragona, or both. With only 5 trains, the next Ouigo may be hours away if you miss yours, so build in a margin. Ouigo's page also encourages booking early, since the lowest fares go first.

Every Ouigo ticket includes one small bag (maximum 36x27x15 cm) and one cabin bag (maximum 55x35x25 cm). An extra piece costs €5 on an Essential ticket. Book it before you travel, because Ouigo lets you add it from your reservation page up to 30 minutes before departure.

Ouigo sells three versions of the ticket:

  • Essential: the standard product and the lowest price. Non-refundable. Seat choice costs from €3, an XL seat from €7, and Ouigo's entertainment platform OUIFUN costs €3.
  • Plus: includes one extra piece of luggage, standard seat choice and OUIFUN, with XL seats from €4.
  • Full: includes two extra pieces, seat choice, OUIFUN and a refundable ticket.

On any version you can add Flex for €7, which allows date and time changes up to 30 minutes before departure (you pay any fare difference). Pets of up to 10 kg are allowed for €10 each, and you can bring up to two in a closed, rigid carrier of no more than 60x35x35 cm.

Ouigo is worth it for budget travellers and families who book ahead, travel light, and can accept a train that is sometimes slower than Renfe's. The flat child fare and free under-4s make it good value for a family of four.

iryo

Iryo is a private high-speed operator. Booking-site timetable data for October 2026 lists 14 direct weekday trains from Madrid to Barcelona, between 06:09 and 19:29, with the fastest at 3h02 and a usual journey of around 3h17. Iryo trains leave from Madrid Puerta de Atocha and arrive at Barcelona Sants.

Iryo sells four fares:

  • Inicial: the entry fare, described by iryo as comfort at the best price.
  • Inicial Superior: adds free same-day changes of departure time.
  • Infinita: XL seats and extra space.
  • Infinita Bistró: the top fare, with a meal served at your seat.

Omio sample fares for travel on 10 November 2026 were about €36 to €39 for iryo and €32 to €88 for Renfe AVE, so iryo does not always undercut Renfe. Check iryo.eu for your date. If you hold a pass, an iryo reservation costs €10 for Inicial Superior or €13 for Infinita, and it is mandatory.

Iryo suits travellers who want a different onboard product from AVE at a journey time that matches Renfe's, or pass holders who want to compare an iryo reservation with an AVE one.

How to buy tickets

Booking channels

Book directly with the operator where possible. All three have English-language sites and apps:

  • Renfe: renfe.com or the Renfe app. Renfe states that its website sells at the lowest price without commissions or booking fees.
  • Ouigo: ouigo.com or the Ouigo app
  • iryo: iryo.eu or the iryo app
  • Comparison sites: Omio, Trainline and BlaBlaCar list most services on this route and are useful for comparing operators in one search. BlaBlaCar says it sells Renfe and iryo tickets at the same price as the operator with no extra fee, but check the total on any other site before you pay.

When to book

On all three operators the cheapest advance fares sell out first, and the same seat costs more closer to departure. Look at the calendar on renfe.com to see how far ahead your date is on sale. If your plans might change, pay for flexibility: an Elige or Prémium ticket on Renfe, Inicial Superior on iryo, or Flex on Ouigo. Avoid the cheapest fare unless you are certain of your travel date.

Discounts

Renfe lists discounts for children, young people, seniors, large families and others on its discounts page. Ouigo lists special fares for large families, with a flat €7 child fare. Check the operator's page for eligibility and the document you must carry.

Interrail passes

Do not board an AVE or iryo train on this route with only your pass. A seat reservation is compulsory on high-speed services in Spain, separate from the pass. The pass covers the travel day. The reservation gives you a specific seat on a specific train, and without it you do not have a valid ticket. Reservation places for pass holders can sell out before the train itself is full, so book as soon as you know your date.

Two things catch pass holders out on this route. First, Ouigo does not appear on the list of covered trains on Interrail's participating-railways page, so Ouigo passengers need a normal point-to-point ticket. Second, the reservation fee is fixed. Booking early does not reduce it, it only protects availability.

Seat reservation fees for pass holders on Renfe AVE, from the Interrail reservation-fee page:

  • Elige (2nd class): €10 per journey
  • Elige Confort (1st class): €13 per journey
  • Prémium (1st class, meal included): €23.50 per journey

On iryo:

  • Inicial Superior (2nd class): €10 per journey
  • Infinita (1st class): €13 per journey

When an AVE Elige and an iryo Inicial Superior both suit your timing, the reservation fee is the same at €10, so let the timetable and onboard comfort decide.

Station and trip guide

Madrid Puerta de Atocha-Almudena Grandes

Every Renfe, iryo and Ouigo departure in the timetable data we checked leaves from Madrid Puerta de Atocha-Almudena Grandes. Madrid also has Madrid Chamartín-Clara Campoamor, at the north of the city. If a booking page or an older guide mentions it, open the journey details and confirm the station before you pay. Booking pages often show only "Madrid".

Atocha has a Metro station (Line 1) and Cercanías commuter platforms, and a Renfe ticket for AVE includes one free Cercanías trip. Ouigo's page notes there is a Metro stop within the station, bus lines serve it, and there is a car park. Prémium ticket holders can use the Salas Club lounge before departure; check Renfe's conditions for eligibility.

The journey

OperatorClass optionsFood and drinkEntertainment
Renfe AVEBásico, Elige Estándar, Elige Confort, PrémiumCafe-bar on all AVE trains; meal at your seat on Elige Confort and PrémiumNone listed
iryoInicial, Inicial Superior, Infinita, Infinita BistróMeal at your seat on Infinita BistróNone listed
OuigoEssential, Plus, FullNot listed on the Ouigo pageOUIFUN (films, series, games on your own device)

Some Ouigo and Renfe trains stop at Zaragoza-Delicias or Camp de Tarragona on the way. The timetable shows which trains are non-stop, and the journey time tells you most of what you need to know. No overnight train runs between Madrid and Barcelona in the timetables we checked.

Barcelona Sants

All three operators arrive at Barcelona Sants, which Renfe describes as a central station with Metro, Rodalies commuter-train, bus and taxi connections. Sants Estació Metro station sits on Line L3 (green) and Line L5 (blue). Renfe's own page puts Plaça d'Espanya, CaixaForum and Mercat de Sants about 10 minutes away on foot, and Avinguda Diagonal and Passeig de Gràcia about 30 minutes on foot, so with luggage use the Metro or a taxi for the city centre. Sants has a bus station next to the train station. Your Renfe ticket's free Cercanías trip also covers Rodalies services in Barcelona.

Travel preparation

Luggage rules

Each operator sets its own limits. If you are travelling with a large suitcase, check before you book.

OperatorIncludedExtra luggage
OuigoOne small bag (36x27x15 cm) and one cabin bag (55x35x25 cm)€5 per extra piece on Essential; one piece included on Plus, two on Full
Renfe AVESee Renfe's luggage policy pageCheck renfe.com for your ticket type
iryoSee iryo.eu for your fareCheck iryo.eu

Check each operator's luggage rules before you book. If you are taking a big bag and weighing Ouigo against Renfe, add the €5 extra piece to the Ouigo fare before comparing.

Accessible travel

If you have reduced mobility, request assistance in advance rather than relying on help at the station on the day. Both Renfe and iryo let you request assistance when you book, and iryo's booking form includes a Plaza H option for travellers who stay in their own wheelchair. Spaces are limited, so ask well ahead.

Other trains on the line

Renfe withdrew its budget brand Avlo from Madrid to Barcelona on 8 September 2025 and replaced it with AVE, after problems with the Talgo trains that ran it. Press reports in October 2025 quoted Renfe's president saying Avlo would return in months, with no date given. On 9 November 2026 Renfe's page for this route lists only AVE, so do not plan around Avlo. Some booking sites may still list Avlo fares, so confirm any Avlo ticket on renfe.com first.

Where to book

Book with Omio

Find times and prices for Madrid → Barcelona.

Check times & prices

Other places to book

These links open the provider’s website. Search for your journey there.

Train service

Find places to stay in Barcelona

Bright bedroom with white bedding and a breakfast tray on the bedBrowse stays in BarcelonaHotels and apartments via Booking.com

Frequently asked questions

How long does the Madrid to Barcelona train take?

The fastest direct trains take 3 hours 2 minutes, and most journeys take between 3h02 and 3h47. Booking-site data gives about 3h17 as the usual figure on Renfe and iryo. Ouigo's non-stop trains take 3h02 and its trains with a stop at Zaragoza-Delicias or Camp de Tarragona take up to 3h30. Since 5 February 2026, temporary speed limits on the line have added about 25 minutes, and the press has reported that the longer journeys will last at least until the end of 2026. Check the journey time for your specific train when you book.

How much does a train ticket from Madrid to Barcelona cost?

Ouigo advertises fares from €9 per adult on its Madrid to Barcelona page, checked on 9 November 2026, and the lowest price we saw for travel that day was €25. Omio sample fares for travel on 10 November 2026 were €32 to €88 for Renfe AVE and about €36 to €39 for iryo. Fares depend on the date, the class and how far ahead you book, and the cheapest advance fares sell out first. Compare your date on renfe.com, iryo.eu and ouigo.com.

Which train companies run between Madrid and Barcelona?

Three operators run direct trains. Renfe runs AVE, and booking-site timetable data for October 2026 lists about 25 weekday departures from Madrid. Iryo, a private operator, is listed with about 14. Ouigo, a French-owned low-cost operator, runs 5 each way on its own timetable, with fares advertised from €9.

What are the first and last trains from Madrid to Barcelona?

Ouigo's own timetable lists its first train from Madrid at 06:22 and its last at 20:10, and from Barcelona at 07:35 and 20:20. Renfe's route page gives 06:20 for its first train from Madrid. Booking-site timetable data for October 2026 lists weekday departures from Madrid starting at 06:09 (iryo) and 06:16 (Renfe), with last departures at 19:29 (iryo) and 20:30 (Renfe). Weekend timetables have fewer trains, so check your date.

Which stations do the trains use in Madrid and Barcelona?

Every Renfe, iryo and Ouigo departure in the timetable data we checked leaves from Madrid Puerta de Atocha-Almudena Grandes. In Barcelona, all three operators arrive at Barcelona Sants. Madrid also has Madrid Chamartín-Clara Campoamor, so if a booking page shows only "Madrid", open the journey details and confirm Atocha before you pay. Atocha has a Metro station on Line 1 and Cercanías commuter platforms, and Sants Estació Metro station is on Lines L3 and L5.

Can I use an Interrail pass on this route?

Yes on Renfe AVE and iryo, with a mandatory seat reservation: the pass alone does not get you on board. Pass-holder reservation fees on AVE are €10 for Elige (2nd class), €13 for Elige Confort (1st class) and €23.50 for Prémium (1st class with meal). On iryo they are €10 for Inicial Superior and €13 for Infinita. Ouigo is not on Interrail's list of covered trains, so you need a normal ticket for it. Book your reservation as soon as you know your date.

Are there family or children's fares on Madrid to Barcelona trains?

On Ouigo, children aged 4 to 13 pay a flat €7 fare and babies travel free on a parent's lap. Ouigo also lists special fares for large families. Renfe lists discounts for children, young people, seniors and large families on its discounts page, so check renfe.com for ages and eligibility.

Can I change or cancel a Madrid to Barcelona train ticket?

It depends on the ticket. On Renfe, Básico allows a change for €10 plus any fare difference but no cancellation, Elige Estándar and Elige Confort include one free change and refund 70% on cancellation, and Prémium allows unlimited changes and a refund of up to 100%. On Ouigo, Essential and Plus tickets are not refundable, Flex adds changes up to 30 minutes before departure for €7, and Full includes a refundable ticket. Renfe tickets can be cancelled free within two hours of purchase.

What accessibility help is available on these trains?

Request assistance in advance, through Renfe or iryo when you book, rather than relying on help at the station on the day. Iryo's booking form includes a Plaza H option for travellers who stay in their own wheelchair. Spaces are limited, so ask well ahead of travel.

More routes