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

Customer support available 8:00 AM–10:00 PM (GMT), with fast responses to your enquiries.

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 €30.18, with an average price of €95.05*. 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

€30.18󰄽

On Sat 24

  • €36.42󰄽
    Tue20Oct
  • €35.00󰄽
    Wed21Oct
  • €36.42󰄽
    Thu22Oct
  • €34.11󰄽
    Fri23Oct
  • Sat24Oct
  • €50.97󰄽
    Sun25Oct
  • €34.34󰄽
    Mon26Oct

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 €30.18
Departure station
Arrival station
Distance
314 miles (506km)
Journey time
3h 2m
First train
05:45
Last train
20:20
Frequency
37
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

Enjoy the travel guide from Barcelona to Madrid on TrainPal. With an average duration of 3h 17m, you can take a great trip 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?

Secure affordable train tickets from Barcelona to Madrid on the TrainPal website or app for a hassle-free experience. Take advantage of our Train Journey Planner, a fantastic resource for planning your trip in Spain. Just input the cities or stations of your destinations, add relevant information, and pick the best 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?

Yes. Direct trains from Barcelona to Madrid include multiple stops. TrainPal displays the names and arrival times for each stop. Additionally, our interface highlights departure and arrival stations, train types, and various ticket or class options.

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

There are 37 trains running daily from Barcelona to Madrid. TrainPal offers a wealth of information that you might find interesting. Stay informed with live train times to know the optimal time to leave home, ensuring a seamless 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 cheapest train ticket from Barcelona to Madrid is €30.18, with an average price of €95.05*. Stay informed on TrainPal to check real-time prices as they may vary. Spend less on the journey, and save more for the destination.

Onboard services

Onboard services

Is there Wi-Fi on the AVE train from Barcelona to Madrid?

On AVE trains from Barcelona to Madrid, all ticket types include free WiFi, power outlets, and allowance for up to three bags. A cafeteria or mobile catering bar is accessible to all passengers. Boxed meals start at €5.50 for Básico and Elige tickets, while Prémium ticket holders enjoy complimentary meals.

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

Yes, AVE permits three pieces of luggage with a total weight of up to 25 kg. Foldable bicycles are allowed; non-foldable bikes must be disassembled and bagged within 140 x 90 x 40 cm.

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

Arrive at the train station 30 minutes early for security checks and boarding. For luggage or peak times, arrive 45-60 minutes early. Always double-check your ticket and TrainPal instructions for accuracy.

Barcelona to Madrid train classes

Planning a trip from Barcelona to Madrid? Discover and contrast the service offerings across different classes on AVE, Avlo, Iryo, and OUIGO to ensure a smooth journey.

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: No refund, change for extra €10.
  • Elige Estándar: Free first-time change, 70% of the total reimbursed.
  • Elige Confort: Free first-time change, 70% of the total reimbursed.
  • Prémium: Free full refund and change.
  • Renfe tickets can be refunded and changed through the TrainPal app, allowing for both full and partial changes. For further information, please contact us.
    Train ticket typesChangeRefunds
    Básico󰾅󱕤
    Elige Estándar󰾅󰾅
    Elige Confort󰾅󰾅
    Prémium󰾅󰾅
  • Avant trains offer three ticket types: Sencillo (One-way), Ida y Vuelta (Return), and Con enlace (Two journeys on one ticket). Each ticket allows up to three exchanges. Same-day exchanges are free; different-day exchanges incur a 10% fee plus price difference. Cancellations have a minimum 15% fee.
  • Renfe tickets can be refunded and changed through the 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: Refundable and changeable (excluding missed trains). Changes incur a €10 fee plus any fare difference. Cancel up to seven days before departure for a 70% refund; cancellations within seven days are non-refundable.
  • Singular & Singular Only You: Refundable and changeable. Free time changes on the day of travel; date changes require payment of the fare difference. Cancel at least seven days before departure for an 85% refund; within seven days, receive a 75% refund.
  • Infinita Bistró: Refundable and changeable. Free time changes on the day of travel; date changes require payment of the fare difference. Cancel at least seven days before departure for a 95% refund; within seven days, receive a 90% refund.
  • iryo refunds and ticket changes can both be submitted through our TrainPal app. For more detailed 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

    Get cheap train tickets from Train Journey Planner with clear route details, including price, time, and company. Labels mark the best options. Save extra 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.

    Avlo's Básica (Basic) tickets start at €7 for eight routes. You can change or refund for an €8 fee. Each ticket allows two children under 14 to travel 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.

    Experience high-speed, low-cost travel with OUIGO's double-decker trains, ideal for trips from Madrid to Barcelona. You can carry two small pieces of luggage for free. Enjoy a fast and affordable journey with OUIGO.

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

    Receive an 8% discount on the total price for groups of 4 to 9 travellers. Tickets are non-changeable but refundable, with fees ranging from 5% to 30% of the total price. Maximise your savings with our group travel discount.

    󰄶
    󰄽

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