Barcelona to Madrid by train
Last reviewed: July 2026
- Typical duration
- 5 hours

Direct high-speed trains run between Barcelona and Madrid throughout the day, with approximately 30 or more departures spread across three operators. The fastest services take approximately 2 hours 30 minutes to 2 hours 40 minutes; the average across all trains and all stops is closer to 3 hours 15 minutes. Three operators run the route: Renfe AVE, Spain's national high-speed brand; Iryo, a private high-speed operator; and OUIGO España, a budget carrier. Renfe withdrew its Avlo low-cost service from this corridor in September 2025 and replaced it with standard AVE trains on the same timetable, so if you have booked this route before, expect Avlo to have disappeared from the search results. Promotional fares on the cheapest OUIGO departures are advertised from around 9 euros, subject to availability, while Renfe AVE standard fares typically start from around 50 euros, noticeably higher than before Avlo left the route. All trains depart from Barcelona Sants and arrive at either Madrid Puerta de Atocha-Almudena Grandes or Madrid Chamartín-Clara Campoamor, depending on the specific service.
Journey Time: Fastest and Average Explained
The gap between the fastest and the average journey time on this route is wider than most travellers expect, and understanding it will save you from disappointment.
The fastest non-stop services cover the approximately 503 kilometres between the two cities in roughly 2 hours 30 minutes to 2 hours 40 minutes. These trains run at speeds of around 300 kilometres per hour, making the Barcelona to Madrid corridor one of the faster intercity rail journeys in Europe.
The average time across all services is closer to 3 hours 15 minutes. That figure reflects services that make one or more intermediate stops, lower-cost trains scheduled at slightly reduced speeds on certain segments, and the natural spread of departure times across the day. Budget services tend to fall toward the longer end of that range.
As of the date this article was last updated, Adif, the Spanish rail infrastructure manager, had temporary speed restrictions in effect on parts of the network. Renfe has advised that some services may experience delays as a result of these restrictions, for reasons outside Renfe's control. That situation may have changed by the time you read this, so it is worth checking live journey times when you search for tickets rather than relying solely on the headline fastest figure.
The general range to plan around is 2.5 to 3.5 hours, with most services falling between 2 hours 45 minutes and 3 hours 20 minutes.
The Three Train Operators on This Route
Three operators run high-speed trains between Barcelona and Madrid today. Renfe withdrew its Avlo low-cost brand from this specific corridor in September 2025, after cracks were found in the Avril rolling stock it used here, and folded those departures into its standard AVE service instead. Renfe said at the time that the switch kept the same frequencies and schedules, so the total number of daily departures on the route has not dropped, even though the choice of operators has narrowed from four to three. The three operators differ in price, flexibility, onboard experience, and which booking channels carry their tickets.
Renfe AVE
Renfe is Spain's national rail operator. AVE, which stands for Alta Velocidad Española, is its high-speed network, and the Barcelona to Madrid corridor is one of its flagship routes. Renfe runs a large number of daily departures on the route and offers several fare types, ranging from a basic non-refundable fare to a fully flexible premium option that includes meals in an upgraded cabin on some services. Renfe tickets are available directly at renfe.com and through most major international booking agents. If you need a guaranteed seat at a predictable price, Renfe's mid-range fares booked two to three weeks ahead are usually a reliable option.
What happened to Avlo?
Renfe's Avlo brand still exists, but it no longer runs between Barcelona and Madrid. Renfe pulled Avlo off this corridor on 8 September 2025, after cracks were discovered in the Avril S106 trains used on the route, and replaced those departures with standard AVE service on the same timetable. If you travelled this route on Avlo before, do not search for it again here: it has moved on to other Spanish corridors, including several routes out of Madrid such as Valencia, Alicante, Málaga, and Seville. Passengers who already held Avlo tickets for travel after 7 September 2025 were automatically rebooked onto an AVE train under the same conditions.
Iryo
Iryo is a privately owned high-speed operator that entered the Spanish market in 2022. It runs its own rolling stock on the Barcelona to Madrid route and competes directly with Renfe AVE on price and quality. Iryo's fare ladder runs from the basic Inicial fare up through Inicial Superior and Infinita to Infinita Bistró, its most flexible tier with at-seat dining. Iryo does not publish a flat starting price on its own site, so compare its live fares against Renfe AVE and OUIGO for your travel date rather than assuming one operator is always cheaper. Iryo tickets are available at iryo.eu and through Rail Europe and Trainline, among other agents.
OUIGO España
OUIGO España is the Spanish operation of the OUIGO group, which is associated with SNCF, France's national rail operator, and it applies an ultra-low-cost model to Spanish high-speed rail. Promotional fares are advertised from around 9 euros per adult on certain departures. That headline fare applies to the cheapest available seat on a given departure, booked as far ahead as possible, with no luggage beyond a small personal item included. Checking a bag, selecting a specific seat, and other options each carry additional charges. OUIGO's ticketing conditions differ from Renfe and Iryo in ways that matter if your plans might change: most OUIGO fares are non-refundable and non-changeable. OUIGO tickets are sold primarily at ouigo.com. Aggregator availability varies and should be confirmed at the time you search.
Ticket Prices: What to Expect
Fares on this route are yield-managed, meaning they rise as departure dates approach and as cheaper seat allocations sell out. Prices have also moved structurally higher since Renfe withdrew Avlo from the corridor in September 2025: fare-tracking data reported by Spanish media put the average ticket price on this route up by roughly 40 percent year on year, as one of the four low-cost options disappeared and demand shifted onto the remaining operators. The figures below are indicative ranges. Current prices will vary, and you should check live fares before drawing any conclusions about what a ticket will cost.
| Operator | Fare type | Indicative range | Key conditions |
|---|---|---|---|
| OUIGO España | Budget, no frills | From around 9 euros | Non-refundable; luggage extra; book direct |
| Renfe AVE | Standard | From around 50 to 90 euros | Multiple fare types; fares have trended higher since Avlo left the route in September 2025 |
| Renfe AVE | Premium | From around 90 to 150 euros | Upgraded seating; meals on some services |
| Iryo | Inicial to Infinita Bistró | Not published as a flat starting price | Four fare tiers; check iryo.eu for current prices by date |
The single most effective way to get a lower fare on this route is to book early. For OUIGO, the cheapest seats often appear when tickets first go on sale, typically several weeks to months before departure. For Renfe AVE and Iryo, fares at two to three weeks out are usually meaningfully lower than fares bought in the final few days.
Searching across operators simultaneously is worth doing. The cheapest departure on a given day might be OUIGO on one date and Iryo on another. If your plans are flexible enough to travel mid-week or to choose between a morning and an afternoon departure, that flexibility has real monetary value on this route.
Stations: Departure and Arrival
Barcelona Sants
All high-speed services between Barcelona and Madrid depart from Barcelona Sants. This is Barcelona's main long-distance rail station, located in the Eixample district, roughly two kilometres southwest of the city centre. Metro lines 3 and 5 serve the station directly, and it is well connected to the rest of the city by bus. Most visitors staying anywhere in central Barcelona or the tourist districts will reach Sants comfortably within 20 to 30 minutes by metro.
Some services also call at Barcelona Passeig de Gràcia, a stop in the centre of the Eixample that is more convenient for travellers staying in that part of the city. Check your specific service when booking, as not all trains stop there.
Madrid Puerta de Atocha-Almudena Grandes
The majority of Barcelona to Madrid high-speed services arrive at Madrid Puerta de Atocha-Almudena Grandes. This is Madrid's primary long-distance rail terminal, located in the southern part of the city centre near the El Retiro park and the Paseo del Prado museum district. Metro line 1 connects Atocha to the rest of the city. For most first-time visitors to Madrid, Atocha is the more convenient arrival point.
Madrid Chamartín-Clara Campoamor
Some services, including certain departures from budget carriers and trains that continue onward to other destinations beyond Madrid, terminate at Chamartín rather than Atocha. Chamartín is in the northern part of the city, a longer journey from the tourist centre, but it is well served by metro and commuter rail connections. The station itself is modern and easy to navigate.
Check your specific train's arrival station when you book. Both stations are functional and well connected; the difference is the time and routing to wherever you are staying.
Booking Options
For most international travellers, the simplest approach is to search across operators using a booking platform that covers Renfe, Iryo, and OUIGO together, confirm which service best suits your time and flexibility requirements, and book directly through that platform or through an operator's own site.
Renfe tickets are available at renfe.com and through Rail Europe, Trainline, Omio, and other major agents. Iryo tickets are available at iryo.eu and through Rail Europe and Trainline. OUIGO tickets are primarily available at ouigo.com; aggregator coverage varies and should be verified at the time you search.
Renfe withdrew Avlo from this specific route in September 2025, so do not search for an Avlo fare between Barcelona and Madrid: it will not appear, because Renfe now runs this corridor only under the AVE brand. Avlo still operates on many other Spanish routes, so the brand itself has not disappeared, just its presence on this one corridor.
Tickets typically go on sale two to three months before departure, sometimes further ahead. For travel in a popular period such as a Spanish public holiday or a summer weekend, searching as soon as the booking window opens is advisable.
Booking with a Eurail or Interrail Pass
Holders of a Eurail Global Pass or an Interrail Global Pass can travel on Renfe AVE and Iryo services between Barcelona and Madrid, but they cannot board these trains on a pass alone. A mandatory seat reservation is required in addition to the pass, and that reservation carries a fee. The fee varies depending on the operator, the class of travel, and how far in advance you book.
OUIGO España does not participate in the Eurail or Interrail schemes. Pass holders who want to use their pass on this route must choose a Renfe AVE or Iryo service.
Reservations for pass holders can be made through the Eurail and Interrail booking services, through Rail Europe, and at station ticket offices. Reservation availability is limited on popular departures, particularly at peak travel periods, so booking the reservation as early as possible is worth doing even if you already hold a valid pass.
Pass reservation policies and fees are updated periodically. Verify current conditions through Eurail's or Interrail's official channels before finalising your travel plans.
Onboard Experience and Route
The Barcelona to Madrid line runs southwest from the Catalan coast, climbs into the foothills behind the city, and then crosses the broad plateau of the Spanish interior known as the meseta. For the first part of the journey, the terrain is varied: you pass through tunnels in the Catalan hinterland, emerge into open countryside, and begin a long traverse of Castile-La Mancha, the high central plain that covers much of interior Spain.
The landscape is not dramatic in an Alpine sense. It is open and austere: wide agricultural fields, olive groves, vineyards, scattered villages, and the particular quality of light that the meseta has on a clear morning. At 300 kilometres per hour, individual features pass quickly, but the overall character of the landscape is readable over the course of the journey.
The trains themselves are clean, quiet, and equipped with air conditioning, a cafeteria car or trolley service (configuration varies by operator), power sockets, and generally reliable onboard Wi-Fi on Renfe AVE and Iryo services. Budget services are similarly modern; the range of included amenities on the cheapest fare types is more limited. Seats are comfortable for a journey of this length.
Most passengers use the time to work, read, or rest. The two to three hours crossing the interior of Spain at speed, watching the meseta unfold, has its own understated appeal.
Tips for Getting the Best Price
Search early and across operators. The booking window on this route opens several weeks to months before departure, and the cheapest allocations are released first.
For budget services, the lowest fares go quickly. If you see a fare that fits your budget, booking it is usually better than waiting.
For Renfe AVE and Iryo, prices in the two-to-three-week window are often reasonable and allow more flexibility than last-minute booking. The final few days before departure tend to see the highest fares unless an operator is discounting unsold seats, which does happen but cannot be relied upon.
Travelling on Tuesday, Wednesday, or Thursday is generally cheaper than Friday evening or Sunday afternoon, when this corridor carries high demand from business and leisure travellers alike.
Morning departures during weekday peak hours can carry slightly higher fares on some operators. Mid-morning or early-afternoon slots often offer better value, and the journey is short enough that the exact departure time rarely matters much.
If you hold a rail pass, factor in the mandatory reservation fee when comparing the pass route against point-to-point tickets. For a single return trip, point-to-point tickets are often cheaper in total than a multi-country pass plus two reservation fees. The pass makes more economic sense when used across many journeys in several countries.
Train service
Renfe
Renfe is Spain’s national railway operator, offering high-speed, long-distance, and regional train services with extensive domestic coverage.
SNCF Voyageurs
SNCF is France’s state-owned rail operator, running high-speed, regional, and international TGV services across Europe.
Train tickets
Omio
Omio connects you with over 1,000 transport providers - trains, buses, flights, and more - to simplify your travel planning.
Rail Europe
Rail Europe is a leading travel tech company specializing in European train bookings for over 15,000 travel professionals worldwide.
Trainline
Trainline sells rail and coach tickets worldwide on behalf of major UK and European transport companies.
Frequently asked questions
How long does the train from Barcelona to Madrid take?
The fastest services take approximately 2 hours 30 minutes to 2 hours 40 minutes. The average across all trains and stops is closer to 3 hours 15 minutes. Most services fall between 2 hours 45 minutes and 3 hours 20 minutes.
How many trains run between Barcelona and Madrid each day?
Approximately 30 or more high-speed services run each day across four operators. The majority are direct, with no change of train required.
Which operators run trains between Barcelona and Madrid?
Four operators serve the route: Renfe AVE, Avlo (Renfe's low-cost sub-brand), Iryo, and OUIGO España. They differ in price, included amenities, and ticketing conditions.
How cheap are train tickets from Barcelona to Madrid?
Promotional fares on OUIGO España are advertised from around 9 euros on certain departures, subject to availability. Avlo fares start from around 10 to 20 euros. Standard Renfe AVE and Iryo fares typically range from around 25 to 80 euros depending on the fare type and lead time.
Which stations do the trains use in Barcelona and Madrid?
All high-speed services depart from Barcelona Sants. Some services also call at Barcelona Passeig de Gracia. In Madrid, most services arrive at Madrid Puerta de Atocha-Almudena Grandes. Some services terminate at Madrid Chamartin-Clara Campoamor. Check your specific train when booking.
Can I use a Eurail or Interrail pass on this route?
Pass holders can travel on Renfe AVE and Iryo services but must also buy a mandatory paid seat reservation. OUIGO España does not accept Eurail or Interrail passes. Avlo reservation availability for pass holders is variable and should be confirmed before travel.
Where can I buy Barcelona to Madrid train tickets?
Renfe tickets are available at renfe.com and through Rail Europe, Trainline, and Omio. Iryo tickets are available at iryo.eu and through Rail Europe and Trainline. OUIGO España tickets are sold primarily at ouigo.com. Avlo fares may not appear on all aggregators, so checking renfe.com directly is advisable.
How far in advance should I book?
Tickets typically go on sale two to three months before departure. For budget services, the cheapest seats are released first and go quickly. Booking two to three weeks ahead generally produces reasonable fares on Renfe AVE and Iryo.