Barcelona to Madrid by train

Last reviewed: July 2026

Typical duration
5 hours
Lisbon to Madrid by train

Train service

Renfe

Renfe is Spain’s national railway operator, offering high-speed, long-distance, and regional train services with extensive domestic coverage.

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.

More routes