The cheapest and fastest trains from Barcelona to Madrid
Cheapest price on Oct 09
€109
Average ticket price on Oct 09
€162
Fastest journey on Oct 09
3 h 1 m
Average journey duration on Oct 09
3 h 2 m
Trains on Oct 09
37
Distance
504 km
The best way to find a cheap train ticket from Barcelona to Madrid is to book your journey as far in advance as possible and to avoid traveling at rush hour.
The average ticket from Barcelona to Madrid will cost around €162 if you buy it on the day, but the cheapest tickets can be found for only €109.
On Fri, Oct 09, we found 37 trains from Barcelona to Madrid, including 37 direct services.
On Fri, Oct 09 the direct trains cover the 504 km distance in an average of 3 h 2 m but if you time it right, some trains will get you there in just 3 h 1 m .
On Fri, Oct 09 the slowest trains will take 3 h 2 m and usually involve a change or two along the way, but you might be able to save a few pennies if you’re on a budget.
0602011:18 AM3h24Barcelona Sants2:42 PMMadrid-Puerta de Atocha-Almudena Grandes€1091One-way0 transfers
062007:40 PM3h02Barcelona Sants10:42 PMMadrid-Puerta de Atocha-Almudena Grandes€1181One-way0 transfers
036627:27 AM3h10Barcelona Sants10:37 AMMadrid-Puerta de Atocha-Almudena Grandes€1321One-way0 transfers
060707:05 AM3h02Barcelona Sants10:07 AMMadrid-Puerta de Atocha-Almudena Grandes€1331One-way0 transfers
0311211:00 AM3h17Barcelona Sants2:17 PMMadrid-Puerta de Atocha-Almudena Grandes€1371One-way0 transfers
031402:25 PM3h01Barcelona Sants5:26 PMMadrid-Puerta de Atocha-Almudena Grandes€1471One-way0 transfers
031604:25 PM3h02Barcelona Sants7:27 PMMadrid-Puerta de Atocha-Almudena Grandes€2201One-way0 transfers
060707:05 AM3h02Barcelona Sants10:07 AMMadrid-Puerta de Atocha-Almudena Grandes€1331One-way0 transfers
062007:40 PM3h02Barcelona Sants10:42 PMMadrid-Puerta de Atocha-Almudena Grandes€1181One-way0 transfers
065401:50 PM3h02Barcelona Sants4:52 PMMadrid-Puerta de Atocha-Almudena Grandes€1491One-way0 transfers
Journey information
Overview: Train from Barcelona to Madrid
Trains from Barcelona to Madrid run on average 40 times per day, taking around 3h 4m. Cheap train tickets for this journey start at €9 but you can travel from only €5 by bus.
There are 40 trains per day. The earliest train runs at 05:40, the last at 21:15. The fastest train covers the 504 km distance in 2h 36m.
Distance 504 km |
Average train duration 3h 4m |
Cheapest ticket price €9 |
Trains per day 40 |
Direct trains 40 |
Fastest train 2h 36m |
First train 5:40 AM |
Last train 9:15 PM |
Cheapest Month Sep |
Cheapest Day Tue |
High Season Apr - Jun |
Low Season Jan - Mar |
Busiest Day Tue |
Least Busy Day Sun |
Best time to book 91 days |
Live departures
Barcelona to Madrid train times
The table below shows live departures for Barcelona to Madrid trains for today, Thursday, October 8. You can also manually refresh the results below to see updated train journeys.
| Provider | Departs | Duration | Arrives | Transfers | Tickets |
|---|---|---|---|---|---|
06060 | 5:45 AM Barcelona Sants | 3h17 | 9:02 AM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
03302 | On time 6:35 AM Barcelona Sants | 3h17 | 9:52 AM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
03070 | 7:00 AM Barcelona Sants | 3h02 | 10:02 AM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06070 | 7:05 AM Barcelona Sants | 3h02 | 10:07 AM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
03662 | On time 7:27 AM Barcelona Sants | 3h10 | 10:37 AM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06080 | 7:50 AM Barcelona Sants | 3h25 | 11:15 AM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
03092 | 9:00 AM Barcelona Sants | 3h17 | 12:17 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06012 | 9:12 AM Barcelona Sants | 3h28 | 12:40 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
03304 | 9:55 AM Barcelona Sants | 3h49 | 1:44 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06500 | 10:40 AM Barcelona Sants | 3h17 | 1:57 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06110 | 10:45 AM Barcelona Sants | 3h04 | 1:49 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
03112 | 11:00 AM Barcelona Sants | 3h17 | 2:17 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06020 | 11:18 AM Barcelona Sants | 3h24 | 2:42 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
03122 | 12:00 PM Barcelona Sants | 3h44 | 3:44 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06320 | 12:14 PM Barcelona Sants | 3h02 | 3:16 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
09730 | On time 12:50 PM Barcelona Sants | 3h28 | 4:18 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06014 | 1:13 PM Barcelona Sants | 3h24 | 4:37 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
03130 | 1:27 PM Barcelona Sants | 3h02 | 4:29 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06540 | 1:50 PM Barcelona Sants | 3h02 | 4:52 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
03308 | 2:00 PM Barcelona Sants | 3h44 | 5:44 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
03140 | 2:25 PM Barcelona Sants | 3h01 | 5:26 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06150 | 2:50 PM Barcelona Sants | 3h02 | 5:52 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
03152 | 3:00 PM Barcelona Sants | 3h17 | 6:17 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
03150 | 3:25 PM Barcelona Sants | 3h02 | 6:27 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06360 | 3:52 PM Barcelona Sants | 3h24 | 7:16 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
03162 | 4:00 PM Barcelona Sants | 3h44 | 7:44 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
03160 | 4:25 PM Barcelona Sants | 3h02 | 7:27 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
03172 | 4:58 PM Barcelona Sants | 3h18 | 8:16 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06180 | 5:20 PM Barcelona Sants | 3h02 | 8:22 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
03170 | 5:25 PM Barcelona Sants | 3h02 | 8:27 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
03182 | 6:00 PM Barcelona Sants | 3h44 | 9:44 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
03180 | 6:25 PM Barcelona Sants | 3h02 | 9:27 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06190 | 6:53 PM Barcelona Sants | 3h17 | 10:10 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
03190 | 7:25 PM Barcelona Sants | 3h02 | 10:27 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06200 | 7:40 PM Barcelona Sants | 3h02 | 10:42 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
03310 | 8:00 PM Barcelona Sants | 3h44 | 11:44 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06610 | 8:20 PM Barcelona Sants | 3h28 | 11:48 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06210 | 8:28 PM Barcelona Sants | 3h24 | 11:52 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
This is the last train of the day. | |||||
Find all the dates and times for this journey
Why should you book Barcelona to Madrid trains with Omio?
Why book with Omio vs iryo?
- Compare with other providers: On Omio, you can not only buy tickets for iryo, but also compare tickets for the likes of AVE, SNCF OUIGO or Renfe AVLO to find the best option for your trip from Barcelona to Madrid.
- Designed for International Travelers: Omio is in your language including 24/7 customer service and offers multiple payment options, including PayPal, credit cards, and bank transfer, in your preferred currency.
- Compare all your options: Omio allows you to compare iryo with all available travel options, which are bus, train and flight to ensure you get the best deal for traveling from Barcelona to Madrid.
Why book with Omio over Wanderu, Rome2rio or Raileurope?
- Compare with other providers: On Omio, you can also compare tickets for the likes of AVE, SNCF OUIGO or Renfe AVLO to find the best option for your trip from Barcelona to Madrid.
- Multiple modes of transport: Omio allows you to compare travel options including bus, train and flight to find the ideal travel option from Barcelona to Madrid.
How far in advance should I book train tickets from Barcelona to Madrid?
Train companies: AVE, iryo, SNCF OUIGO, Renfe AVLO from Barcelona to Madrid trainsAVE, iryo, SNCF OUIGO, Renfe AVLO trains will get you between Barcelona and Madrid from €5. With over 1000 travel companies on Omio, you can find the best train times and tickets for your trip.
AVE
iryo
SNCF OUIGO
Renfe AVLO
Trains from Barcelona to Madrid
The majority of trains from Barcelona to Madrid depart from Sants Station. However, a limited number of departures leave from Passeig De Gracia too. The first train departs just before 6:00 a.m. and the last train of evening leaves at approximately 9 p.m. The duration of the journey is generally two and half to three hours, with the majority of routes being direct. Trains depart regularly throughout the day and evening, with up to four times per hour during peak times.
What are the departure and arrival stations for Trains from Barcelona to Madrid?
Barcelona Sants Station: Conveniently situated in the city, Barcelona Sants is easily reached by the following metro system lines - L3 (green line) and L5 (blue line). Taxis are also readily available at the station and from the city centre.
Madrid Atocha Station: Located in the heart of the city, Atocha Station is a few minutes walk from the centre of Madrid. Alternatively, Line 1 (blue line) of Madrid's metro system connects from the station to the surrounding area.
FAQs: Trains from Barcelona to Madrid
Find answers to the most common questions about traveling from Barcelona to Madrid by train. From journey times and ticket prices to direct connections, first and last departures, and even whether the route is scenic, our FAQs cover everything you need to plan your trip. Whether you’re looking for the fastest train, the cheapest option, or tips for making the most of your visit at Madrid, this guide helps you travel smarter and with confidence.

popular train stations
Popular train stations from Barcelona to Madrid
Most Barcelona to Madrid trains use the Barcelona Sants to Madrid-Puerta de Atocha-Almudena Grandes station pair. Use this guide to compare Barcelona and Madrid train stations on this route, check city-centre transport, alongside checking practicalities like train station facilities and services.
Which Barcelona station do trains to Madrid leave from?
Getting to Barcelona Sants from Barcelona city centre
Barcelona Sants is 1 km from Barcelona city centre. Public transport options include:
Barcelona Sants train station facilities and services
Barcelona Sants has practical services for this route, including Wifi, Lockers, Parking, Dining, ATM, Taxis, Accessibility, WC, Hotel, Lost and Found Office, Ticket Office, Bike Parking, Bike Rental, Car Rental, and Information Desk.
Food and drink
Food options include: McDonald’s, Caffe di Fiore, Ars Café, Café de l'Estació, Café de l’Estació Deli, Lavazza, Como, Peter's, Tutti Frutti, Enrique Tomás, & many more
Wi-Fi and ATMs
Hotspots in and near restaurants. ATMs are in the central part of the station.
Tickets and information
The ticket office is open Mon - Sun: 06:00 - 22:00. Information desks are located in various locations inside the station.
Luggage and lost property
Luggage storage is staffed and automatic. Open daily from 05:30 to 21:00. Lost and found is available at the station.
Parking, taxis and toilets
Available at Barcelona Sants: Parking, Taxis, WC.
Bike and car services
Available at Barcelona Sants: Bike Parking, Bike Rental, Car Rental.
Accessibility
Accessibility facilities are available at Barcelona Sants: All areas of the station have full disability access facilities.
Shops, hotels and contact
Nearby hotels include Apartments Eixample, Apartment Guell, Sweet Inn Callao.
Which Madrid station do trains from Barcelona arrive at?
Getting to Madrid-Puerta de Atocha-Almudena Grandes from Madrid city centre
Madrid-Puerta de Atocha-Almudena Grandes is 1 km from Madrid city centre. Public transport options include:
Madrid-Puerta de Atocha-Almudena Grandes train station facilities and services
Madrid-Puerta de Atocha-Almudena Grandes has practical services for this route, including Wifi, Lockers, Parking, Dining, ATM, Taxis, Accessibility, WC, Hotel, Lost and Found Office, Ticket Office, Bike Parking, Bike Rental, Car Rental, and Information Desk.
Food and drink
Food options include: Passion Food, La Barrila, Enrique Tomás, Pic Nic, Foodissimo!, PureGusto, Burger King
Wi-Fi and ATMs
Free WiFi in the station and on all Renfe trains. ATMs are in various points at the station.
Tickets and information
The ticket office is open Mon - Sun: 10:00 - 20:00. Information desks are on the ground floor of the main concourse.
Luggage and lost property
Luggage storage is open daily from 05:30 to 22:00. Lost and found is available at the station.
Parking, taxis and toilets
Available at Madrid-Puerta de Atocha-Almudena Grandes: Parking, Taxis, WC.
Bike and car services
Available at Madrid-Puerta de Atocha-Almudena Grandes: Bike Parking, Bike Rental, Car Rental.
Accessibility
Accessibility facilities are available at Madrid-Puerta de Atocha-Almudena Grandes: Wheelchair parking, adapted elevators, adapted platforms, lobby shopping area.
Shops, hotels and contact
Nearby hotels include 60 Balconies Urban Stay, Only YOU Hotel Atocha, SLEEP’N Atocha.
More options for your journey from Barcelona to Madrid
Here are some other resources that might have the information you need
