‹ Back

Trains Barcelona to Madrid

How long is the train from Barcelona to Madrid, and where can you buy tickets? Compare options and alternatives below.

Travel time
Trains≈ 7 h
Distance
km504 km
Time difference
Spain · SpainSame time zone

Search: Barcelona → Madrid Return route: Madrid → Barcelona

Flight, train or bus: compare

TransportTravel timeCO₂ (per person)Price
FlightsFastest≈ 3 h 48 min≈ 85 kgSee prices ›
Trains≈ 7 h 20 min≈ 22 kgSee prices ›
BusesLowest CO₂≈ 10 h 2 min≈ 17 kgSee prices ›

Times and CO₂ are estimates based on distance and average values for each mode.

Frequently asked questions

How long does it take Barcelona to Madrid?

Trains: about 7 h. The straight-line distance is 504 km.

How much is a ticket Barcelona to Madrid?

Fares depend on the date, season and how early you book. Use the search above to compare current prices.

Is there a time difference between Barcelona and Madrid?

Same time zone

What other ways are there to travel Barcelona to Madrid?

Options on this route: trains, flights, buses.