Barcelona to Madrid train with iryo

Tue, 18 Aug
+ Add return
iryo
SNCF OUIGO
AVE
Renfe AVLO
Renfe
2,000+ travel companies
iryo
SNCF OUIGO
AVE
Renfe AVLO
Renfe
2,000+ travel companies
QR-Code
Scan to get our free app
Use our app to get live travel updates and book mobile tickets for trains, buses, flights, and ferries.
App Store
rate4.9
42K ratings
Google Play
rate4.6
136K reviews

The cheapest and fastest trains from Barcelona to Madrid

Showing times and prices for 18 Aug

Cheapest price

31€

Average price

65€

Fastest journey

3 h 2 m

Average duration

3 h 4 m

Trains per day

22

Distance

504 km

Cheap tickets

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 65€ if you buy it on the day, but you can find cheap train tickets today for only 31€.

Fast trains

Of the 22 trains that leave Barcelona for Madrid every day 22 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 4 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 10 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.

  • AVE03172
    4:58 PM3h18
    Barcelona Sants
    8:16 PMMadrid-Puerta de Atocha-Almudena Grandes
    31 1One-way
    0 changes
  • SNCF OUIGO06570
    5:40 PM3h02
    Barcelona Sants
    8:42 PMMadrid-Puerta de Atocha-Almudena Grandes
    35 1One-way
    0 changes
  • AVE03170
    5:25 PM3h02
    Barcelona Sants
    8:27 PMMadrid-Puerta de Atocha-Almudena Grandes
    37 1One-way
    0 changes
  • AVE03182
    6:00 PM3h44
    Barcelona Sants
    9:44 PMMadrid-Puerta de Atocha-Almudena Grandes
    37 1One-way
    0 changes
  • AVE03192
    6:40 PM3h37
    Barcelona Sants
    10:17 PMMadrid-Puerta de Atocha-Almudena Grandes
    37 1One-way
    0 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 24€. 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 24€, and a flight costs an average of 49€.

Distance: 504 km

Compare train with

Most popular
Train
Coach
Flight

43€

Average Price

Cheapest

58€

Average Price

204€

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

iryo

Most popular train company

Alsa

Most popular bus company

Iberia

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, 17 August. You can also manually refresh the results below to see updated train journeys.

Last updated at
ProviderDepartsDurationArrivesChanges
Tickets
AVE03062
On time
5:50 AM Barcelona Sants
3h50
9:40 AM Madrid-Puerta de Atocha-Almudena Grandes
0 changesdirect
AVE03302
On time
6:35 AM Barcelona Sants
3h17
9:52 AM Madrid-Puerta de Atocha-Almudena Grandes
0 changesdirect
AVE03662
On time
7:27 AM Barcelona Sants
3h10
10:37 AM Madrid-Puerta de Atocha-Almudena Grandes
0 changesdirect
SNCF OUIGO06420
On time
7:35 AM Barcelona Sants
3h30
11:05 AM Madrid-Puerta de Atocha-Almudena Grandes
0 changesdirect
SNCF OUIGO074107:35 AM Barcelona Sants
3h30
11:05 AM Madrid-Puerta de Atocha-Almudena Grandes0 changesdirect
AVE03082
On time
8:00 AM Barcelona Sants
3h44
11:44 AM Madrid-Puerta de Atocha-Almudena Grandes
0 changesdirect
AVE03304
On time
9:55 AM Barcelona Sants
3h49
1:44 PM Madrid-Puerta de Atocha-Almudena Grandes
0 changesdirect
AVE03112
Delayed
11:00 AM Barcelona Sants
3h17
12:17 PM 12:17 PMMadrid-Puerta de Atocha-Almudena Grandes
0 changesdirect
AVE03122
On time
12:00 PM Barcelona Sants
3h44
3:44 PM Madrid-Puerta de Atocha-Almudena Grandes
0 changesdirect
AVE09730
On time
12:50 PM Barcelona Sants
3h28
4:18 PM Madrid-Puerta de Atocha-Almudena Grandes
0 changesdirect
AVE03130
On time
1:27 PM Barcelona Sants
3h02
4:29 PM Madrid-Puerta de Atocha-Almudena Grandes
0 changesdirect
SNCF OUIGO06540
Delayed
1:50 PM Barcelona Sants
3h02
2:52 PM 2:52 PMMadrid-Puerta de Atocha-Almudena Grandes
0 changesdirect
AVE03308
On time
2:00 PM Barcelona Sants
3h44
5:44 PM Madrid-Puerta de Atocha-Almudena Grandes
0 changesdirect
AVE03152
On time
3:00 PM Barcelona Sants
3h17
6:17 PM Madrid-Puerta de Atocha-Almudena Grandes
0 changesdirect
AVE03162
On time
4:00 PM Barcelona Sants
3h44
7:44 PM Madrid-Puerta de Atocha-Almudena Grandes
0 changesdirect
AVE03172
On time
4:58 PM Barcelona Sants
3h18
8:16 PM Madrid-Puerta de Atocha-Almudena Grandes
0 changesdirect
AVE03170
On time
5:25 PM Barcelona Sants
3h02
8:27 PM Madrid-Puerta de Atocha-Almudena Grandes
0 changesdirect
SNCF OUIGO06570
On time
5:40 PM Barcelona Sants
3h02
8:42 PM Madrid-Puerta de Atocha-Almudena Grandes
0 changesdirect
AVE03310
On time
8:00 PM Barcelona Sants
3h44
11:44 PM Madrid-Puerta de Atocha-Almudena Grandes
0 changesdirect
SNCF OUIGO06610
Delayed
8:20 PM Barcelona Sants
3h28
9:48 PM 9:48 PMMadrid-Puerta de Atocha-Almudena Grandes
0 changesdirect

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.

Mon
17 Aug
Tue
18 Aug
Wed
19 Aug
Thu
20 Aug
Fri
21 Aug
Sat
22 Aug
Sun
23 Aug
Mon
24 Aug
Tue
25 Aug
Wed
26 Aug
Thu
27 Aug
Fri
28 Aug
Sat
29 Aug
Sun
30 Aug
Mon
31 Aug
Tue
01 Sept
Wed
02 Sept
Thu
03 Sept
Fri
04 Sept
Sat
05 Sept
Sun
06 Sept

Why should you book Barcelona to Madrid trains with Omio?

iryo as well as SNCF OUIGO, AVE, Renfe AVLO, Renfe and more offer trains services from Barcelona to Madrid.
Omio is an official ticket reseller for all your travel options from Barcelona to Madrid.

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?

The best time to book your train from Barcelona to Madrid is 91 days before departure. See how prices for trains change on the Barcelona to Madrid route.
Prices are for one-way tickets for one passenger from Barcelona to Madrid per month. Insights are sourced from fares found by Omio users in the last 12 months. Current prices may differ as prices vary depending on the time of day, class or how far in advance you book your train from Barcelona to Madrid.

Journey information

Overview: Train from Barcelona to Madrid

SpainSpain
SpainSpain
Icon of train

Trains from Barcelona to Madrid run on average 37 times per day, taking around 5h 7m. Cheap train tickets for this journey start at 24€ but you can travel from only 21€ 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.

Fares are the lowest economy prices found on Omio. Early booking often means lower prices. Prices change daily and are subject to availability. Discount cards, coach trips, and booking fees are not included.
Price information
Cheapest alternative travel mode
Coach from 21€
Distance
504 km
Average train duration
5h 7m
Cheapest ticket price
24€
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
Fares are the lowest economy prices found on Omio. Early booking often means lower prices. Prices change daily and are subject to availability. Discount cards, coach trips, and booking fees are not included.
Price information
Cheapest alternative travel mode
Coach from 21€

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 21€. With over 1000 travel companies on Omio, you can find the best train times and tickets for your trip.

iryo

About
iryo is a new brand from railway operator ILSA operating in Spain since 2022. iryo uses Frecciarossa 1000 trains which are modern, can travel at up to 360km/h and have a minimal environmental impact. iryo’s Frecciarossa trains have different classes, all of which come with free unlimited WiFi, power sockets, toilets and an onboard entertainment portal where you can watch films and TV series. The main classes are: Infinita Class, Singular Café Class, Singular Class, Inicial Class. These new trains take 2 hours and 30 minutes to travel between Madrid and Barcelona. They depart from Madrid Atocha and Barcelona Sants stations, and stop in Zaragoza along the way. iryo services also cover Madrid, Cuenca, Valencia, Alicante, Córdoba, Seville and Málaga.
Luggage & cancellation policy
Average Duration
3h 2m
Cheapest Price
32€
iryo frequency
13 a day
Luggage included
1 cabin bag (36x56x26cm) and 1 handbag (36x30x10cm)
Luggage storage
Overhead compartments and designated luggage areas
Cancellation Policy
According to fare conditions
Refund
Full refund provided
Amenities on board the train
Wifi
Food sold onboard
Restaurant car with Mediterranean cuisine, at-seat service in both classes
Seat reservation
Included in ticket price
Toilets
USB plugs
Accessibility
Wheelchair spaces and assistance available
Pets
Small pets in carriers allowed free. Large dogs need paid ticket
Quiet zone

AVE

About
Travel comfortably with AVE, Renfe’s high-speed trains. AVE connects major cities across Spain at speeds of up to 310 km/h (193 mph), offering a fast and smooth travel experience. Ticket options include Promo, Promo+, and Flexible fares to suit different budgets, along with discount cards such as the Gold Card and +Renfe Youth 50 Card for eligible travelers. AVE trains feature modern amenities including comfortable seating, Wi-Fi, power outlets, and onboard catering, making them a convenient and enjoyable way to travel across Spain.
Luggage & cancellation policy
Average Duration
3h 2m
Cheapest Price
24€
AVE frequency
20 a day
Luggage included
1 piece of hand luggage and 3 pieces of luggage free of charge
Luggage storage
Overhead racks, end of carriages, and designated areas between seats
Cancellation Policy
Refund conditions depend on ticket type
Refund
Full refund if train is canceled
Amenities on board the train
Wifi
Food sold onboard
Cafeteria car with hot and cold meals, snacks, and beverages. At-seat service in Preferente (First) Class
Seat reservation
Included in ticket price for all classes
Toilets
USB plugs
Accessibility
Wheelchair spaces, accessible toilets, and assistance services available
Pets
Small pets under 10kg in carriers allowed free. Larger dogs require paid ticket and muzzle. Guide dogs free.
Quiet zone

Renfe

About
Renfe is Spain’s national train company operating freight and passenger on Spain’s extensive railway network as well as international routes to neighboring France and Portugal. Renfe has a wide range of ticket types to fit your budget like the Basic, Elige and Premium tickets. Renfe also offers discount cards like the Renfe Gold Card and +Renfe Youth Card 50 for qualified travelers. The Renfe AVE trains run at high speed and serve long-distance routes, Alvia trains combine high-speed and normal speed trains serving domestic routes, Altaria serves domestic routes into southern Spain, Euromed offers domestic routes along the Mediterranean coast, Avant trains serve regional commuter routes and Trenhotel offers night train routes.
Luggage & cancellation policy
0
Renfe frequency
1 a day
Luggage included
一件手提行李和最多三件行李免费。
Luggage storage
车顶行李架、车厢末端的行李区,以及座位之间的空间
Cancellation Policy
根据票务条件可取消
Refund
因取消列车而提供全额退款
Amenities on board the train
Wifi
Food sold onboard
大多数长途列车上设有餐车(自助餐厅),提供热餐和冷餐、小吃及饮料。头等舱乘客享有座位服务。
Seat reservation
可选座位预订。某些票种包含在内,其他票种需额外收费。建议在高峰旅行时段使用。
Toilets
USB plugs
Accessibility
轮椅空间、无障碍厕所和为行动不便的乘客提供的协助服务。
Pets
小型宠物在笼子里可以免费旅行。狗必须系上牵引绳并戴上嘴套,需要购买票。导盲犬可以免费旅行。
Quiet zone

SNCF OUIGO

About
SNCF OUIGO is a low-cost train service launched in 2013 by SNCF, the French national railway company. It offers budget-friendly travel on both high-speed (Ouigo Grande Vitesse) and conventional (Ouigo Vitesse Classique) lines in France, and also to Belgium and Spain. OUIGO trains are characterized by a \no-frills\" approach, featuring a single class of seating and minimal onboard amenities to keep ticket prices low. While the high-speed services utilize specially reconfigured TGV trains, Ouigo Vitesse Classique uses older locomotive-hauled rolling stock for even cheaper fares on slower routes."
Luggage & cancellation policy
Average Duration
3h 2m
Cheapest Price
24€
SNCF OUIGO frequency
9 a day
Luggage included
1 cabin bag (max 36x27x15cm) and 1 small bag included
Luggage storage
Overhead racks and designated areas at end of carriages
Cancellation Policy
According to fare conditions
Refund
Full refund if train is canceled by OUIGO
Amenities on board the train
Wifi
Food sold onboard
Cafe bar serving hot and cold drinks, snacks, sandwiches. First Class at-seat service on some routes
Seat reservation
Seat reservation mandatory and included in ticket price
Toilets
USB plugs
Accessibility
Wheelchair spaces and assistance available for passengers with reduced mobility
Pets
Small pets in carriers (max 45x30x25cm) for €5. Large dogs not allowed except guide dogs

Renfe AVLO

About
Renfe Avlo is Spain’s low-cost high-speed rail service operated by the national rail company Renfe. Serving routes between major cities such as Madrid, Zaragoza, Barcelona, Valencia, Tarragona, Girona, and Figueres, Avlo trains reach speeds of up to 186 mph (300 km/h). All tickets are for Economy Class (“Básica”) with assigned seating and include onboard services such as free Wi-Fi, entertainment via the PlayRenfe app, power sockets, and vending machines. Child tickets are available for ages 0–13, while passengers aged 14 and over require an adult ticket. Each fare includes a backpack and hand luggage (55x35x25 cm, no weight limit), with the option to upgrade for extra baggage. Prices start from as low as €7, making Avlo a budget-friendly way to travel between Spain’s most popular destinations.
Luggage & cancellation policy
Average Duration
3h 12m
Cheapest Price
7€
Renfe AVLO frequency
4 a day
Luggage included
1 cabin bag (55x35x25cm) and 1 personal item (35x30x20cm)
Luggage storage
Overhead racks and spaces between seats
Cancellation Policy
According to fare conditions
Refund
Full refund if train is canceled
Amenities on board the train
Wifi
Food sold onboard
Cafe bar serving hot and cold drinks, snacks, sandwiches. First Class at-seat service on some routes
Seat reservation
Seat reservation included in ticket price
Toilets
USB plugs
Accessibility
Wheelchair spaces and assistance available
Pets
Small pets in carriers under 10kg allowed free. Service animals allowed

Renfe Viajeros

Luggage & cancellation policy
Average Duration
3h 28m
Cheapest Price
55€
Renfe Viajeros frequency
1 a day

Ouigo

Luggage & cancellation policy
Average Duration
3h 2m
Cheapest Price
65€
Ouigo frequency
5 a day

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.

FAQs
Cheap train tickets from Barcelona to Madrid can start from as little as 24€ when you book in advance. The average train ticket price for Barcelona to Madrid is 43€; however, prices vary depending on the time of day and class and they tend to be more expensive on the day.
The average journey time by train from Barcelona to Madrid is 3h 2m to travel the 504 km long route. Journey times can vary on weekends and holidays, so use our Journey Planner to search for a specific date.
The earliest train from Barcelona to Madrid leaves at 5:40 am. Plan your trip with the Journey Planner from Omio.
The latest train from Barcelona to Madrid leaves at 9:15 pm.
Yes, there are 37 direct trains a day from Barcelona to Madrid with iryo, SNCF OUIGO, AVE, Renfe AVLO, Renfe, Renfe Viajeros, Ouigo. Schedules can vary on holidays or weekends with fewer direct trains.
Yes, there's a high-speed train to Madrid. Take the fast train with iryo, SNCF OUIGO from Barcelona to Madrid.
When taking a train from Barcelona to Madrid, you can count on iryo, SNCF OUIGO, AVE, Renfe AVLO, Renfe, Renfe Viajeros, Ouigo for the best way to get you to Madrid. You can also check all possible train companies who offer a service between Barcelona and Madrid and compare the amenities they offer before buying a train ticket.
A trip to Madrid from Barcelona is worth doing but not as a day trip with a journey time of 3h 2m each way. Check with Omio app the best way to travel.
The cheapest month for a train from Barcelona to Madrid is September.
It's helpful to compare your options as there are 3 ways to travel between Barcelona and Madrid including taking a coach, train and flight.

popular train stations

Important Stations and Airports in Barcelona and 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.

Departure train stations in Barcelona
Arrival train stations in Madrid

Which Barcelona station do trains to Madrid leave from?

Trains from Barcelona to Madrid leave from Barcelona Sants. The station is 2 km from Barcelona city centre at Plaça dels Països Catalans, 1, 7, 08014 Barcelona, Spain.
Barcelona SantsPlaça dels Països Catalans, 1, 7, 08014 Barcelona, Spain+34 934956020WifiLockersParkingDiningATMTaxisAccessibilityWCHotelLost and Found OfficeTicket OfficeBike ParkingBike RentalCar RentalInformation Desk
City-centre transport

Getting to Barcelona Sants from Barcelona city centre

Barcelona Sants is 1 km from Barcelona city centre. Public transport options include:

TrainR1, R4 · 4m · 1€ · every ~15 min
Re, 15254, 15710, 15760, 15762, 15770, 15772, 15774, 15778, 15780, 15782, 15784, 15786, 15788, 15792, 15850, 15860, 15868, 15874, 15878, 15886 · 5m · 1€
BusN28 · 20m · every ~3 min
D20 · 21m · 3€ · every ~12 min
SubwayL3 · 16m · 3€ · every ~26 min

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.

More options for your journey from Barcelona to Madrid

Here are some other resources that might have the information you need

HomeTrainsBarcelona to Madrid train

The Omio App Makes Travel Planning Easy

We’ll get you where you want to go. From live train updates to mobile tickets, our innovative app is the ideal way to plan and keep track of your travel.

ios-badge
android-badge
Hand With Phone