Renfe Avlo

Prices from hundreds of train and coach companies

Join millions of people who use us every day

Travel to thousands of destinations in 45 countries

What customers say about Trainline

Read real reviews from real users

Travelling by train from Madrid to Barcelona

Planning to travel from Madrid to Barcelona by train? You've come to the right place!

The train from Madrid to Barcelona usually takes 2h 53m, but can take just 2h 30m on the fastest services. You won't need to worry about making any changes along the way, as direct services are available on this route. All trains depart from Madrid Atocha station and arrive into Barcelona Sants station. There are now 3 high-speed trains to choose from on this route, Renfe's AVE and Avlo trains and OUIGO trains:

  • Renfe's AVE trains offer Standard and First Class comfortable seating and free WiFi
  • Renfe's newest train type Avlo is Standard Class only, but also includes free Wifi and power sockets
  • OUIGO trains are double-decker and Standard Class only, with an onboard bar car

New iryo trains from Madrid to Barcelona: book your tickets now with Trainline

The new high-speed iryo trains are now operating on the route from Madrid to Barcelona. They travel between Madrid Atocha and Barcelona Sants stations and stop in Zaragoza along the way.

Their latest-generation Frecciarossa 1000 trains can reach speeds of up to 223 mph (360 km/h), so you can travel with iryo from Madrid to Barcelona in just 2 hours and 30 minutes.

And that’s not all! With iryo, you’ll get to travel in the most comfortable way thanks to their super-quiet trains, latest-generation 5G WiFi and onboard restaurant service. iryo trains are also good for the environment as 98% of the parts of the trains are 100% recyclable, making this trip sustainable as well!

Travelling First Class from Madrid to Barcelona

If you want to travel in style, why not choose a First Class train ticket from Madrid to Barcelona? Renfe AVE trains have a Confort class that offers wider reclining seats, more privacy and access to Renfe's First Class lounge at the station. Just look for Confort tickets in our Journey Planner. Want to find out more about First Class train travel in Europe? Check out our guide to First Class v Second Class on European trains.

Whether you’re heading to Barcelona for a wander along Las Ramblas or to admire La Sagrada Familia, travelling by train over flying means your journey starts and ends in both city centres, cutting out the hassle of airport transfers and waiting around before your flight.

So what are you waiting for? Search for cheap train tickets from Madrid to Barcelona in our Journey Planner today, or keep reading for FAQs and money-saving tips.

Madrid to Barcelona by train

It takes an average of 3h 8m to travel from Madrid to Barcelona by train, over a distance of around 314 miles (506 km). There are normally 12 trains per day travelling from Madrid to Barcelona and tickets for this journey start from €5.70 when you book in advance.
Journey timeFrom 2h 30m
PriceFrom €5.70
Distance314 miles (506 km)
Frequency12 trains per day
First train07:30
Last train20:40
Departure stationMadrid
Arrival stationBarcelona
ChangesDirect trains available
Train and bus operatorsOUIGO, Renfe, ALSA, iryo

Madrid to Barcelona train times

Check out the next trains departing from Madrid to Barcelona for Tuesday 20th December 2022. For the full train timetable/schedule, or to search for a later time or date, click here.
06:30 09:42 3h 12m, direct
07:30 10:15 2h 45m, direct
08:30 11:37 3h 7m, direct
08:35 13:20 4h 45m, 1 change
10:30 13:42 3h 12m, direct
12:25 15:22 2h 57m, direct
14:30 17:42 3h 12m, direct
15:30 18:15 2h 45m, direct
16:30 19:42 3h 12m, direct
17:30 20:20 2h 50m, direct

AVE, OUIGO, iryo and Renfe trains from Madrid to Barcelona

You can travel from Madrid to Barcelona on AVE, OUIGO, iryo and Renfe trains. When you search for times and tickets, we might also show you some other options with multiple connections or operators if they’re available.

AVE is Renfe's flagship high-speed service, with trains capable of reaching up to 193 mph (310 km/h). It’s one of the fastest trains in Europe and connects the main cities of Spain. Most AVE trains offer two comfort classes – Estándard (Standard Class) and Confort (First Class equivalent, with 1-1 configuration, ultra-wide seats, gourmet food and drink and lounge access). All AVE trains have air conditioning, power sockets, free WiFi and a buffet carriage serving a selection of food and drinks. There are three fares for AVE services: the cheapest but least flexible Básico fare, the Elige fare (slightly pricier but more flexible), and the Premium fare for seats in Confort Class.

PhotoCramos, under licence CC BY-SA 4.0

OUIGO is the low-cost brand of French rail company SNCF, who operate trains in France and Spain. In France, all seats on OUIGO are Second Class and tickets can only be purchased online. You can also pay for additional extras, such as reserving a seat in the ‘quiet area’, at-seat power sockets and extra luggage. OUIGO has been operating in Spain since May 2021, and their trains include an onboard bar and a premium class of service called OUIGO Plus.

Operating since the end of 2022, iryo is a new high-speed train company in Spain. It’s a consortium between the Spanish airline Air Norstrum and the train company Trenitalia, one of the greatest leaders in European rail transport. The first private Spanish high-speed company to operate, iryo runs high-speed services on the Madrid – Zaragoza – Barcelona route and connects Madrid – Cuenca – Valencia/Alicante and Madrid – Cordoba – Seville/Malaga. They are doing this all with a fleet of ETR1000 model trains that offer the highest level of comfort in Spain, with a combination of advanced propulsion and highest quality onboard services, including WiFi connection and catering service. 98% of the parts of the trains are 100% recyclable, making this trip sustainable as well!

Renfe is the national train operator in Spain. It operates trains on the longest high-speed railway network in Europe, and the second-longest in the world. The country's major cities are linked up by the high-speed AVE and Avlo trains, while other long-distance routes are served by Altaria, Talgo, Alvia and Euromed trains. Renfe also operates cross-border services into neighbouring Portugal and France. Depending on which service you are travelling on, you'll usually find two classes on Renfe trains - Estándard (Standard Class) and Confort (First Class). Fare types range from the cheapest (but least flexible) Básico fare, to the more flexible Elige fares, to the Premium fare for seats in Confort carriages.

Cheap train tickets from Madrid to Barcelona

The price of train tickets from Madrid to Barcelona starts at €5.70 one-way for a Standard Class ticket if you book in advance. Booking on the day is usually more expensive and costs can vary depending on the time of day, route or class.

Book in advance

Most of the train companies across Europe release their tickets around three to six months in advance, many of which can be cheaper the earlier you book. If you know the dates you want to travel, you may be able to find some cheaper train tickets from Madrid to Barcelona by booking early.§

Be flexible with your travel times

Many of the train services in Europe are also popular commuter services, lots of train companies increase ticket prices during “peak hours” (generally between 06:00 – 10:00 and 15:00 – 19:00 on weekdays). If you can, consider travelling outside of peak hours to find lower priced tickets.

Choose a slower or connecting train

On some of the busier routes, you might also have the option to take a slower or connecting train. It may take a little longer than some high-speed or direct services, but if you have a little extra time on your hands, you might find a cheaper fare. Plus, you'll have more time to enjoy the view of the countryside!

Look out for special deals

Take a look at our handy guides to find out when train operators release their special deals and offers to see if you can find cheap European train tickets for your journey.

For specific information about how to get your hands on cheap tickets, check out our European train tickets hub.

§Some train companies may not offer any Advance ticket types or cheaper deals for early bookings. On rare occasions, train companies may choose to release special offers closer to the date on last-minute or late-release tickets. This is dependent on the individual train operating company you travel with.

AVE train classes from Madrid to Barcelona

When travelling with AVE, you have two classes to choose from, Estándar (Standard) and Confort (First Class). Estándar is perfect for travellers on a budget, but if you prefer to travel yourself, why not upgrade to First Class? You’ll enjoy all the standard onboard amenities as well as extra perks and added comfort.

Estándar (Standard)

Estándar class is the standard level of travel on AVE trains. Estándar is the ideal class for travellers looking for low-budget fuss-free travel. On board, you will enjoy:

Comfortable seating
Free WiFi
Fold-down table

Confort (First Class)

Confort class is the First Class offering on AVE services. On board, you’ll enjoy all the amenities of Estándar class as well as extra perks, such as complimentary food and drink, free newspapers and more:

Complimentary food and drink
Free newspapers
Headphones for onboard entertainment
Renfe Club Lounges

iryo train classes from Madrid to Barcelona

With iryo, you have four classes to choose from: Inicial, Singular, Singular Only YOU and Infinita. In each class, you can expect design, comfort and technology as standard. 


If you're looking for a reasonably-priced experience without compromising on the best service and comfort, Inicial class is ideal for you!

Comfortable seating
Power sockets
Some ticket flexibility
Free WiFi
Onboard entertainment platform


Singular class is ideal for business travellers looking for flexibility! If you need to, you can adapt your ticket to your needs at the time. 

Comfortable seating
Power sockets
More ticket flexibility
Free WiFi
Onboard entertainment platform

Singular Only YOU

If you're looking for added comfort and full flexibility, Singular Only YOU class is a fantastic choice, with access to select hotels too. 

Highly comfortable seat
Power sockets
Full ticket flexibility
Free WiFi
Onboard entertainment platform
Access to Hotel Only YOU at Madrid Atocha station


Infinita is iryo's all-inclusive fare for the best travelling and flexibility conditions. It offers the best options for changes and cancellations included in your ticket.

Highly comfortable seat
Power sockets
Full ticket flexibility
Free WiFi
Onboard entertainment platform
Food and drink served to your seat
Access to Hotel Only YOU at Madrid Atocha station

Avlo & OUIGO train classes from Madrid to Barcelona

On board Renfe’s high-speed long-distance Avlo trains, you will only find Economy Class, but the service and amenities are still high-quality. OUIGO’s double-decker trains come with Standard Class only, but there are still plenty of amenities to enjoy on board.

OUIGO Standard Class

With OUIGO’s Standard Class, you can find a seat on the upper deck with spectacular panoramic views of the Spanish countryside. Then, you can take advantage of the free WiFi, power sockets and café-bar.

Free WiFi
Power sockets

Avlo Economy Class

Once you’ve found your seat in Avlo’s Economy Class, you can connect to the free WiFi, use the power sockets to charge your devices and grab some snacks from the vending machine.

Free WiFi
Power sockets
Vending machine

Onboard services

How to get to Madrid Atocha station

Located in the hub of the city, Madrid Atocha station is easy to get to because of the city’s easy, fast and reliable public transport system. You can get there by:

  • Metro: From the city centre, you can take the Metro Line 1 to Atocha Renfe Metro station.
  • Bus: There are various buses available from the city centre to Madrid Atocha station.
  • Walk: From Puerta del Sol, the city’s main square, you can get to Madrid Atocha on foot in around 25 minutes.

If you want to travel from Madrid Airport to Madrid Atocha station, you can take a Renfe train, which takes around 35 minutes in total.

Arriving at Barcelona Sants station from Madrid

Whichever operator you end up travelling with, you’ll arrive at Barcelona Sants station, a short journey from the city centre.

Once you’ve arrived in Barcelona, you’ll want to start soaking up the city’s atmosphere as soon as possible. The centre of Barcelona is easily accessible due to the city’s public transport network. You can get there by:

  • Metro: Green Line L3 and Blue Line L5 links the city centre with the train station’s metro, Sants Estació.
  • Bus: There are various buses available from Barcelona Sants station to the city centre.
  • Walk: From Barcelona Sants station, La Rambla in the city centre is a 42-minute walk.

If you want to travel from Barcelona Sants station to Barcelona Airport, you can simply catch the Renfe train, which takes around 20 minutes.

Using public transport in Barcelona

Barcelona is a vast city, but it boasts a modern public transport system to help you navigate the city. Opened in 1924, Barcelona’s Metro is the easiest way to get around the city and consists of 12 lines and 186 stations.

If you’d like to take in excellent views of the city while you travel, try travelling by bus. There are over 230 bus lines in Barcelona, running from 05:00 until 22:00.

Also, Barcelona’s tram system is a quick and convenient way to get around the city. Known locally as “El Tram”, Barcelona’s trams run through the heart of the city. If you’d like to travel via tram, you can purchase tickets from the machines at tram stations.

Journey details

Want to know more about your journey from Madrid to Barcelona? We've compiled some of the most frequently asked questions by our customers to help you plan your journey.

How long does the train from Madrid to Barcelona take?

The average journey time by train between Madrid and Barcelona is 3 hours and 8 minutes, with around 12 trains per day. The journey time may be longer on weekends and holidays, so use our Journey Planner on this page to search for a specific travel date.

What's the fastest journey time between Madrid and Barcelona by train?

The fastest journey time by train from Madrid to Barcelona is 2 hours and 30 minutes.

How much does the train from Madrid to Barcelona cost?

Train ticket prices from Madrid to Barcelona can start from as little as €5.70 when you book in advance. The cost of tickets can vary depending on the time of day, route and class you book and are usually more expensive if you book on the day.

Is there a direct train from Madrid to Barcelona?

Yes, it is possible to travel from Madrid to Barcelona without having to change trains. There are 11 direct trains from Madrid to Barcelona each day. Though there may be fewer direct services available depending on your exact departure date.

What time does the first train from Madrid to Barcelona leave?

The first train from Madrid to Barcelona leaves at 07:30. Times and services may vary during weekends and holidays.

What time does the last train from Madrid to Barcelona leave?

The last train from Madrid to Barcelona leaves at 20:40. Trains that depart in the early morning hours or very late evening may be sleeper services, time and services may also vary during weekends and holidays.

What's the distance between Madrid and Barcelona by train?

Trains travelling from Madrid to Barcelona cover a distance of around 314 miles (506 km) during the journey.

Looking for more information?

If you’re looking for the return train journey, check out trains from Barcelona to Madrid. If you’re looking for other options, you can also catch the bus from Madrid to Barcelona.

Tips and tricks from our Trainline team blog

We love helping our customers find inspiration for their next train journey. We also believe about taking those journeys and sharing our experiences with you, so you can sit back, relax and get the most out of your trip.

Travelling from Madrid to Barcelona on a Renfe AVE high-speed train

Review by Jaime Campoamor Velasco

With around 25 services a day, Renfe connects the two biggest cities in Spain in just 2h 30m. For the early risers, the first AVE train leaves Madrid Atocha station at 06:10 hours and the last leaves at 21:25, arriving into Barcelona Sants station at 23:55.  

Atocha station – the busiest in Spain  

Located just a few minutes from the centre of the capital, Madrid Atocha station sees around 18 million passengers pass through its doors each year. Split across several levels, high-speed services depart from both the upper and ground floors – boarding for trains from Madrid to Barcelona is located on the upper floor.  

For my trip, I arrived at the station just after 17:00. Although my train – the AVE 3181 – left Madrid at 18:00, I decided to arrive almost an hour earlier to have plenty of time to wander around the station and pass the security checks without rushing. As I was travelling on a Friday afternoon, I assumed it would be busier than usual in the centre of Madrid.  

To Barcelona in just two and a half hours  

Before I get into the details of my trip, it’s worth pointing out that although I travel a lot by train, I’d never made the journey from Madrid to Barcelona on an AVE high-speed service before. In fact, my friends and family had spent years wondering why I normally drive to Barcelona considering how far it is and how boring the A2 is – I’ve never been able to give them a good excuse.  

So, back to the review. For this trip, I bought an Elige ticket in Estándar (Standard) Class that cost me just over €90. Although it may seem a lot, travelling by car between Madrid and Barcelona is quite expensive when you consider the cost of tolls and how the time you spend driving and the difficulty of parking in Barcelona adds to your fuel consumption. Plane tickets aren’t cheap either – unless you buy in advance with a low-cost airline, the price of the Iberia Puente Aereo (a dedicated Madrid to Barcelona air route) will easily exceed the cost of round-trip AVE tickets.  

I chose an Elige ticket because the basic Renfe fare doesn’t allow for changes or cancellations. The Elige fare, however, cost only €7 more and allows you to cancel the ticket up to five minutes before departure by paying 30% of the total price.

Comfortable and modern trains  

All seats on AVE trains are foldable and have footrests, armrests, folding tables and two sockets for charging electronic devices. Although most of the trains offer a WiFi connection, this service is only complementary in Confort (First) Class. If you don’t travel in this class and want to use the WiFi during the trip, you’ll have to pay for the service. There are two levels of access – Basic and Premium (you get access from three devices, movies and live TV). 

During the trip, Renfe staff offered an à la carte catering service, with a complete menu that included all kinds of drinks and food. There’s also an onboard café carriage where you can stretch your legs while you enjoy a drink.  

The AVE trains that take just 2h 30m to travel from Madrid to Barcelona (like the one I took) make no stops along the way. Other services make stops in Guadalajara-Yebes, Zaragoza-Delicia, Lleida or Camp-Tarragona before arriving in Barcelona 

Arriving into Barcelona 

After reaching speeds close to 300 km/h we arrived into Barcelona Sants station at the scheduled time, 20:30. 

Once you’re in Barcelona, ​​don't miss the impressive Sagrada Familia or the mythical Boqueria Market. Take a walk along Las Ramblas for sure, skate at one of the skateparks in the city or wander around the Raval or Borne neighbourhoods.  

About Jaime  

Jaime is one of our trusted, hand-picked travel writers. The information for this article was recorded first-hand, based on his own genuine experience of the journey.

Continue reading
The information provided is calculated based on scheduled train services for Madrid to Barcelona for a typical week day using timetable data for 12/20/2022. On weekends, holidays or other exceptional times, fewer services may be available. The fare range provided has been found by our customers on Trainline on 08/02/2022 for travel on 08/02/2022 and for adult tickets in economy, discount cards and coach journeys excluded.

Europe’s leading train and coach app

We help customers across Europe make more than 172,000 smarter journeys every day.