Home › Barcelona to Madrid: High-Speed AVE, iryo or Budget Ouigo

Barcelona to Madrid: High-Speed AVE, iryo or Budget Ouigo

Barcelona to Madrid takes about 2 hours 30 minutes to 3h10 by high-speed train, running Barcelona Sants to Madrid Puerta de Atocha, city centre to city centre. Three operators compete on the line: Renfe AVE, the private iryo, and Renfe's low-cost Ouigo, so departures come more than hourly and fares start low, from about EUR 7 to 20 on the budget operators when booked ahead. The route is far too fast to make flying worthwhile once airport transfers are added. Here is how the times and fares compare.

FastestAVE or iryo, about 2h30
FrequencyMore than hourly across three operators
CheapestOuigo or iryo, from about EUR 7 to 20 booked ahead
RouteBarcelona Sants to Madrid Puerta de Atocha, about 620 km
Barcelona to Madrid: your options
ModeOperatorDurationApprox fareOvernight
Train Renfe AVE
The flagship high-speed service, Barcelona Sants to Madrid Atocha, up to 310 km/h with a buffet car, WiFi and power sockets. Book early for the lowest Promo fares.
about 2h30 to 3h10 approx €30 to €120 No Check on 12Go →
Train iryo / Ouigo (low-cost)
The budget high-speed operators on the same route, often the cheapest tickets. Fares from about EUR 7 to 20 when booked well ahead.
about 2h30 to 3h approx €7 to €40 No Check on 12Go →

Fares are approximate and shown for comparison. Confirm live prices and times on 12Go before booking.

Show stays for:
Where to stay in Barcelona
Option 1
Hotel Balmes
Barcelona
Top-rated stay in Barcelona
Hotel Balmes
★ 8.6 253 reviews
€144
per night
Book on Agoda →
Option 2
ibis Styles Barcelona City Bogatell
Barcelona
Top-rated stay in Barcelona
ibis Styles Barcelona City Bogatell
★ 8.4 161 reviews
€144
per night
Book on Agoda →
Option 3
Hotel Concordia Barcelona
Barcelona
Top-rated stay in Barcelona
Hotel Concordia Barcelona
★ 8.5 571 reviews
€145
per night
Book on Agoda →
Where to stay in Madrid
Option 1
Hotel Mayorazgo
Madrid
Top-rated stay in Madrid
Hotel Mayorazgo
★ 8.7 590 reviews
€98
per night
Book on Agoda →
Option 2
Hotel Chamartín The One
Madrid
Top-rated stay in Madrid
Hotel Chamartín The One
★ 8.2 1703 reviews
€99
per night
Book on Agoda →
Option 3
NH Collection Abascal
Madrid
Top-rated stay in Madrid
NH Collection Abascal
★ 8.6 90 reviews
€104
per night
Book on Agoda →
Things to do
In Barcelona

Loading things to do...

In Madrid

Loading things to do...

Activities load from Viator. Booking opens on Viator, and we may earn a commission.

Frequently asked questions
How long is the train from Barcelona to Madrid?
About 2 hours 30 minutes to 3h10 depending on the service and stops, running Barcelona Sants to Madrid Puerta de Atocha on AVE, iryo and Ouigo high-speed trains.
How much does the train from Barcelona to Madrid cost?
Budget operators iryo and Ouigo start from about EUR 7 to 20 when booked ahead, while Renfe AVE fares typically run from about EUR 30 up to EUR 120 close to departure. Booking early saves the most.
Is there a direct train from Barcelona to Madrid?
Yes. AVE, iryo and Ouigo all run direct high-speed trains with no change, Barcelona Sants to Madrid Atocha, more than once an hour through the day.
What is the best way to get from Barcelona to Madrid?
The high-speed train is the clear winner: direct, more than hourly, about 2h30 to 3h10 centre to centre, and cheaper than flying once airport transfers are counted. Pick Ouigo or iryo for the lowest fares.
What is the Barcelona to Madrid train frequency?
With Renfe AVE, iryo and Ouigo all competing on the line, trains depart more than once an hour from early morning to late evening, so the timetable is dense throughout the day.

Plan your own version

Set your dates, budget and pace, and the planner builds an optimized trip with live prices.

Build my trip →

Hotel options and prices come from Agoda and update at booking time; sample data shown if live pricing is unavailable. Transport fares are estimates, confirmed on 12Go.

Beta Prices and availability reflect current partner rates and can change before you book. Confirm the final price on 12Go or Agoda (linked per result) before booking.