How to Travel from Madrid to Barcelona by Train, Bus, Car, and Plane

Illustration showing 4 routes to get between Madrid and Barcelona and the corresponding travel time


Visitors to Spain often start in Madrid, the culturally rich and artistically-inclined capital, before heading off to Barcelona, with its Mediterranean beaches and distinctive architecture. Both cities are unique and offer very different views of Spanish life, and each one of them is worth at least a few days of your time. Thankfully, getting between the two cities—which are about 380 miles apart—couldn't be easier.

The high-speed train from Madrid to Barcelona gets you from one city center to the other in two and a half hours, and the low-cost train makes it affordable as well. But flights are even quicker—not including travel to and from the airport and checking in—and can often be cheaper than the train. The bus is the cheapest option, but it takes around eight hours, significantly longer than renting a car and driving yourself.

How to Get From Madrid to Barcelona
   Time Cost Best For
Train  2 hours, 30 minutes  from $12  Easy traveling 
Bus  7 hours, 35 minutes  from $11  Last-minute plans 
Plane  1 hour, 15 minutes from $45 Arriving on a time crunch 
Car 6 hours 380 miles (612 km) Freedom to explore

What Is the Cheapest Way to Get From Madrid to Barcelona?

When it's the middle of summer vacation, everyone is traveling, and trains and flights are completely booked or priced very high, then the bus is your best option for getting to Barcelona. The major Spanish bus company Alsa offers various routes per day from Avenida de America bus station in Madrid to Barcelona-Sants or Barcelona Nord stations. It's a long ride, almost eight hours and possibly more with traffic, but there are several nighttime routes so you don't have to lose out on an entire day of your trip sitting on the bus.

Alsa bus tickets start at $11 when you buy them early, but—just like trains and flights—they get more expensive the longer you wait, with same-day tickets costing up to $50 for a one-way ride.

What Is the Fastest Way to Get From Madrid to Barcelona?

Even though a flight is technically shorter than the train ride, the total travel time is reduced significantly by taking the train, which shuttles passengers directly from city center to city center.

Spain's national railway system, Renfe, provides two types of high-speed trains between Madrid and Barcelona: the standard AVE train and the low-cost Avlo. Both trains whisk passengers from Atocha Station in Madrid to Barcelona-Sants Station in as little as two and a half hours, the only difference being the amenities offered and the price.

The Avlo train limits passengers to one carry-on sized bag, similar to a budget airline, and doesn't offer seat selection or a cafeteria car like the standard AVE train does. AVE tickets start at $35 if you buy them far in advance, but get more and more expensive as your trip gets closer, sometimes costing up to $150. Avlo, on the other hand, starts at about $12 when you buy your tickets early and gets you to Barcelona just as quickly, with prices maxing out at about $55.

If you plan ahead and buy tickets early, the train is the best deal for getting between cities. But if you're planning last minute, Avlo tickets are likely to sell out and the AVE may have jumped considerably in price.

How Long Does It Take to Drive?

If you value being able to travel on your own time and want to make your own itinerary, renting a car in Spain isn't difficult and could be the best option. If you're traveling with a group and can split the costs of the rental, gas, and tolls, it may be even cheaper than each of you buying your own individual transportation tickets. However, most cars in Spain use manual transmissions, so expect to pay more for an automatic if that's all you can drive.

The quickest and most direct route is to take the A-2 highway all the way from Madrid to Barcelona. This a toll highway and the total cost for the trip comes out to about 40 euros, or roughly $50.

Don't forget, the freedom of having your own car is also tempered with the hassle of having to park it. Vehicles are great for day trips and traveling between cities, but once you're in Madrid or Barcelona, you're dealing with metropolitan traffic and difficult-to-find parking. Street parking is hard to come by in the city center, so expect to pay a premium to keep your car in a lot.

How Long Is the Flight?

If the airports were as centrally located as the train stations, flying would hands-down be the best method for travel from Madrid to Barcelona. Flights are generally pretty cheap with several options per day, and you're barely in the air long enough to finish an episode of your favorite show before you've touched down at Barcelona El Prat Airport. However, it takes at least 30 minutes to reach Madrid's airport via public transportation and then another 30 minutes to reach Barcelona's city center. Factor in all of that time plus airport check-in, security, and waiting at your gate, and the total travel time is now significantly longer than taking the train.

Even though the train is more comfortable and convenient than flying, it can also be more expensive, especially if your travel dates are near. Last-minute plane tickets can still be relatively cheap, especially when traveling in low tourist season. Always compare your flights with train tickets; the difference in price may shock you.

When Is the Best Time to Travel to Barcelona?

For the best deals on train tickets and flights, try to travel midweek outside of the major holiday periods, such as summer vacation, Christmas break, and the week leading up to Easter. These popular travel periods are by far the most popular time to book transportation, and the prices will reflect that.

Spring or fall are considered the shoulder season and some of the best times to visit Barcelona. The weather is pleasant and, if you plan ahead, train tickets and flights are very affordable. July and August are hot and nice for visiting the beach, but summer crowds can feel overwhelming in this popular tourist destination.

What’s the Most Scenic Route to Barcelona?

The biggest advantage of taking a car is being able to stop and explore in any of the towns between Madrid and Barcelona, or going on day trips once you arrive. Along the route, make time for a quick stop in Zaragoza, a city known for its local gastronomy, Moorish architecture, and scenic river views. After arriving in Barcelona, take advantage of having a vehicle by visiting nearby sites like the mountains of Montserrat or the cute beach town of Sitges.

If you don't mind adding a little time to the trip, you can skip the A-2 highway and drive east toward the city of Valencia, then working your way north toward Barcelona along the Mediterranean coast. It takes about an hour longer than the direct route, but the views are worth the detour.

Can I Use Public Transportation to Travel From the Airport?

Barcelona El Prat Airport is easily connected to the city center via train. There are two options you can use: the metro or the Rodalies commuter train. The metro has more transfer options but takes longer, while the Rodalies is ideal for a quick journey to the central Barcelona-Sants station. If your final destination is near the popular Plaça de Catalunya, the Aerobus provides direct transit.

To take a taxi the city center, the journey from the airport to the city center is only about 15 minutes without traffic with prices around 25 euros, or a little over $30. Ride-sharing apps such as Uber are not available in Barcelona.

What Is There to Do in Barcelona?

The moment you arrive in Barcelona, it's obvious why this Mediterranean paradise is one of Europe's most popular cities to visit. It offers a little of everything: mild weather year-round, spectacular beaches, cultural treasures, excellent cuisine, and wild nightlife. The Catalan architect Antoni Gaudí left his mark on the city, and his buildings are some of Barcelona's most noteworthy attractions, from the quirky Park Güell to the awe-inspiring Sagrada Familia Cathedral. After visiting those, walk down La Rambla, the city's central pedestrian street, and continue on to explore Barcelona's diverse neighborhoods on foot. While not necessary, it's recommended to stop often for tapas and drinks—Spanish sparkling wine, or cava, is produced locally and is a good place to start.

Frequently Asked Questions
  • How much is the train from Madrid to Barcelona?

    Tickets for the AVE train start at $35 if you buy them far in advance, but get more and more expensive as your trip gets closer, sometimes costing up to $150. The lower-cost Avlo starts at about $12 when you buy your tickets early and gets you to Barcelona just as quickly, with prices maxing out at about $55.

  • How far is it from Barcelona to Madrid?

    Barcelona is about 380 miles from Madrid.

  • How long is the train ride from Madrid to Barcelona?

    Both the AVE and the lower-cost Avlo whisk passengers from Atocha Station in Madrid to Barcelona-Sants Station in as little as two and a half hours.