Renfe Avlo

The best 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

"Trainline’s take-off has been vertical. It’s the only global digital travel platform of its sort."
"For those travelling by train, the most efficient and trustworthy way to purchase tickets is Trainline."
"If you’re thinking of getting the train the best site to use is"

About this journey from Barcelona to Madrid

The average journey time by train between Barcelona and Madrid is 2h 43m, with around 24 trains per day. The quickest journey time from Barcelona to Madrid is 2h 30m on a high-speed Renfe AVE train. The first train departs Barcelona Sants station at 05:50 and the last at 21:15, covering a distance of just over 500km and arriving into Madrid’s main railway station, Madrid Atocha. All trains between Barcelona and Madrid are run by Renfe, Spain’s national train company.

Whether you’re heading to Madrid to check out the world-famous Bernabéu Stadium or spend an afternoon wandering in the greenery of El Retiro Park, visiting the Museo Nacional del Prado and grabbing a bite at Mercado de San Miguel, travelling from Barcelona to Madrid by train is one of the easiest ways to get to the Spanish capital. A popular route with both locals and tourists, it’s quicker than flying and you will arrive right in the heart of the city at Madrid Atocha station. AVE trains will get you to Madrid in style, but if you feel like making the journey extra special, upgrade to a Preferente (First Class) ticket to enjoy complimentary snacks and reclining leather seats during your journey.

Need more inspiration? Check out our guide to the best things to do in Madrid, including the best restaurants, parks, museums and shops to go to.

Travelling First Class from Barcelona to Madrid

If you want to travel in style, why not choose a First Class train ticket from Barcelona to Madrid? Renfe AVE trains have Preferente Class tickets that offer wider reclining seats, more privacy and access to Renfe's First Class lounge at the station. Just look for Preferente 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.

Keen to find out more about the train journey from Barcelona to Madrid? Start your search for train tickets from Barcelona to Madrid in the Journey Planner at the top of the page – we’ll show you train times and ticket prices. To help you find cheap tickets, we’ll highlight the cheapest fares on your travel date. Scroll down for more information about this journey, including ticket prices and FAQs.

Barcelona to Madrid by train

It takes an average of 2h 50m to travel from Barcelona to Madrid by train, over a distance of around 314 miles (506 km). There are normally 13 trains per day travelling from Barcelona to Madrid and tickets for this journey start from €5 when you book in advance.
Journey timeFrom 2h 30m
Price€5 - €159.90
Distance314 miles (506 km)
Frequency13 trains per day
Departure stationBarcelona
Arrival stationMadrid
ChangesDirect trains available
Train and bus operatorsRenfe, ALSA

Barcelona to Madrid train times

Check out the next trains departing from Barcelona to Madrid for mardi 13 avril 2021. For the full train timetable/schedule, or to search for a later time or date, click here.
12:00 Barcelona Sants15:12 Madrid AtochaAVE 3122 Renfe Get tickets3h 12m, direct
14:00 Barcelona Sants17:12 Madrid AtochaAVE 3142 Renfe Get tickets3h 12m, direct
16:00 Barcelona Sants19:12 Madrid AtochaAVE 3162 Renfe Get tickets3h 12m, direct
17:00 Barcelona Sants19:45 Madrid AtochaAVE 3172 Renfe Get tickets2h 45m, direct
17:25 Barcelona Sants19:55 Madrid AtochaAVE 3170 Renfe Get tickets2h 30m, direct
19:00 Barcelona Sants22:07 Madrid AtochaAVE 3192 Renfe Get tickets3h 7m, direct
20:00 Barcelona Sants23:17 Madrid AtochaAVE 3202 Renfe Get tickets3h 17m, direct
20:15 Barcelona Sants09:06 Madrid AtochaEuromed 1201 Renfe Get tickets12h 51m, 1 change
05:51 Barcelona Sants09:10 Madrid AtochaAVE 3062 Renfe Get tickets3h 19m, direct
07:00 Barcelona Sants09:30 Madrid AtochaAVE 3270 Renfe Get tickets2h 30m, direct

Renfe and AVE trains from Barcelona to Madrid

You can travel from Barcelona to Madrid on Renfe and AVE 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.

Renfe is the national train operator in Spain. It has the widest network of high-speed trains in Europe, linking major cities with AVE, AV-City, Avant, Alvia, and Euromed trains. Long-distance routes are served by Altaria and Talgo trains, while regional routes are operated by Media Distancia, Regional and Express Regional trains. Renfe also operates on international routes to France and Portugal. Renfe trains offer four different travel classes, depending on the train you’re travelling on – Turista (Standard), Turista Plus (Premium Economy), Preferente (Business Class) and Club (First Class).

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 four comfort classes – Turista (standard class), Turista Plus (wider, more comfortable seats), Preferente (lounge access, wide leather seats, food and drink service) and Club (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.

Cheap train tickets from Barcelona to Madrid

The price of train tickets from Barcelona to Madrid starts at €5 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.
lowest price found
4 weeksin advance
avg. single price86.71
2 weeksin advance
avg. single price88.50
on the day
avg. single price103.02

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 Barcelona to Madrid 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.

Journey details

Want to know more about your journey from Barcelona to Madrid? 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 Barcelona to Madrid take?

The average journey time by train between Barcelona and Madrid is 2 hours and 50 minutes, with around 13 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.

How fast does the train from Barcelona to Madrid travel?

AVE high-speed trains from Barcelona to Madrid can travel at speeds of up to 193 mph (310 km/h). The fastest journey time by train from Barcelona to Madrid is 2 hours and 30 minutes.

How much does the train from Barcelona to Madrid cost?

Train ticket prices from Barcelona to Madrid can start from as little as €5 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 Barcelona to Madrid?

Yes. There are 13 direct Ave trains from Renfe that travel from Barcelona to Madrid each day with an average journey time of 2 hours and 50 minutes.

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

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

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

The last train from Barcelona to Madrid leaves at 07:40 from Barcelona Sants. 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 Barcelona and Madrid by train?

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

Which train companies operate between Barcelona and Madrid?

All trains travelling from Barcelona to Madrid are operated by Renfe – the national train operator in Spain.

Are there security checks on trains from Barcelona to Madrid?

Yes. When boarding the train from Barcelona to Madrid, all passengers must pass through a security control point for a ticket and baggage check before departure. This is a requirement on all trains in Spain and the check-point usually closes two minutes before the train is due to depart.

Looking for more information?

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

Our tips and tricks

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.

Barcelona to Madrid by high speed train

Review by Jaime Campoamor Velasco

The AVE train from Barcelona to Madrid is one of the most important high-speed routes in Spain. Even if you can travel by plane, car or bus between the two cities, the train is definitely the best way to do so. Thanks to the AVE high-speed service, you can take a train from Barcelona city centre and get off in Madrid after only 2h 45m.

Barcelona Sants train station

Since its inauguration in 2008, this train has seen more than 35 million passengers between the two cities. About 25 Renfe trains run daily between Barcelona and Madrid, with possible variations based on the day and time of year.

Even if most of the AVE trains stop in cities like Guadalajara, Zaragoza, Lleida or Tarragona, some trains are direct and take 2h 45m rather 3h 10m to get to the final destination.

Located in the Sants-Montjuïc district, Barcelona Sants is the second most important train station in Spain both for connections and passenger traffic. The station is served by Renfe’s regional trains (Rodalies), long and middle-distance trains and high-speed trains that go to many Spanish cities as well as many international destinations, including Paris and Marseille.

My last journey from Barcelona to Madrid was very fast and comfortable. For work reasons, I had to go to Barcelona on a Tuesday and work from there for a couple of days. However, on Wednesday evening I was told to go to an important meeting in Madrid on Thursday early morning. Luckily I managed to find a quite cheap train ticket to Madrid with an AVE train departing from Barcelona at 07:00.

Since you need to go through security checks before boarding an AVE train, I got to Barcelona Sants at 06:30. After a nice coffee and security checks, I went to the platform from which my train was leaving. In my case, it was the AVE 3072 departing at 07:05.

As I bought a last-minute train ticket, I couldn’t choose the 07:00 train which goes directly from Barcelona to Madrid in only 2h 30m. For this reason, I had to pick the next available train and a Promo ticket in Second Class (Clase Turista), which doesn’t allow any refund or cancellation.

Once I got to my seat, I used the two available plug sockets to charge my cell phone and laptop. The seats had armrests, footrests, reclining tables, coat hooks and luggage racks.


Train stop in Zaragoza

The AVE train from Barcelona to Madrid can reach speeds of more than 300 km/h. While I was working, the staff came to offer coffee, tea and an a la carte breakfast. Unlike First Class (Clase Preferente), Second Class (Clase Turista) train tickets neither include meals nor free WiFi. If you want one of these services, you’ll need to pay an extra fee.

After travelling for 1h 17m, the train stopped at 08:28 for 3 minutes at Zaragoza-Delicias train station. I reached Madrid Atocha at 09:50.


About Jaime 

Jaime is one of our trusted writers. The information for this review was obtained first-hand and is based on his own travel experience.

Continue reading
The information provided is calculated based on scheduled train services for Barcelona to Madrid for a typical week day using timetable data for 13/04/2021. 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 05/04/2021 for travel on 23/10/2021 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.