The cheapest and fastest trains from Barcelona to Madrid
Cheapest price
42S$
Average price
75S$
Fastest journey
3 h 2 m
Average duration
3 h 2 m
Trains per day
39
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 travelling at rush hour.
The average ticket from Barcelona to Madrid will cost around 75S$ if you buy it on the day, but you can find cheap train tickets today for only 42S$.
Of the 39 trains that leave Barcelona for Madrid every day 39 travel direct so it’s quite easy to avoid journeys where you’ll have to change along the way.
These 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 2 m .
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.
066108:20 PM3h28Barcelona Sants11:48 PMMadrid-Puerta de Atocha-Almudena Grandes42 S$1One-way0 changes
0650010:40 AM3h17Barcelona Sants1:57 PMMadrid-Puerta de Atocha-Almudena Grandes49 S$1One-way0 changes
064207:35 AM3h30Barcelona Sants11:05 AMMadrid-Puerta de Atocha-Almudena Grandes49 S$1One-way0 changes
033082:00 PM3h44Barcelona Sants5:44 PMMadrid-Puerta de Atocha-Almudena Grandes50 S$1One-way0 changes
031826:00 PM3h44Barcelona Sants9:44 PMMadrid-Puerta de Atocha-Almudena Grandes50 S$1One-way0 changes
030808:25 AM3h02Barcelona Sants11:27 AMMadrid-Puerta de Atocha-Almudena Grandes73 S$1One-way0 changes
065401:50 PM3h02Barcelona Sants4:52 PMMadrid-Puerta de Atocha-Almudena Grandes59 S$1One-way0 changes
065705:40 PM3h02Barcelona Sants8:42 PMMadrid-Puerta de Atocha-Almudena Grandes69 S$1One-way0 changes
060707:05 AM3h02Barcelona Sants10:07 AMMadrid-Puerta de Atocha-Almudena Grandes69 S$1One-way0 changes
061805:20 PM3h02Barcelona Sants8:22 PMMadrid-Puerta de Atocha-Almudena Grandes81 S$1One-way0 changes
Travel Information
Compare coach, train and flight for Barcelona to Madrid
Omio recommends booking the train as it is the most popular option from Barcelona to Madrid among Omio's users. If you are prioritising price take the train with prices starting from 24S$. For those with little time consider booking a flight which can get you there in 4h 16m. In case you are seeking to minimise your carbon footprint the train is your best bet as it emits only 0.2 - 0.5kg. The ticket price range depends on the travel mode: a train costs an average of 24S$, and a flight costs an average of 49S$.
Distance: 504 km
Compare train with
Most popular Train | Coach | Flight |
|---|---|---|
43S$ Average Price Cheapest | 58S$ Average Price | 204S$ Average Price |
5h 37m Average total duration 5h 7m Onboard + 30m Additional time* | 6h 45m Average total duration 6h 15m Onboard + 30m Additional time* | 7h 16m Average total duration Fastest 4h 16m Onboard + 3h 0m Additional time* |
0.2 - 0.5kg CO2 emissions Lowest | 0.5 - 1.3kg CO2 emissions | 1.5 - 3.0kg CO2 emissions |
![]() Most popular train company | ![]() Most popular bus company | ![]() Most popular airline |
Direct Options | Direct Options | Direct Options |
Additional time: Average total travel duration to departure point, security checks and transfers.
Live departures
Barcelona to Madrid train times
The table below shows live departures for Barcelona to Madrid trains for today, Monday, 22 June. You can also manually refresh the results below to see updated train journeys.
| Provider | Departs | Duration | Arrives | Changes | Tickets |
|---|---|---|---|---|---|
03182 | On time 6:00 PM Barcelona Sants | 3h44 | 9:44 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
03180 | On time 6:25 PM Barcelona Sants | 3h02 | 9:27 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
03192 | On time 6:40 PM Barcelona Sants | 3h37 | 10:17 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
06190 | On time 6:53 PM Barcelona Sants | 3h17 | 10:10 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
03190 | On time 7:25 PM Barcelona Sants | 3h02 | 10:27 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
06200 | On time 7:40 PM Barcelona Sants | 3h02 | 10:42 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
03310 | On time 8:00 PM Barcelona Sants | 3h44 | 11:44 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
06610 | Delayed 8:20 PM Barcelona Sants | 3h28 | 9:48 PM 9:48 PMMadrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
| Tuesday, 23 June | |||||
06060 | On time 5:45 AM Barcelona Sants | 3h17 | 9:02 AM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
03062 | On time 5:50 AM Barcelona Sants | 3h50 | 9:40 AM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
03302 | On time 6:35 AM Barcelona Sants | 3h17 | 9:52 AM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
06070 | On time 7:05 AM Barcelona Sants | 3h02 | 10:07 AM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
03662 | On time 7:27 AM Barcelona Sants | 3h10 | 10:37 AM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
06420 | On time 7:35 AM Barcelona Sants | 3h30 | 11:05 AM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
06080 | On time 7:50 AM Barcelona Sants | 3h25 | 11:15 AM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
03082 | On time 8:00 AM Barcelona Sants | 3h44 | 11:44 AM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
03080 | On time 8:25 AM Barcelona Sants | 3h02 | 11:27 AM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
06012 | Delayed 8:45 AM Barcelona Sants | 3h31 | 10:16 AM 10:16 AMMadrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
03092 | Delayed 9:00 AM Barcelona Sants | 3h24 | 10:24 AM 10:24 AMMadrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
03304 | 9:55 AM Barcelona Sants | 3h49 | 1:44 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
06500 | 10:40 AM Barcelona Sants | 3h17 | 1:57 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
06110 | 10:45 AM Barcelona Sants | 3h04 | 1:49 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
03112 | 11:00 AM Barcelona Sants | 3h17 | 2:17 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
06020 | 11:18 AM Barcelona Sants | 3h24 | 2:42 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
03122 | 12:00 PM Barcelona Sants | 3h44 | 3:44 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
06320 | 12:14 PM Barcelona Sants | 3h02 | 3:16 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
09730 | 12:50 PM Barcelona Sants | 3h28 | 4:18 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
06014 | 1:13 PM Barcelona Sants | 3h24 | 4:37 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
03130 | 1:27 PM Barcelona Sants | 3h02 | 4:29 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
06540 | 1:50 PM Barcelona Sants | 3h02 | 4:52 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
03308 | 2:00 PM Barcelona Sants | 3h44 | 5:44 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
06150 | 2:50 PM Barcelona Sants | 3h02 | 5:52 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
03152 | 3:00 PM Barcelona Sants | 3h17 | 6:17 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
03150 | 3:25 PM Barcelona Sants | 3h02 | 6:27 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
06360 | 3:52 PM Barcelona Sants | 3h24 | 7:16 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
03162 | 4:00 PM Barcelona Sants | 3h44 | 7:44 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
03172 | 4:58 PM Barcelona Sants | 3h18 | 8:16 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
06180 | 5:20 PM Barcelona Sants | 3h02 | 8:22 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
03170 | 5:25 PM Barcelona Sants | 3h02 | 8:27 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 changesdirect | |
This is the last train of the day. | |||||
Find all the dates and times for this journey
Compare prices and tickets Barcelona to Madrid by coach, train or flight
Compare coach, train and flight prices over the next three weeks. See the best deals at a glance, find the lowest fares, and choose the option that fits your budget.
23 Jun
24 Jun
25 Jun
26 Jun
27 Jun
28 Jun
29 Jun
30 Jun
01 Jul
02 Jul
03 Jul
04 Jul
05 Jul
06 Jul
07 Jul
08 Jul
09 Jul
10 Jul
11 Jul
12 Jul
13 Jul
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 SNCF OUIGO, AVE, Renfe AVLO or Renfe 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 SNCF OUIGO, AVE, Renfe AVLO or Renfe 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?
Journey information
Overview: Train from Barcelona to Madrid
Trains from Barcelona to Madrid run on average 37 times per day, taking around 5h 7m. Cheap train tickets for this journey start at 24S$ but you can travel from only 21S$ by coach.
There are 37 trains per day. The earliest train runs at 05:40, the last at 21:15. The fastest train covers the 504 km distance in 3h 2m.
Distance 504 km |
Average train duration 5h 7m |
Cheapest ticket price 24S$ |
Trains per day 37 |
Direct trains 37 |
Fastest train 3h 2m |
First train 5:40 AM |
Last train 9:15 PM |
Cheapest Month Sept |
Cheapest Day Sat |
High Season Jul - Sept |
Low Season Jan - Mar |
Busiest Day Tue |
Least Busy Day Sun |
Best time to book 91 days |
Train companies: iryo, SNCF OUIGO, AVE, Renfe AVLO, Renfe, Renfe Viajeros, Ouigo from Barcelona to Madrid trainsiryo, SNCF OUIGO, AVE, Renfe AVLO, Renfe, Renfe Viajeros, Ouigo trains will get you between Barcelona and Madrid from 21S$. With over 1000 travel companies on Omio, you can find the best train times and tickets for your trip.
iryo
AVE
Renfe
SNCF OUIGO
Renfe AVLO
Renfe Viajeros
Ouigo
FAQs: Barcelona to Madrid train
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
Important Stations and Airports in Barcelona and Madrid
- Mon - Sun: 06:00 - 22:00
- Hotspots in and near restaurants
- Staffed and automatic. Open daily from 05:30 to 21:00
- 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
- All areas of the station have full disability access facilities
- Apartments Eixample
- Apartment Guell
- Sweet Inn Callao
- Mon - Sun: 06:00 - 22:00
- Located in various locations inside the station
- Metro lines: L3, L5
- Bus lines: A1, A2
- Train lines: AVE, Alvia, Euromed, Talgo, Trenhotel, TGV, Avant, Intercity, R1, R2, R2 Nord, R2 Sud, R3, R4, RG1, R11, R12, R13, R14, R15, R16, R17
- Mon - Sun: 10:00 - 20:00
- Free WiFi in the station and on all Renfe trains
- Open daily from 05:30 to 22:00
- Passion Food
- La Barrila
- Enrique Tomás
- Pic Nic
- Foodissimo!
- PureGusto
- Burger King
- Wheelchair parking, adapted elevators, adapted platforms, lobby shopping area
- 60 Balconies Urban Stay
- Only YOU Hotel Atocha
- SLEEP’N Atocha
- Mon - Sun: 10:00 - 20:00
- On the ground floor of the main concourse
- Metro lines: 1
- Bus lines: 10, 14, 24, 26, 32, 37, 54, 57, 59, 85, 86, 102, 121, 203
- Train lines: C1, C2, C3, C4, C5, C7, C8, C10
Most popular train connections from Barcelona
More options for your journey from Barcelona to Madrid
Here are some other resources that might have the information you need


