Find a train from Madrid to Barcelona

  • 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 10 min
Connections per day 186
First departure: 05:50
Last departure: 21:25
Distance 504km

With virail the cheapest train tickets from Madrid to Barcelona

With Virail you can find the best train connection from Madrid to Barcelona , you just need to enter the date of your trip and we will find the best solution for you! On our platform you can also choose between a round-trip ticket or a one-way ticket and you can filter your results by price and departure. Once you chose the best ticket for your trip we will redirect you automatically to the provider’s website where you will be able to book and pay your ticket. Virail is a metasearch platform with customers from more than 30 countries. Our comparison tool works with more than 2000 transportation companies and enables you to find the optimal travel solution, no matter your needs.

Which companies serve the route from Madrid to Barcelona?

Among all virail partners, you will also be able to travel with Renfe AVE and Renfe, serving the train route between Madrid and Barcelona.

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 are the train tickets from Madrid to Barcelona?

If you have the possibility to book in advance, you will be likely to find cheap train tickets from Madrid to Barcelona for 20,00 $. In case you can't plan in advance, train tickets to Barcelona cost on average 267,00 $.

Ticket price Madrid - Barcelona every day

Today Tomorrow In 2 days In 3 days In 4 days In 5 days In 6 days
45 $45 $45 $105 $97 $45 $89 $
More More 36 $ More More More More

Trains from Madrid to Barcelona


When travelling by train, never forget to keep your ticket with you: make sure to print it out in advance or to download the mobile version if allowed.

When the journey is as long as between Madrid and Barcelona, you should consider to take a flight to Barcelona. If you book in advance, low cost airlines can provide flight that will make you save not only time but also money.

Which stations serve the rail line Madrid - Barcelona?

The trains to Barcelona can leave from Madrid Atocha or Madrid Puerta de Atocha and arrive at Barcelona Sants.

How many connections are there to go Barcelona from Madrid by train per day?

If you need to travel to Barcelona from Madrid please know that there are 17 train connections every day. Please know that absolutely all these connections direct lines. Therefore, you will stay in the same train for the whole trip.

How long will it take you from Madrid to Barcelona by train and when do the trains leave?

The first train to Barcelona leaves at 06:02, whereas the last one at 20:08. On average, the journey lasts 2 hours and 43 minutes, but with the fastest connections you will be in Barcelona in 2 hours and 30 minutes.

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