How to Get from Barcelona to Madrid Spain in 2026

How to Get from Barcelona to Madrid
Splendidly Spain Disclosure

Wondering how to get from Barcelona to Madrid? You’re in the right place!

I’m a travel blogger that lives in Barcelona and am here to let you in on the best ways to travel between these two popular Spanish cities. 

In this post, I’ll break down all the best ways to get from Barcelona to Madrid–along with travel times, prices, and practical tips to help you choose the best option. 

Whether you’re planning a quick visit or a longer stay, this guide will make your trip easier to plan. Let’s take a look at how to get from Barcelona to Madrid!

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 super easy to navigate. 

On my last trip to Madrid, I took the high-speed train from Barcelona Sants to Madrid Atocha, and the whole experience was seamless from start to finish.

The train service takes just under 3 hours and connects two of Spain’s busiest cities with frequent departures throughout the day. 

Trains are modern and comfortable, with spacious seats, power outlets, and a dining car if you want to grab a snack or coffee. 

Some Barcelona Madrid trains also offer free wifi, though in my experience, it never really works that well.

You can simply arrive at the station, hop on your train, and be in the heart of Madrid in less time than it would take to fly when you factor in airport security and transportation. 

Plus, you’ll get great 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 few 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 operator with sleek, comfortable trains and cheaper prices. I took Iryo on my last trip and had a great experience.  It was super smooth, punctual, and not much different than Renfe.

  • Ouigo: A low-cost option from the French SNCF group. Their trains are usually among the cheapest, and the ride quality is still excellent.

To make comparing prices and times easier, I recommend using Omio

It’s a really handy aggregator that shows all available train options in one place, so you can quickly find the one that works best for your schedule and budget.

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 more cost-effective.

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 just under 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

I hope this guide helped you feel more confident about how to get from Barcelona to Madrid! 

Whether you’re looking for the fastest route, the cheapest option, or something flexible for a road trip, there’s a way to get there that fits your travel style. 

Personally, I think the train is the best balance of comfort, speed, and cost–but now you’ve got all the info to choose what’s right for you. 

Safe travels and enjoy your time in Madrid!

READ NEXT: