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
- DKK 232.98
- 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 DKK 268.05. 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 DKK 486.62 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 DKK 303 and DKK 836. 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 DKK 355. 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 DKK 632 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 DKK 486.62 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 | DKK 540.05 |
Iryo train tickets from Barcelona to Madrid start from DKK 232.98, and on average cost DKK 540.05. 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 DKK 232.98 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 DKK 475.
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 Sunday instead, as it tends to be the least crowded day of the week.
Busiest
Monday
Least crowded
Sunday
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 TrainDKK 303+
- Madrid to Seville TrainDKK 204+
Check out these popular routes
- New York to Baltimore TrainDKK 737+
- Toronto to Montreal TrainDKK 454+
- New York to Washington DC TrainDKK 836+
- Providence to New York TrainDKK 947+
- Boston to New Rochelle TrainDKK 671+
- Montreal to Toronto TrainDKK 428+
- Montreal to Québec City TrainDKK 355+
- New York to Boston TrainDKK 947+
- Boston to New York TrainDKK 901+
- Philadelphia to Washington DC TrainDKK 526+
- Philadelphia to New York TrainDKK 454+
- Baltimore to New York TrainDKK 803+
- Washington DC to New Rochelle TrainDKK 691+
- Orlando to Miami TrainDKK 303+
- Washington DC to New York TrainDKK 836+
- New York to Providence TrainDKK 895+
- New York to Philadelphia TrainDKK 480+
- Washington DC to Philadelphia TrainDKK 487+

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.




