Cheap train tickets from Madrid to Barcelona
Find and compare the best ground travel options in one place.
Millions of travelers trust Wanderu every year to get:
Lowest Prices
We partner with the top coach & train carriers to bring you the best deals.
Best Travel Options
We help you find & compare the best buses & trains in one place.
Quick & Easy Booking
Book trips quickly with a simple, hassle-free checkout – online & on our app.
Fast Customer Support
We don’t monkey around. We respond within minutes to help you out.
See what travelers are saying about Wanderu:
Madrid to Barcelona Train Timetable
Is it better to travel by bus or train from Madrid to Barcelona?
There are usually 1 daily bus trips from Madrid to Barcelona.
Coach | Train | |
|---|---|---|
Avg. Price | Avg. PriceHUF 35,250.42 | Avg. PriceHUF 30,131.09 |
Daily Trips | Daily Trips1 | Daily Trips14 |
Duration | Duration1d 2h 36m | Duration2h 48m |
Trip Summary
There are usually 13 daily train trips available from Madrid to Barcelona. Traveling by train from Madrid to Barcelona usually takes 2 hours and 49 minutes, but the fastest Iryo train can make the trip in 2 hours and 37 minutes.
| Distance | 314 mi (505 km) |
| Fastest train | 2h 37m |
| Lowest price | HUF 16,171.43 |
| Trains per day | 13 |
| Most frequent service | Iryo |
| Train lines | 1 |

What is the price of a train ticket from Madrid to Barcelona?
In the last 30 days, the average cost of a train ticket from Madrid to Barcelona was HUF 18,386.55. You have the best chances of scoring the cheapest ticket to Barcelona if you book your train tickets at least 28 days in advance. Waiting to purchase until the day of your trip could end up costing you an extra HUF 18,561.34.
Monthly average prices
Prices as travel date approaches
Planning ahead pays off when it comes to booking your train trip from Madrid to Barcelona. By reserving your ticket on Wanderu at least 28 days before departure, you can save around HUF 18,561.34. Don't miss out on these savings — book in advance!
Which train should you take from Madrid to Barcelona?
Iryo is the one and only train line which connects Madrid to Barcelona. However, there are 13 trains per day to choose from.
| Train | Daily Trips | Avg. Time | Avg. Price |
|---|---|---|---|
| Iryo | 13 | 2h 49m | HUF 32,692.44 |
Iryo train tickets from Madrid to Barcelona start from HUF 16,171, and on average cost . Daily there are 13 Iryo schedules to Barcelona. Iryo in Madrid leaves from Madrid Atocha Train Station . And in Barcelona trains arrive at Barcelona-Sants .
From Madrid to Barcelona train travel on Iryo takes 2 hours and 49 minutes. If you are looking to get to Barcelona faster, Iryo offers more express schedule options with a travel time of 2 hours and 37 minutes.
If you're considering a weeked trip, Iryo offers 11 schedules for you to choose from. You can expect to pay for a one-way train ticket to Barcelona.
Frequently asked questions about traveling by train from Madrid to Barcelona
Wednesday tends to be the busiest day of the week with travelers taking trains from Madrid to Barcelona. Ticket price also tend to be more expensive on Wednesday than other days. If you are hoping to have more room on the train and even save some change check out travel options on Sunday instead, as less people travel then and deals are more likely to be found.
The earliest train departs Madrid at 06:00 while the last train of the day leaves at 20:00. To see all scheduled departure times, use the search function on this page to get the full schedule for your specific travel dates.
There are 13 daily scheduled trains, all of which are direct trains that take you the entire way from Madrid to Barcelona.
You can also take a train for your return trip from Barcelona to Madrid.
City Information
Barcelona
Featuring a mix of bizarre modern vibes and quaint buildings, Barcelona is a great destination for tourists seeking fun and cultural activities alike. Barcelona takes great pride in its unique architecture, and the most prominent example of its uniqueness is the La Sagrada Família, one of the most iconic buildings in the city. Boasting a unique Gothique-esque architectural style, the cathedral will leave you in awe. The most interesting part is that the church is actually still in construction, and is expected to be finished by 2026. If you want to stroll around the streets of Barcelona, the Barri Gòtic, the oldest part of the city, will be a perfect choice. Here visitors will find old buildings with Medieval or Roman architecture. If you are looking to enjoy Barcelona’s nightlife, head over to Las Ramblas, the most fun area around.
For the best Catalonian dishes, don’t hesitate to head over to Babula Bar 1937, which offers top-tier local cuisine. Barcelona is also rather famous for its seafood, so don’t hesitate to give that a try at one of the many restaurants the city has to offer.
For buses, Estació del Nord serves as the central hub of intercity services. The Barcelona Sants is the city’s main train station, offering access to many cities in Europe. Commercial air services are provided by the Barcelona-El Prat Airport, which is located 11 miles from the city center.
Station Information
Where is the train station in Madrid?
Main departure station: Madrid Atocha Train Station
There is one train station in Madrid.
All train stations in Madrid:
Madrid Atocha Train Station
Where is the train station in Barcelona?
Main arrival station: Barcelona-Sants
Barcelona has one train station.
Train stations in Barcelona:
Barcelona-Sants
Get around town with Moovit
Need a return trip from Barcelona to Madrid?
Search Train Tickets
Wanderu is the simplest way to book coach and train travel.
With just a quick search on Wanderu, you can compare bus and train schedules and prices from hundreds of travel companies in one convenient place to find the trip that works best for you. Wanderu’s simple checkout process makes it easy to book cheap bus and train tickets hassle-free. Most importantly, as Wanderu is an official partner of all leading bus and train companies, we always have the best bus and train deals out there.
- Train Tickets
- Spain
- Barcelona
- Madrid to Barcelona






