Best Price Promise

Best Price Promise

If you find train tickets for a cheaper price elsewhere, let us know and we'll refund the difference*.

Book Cheaper Tickets

Book Cheaper Tickets

Save more with a variety of promo codes. Book on the TrainPal app with no booking fees.

Efficient Customer Service

Efficient Customer Service

24/7 fast customer service with prompt responses to your queries.

Fast Changes and Refunds

Fast Changes and Refunds

Seamless rail travel with easy changes and refunds for peace of mind.

  1. Home
  2. Spain Train Journey
  3. Barcelona to Madrid

Barcelona to Madrid train ticket prices

Book cheap train tickets from Barcelona to Madrid with TrainPal, starting at €37.35, with an average price of €90.45*. Board Renfe AVE, Avant, and Avlo high-speed trains, or take iryo and OUIGO trains. Enjoy high-speed travel and excellent services to every corner of Spain. Compare options and start your journey now on TrainPal.
Cheapest

€37.35󰄽

On Fri 04 Sep

  • €76.63󰄽
    Mon31 Aug
  • €78.47󰄽
    Tue01 Sep
  • €38.88󰄽
    Wed02 Sep
  • €39.24󰄽
    Thu03 Sep
  • Fri04 Sep
  • €37.35󰄽
    Sat05 Sep
  • €37.35󰄽
    Sun06 Sep

Barcelona to Madrid train times

The quickest travel time from Barcelona to Madrid is 3h 2m, with a standard duration of 3h 17m. 23 trains are running daily on this route, with the earliest train at 05:45 and the latest at 3h 17m. For more information on train schedules, prices, delays, and cancellations, browseTrainPal. Stay informed with real-time updates to ensure a seamless journey in Spain.

DepartsArrivesOperator

12:00

Barcelona-Sants
3h 44m, Direct

15:44

Madrid-Puerta De Atocha
Renfe
Find tickets

13:13

Barcelona-Sants
3h 24m, Direct

16:37

Madrid-Puerta De Atocha
iryo
Find tickets

13:27

Barcelona-Sants
3h 2m, Direct

16:29

Madrid-Puerta De Atocha
Renfe
Find tickets

13:50

Barcelona-Sants
3h 2m, Direct

16:52

Madrid-Puerta De Atocha
OUIGO Spain
Find tickets

14:50

Barcelona-Sants
3h 2m, Direct

17:52

Madrid-Puerta De Atocha
iryo
Find tickets
View More Trains

Barcelona to Madrid train journey information

Access detailed Renfe, iryo, and OUIGO train information from Barcelona to Madrid, including departure and arrival times, stations, distance, journey duration, train companies, and price options. Check train times and prices for a hassle-free trip.

Price
From €37.35
Departure station
Arrival station
Distance
314 miles (506km)
Journey time
3h 2m
First train
05:45
Last train
20:20
Frequency
23
Train operators

Speedy travel to the heart of Spain: Barcelona to Madrid train 

By Rosaline Nancy Kargbo | Updated August 31, 2026

From frequent departures to unbeatable prices, there are many reasons to opt for rail. Relax on a super-fast ride from one city to another, without the hassle of travelling to and from airports. 

Find your way across Spain, get inspiration for your itinerary and buy cheap train tickets with TrainPal. Enjoy easy digital booking, seat selection and 24/7 customer support for Renfe’s AVE, Avlo and Alvia services, as well as those of operators like iryo and OUIGO Spain. 

Planning your journey: Trains from Barcelona to Madrid 

Departure station: Departing from Barcelona Sants 

The city’s most important transport hub, Barcelona Sants, is the well-connected starting point for your Barcelona to Madrid train. Arrive at one of the many Rodalies (commuter) trains, metro (lines L3 and L5 to Sants Estació), bus or taxi straight to the main entrance on Plaça dels Països Catalans. 

Barcelona Sants’ modern concourse has no shortage of shops and eateries to grab last-minute essentials or a bite to eat before boarding. Trains to Madrid Atocha depart from platforms 1–6. Purchased a Prémium ticket? Tuck into a selection of warm and chilled drinks as well as refreshments at the Sala Club lounge once you’ve passed the baggage control area (access available 1.5–2 hours before your train leaves). 

Note: Security checks (and traveller checks if you’re travelling on a OUIGO Spain train) mean you should arrive at departures at least 20–30 minutes before. 

Arrival station: Arriving at Madrid Atocha 

Step off the train from Barcelona, and you’re only a short stroll from the capital’s historic centre. Madrid Atocha, or Madrid-Puerta de Atocha-Almudena Grandes, is the oldest and largest station in the city. Onward travel couldn’t be easier. The station is served by eight Cercanías (commuter) lines: C-1, C-2, C-3, C-4, C-5, C-7, C-8 and C-10. If you have a Renfe AVE or iryo train ticket from Barcelona to Madrid, take advantage of the Combinado Cercanías deal and get a free connecting trip up to four hours after arrival. Alternatively, hop on a Line 1 Madrid Metro service from Estación del Arte or Atocha Renfe station. Taxis pick up passengers outside the exit on the top floor as well as the western exit on the ground floor.

Choosing your train: Operators from Barcelona to Madrid 

Barcelona to Madrid train services are offered by three companies. The onboard experience varies widely from operator to operator and depending on which ticket you choose. See exactly what you get with each and book tickets for a service that’s the right fit. 

Renfe AVE 

  • Avg. duration: 3h 26m 
  • Departure and arrival stations: Barcelona Sants to Madrid Atocha 
  • Stops: Direct or connecting via Zaragoza-Delicias 
  • Onboard perks: Free Wi-Fi access, PlayRenfe entertainment portal, quiet carriages, power sockets, café bar 
  • Best for: Most frequent departures (around one every hour), flexibility and fewer restrictions, free Combinado Cercanías connection, generous luggage allowance (three bags measuring 85 x 55 x 35 cm each and weighing 25 kg in total, plus a small item of hand luggage) 

iryo 

  • Avg. duration: 3h 17m 
  • Departure and arrival stations: Barcelona Sants to Madrid Atocha 
  • Stops: Direct or connecting via Zaragoza-Delicias  
  • Onboard perks: Complimentary Wi-Fi, quiet coach, plug and USB charging, onboard dining 
  • Best for: Cheap base fares, comfy leather seats, frequent service (around once an hour), space to work on board, free Combinado Cercanías connection, shorter trips (one item of hand luggage (36 x 27 x 15 cm max.) and one cabin-sized bag (55 x 35 x 25 cm max.) permitted) 

OUIGO Spain 

  • Avg. duration: 3h 16m 
  • Departure and arrival stations: Barcelona Sants to Madrid Atocha 
  • Stops: Direct 
  • Onboard perks: Charging, buffet co at your seat, buffet coaches, OUIFUN entertainment portal 
  • Best for: Cheapest fares, family deals, short trips with minimal baggage (one piece of hand luggage (36 x 27 x 15 cm) and one cabin bag (55 x 35 x 25 cm) permitted), add-on options to tailor your trip (e.g., boarding for pets, extra baggage (prices from €5 (~£4.30) for a large 200 cm, 25 kg suitcase)) 

What to see and do in Madrid: Top highlights near the station 

Museo Reina Sofía 

Heading over to Spain’s national museum of 20th-century art is one of the many things to do near Madrid Atocha station. The converted hospital is now home to masterpieces by Gris, Dalí and Miró. Be sure to see Picasso’s Guernica and Woman in Blue, as well as the lesser-known works of art. Arrive two hours before closing for free entry. 

El Retiro Park 

Madrid Atocha also sits around the corner from an urban oasis and UNESCO World Heritage Site. One of the largest parks in the capital, El Retiro is perfect for strolling, grabbing a coffee or spotting birds - including peacocks. Other highlights include the Crystal Palace, rose garden and Velázquez Palace exhibition hall. 

La Campana 

Looking for a local delicacy? You’re about 25 minutes from La Campana, a no-frills neighbourhood bar famous for its fried calamari bocadillo sandwich, classic tapas dishes and sangria. The portions are generous and will certainly hit the spot. Eat in or take it away and enjoy nearby sights like Plaza Mayor or Athens Park. 

*Information is subject to change. Please check the latest train timetable before your trip.

Barcelona to Madrid train travel guide

Discover the travel guide from Barcelona to Madrid on TrainPal. With an average duration of 3h 17m, you can experience a memorable journey on Renfe AVE high-speed trains, as well as iryo and OUIGO trains.

Planning and booking

Planning and booking

How do I book train tickets for the Barcelona to Madrid route?

Book inexpensive train tickets from Barcelona to Madrid on the TrainPal website or app for an effortless experience. Use our Train Journey Planner, an outstanding tool to design your perfect journey in Spain. Enter the cities or stations of your destinations, provide the necessary details, and choose the ideal route!

How do I find the best deals on AVE train tickets from Barcelona to Madrid?

Discover affordable AVE train tickets from Barcelona to Madrid on TrainPal. Book your tickets up to 90 days in advance to maximise savings. We offer special discounts for students and seniors. For additional savings, consider purchasing a Return ticket and using our discount codes. Experience budget-friendly travels with TrainPal.

Are there any direct trains from Barcelona to Madrid?

No, you need to transfer on the route from Barcelona to Madrid. TrainPal can help you compare times, prices, and detailed transfer information. We strive to plan your journey with less worry and rush.

What is the frequency of AVE trains from Barcelona to Madrid?

23 trains travel from Barcelona to Madrid every day. TrainPal provides a variety of information you may find useful. Stay updated with live train times to determine the best time to leave home, ensuring a smooth journey and saving you time, effort, and worry.

How long does it take to travel from Barcelona to Madrid by train?

The fastest route from Barcelona to Madrid takes 3h 2m, while the average travel time is 3h 17m. Check detailed departure and arrival times for both stations. Use TrainPal to stay informed with live schedules.

How much does a train ticket from Barcelona to Madrid cost?

The most affordable train ticket from Barcelona to Madrid is €37.35, with an average price of €90.45*. Stay updated on TrainPal for real-time price changes. Reduce travel spending to enjoy more at your destination.

Onboard services

Onboard services

What classes of service are available on the AVE train from Barcelona to Madrid?

AVE trains from Barcelona to Madrid provide free WiFi, power outlets, and allowance for up to three bags, regardless of ticket type. Passengers can enjoy the cafeteria or mobile catering bar service. Boxed meals are available from €5.50 for Básico and Elige tickets, while Prémium ticket holders benefit from free meals.

Can I bring luggage and bicycles on the AVE train from Barcelona to Madrid?

Yes, AVE allows three pieces of luggage up to 25 kg total. Foldable bicycles are permitted; non-foldable bikes must be disassembled and placed in a bag not exceeding 140 x 90 x 40 cm.

How early should I arrive at the train station for the AVE train from Barcelona to Madrid?

Plan to be at the train station 30 minutes before departure for security and boarding. If you have luggage or it's a busy period, arrive 45-60 minutes prior. Always check your ticket and TrainPal guidelines for accuracy.

Barcelona to Madrid train classes

For trains from Barcelona to Madrid, compare the services offered by different classes on AVE, Avlo, Iryo, and OUIGO. Easily plan your journey for your next trip.

AVE
Avlo
iryo
OUIGO
BÁSICO

BÁSICO

Standard seat (2+2 seating)
Standard seat (2+2 seating)
Silent carriage
Silent carriage
Travel with one small pet (<10kg) for €10
Travel with one small pet (<10kg) for €10
Free combined Cercanías trains
Free combined Cercanías trains
Free Wi-Fi (PlayRenfe on AVE)
Free Wi-Fi (PlayRenfe on AVE)
Three pieces of luggage
Three pieces of luggage
Collect Renfecitos (Renfe points)
Collect Renfecitos (Renfe points)
Reclining seats
Reclining seats
Reading light
Reading light
Power socket
Power socket
ELIGE ESTÁNDAR

ELIGE ESTÁNDAR

Standard seat (2+2 seating)
Standard seat (2+2 seating)
Silent carriage
Silent carriage
Travel with one small pet (<10kg) for €10 or one large dog (<40kg) for €35
Travel with one small pet (<10kg) for €10 or one large dog (<40kg) for €35
Free combined Cercanías trains
Free combined Cercanías trains
Free Wi-Fi (PlayRenfe on AVE)
Free Wi-Fi (PlayRenfe on AVE)
Three pieces of luggage
Three pieces of luggage
Collect Renfecitos (Renfe points)
Collect Renfecitos (Renfe points)
Reclining seats
Reclining seats
Reading light
Reading light
Power socket
Power socket
ELIGE CONFORT

ELIGE CONFORT

XL Confort seat
XL Confort seat
Travel with one small pet (<10kg) for €10
Travel with one small pet (<10kg) for €10
Free combined Cercanías trains
Free combined Cercanías trains
Free Wi-Fi (PlayRenfe on AVE)
Free Wi-Fi (PlayRenfe on AVE)
Three pieces of luggage
Three pieces of luggage
Collect Renfecitos (Renfe points)
Collect Renfecitos (Renfe points)
Reclining seats
Reclining seats
Reading light
Reading light
Power socket
Power socket
PRÉMIUM

PRÉMIUM

XL Confort seat
XL Confort seat
Access to the Club Lounge
Access to the Club Lounge
Free Seat selection
Free Seat selection
Free Prémium food and drinks at seat
Free Prémium food and drinks at seat
Travel with one small pet (<10kg) for free
Travel with one small pet (<10kg) for free
Free combined Cercanías trains
Free combined Cercanías trains
Free Wi-Fi (PlayRenfe on AVE)
Free Wi-Fi (PlayRenfe on AVE)
Three pieces of luggage
Three pieces of luggage
Collect Renfecitos (Renfe points)
Collect Renfecitos (Renfe points)
Reclining seats
Reclining seats
Reading light
Reading light
Power socket
Power socket
󰄶
󰄽
BÁSICA

BÁSICA

Standard seat
Standard seat
Two pieces of luggage
Two pieces of luggage
Travel with one small pet (<10kg) for €10
Travel with one small pet (<10kg) for €10
Access to the Club Lounge for Más Renfe Plata, Más Renfe Oro, or Más Renfe Platino members
Access to the Club Lounge for Más Renfe Plata, Más Renfe Oro, or Más Renfe Platino members
Free Wi-Fi
Free Wi-Fi
Collect Renfecitos (Renfe points)
Collect Renfecitos (Renfe points)
Reclining seats
Reclining seats
Reading light
Reading light
Power socket
Power socket
Vending machines
Vending machines
Luggage storage
Luggage storage
󰄶
󰄽
Inicial

Inicial

Reclinable Confort seats
Reclinable Confort seats
4 seats in a row with foldable tables
4 seats in a row with foldable tables
1 hand luggage and 1 small suitcase for free
1 hand luggage and 1 small suitcase for free
Free combined Cercanías trains
Free combined Cercanías trains
Travel with one small pet (<10kg) for €10
Travel with one small pet (<10kg) for €10
Power sockets with USB ports
Power sockets with USB ports
Free Wi-Fi
Free Wi-Fi
5G connection
5G connection
HAIZEA café
HAIZEA café
Mobile Bar
Mobile Bar
Singular

Singular

Reclinable Confort seats
Reclinable Confort seats
4 seats in a row with foldable tables
4 seats in a row with foldable tables
1 hand luggage, 1 small and 1 large suitcases for free
1 hand luggage, 1 small and 1 large suitcases for free
Free combined Cercanías trains
Free combined Cercanías trains
Travel with one small pet (<10kg) for €10
Travel with one small pet (<10kg) for €10
Power sockets with USB ports
Power sockets with USB ports
Free Wi-Fi
Free Wi-Fi
5G connection
5G connection
HAIZEA café
HAIZEA café
Mobile Bar
Mobile Bar
Singular Only YOU

Singular Only YOU

Reclinable Gran Confort XL seats
Reclinable Gran Confort XL seats
3 seats in a row with foldable tables
3 seats in a row with foldable tables
1 hand luggage, 1 small and 1 large suitcases for free
1 hand luggage, 1 small and 1 large suitcases for free
Free combined Cercanías trains
Free combined Cercanías trains
Travel with one small pet (<10kg) for €10
Travel with one small pet (<10kg) for €10
Power sockets with USB ports
Power sockets with USB ports
Free Wi-Fi
Free Wi-Fi
5G connection
5G connection
HAIZEA café
HAIZEA café
Mobile Bar
Mobile Bar
Infinita Bistró

Infinita Bistró

Reclinable Gran Confort XL seats
Reclinable Gran Confort XL seats
3 seats in a row with foldable tables
3 seats in a row with foldable tables
Three pieces of luggage for free
Three pieces of luggage for free
Free combined Cercanías trains
Free combined Cercanías trains
Travel with one small pet (<10kg) for €10
Travel with one small pet (<10kg) for €10
Free food and drinks at seat
Free food and drinks at seat
Free Seat selection
Free Seat selection
Power sockets with USB ports
Power sockets with USB ports
Free Wi-Fi
Free Wi-Fi
5G connection
5G connection
󰄶
󰄽
OUIGO ESENCIAL

OUIGO ESENCIAL

Standard seat
Standard seat
4 seats in a row with tables
4 seats in a row with tables
1 hand luggage and 1 suitcase for free
1 hand luggage and 1 suitcase for free
Wi-Fi for €3 (OUIFI service)
Wi-Fi for €3 (OUIFI service)
Travel for €10 with 1–2 small pets under 10 kg
Travel for €10 with 1–2 small pets under 10 kg
2 OUIBar cafeterias
2 OUIBar cafeterias
Double-decker train
Double-decker train
OUIGO PLUS

OUIGO PLUS

Select Standard seat for free
Select Standard seat for free
Select XL seats for free (subject to availability)
Select XL seats for free (subject to availability)
1 hand luggage and 2 suitcases for free
1 hand luggage and 2 suitcases for free
Free Wi-Fi
Free Wi-Fi
Free access to OUIFUN (onboard Premium entertainment portal)
Free access to OUIFUN (onboard Premium entertainment portal)
Travel for €10 with 1–2 small pets under 10 kg
Travel for €10 with 1–2 small pets under 10 kg
2 OUIBar cafeterias
2 OUIBar cafeterias
Double-decker train
Double-decker train
󰄶
󰄽

Change and refunds

AVE tickets
Avant tickets
iryo tickets
OUIGO tickets
  • Básico: Non-refundable, changeable for extra €10.
  • Elige Estándar: Free first-time change, reimburse 70% of the total.
  • Elige Confort: Free first-time change, reimburse 70% of the total.
  • Prémium: Free full refund and change
  • Renfe tickets can be refunded and changed through the TrainPal app, supporting both full and partial changes. For more detailed information, please contact us.
    Train ticket typesChangeRefunds
    Básico󰾅󱕤
    Elige Estándar󰾅󰾅
    Elige Confort󰾅󰾅
    Prémium󰾅󰾅
  • Avant trains feature three ticket types: Sencillo (One-way), Ida y Vuelta (Return), and Con enlace (One ticket for two trips). Each ticket allows up to three exchanges. Exchanges on the same day are free, but different-day exchanges incur a 10% fee and any price difference. Cancellations require at least a 15% fee.
  • Renfe tickets can be refunded and changed through our TrainPal app, allowing for both full and partial changes. For further information, please contact us.
    Train ticket typesChangeRefunds
    Sencillo󰾅󰾅
    Ida y Vuelta󰾅󰾅
    Con enlace󰾅󰾅
  • Inicial: Offers refund and change options, excluding missed trains. Changes are subject to a €10 fee plus any fare difference. Cancel up to seven days before departure for a 70% refund; no refunds for cancellations within seven days.
  • Singular & Singular Only You: Provides refund and change flexibility. Time changes on the travel day are free; date changes require paying the fare difference. Cancel at least seven days prior for an 85% refund; within seven days, a 75% refund applies.
  • Infinita Bistró: Fully refundable and changeable. Time changes on the travel day are free; date changes require paying the fare difference. Cancel at least seven days prior for a 95% refund; within seven days, receive a 90% refund.
  • iryo refunds and ticket changes can be managed through the TrainPal app. For additional information, please contact us.
    Train ticket typesChangeRefunds
    Inicial󰾅󰾅
    Singular󰾅󰾅
    Singular Only YOU󰾅󰾅
    Infinita Bistró󰾅󰾅
  • ESSENTIAL:Refundable and changeable 30 minutes before departure with added REFUNDABLE TICKET (€8) and FLEX (€7) services during booking.
  • PLUS: Refundable and changeable 30 minutes before departure with added REFUNDABLE TICKET (€8) and FLEX (€7) services during booking.
  • FULL: Unlimited changes and refundable 30 mins before departure
  • OUIGO full refunds can be processed through the TrainPal app, while partial refunds and ticket changes can be handled by contacting us.
    Train ticket typesChangeRefunds
    OUIGO ESENCIAL󰾅󰾅
    OUIGO PLUS󰾅󰾅

    How to buy cheap Renfe and iryo train tickets

    Train Journey Planner offers cheap train tickets with clear route details, including price, time, and company. Labels highlight the best options. Save more with discount codes

    Being the cheapest AVE ticket option, it is non-refundable. Nevertheless, you can alter your ticket for a €10 fee and any applicable fare difference.

    Travel with Avlo's Básica (Basic) tickets starting from €7 on eight routes. Easily change or refund your ticket for an additional €8 fee. Moreover, each Básica ticket allows you to bring two children under 14 for €5 each.

    Get 20% off with Avant's Return tickets instead of purchasing separate ones. Both tickets are changeable. Cancellations incur a minimum 15% fee, and cancelling one ticket costs 40% of its price.

    Experience comfortable travel with iryo Inicial fare, featuring reclining leather seats, extra legroom, individual armrests, and power outlets. Tickets can be refunded and changed with conditions. Travel in style and flexibility with iryo.

    The double-decker OUIGO trains are high-speed and low-cost, making trips like Madrid to Barcelona feel shorter. You can bring two small pieces of luggage for free.

    Children under 14 get a 40% discount on AVE, Alvia, Avant, and more. Tickets include a seat, are changeable and refundable. Kids up to three travel free, while on Cercanías, kids under six travel free.

    Get an 8% discount off the total price when travelling in a group of 4 to 9 people. Tickets are non-changeable but refundable, with fees ranging from 5% to 30% of the total price.

    󰄶
    󰄽

    * The lowest price is based on historical data to predict the cheapest fare over the next 7 days, but actual prices may vary.