Want to travel from Barcelona to Madrid by train? You've come to the right place. A popular route with both locals and tourists, it’s quicker than flying and you will arrive right in the heart of the city at Madrid Atocha station.
The average journey time by train between Barcelona and Madrid is 3 hours and 27 minutes, although you can get there in just 2 hours and 30 minutes on the fastest services. There are now 3 high-speed services to choose from on this popular route which spans 314 miles (506 km) - Renfe's AVE and Avlo trains, and OUIGO trains.
If you want to travel in style, why not choose a First Class train ticket from Barcelona to Madrid? AVE's Confort Class offers wider reclining seats and access to Renfe's First Class lounge at the station. Just look for Elige or Prémium tickets in our Journey Planner. Check out our guide to First Class v Second Class on European trains to find out more.
Once you arrive in Madrid why not spend an afternoon wandering around El Retiro Park, the Museo Nacional del Prado or grab a bite at Mercado de San Miguel. Need more inspiration? Check out our guide to the best things to do in Madrid, including the best restaurants, parks, museums and shops to go to.
If you’re feeling ready to book, start a search for cheap train tickets from Madrid to Barcelona with us today. Want to check if trains are running? Scroll down for more information about this journey, including timetables and FAQs.
Renfe is the national train operator in Spain. It operates trains on the longest high-speed railway network in Europe, and the second-longest in the world. The country's major cities are linked up by the high-speed AVE and Avlo trains, while other long-distance routes are served by Altaria, Talgo, Alvia and Euromed trains. Renfe also operates cross-border services into neighbouring Portugal and France. Depending on which service you are travelling on, you'll usually find two classes on Renfe trains - Estándard (Standard Class) and Confort (First Class). Fare types range from the cheapest (but least flexible) Básico fare, to the more flexible Elige fares, to the Premium fare for seats in Confort carriages.
AVE is Renfe's flagship high-speed service, with trains capable of reaching up to 193 mph (310 km/h). It’s one of the fastest trains in Europe and connects the main cities of Spain. Most AVE trains offer two comfort classes – Estándard (Standard Class) and Confort (First Class equivalent, with 1-1 configuration, ultra-wide seats, gourmet food and drink and lounge access). All AVE trains have air conditioning, power sockets, free WiFi and a buffet carriage serving a selection of food and drinks. There are three fares for AVE services: the cheapest but least flexible Básico fare, the Elige fare (slightly pricier but more flexible), and the Premium fare for seats in Confort Class.
OUIGO is the low-cost brand of French rail company SNCF, who operate trains in France and Spain. In France, all seats on OUIGO are Second Class and tickets can only be purchased online. You can also pay for additional extras, such as reserving a seat in the ‘quiet area’, at-seat power sockets and extra luggage. OUIGO has been operating in Spain since May 2021, and their trains include an onboard bar and a premium class of service called OUIGO Plus.
Most of the train companies across Europe release their tickets around three to six months in advance, many of which can be cheaper the earlier you book. If you know the dates you want to travel, you may be able to find some cheaper train tickets from Barcelona to Madrid by booking early.§
Many of the train services in Europe are also popular commuter services, lots of train companies increase ticket prices during “peak hours” (generally between 06:00 – 10:00 and 15:00 – 19:00 on weekdays). If you can, consider travelling outside of peak hours to find lower priced tickets.
On some of the busier routes, you might also have the option to take a slower or connecting train. It may take a little longer than some high-speed or direct services, but if you have a little extra time on your hands, you might find a cheaper fare. Plus, you'll have more time to enjoy the view of the countryside!
For specific information about how to get your hands on cheap tickets, check out our European train tickets hub.
The average journey time by train between Barcelona and Madrid is 3 hours and 34 minutes, with around 15 trains per day. The journey time may be longer on weekends and holidays, so use our Journey Planner on this page to search for a specific travel date.
The fastest journey time by train from Barcelona to Madrid is 2 hours and 30 minutes.
Train ticket prices from Barcelona to Madrid can start from as little as €5.45 when you book in advance. The cost of tickets can vary depending on the time of day, route and class you book and are usually more expensive if you book on the day.
Yes, it is possible to travel from Barcelona to Madrid without having to change trains. There are 14 direct trains from Barcelona to Madrid each day. Though there may be fewer direct services available depending on your exact departure date.
The first train from Barcelona to Madrid leaves at 05:51. Times and services may vary during weekends and holidays.
The last train from Barcelona to Madrid leaves at 20:15. Trains that depart in the early morning hours or very late evening may be sleeper services, time and services may also vary during weekends and holidays.
Trains travelling from Barcelona to Madrid cover a distance of around 314 miles (506 km) during the journey.
The AVE train from Barcelona to Madrid is one of the most important high-speed routes in Spain. Even if you can travel by plane, car or bus between the two cities, the train is definitely the best way to do so. Thanks to the AVE high-speed service, you can take a train from Barcelona city centre and get off in Madrid after only 2h 45m.
Barcelona Sants train station
Since its inauguration in 2008, this train has seen more than 35 million passengers between the two cities. About 25 Renfe trains run daily between Barcelona and Madrid, with possible variations based on the day and time of year.
Even if most of the AVE trains stop in cities like Guadalajara, Zaragoza, Lleida or Tarragona, some trains are direct and take 2h 45m rather 3h 10m to get to the final destination.
Located in the Sants-Montjuïc district, Barcelona Sants is the second most important train station in Spain both for connections and passenger traffic. The station is served by Renfe’s regional trains (Rodalies), long and middle-distance trains and high-speed trains that go to many Spanish cities as well as many international destinations, including Paris and Marseille.
My last journey from Barcelona to Madrid was very fast and comfortable. For work reasons, I had to go to Barcelona on a Tuesday and work from there for a couple of days. However, on Wednesday evening I was told to go to an important meeting in Madrid on Thursday early morning. Luckily I managed to find a quite cheap train ticket to Madrid with an AVE train departing from Barcelona at 07:00.
Since you need to go through security checks before boarding an AVE train, I got to Barcelona Sants at 06:30. After a nice coffee and security checks, I went to the platform from which my train was leaving. In my case, it was the AVE 3072 departing at 07:05.
As I bought a last-minute train ticket, I couldn’t choose the 07:00 train which goes directly from Barcelona to Madrid in only 2h 30m. For this reason, I had to pick the next available train and a Básico ticket in Second Class (Clase Estandár), which doesn’t allow any refund or cancellation.
Once I got to my seat, I used the two available plug sockets to charge my cell phone and laptop. The seats had armrests, footrests, reclining tables, coat hooks and luggage racks.
Train stop in Zaragoza
The AVE train from Barcelona to Madrid can reach speeds of more than 300 km/h. While I was working, the staff came to offer coffee, tea and an a la carte breakfast. Unlike First Class (Clase Confort), Second Class (Clase Estandár) train tickets neither include meals nor free WiFi. If you want one of these services, you’ll need to pay an extra fee.
Jaime is one of our trusted writers. The information for this review was obtained first-hand and is based on his own travel experience.