How to Get from Barcelona to Madrid Spain in 2026

Iryo and Renfe high speed trains parked side by side at a station in Spain
Disclosure: This page may contain affiliate links, meaning at no additional cost to you, I will earn a commission if you click through and make a purchase. As an Amazon Associate I earn from qualifying purchases.

Traveling between Barcelona and Madrid is easy, with several transportation options depending on your budget and schedule.

I live in Barcelona and have visited Madrid several times, so I have a lot of experience traveling between these two popular Spanish cities.

In this guide, I’ll explain how to get from Barcelona to Madrid, including the best transportation options, travel times, costs, and tips to help you plan your trip.

Best Ways to Get from Barcelona to Madrid Spain

Here’s a breakdown of the best ways to get to Madrid from Barcelona:

Transportation MethodDurationCost
Flight1.5 hoursFrom 45€ one-way
Train3 hoursFrom 24€ one-way
Bus7.5 hoursFrom 15€ one-way
Car6.5 hoursVaries

Take the Train from Barcelona to Madrid

Taking the train from Barcelona to Madrid is my top recommendation because it’s fast, comfortable, and incredibly convenient.

I’ve taken the high-speed train between Barcelona and Madrid several times, and it’s always been a smooth and straightforward experience.

The journey from Barcelona-Sants to Madrid-Atocha takes around 3 hours, with frequent departures throughout the day.

Trains in Spain are modern and comfortable, with spacious seats, power outlets, and onboard food and drink options.

Some trains also offer free wifi, although in my experience, it doesn’t always work very well.

One of the biggest advantages is that you travel directly between city centers, so you can avoid the hassle of airport security and transfers.

Plus, you can just sit back, relax, and enjoy views of the Spanish countryside along the way.

Red and silver Iryo high-speed train at the platform with passengers boarding for the Barcelona to Madrid route

Barcelona to Madrid Train Options

There are 3 different high-speed train companies operating the route from Barcelona to Madrid, and it’s worth comparing all of them to get the best price and schedule:

  • Renfe: The most popular and widely used operator, with both AVE and Avlo trains. AVE trains offer the most amenities, while Avlo is Renfe’s low-cost version with more luggage restrictions.

  • Iryo: A newer high-speed train operator in Spain that offers modern, comfortable trains. I usually book with Iryo because their trains are just as nice as Renfe, but the tickets are typically cheaper.

  • Ouigo: A low-cost train operator owned by the French SNCF group. Their trains are usually among the cheapest and sometimes have double-decker seating. While they don’t feel quite as modern as Renfe or Iryo, they’re still a comfortable and affordable option.
White and pink Ouigo high speed train labeled ouigo.com stopped at a covered station platform in Spain, with passengers walking nearby under a large glass roof

How to Book Train Tickets

To compare train schedules and prices, I recommend using Omio.

It’s a handy booking platform that lets you compare different train operators, including Renfe, Iryo, and Ouigo, all in one place.

I usually start by searching my travel dates on Omio to see which company has the cheapest tickets and the most convenient departure times.

Once you’ve found the best option, you can book directly through Omio or head to the train company’s official website to purchase your tickets.

For more tips and step-by-step instructions, check out my guide on how to buy train tickets in Spain.

Tip: Seats are usually assigned on trains so if you want a window seat, make sure to add on a seat assignment when booking.  It costs a bit extra to select your seat, depending on the operator.

Inside view of a sleek Iryo high-speed train with brown leather seats and overhead screens during the Barcelona to Madrid route

Fly from Barcelona to Madrid

You can also fly from Barcelona to Madrid, but it’s not something I would really recommend. 

Iberia and Air Europa offer direct flights between the two cities, and while the flight itself only takes about 1.5 hours, ticket prices are usually way higher–especially if you’re booking last minute. 

And once you factor in the time it takes to get to and from the airport, go through security, and wait at the gate (not to mention extra luggage fees), the train usually ends up being faster, easier, and cheaper.

Spacious and modern airport check-in area at the Barcelona Airport

Take the Bus from Barcelona to Madrid

Taking the bus from Barcelona to Madrid is the cheapest option, but it’s not the most comfortable or time-efficient. 

Alsa runs buses from Estació Nord in central Barcelona, but the ride is pretty long and takes about 7.5 hours. 

Tickets for the Barcelona to Madrid bus usually start at around €15 each way, and can be booked directly through the Alsa website, or on Omio if you prefer a more user-friendly booking process. 

Buses arrive at a few different stations in Madrid but the Madrid Estacion Sur station is one of the closest to the city center.

While the price is cheaper, I’d still recommend the train if your budget allows because it’s faster, more comfortable, and an overall better experience.

Bus station with Alsa buses ready for ground travel on the Barcelona to Madrid route

Drive from Barcelona to Madrid

Driving from Barcelona to Madrid can also be a more flexible option, especially if you’re planning a road trip. 

Renting a car in Barcelona is simple and it takes about 6.5 hours along major highways.

Just keep in mind that parking in Madrid (like most cities in Spain) can be a bit of a hassle and pricey, especially near the center. 

If you’re not planning to stop along the way or explore more of the region, I’d still say the train is the easier option.

Quiet residential street in Madrid, Spain with parked cars and colorful buildings

Tips for Traveling to Madrid from Barcelona

Here are a few tips to consider, especially if you’re traveling by train: 

  • Book tickets in advance: Prices can go way up the closer you get to your travel date, especially for trains and flights. Booking early usually means better availability and much lower prices.

  • Check Iryo and Ouigo for lower prices: Renfe is usually the most expensive option so it’s worth checking prices on Iryo and Ouigo if you’re looking to save money.  The experience is still very comfortable and not that much different from Renfe. You can also compare prices for all three on Omio.

  • Add your seat selection for the train: Seats are usually assigned on the trains so if you want a guaranteed window seat, make sure to pay extra for a seat selection during the booking process.

  • Be prepared for spotty wifi: Some of the trains have wifi but it usually doesn’t work.  Cell service can also get spotty between towns, so download anything you’ll want to watch or read ahead of time.

  • Bring snacks and drinks: Food and drinks are available onboard, but they’re pricey.  I think a can of Coke costs around €3. Grab a few snacks from the train station restaurants or shops before you board.

  • Add your tickets to your Apple or Google Wallet: Make sure to add your tickets to your Apple or Google wallet to easily access them once you’re at the train station. You can also download the Renfe, Iryo, or Ouigo apps to access train tickets and schedules.

  • Pack a phone charger: Most trains have power outlets under the seats, but make sure you bring your charger (and a travel adapter if needed) so your phone doesn’t die mid-trip.
Travelers with luggage boarding a modern red and gray train for the Barcelona to Madrid trip

Traveling to Madrid from Barcelona: FAQs

Here are the answers to some of the most frequently asked questions about traveling from Barcelona to Madrid:

How far is Madrid from Barcelona?

Madrid is located about 388 miles (324 km) to the west of Barcelona.

How long is the train from Barcelona to Madrid?

The Barcelona to Madrid train time is about 3 hours on high-speed trains. 

How often do trains run between Madrid and Barcelona?

Across the multiple operators, there are usually 2-3 departures every hour between Madrid and Barcelona.

How early do you need to arrive at the train station?

Arriving about 30 minutes before departure is usually enough.  You will just have to go through a security check where they scan your luggage, but lines aren’t usually long.

Is there wifi on the train to Madrid from Barcelona?

Some of the trains have wifi but it usually doesn’t work very well.  You’ll probably have to rely on cell service or you can purchase an eSIM for international data.

Can you take public transportation from the Madrid Atocha train station?

Yes, the Madrid Atocha station is a major transportation hub and is directly connected to several metro lines.  It’s just a short indoor walk from the trains to the metro.

What is the luggage allowance on the trains?

Luggage allowances vary depending on the operator but standard tickets usually include up to 3 pieces of luggage, with a combined weight of up to 25 kg.

Is the train from Barcelona to Madrid scenic?

The ride is somewhat scenic.  It’s an inland route so you’ll mostly just see small towns and countryside along the way.

High-speed red and silver train waiting at the platform with passengers boarding for a Barcelona to Madrid journey

Final Thoughts: Barcelona to Madrid Travel Guide

If you’re traveling from Barcelona to Madrid, I’d definitely recommend taking the high-speed train.

It’s fast, comfortable, and takes you directly between the two city centers without dealing with airports.

I personally prefer Iryo because it’s usually cheaper than Renfe, but all three high-speed train operators are worth comparing.

I recommend using Omio to compare train schedules and ticket prices in one place so you can find the best option for your travel dates.

And don’t forget to book in advance, as train tickets are typically cheaper the earlier you book!

READ NEXT: