Skip to content
Blog
Comparisons

Madrid to Barcelona Train vs Flight: Which Is Better?

Madrid to Barcelona: the high-speed train takes about 3 hours center to center and usually beats flying door to door. AVE, Ouigo and iryo vs flights compared.

By Guidez Editorial TeamPublished 9 min readPrices and links checked
A white Renfe AVE train and a blue, red and white Ouigo double-deck train side by side at the platforms of Madrid Puerta de Atocha station
Photo: Phil Richards / Wikimedia Commons (CC BY-SA 2.0), cropped

Quick answer

  • Take the train for Madrid to Barcelona. High-speed trains run from Madrid Puerta de Atocha to Barcelona Sants, both central stations, in about 3 to 3.5 hours, and our door-to-door estimate is about 4 hours, the same as or less than flying once you add airport transfers and security.
  • Three companies compete on the line: Renfe's AVE (20 or more trains a day), Ouigo (from €9, about $10, with about five trains a day) and iryo. Compare all three on one search, because fares change by the day and the cheapest operator varies.
  • Journeys are about 25 minutes slower than in 2025: after the January 2026 Adamuz crash, Spain's rail infrastructure manager and the three operators agreed to speed limits on parts of the line until at least the end of 2026, so the fastest trains now take about 3 hours.
  • Fly instead if you're connecting straight from a long-haul flight at Madrid Barajas. Iberia and Air Europa fly the route in about 1 hour 15 to 1 hour 25 minutes.

Guidez may earn a commission when you book through links on this page, at no extra cost to you. How we make money.

In this guide
  1. Madrid to Barcelona train vs flight at a glance
  2. Door to door: is the train really faster than flying?
  3. AVE vs Ouigo vs iryo: which train should you book?
  4. How much does the Madrid to Barcelona train cost?
  5. Madrid and Barcelona stations: where trains leave and arrive
  6. When is flying from Madrid to Barcelona better?
  7. Tips for the trip

For Madrid to Barcelona, take the train: high-speed trains run from Madrid Puerta de Atocha to Barcelona Sants in about 3 to 3.5 hours, center to center, and get you door to door in about 4 hours by our estimate, as fast as flying. Fares start at €9 (about $10) on Ouigo. Compare AVE, Ouigo and iryo trains from Madrid to Barcelona on Omio for your date.

That ties or beats a 1-hour-20-minute flight once you add the airport runs and security. Three companies compete on the line, so the cheapest one changes from day to day, and a single search shows every operator’s times and prices.

Madrid to Barcelona train vs flight at a glance

Prices are as of October 2026, at €1 = $1.11. Door-to-door times are our own estimate from central Madrid (Sol) to central Barcelona (Passeig de Gràcia), explained in the next section.

High-speed trainFlight
Time in transitAbout 3 to 3.5 hoursAbout 1 hour 15 to 1 hour 25 minutes in the air
Door to door, our estimateAbout 3 hours 50 minutes to 4 hours 20 minutesAbout 3 hours 50 minutes to 4 hours 40 minutes
From and toMadrid Puerta de Atocha to Barcelona Sants, both centralMadrid Barajas (T4 for Iberia) to Barcelona El Prat (T1 for Iberia)
Lowest fares€9 (about $10) on Ouigo; about €17 (about $19) on AVEVaries by airline and date
Arrive before departureAbout 30 minutes (Ouigo’s minimum)About 1 to 1.5 hours for a domestic flight
LuggageSuitcases free on AVE; paid extra on Ouigo and iryo’s cheapest fareDepends on the fare; basic fares often exclude a checked bag
Phone and laptop useWhole trip; Wi-Fi on OuigoLimited
Best forAlmost everyoneSame-day connections from long-haul flights

Our rule: take the train unless you’re landing at Madrid Barajas from the US and flying straight on to Barcelona. In that case a flight on the same ticket keeps you airside and protected if your first flight is late.

Door to door: is the train really faster than flying?

Yes, or at worst it’s a tie, even with the line running slower in 2026. The math, from Puerta del Sol in Madrid to Passeig de Gràcia in Barcelona:

By train (about 3 hours 50 minutes to 4 hours 20 minutes):

  1. Sol to Atocha station: about 10 minutes by Cercanías commuter train or metro.
  2. Arrive about 30 minutes early for the X-ray bag check and ticket gates. Ouigo sets 30 minutes as its minimum.
  3. The train: 3 hours 2 minutes to 3 hours 27 minutes on the Ouigo timetable we checked, which is typical for the route.
  4. Sants to Passeig de Gràcia: a few minutes by Rodalies commuter train, or about 15 minutes on metro line L3.

By plane (about 3 hours 50 minutes to 4 hours 40 minutes):

  1. Central Madrid to Barajas T4: the Airport Express bus from Atocha takes about 30 minutes to Terminal 1 and about 10 minutes more to Terminal 4, according to Madrid’s tourism board, and costs €5 (about $6). A taxi is a flat €33 (about $37) from anywhere inside the M-30 ring road, according to Aena’s Madrid-Barajas taxi page.
  2. Arrive about an hour before a domestic flight, more with a checked bag.
  3. The flight: about 1 hour 15 to 1 hour 25 minutes gate to gate on the Iberia shuttle.
  4. Off the plane and out of El Prat: allow 15 to 20 minutes.
  5. Aerobus to Plaça de Catalunya: about 35 minutes for €7.75 (about $9), and you can book the Aerobus ticket on GetYourGuide before you fly. Our Barcelona airport to city center guide compares the bus, train, metro and taxi.

The flight only wins on paper if you live by the airport, travel with hand luggage only and everything runs on time. The train also gives you three hours of usable time, with room to work or eat and a café car on board.

Note

Why trains are slower in 2026: after the Adamuz high-speed crash in January 2026, Adif, which manages Spain’s tracks, imposed 160 km/h (100 mph) limits on several sections of the Madrid-Barcelona line, where trains normally reach 300 km/h. In February it agreed with Renfe, iryo and Ouigo to keep the limits until at least the end of 2026, adding about 25 minutes, so the fastest trip went from 2 hours 37 minutes to at least 3 hours, Ara reported. Timetables already include the extra time.

AVE vs Ouigo vs iryo: which train should you book?

Three companies run high-speed trains between Madrid and Barcelona, all on the same tracks and between the same two stations. Renfe’s low-cost Avlo brand also used to run here, but Renfe pulled it from the route in September 2025 after finding a crack in the frame of one of its trains, The Local reported, and Renfe has said it will return.

Renfe AVEOuigoiryo
Trains a day20 or moreAbout 5Several
Fares fromAbout €17 (about $19) in standard€9 (about $10); low flat fares for childrenVaries by date
ClassesStandard, Comfort, Premium fare with meal and loungeOne class, with optional XL seatsInicial, Singular, Infinita, Infinita Bistró
SuitcasesIncluded at no extra costSmall bag and cabin bag included; larger case extraSmall bags only in Inicial; more on higher fares
FoodCafé car; meal in PremiumCafé carTrolley; meals in Infinita classes
Best forMost departures, flexible fares, travelers with big bagsThe lowest fares with light luggageComfort upgrades at a good price

The figures come from Ouigo’s Madrid-Barcelona page and The Man in Seat 61’s route guide. Ouigo’s schedule we checked had five departures from Madrid, two of them nonstop; others stop at Zaragoza Delicias and Camp de Tarragona.

Which to book:

  • Best overall: Renfe’s AVE. It has the most departures, so you can travel when you want, and it doesn’t charge extra for suitcases.
  • Cheapest: Ouigo, if you travel light. Its double-deck trains have Wi-Fi and a café car, and the Ouigo Flex option lets you change your time or date up to 30 minutes before departure. Budget about €5 (about $6) for each extra suitcase or backpack, per Seat 61.
  • Best for comfort: iryo’s Infinita fares, which add a generous luggage allowance and more flexible tickets, per Seat 61; Infinita Bistró also includes a light meal and drinks.

Because prices change daily and the cheapest operator varies, the best way to book is to search all three operators on Omio, sort by price or departure time, and book the train that fits, with your ticket on your phone.

A red iryo high-speed train running along the tracks outside Madrid under a blue sky
Photo: Javier Perez Montes / Wikimedia Commons (CC BY-SA 4.0)

How much does the Madrid to Barcelona train cost?

From €9 (about $10) on Ouigo and about €17 (about $19) on the AVE, but those are the lowest prices, on quieter trains booked early. What people actually pay is higher: Spain’s competition authority, the CNMC, reported an average fare of €63 (about $70) between Madrid and Barcelona in the second quarter of 2025, a record 3.9 million passengers that quarter and a 15% price rise over a year, according to its rail statistics release. Prices climbed further after the Avlo trains were withdrawn, when the average fare in the month after September 8, 2025 rose 68% to €130.46, Cadena Ser found, as reported by The Local.

How to pay less:

  • Book early. Fares are dynamic: as a train fills up, the price goes up.
  • Be flexible on the time. Prices can differ a lot between trains on the same day, so look at the whole day before you pick.
  • Compare operators on the same search. On one train the cheapest seat is a Ouigo, on the next it’s an AVE.
  • Pack light for Ouigo. The €9 fare covers a small bag and a cabin bag; a big suitcase adds to it.

When you’ve picked your day, check live fares for Madrid to Barcelona on Omio: the earlier you look, the more of the cheap seats are still there.

Madrid and Barcelona stations: where trains leave and arrive

Madrid Puerta de Atocha, officially Madrid Puerta de Atocha - Almudena Grandes, is where AVE, Ouigo and iryo trains to Barcelona leave from. It’s at the south end of the Paseo del Prado, a short walk from the Prado and the Reina Sofía, and one Cercanías stop from Sol. Madrid’s other big station, Chamartín, mainly serves other routes, so check your ticket.

Barcelona Sants is where all three arrive. It’s west of the old town, with metro lines L3 and L5 and Rodalies commuter trains into the center. If you’re staying in the Eixample, the commuter train to Passeig de Gràcia is the quickest way in.

A few things worth knowing:

  • Security check. Bags go through a quick X-ray scan and tickets are checked before you reach the platforms.
  • Don’t cut it fine. Ouigo asks you to be at the station at least 30 minutes ahead, and the bag check can have a line at busy times on any operator.
  • Free commuter ride with Renfe. AVE tickets carry a “Combinado Cercanías” code that you can swap at a commuter-train ticket machine for a free ride to or from the station on the day of travel.
The side of a Ouigo double-deck train at a Barcelona Sants platform, with a car display reading stops at Zaragoza Delicias and Madrid Atocha
Photo: Robot8A / Wikimedia Commons (CC BY-SA 4.0)

When is flying from Madrid to Barcelona better?

Flying makes sense in two cases:

  • You’re connecting from a long-haul flight. If you land at Madrid Barajas from the US and continue to Barcelona the same day, book the onward flight on the same ticket. Iberia’s shuttle leaves from Terminal 4, where its long-haul flights arrive, and a missed connection is the airline’s problem. Taking the train means a trip into the city to Atocha first.
  • You’re flying home from Barcelona anyway and find a cheap open-jaw ticket that makes the domestic flight part of it.

Iberia and Air Europa fly between Madrid and Barcelona. Vueling ended its own three daily flights on the route in March 2025 and now sells it through codeshares with Iberia, Ara reported.

Driving is the slowest option: about 385 miles (620 km), roughly six hours on the A-2 motorway without stops. It only pays if you want to stop in Zaragoza or the Aragón countryside along the way, or you’re continuing to the Costa Brava. If that’s your plan, compare Hertz rental cars and read our car rental tips for Europe first.

Tips for the trip

  • Stay connected. Your train ticket and maps live on your phone, and US carriers’ day passes, such as Verizon’s TravelPass at $12 a day, add up over a week. A Spain eSIM from Airalo works in both cities and on the train; use code GUIDEZ15 at checkout if you’re new to Airalo, or GUIDEZ10 if you’ve bought from them before.
  • Check for disruptions. 2026 has brought breakdowns and delays on Spain’s railways. Check the operator’s app the day before, and keep your booking confirmation handy for changes.
  • Plan your first day in Barcelona. Gaudí’s houses are a short ride from Sants: our Casa Batlló vs Casa Milà comparison helps you choose, and the Casa Batlló ticket with audio guide is easy to fit into an arrival afternoon. For the Sagrada Família, book a timed slot or the Sagrada Família guided tour with skip-the-line access well ahead.

Ready to go? Book your Madrid to Barcelona train on Omio, then use our 3-day Barcelona itinerary and where to stay in Barcelona guide for the rest of the trip, and our Montserrat day trip guide if you want a day in the mountains outside Barcelona. If Spain is one stop on a longer rail trip, our cheap train tickets in Europe guide has more fare tricks. With spare days in Madrid before the train, our roundup of the best day trips from Madrid and our Toledo day trip guide cover the easiest escapes from the capital. And for where to eat and shop before you leave Madrid, open Traveliri’s Madrid map on Guidez, which is in Hebrew.

Frequently asked questions

Is it better to take the train or fly from Madrid to Barcelona?

For most travelers, the train. It runs city center to city center in about 3 to 3.5 hours with a short security check, while a flight of about 1 hour 20 minutes needs airport transfers at both ends and earlier arrival. Fly only if you're connecting from another flight at Madrid Barajas.

How long is the train from Madrid to Barcelona?

About 3 hours on the fastest nonstop trains and up to about 3.5 hours on trains that stop at Zaragoza and Camp de Tarragona. Schedules have been about 25 minutes slower than in 2025 because of speed limits on parts of the line that are planned to last until at least the end of 2026.

How much is the train from Madrid to Barcelona?

Ouigo advertises fares from €9 (about $10) and Renfe's AVE from about €17 (about $19), but those are the lowest prices on quiet trains booked early. Spain's competition authority reported an average fare of €63 (about $70) on the route in the second quarter of 2025.

Which station does the train to Barcelona leave from in Madrid?

Madrid Puerta de Atocha, officially Madrid Puerta de Atocha - Almudena Grandes, for AVE, Ouigo and iryo trains to Barcelona. Trains arrive at Barcelona Sants. Check your ticket, because some other routes use Madrid Chamartín.

Do I need to book the Madrid to Barcelona train in advance?

Yes, if price matters. Fares rise as trains fill up, and the cheapest Ouigo and AVE fares go first. Book a few weeks ahead for the best choice, and earlier for holiday weekends and summer.

Can I take a suitcase on Spanish high-speed trains?

Yes. Renfe's AVE has no extra charge for normal suitcases. Ouigo includes a small bag and a cabin-size bag and charges extra for a larger suitcase, and iryo's cheapest Inicial fare is limited to small bags, so add luggage or choose a higher fare if you're traveling with a big case.

Guidez

See it on a Guidez map

Places picked by creators who went there, ready to open in Google Maps.

Explore all maps

Sources we checked

Prices, hours and rules were checked against these on . They change, so confirm before you book.

  1. Ouigo España - Madrid to Barcelona train
  2. Ara - Madrid-Barcelona speed limits extended until the end of 2026 (February 5, 2026)
  3. CNMC - rail passenger statistics, second quarter 2025
  4. The Local - Avlo cuts send Madrid-Barcelona prices up (October 6, 2025)
  5. Aena - Madrid-Barajas taxi fares
  6. Aena - Madrid-Barajas buses (Airport Express)
  7. esMadrid - Airport Express shuttle
  8. Ara - Vueling ends its Barcelona-Madrid air bridge flights (February 12, 2025)
  9. The Man in Seat 61 - Barcelona to Madrid by train