Traveling by train from Barcelona to Madrid is a great way to get from Catalonia to the capital when you are visiting Spain.

There are two types of trains that travel between these cities: high-speed ‘AVE’ trains and regional trains. They are both run by Renfe. An overview of each is detailed below.

High-Speed Trains from Barcelona to Madrid
Fast ‘AVE’ trains depart regularly from Barcelona’s Estacio Sants station and arrive at Madrid’s Atocha station. From there you can connect to the metro and other forms of onward transportation.

Departures on this route take place up to four times an hour throughout the day, making it easy to travel whenever you need to. The travel time to Madrid ranges from 2 hours and 30 minutes to 3 hours and 10 minutes.

The cost of a ticket varies depending on the departure time of the train and how far in advance you make your booking. Prices are 119.80 euros for tourist class, 143.80 euros for tourist plus, 179.80 euros for preferred, and 215.70 euros for club. You can get cheaper train tickets if book online well before you travel.

Regional Trains from Barcelona to Madrid
Regional trains to Madrid run twice daily, once in the morning and once at night. The former service travels during the day and arrives in the early evening, while the latter service is an overnight train.

Rail services depart from Barcelona’s Estacio Sants station and arrive at Madrid’s Chamartin station. The journey time this route is 9 hours.

Tickets for trains from Barcelona to Madrid cost 41 euros for standard class, and 60 euros for a bed on night trains.