Find a train from Barcelona to Madrid

  • Transport
  • Car rental

These train, bus and flight companies trust us

Find the cheapest ticket for your trip

Help rental companies move cars and get 1€ rental!, (no hidden charges)

Journey details

Best price 22 $
Journey duration 3 h 44 min
Connections per day 199
First departure: 06:50
Last departure: 22:15
Distance 504km

Compare the best train prices from Barcelona to Madrid

Finding the perfect train connection from Barcelona to Madrid has never been so easy: thanks to virail, you will be able to compare hundreds of offers at the same time just by inserting the date of your trip. Through the price and departure filters, you will have the possibility to restrict the results and find the perfect solution. You can also specify if you need a one-way ticket or a round-trip ticket. The booking takes place on the provider's website, to which you will be automatically redirected. Virail is a travel transportation portal with customers across more than 30 countries. Virail helps more than 60 million users to make the best choice for their trip every year. Our comparison tool works with more than 2000 transportation companies and enables you to find the optimal travel solution, no matter your needs.

Trains from Barcelona to Madrid: which companies can you travel with?

Among all our partners, you will also find Renfe and Renfe AVE, providing the train connections between Barcelona and Madrid.

Renfe is the national Spanish company, which offers a very well-developed high-speed network served by the AVE trains. It covers also regional short-distance routes, through the FEVE trains, and international long-distance routes, for instance with the night train Elipsos.

How much is the cheapest train ticket from Barcelona to Madrid?

Booking in advance really allows you to save some money: in fact, you can get cheap train tickets from Barcelona to Madrid also for only 20,00 $, while the average price is 227,80 $.

Ticket price Barcelona - Madrid every day

Today Tomorrow In 2 days In 3 days In 4 days In 5 days In 6 days
45.11 $87.99 $43.94 $21.14 $63.42 $43.76 $ More
More More 1.11 $1.11 $1.11 $ More More
More More More 48.12 $48.12 $ More More
More More More 41.26 $41.26 $ More More

Trains from Barcelona to Madrid


If you don't feel like spending many hours in a train, you can consider travelling by plane. Especially if you have the possibility to book in advance, flying to Madrid can be definitely cheap.

Which stations are served by the trains travelling from Barcelona to Madrid?

The trains to Madrid will leave from Barcelona Passeig de Gràcia, Barcelona Estació de França or Barcelona Sants and will arrive at Madrid Chamartin, Madrid Puerta de Atocha or Madrid Atocha.

How many daily connections exist to travel to Madrid from Barcelona by train?

17 connections are available every day to travel from Barcelona to Madrid by train. Please know that all these routes are direct lines. There is no connection between these two cities with a change. Consequently, you will never have to change trains.

How long does it take from Barcelona to Madrid and when do the trains leave?

While the first train to Madrid leaves at 07:12, the last one is scheduled for 19:12. The average duration of the journey is of 5 hours and 45 minutes, but the fastest trains can get you to Madrid in 2 hours and 45 minutes.

virail lets you search and compare times and prices of any transports from one city to another