Cheap train tickets from Barcelona to Madrid
Find and compare the best ground travel options in one place.
Trip Summary
There are usually 13 daily train trips available from Barcelona to Madrid. Traveling by train from Barcelona to Madrid usually takes 3 hours and 14 minutes, but the fastest Iryo train can make the trip in 3 hours and 2 minutes.
- Distance
- 314 mi (505 km)
- Fastest train
- 3h 2m
- Lowest price
- RON 166.91
- Trains per day
- 13
- Most frequent service
- Iryo
- Train lines
- 1
Millions of travelers trust Wanderu every year to get:
Lowest Prices
We find the cheapest bus & train tickets, so you can wander for less.
Best Travel Options
We partner with 500+ carriers to bring you the most bus & train options.
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:
Barcelona to Madrid Train Schedule

There are several train options that can take you from Barcelona to Madrid:
See more detailsWhat is the price of a train ticket from Barcelona to Madrid?
In the last month, the average price of a train ticket from Barcelona to Madrid was RON 188.10. This is an excellent price given the length of the route. Good news! You can find the cheapest tickets if you book your trip at least 15 days prior to the travel date. You’ll likely pay around RON 236.86 more if you wait to book until the last minute.
Average train ticket prices from Barcelona to Madrid by travel date
Over the next 30 days, a one-way train trip from Barcelona to Madrid will cost between RON 212 and RON 850. Book in advance to secure the best price in the next few weeks.
Average train ticket prices from Barcelona to Madrid by month
Ticket prices for the train from Barcelona to Madrid often fluctuate based on the time of year. For the best prices on this route, book in February when the average ticket price is only RON 249. If you're thinking of traveling from Barcelona to Madrid during October, keep in mind that train ticket prices may be higher than usual, with an average price of RON 443 during this time of year. The best way to score a cheap deal, even in October, is to book your trip well in advance.
Prices as travel date approaches
By booking your train trip from Barcelona to Madrid on Wanderu at least 15 days ahead of time, you can save about RON 236.86 on your ticket. Waiting until the last minute means missing out on these savings!
Which train should you take from Barcelona to Madrid?
Iryo is the one and only train line which connects Barcelona to Madrid. However, there are 13 trains per day to choose from.
| Train | Daily Trips | Avg. Time | Avg. Price |
|---|---|---|---|
| Iryo | 13 | 3h 14m | RON 382.27 |
Iryo train tickets from Barcelona to Madrid start from RON 166.91, and on average cost RON 382.27. Daily there are 13 Iryo schedules to Madrid. Iryo in Barcelona leaves from Barcelona-Sants. And in Madrid trains arrive at Madrid Atocha Train Station.
From Barcelona to Madrid train travel on Iryo takes 3 hours and 14 minutes. If you are looking to get to Madrid faster, Iryo offers more express schedule options with a travel time of 3 hours and 2 minutes.
If you're considering a weeked trip, Iryo offers 12 schedules for you to choose from. You can expect to pay RON 166.91 for a one-way train ticket to Madrid.
Frequently asked questions about traveling by train from Barcelona to Madrid
There are 13 daily scheduled trains, all of which are direct trains that take you the entire way from Barcelona to Madrid. You can also take a train for your return trip from Madrid to Barcelona. If you're not set on traveling by train, you could always take the bus from Barcelona to Madrid for RON 346.
Trains per day
13
Direct trains
13
The distance between Barcelona and Madrid is approximately 314 miles, or 505 kilometers. The average train journey between these two cities takes 3 hours and 14 minutes, although the absolute fastest you could get there is 3 hours and 2 minutes. Looking for ways to pass the time? Most trains are equipped with Wi-Fi, which means you can stream music, browse social media or get some work done during your ride. That said, in case your train has a spotty signal, or is among the few without Wi-Fi, we also recommend downloading TV shows and movies to your mobile device in advance of your trip. That way the ride will fly by whatever the Wi-Fi situation.
Distance (mi)
314
Distance (km)
505
The earliest train departs Barcelona at 5:45am while the last train of the day leaves at 8:28pm. To see all scheduled departure times, use the search function on this page to get the full schedule for your specific travel dates.
First train
5:45am
Last train
8:28pm
Trains from Barcelona to Madrid are the most crowded on Monday. Tickets also tend to be more expensive then. If you are looking for a great deal on your train tickets or just want extra room to stretch out, consider traveling on Friday instead, as it tends to be the least crowded day of the week.
Busiest
Monday
Least crowded
Friday
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 Barcelona?
Main departure station: Barcelona-Sants
There is one train station in Barcelona.
All train stations in Barcelona:
- Barcelona-Sants
Where is the train station in Madrid?
Main arrival station: Madrid Atocha Train Station
Madrid has one train station.
All train stations in Madrid:
- Madrid Atocha Train Station
Need a return trip from Madrid to Barcelona?
Search Train TicketsPlan your next adventure
Continue by train from Madrid
- Madrid to Barcelona TrainRON 240+
- Madrid to Seville TrainRON 152+
Check out these popular routes
- Baltimore to New York TrainRON 536+
- Toronto to Montreal TrainRON 319+
- Washington DC to Philadelphia TrainRON 337+
- Philadelphia to New York TrainRON 300+
- New York to Boston TrainRON 642+
- Boston to New Rochelle TrainRON 416+
- Washington DC to New Rochelle TrainRON 457+
- New York to Providence TrainRON 642+
- New York to Philadelphia TrainRON 314+
- New York to Baltimore TrainRON 503+
- New York to Washington DC TrainRON 582+
- Philadelphia to Washington DC TrainRON 356+
- Providence to New York TrainRON 642+
- Washington DC to New York TrainRON 582+
- Boston to New York TrainRON 633+
- Montreal to Québec City TrainRON 254+
- Montreal to Toronto TrainRON 295+
- Orlando to Miami TrainRON 208+

Wanderu is the simplest way to book bus 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.




