Speed from city center to city center
Get from Barcelona to Madrid by train in 2h 30m with Trainline 🚆
Read real reviews from real users
Want to spend some time in the Spanish capital and looking for more information on how to take the train from Barcelona to Madrid? You’ve come to the right place!
On average, the journey time by train between Barcelona and Madrid is 2h 42m, with around 15 trains per day. If you want to reach Madrid in a hurry, the quickest journey time from Barcelona to Madrid is 2h 30m if you travel on a high-speed train. There are now 4 high-speed trains to choose from on this route – OUIGO Spain, Avlo, AVE and iryo trains.
If you want to compare different experiences to find the train that best suits your travel style, we've got you covered. This video, created by one of our hand-picked travel writers, gives you a rundown of all four rail companies that operate services on this route, including what's offered on board each train and the differences between each company.
If you're interested in more information about what it's like to travel on any of these services, keep reading for more reviews from travelers on the journey from Barcelona to Madrid - we've got reviews for every train service on this route.
Covering a distance of just over 500km, the first train departs Barcelona Sants station at 5:50 and the last at 21:15 before arriving at Madrid’s main railway station, Madrid Atocha. On this route, you’ll be traveling on a service provided by either Renfe or OUIGO.
Traveling from Barcelona to Madrid by train is one of the easiest ways to get to the Spanish capital. Popular with locals and tourists, traveling by train is quicker than flying and puts you right in the heart of the city at Madrid Atocha station.
There’s plenty to see and do in Madrid, but we’d recommend checking out the world-famous Bernabéu Stadium, or spend an afternoon wandering in the greenery of Retiro Park. If you're heading to Europe for the first time, have a look at our top 3 tips for planning a European vacation. And if you're heading to Madrid over the holidays, we've got all you need to know about traveling from Barcelona to Madrid at Christmas.
Ready to start your journey? Begin your search for cheap train tickets from Barcelona to Madrid in the Journey Planner at the top of the page, where you’ll find train times and ticket prices. If you want to find cheap tickets, we’ll highlight the cheapest fares on your travel date. Keep reading for more information about this journey, including tickets prices and FAQs.
It takes an average of 2h 52m to travel from Barcelona to Madrid by train, over a distance of around 314 miles (506 km). There are normally 33 trains per day traveling from Barcelona to Madrid and tickets for this journey start from $7.95 when you book in advance.
First train | 5:50 am | |
---|---|---|
Last train | 9:00 pm | |
Departure station | Barcelona | |
Arrival station | Madrid | |
Journey time | From 2h 29m | |
Distance | 314 miles (506 km) | |
Frequency | 33 trains per day | |
Changes | Direct trains available | |
Price | From $7.95 | |
Train and bus operators |
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, high-speed train service operated by the French national train company SNCF. Despite having only one class on board, OUIGO trains offer the same comfort as Second Class seats on TGV trains, although OUIGO tickets are only available to purchase online. To make your journey as smooth as possible, arrive at least 30 minutes before departure and bear in mind that there's an additional fee for bringing a suitcase with you, having a seat with power sockets and travelling with a stroller/buggy.
Operating since the end of 2022, iryo is a new high-speed train company in Spain. It’s a consortium between the Spanish airline Air Norstrum and the train company Trenitalia, one of the greatest leaders in European rail transport. The first private Spanish high-speed company to operate, iryo runs high-speed services on the Madrid – Zaragoza – Barcelona route and connects Madrid – Cuenca – Valencia/Alicante and Madrid – Cordoba – Seville/Malaga. They are doing this all with a fleet of ETR1000 model trains that offer the highest level of comfort in Spain, with a combination of advanced propulsion and highest quality onboard services, including WiFi connection and catering service. 98% of the parts of the trains are 100% recyclable, making this trip sustainable as well!
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.
If you're looking for a reasonably-priced experience without compromising on the best service and comfort, Inicial Class is ideal for you!
Singular Class is ideal for business travelers looking for flexibility and comfort. If you need to, you can adapt your ticket to your needs at the time.
If you're looking for added comfort and full flexibility, Singular Only YOU class is a fantastic choice, with access to select hotels too.
iryo's Infinita Bistró Class offers plenty of amenities on board, including wider leather reclining seats, free WiFi and in-seat meal service offering a complimentary gourmet meal. You'll need to book your meal 24 hours in advance.
In AVE's Estándar Class, you'll enjoy comfortable fuss-free travel. With baggage storage and air-conditioning throughout, there's access to their dining car serving drinks and snacks and seats are usually in a row of 2 or 4 around a table. On board, you'll enjoy:
Onboard AVE's Confort Class, you’ll enjoy all the amenities of Estándar Class as well as extra perks, such as complimentary food and drinks, free newspapers and more. Don't forget to enjoy access to Renfe's Club Rooms before your trip to kick it off in style. On board, you'll enjoy:
OUIGO comes with only one class, Standard Class, which is the equivalent of TGV's Second Class. On board you'll find WiFi and a café-bar (on services in Spain). There may be a trolley service on Train Classique services in France. You can pay extra to guarantee a seat with a power outlet, as not all seats currently have one.
Travel in Avlo’s Economy Class and you can connect to the free WiFi and grab some snacks from the vending machine.
You can carry up to 3 pieces of baggage on iryo trains, as long as they do not exceed 25kg (55.1lbs) in total. These 3 pieces can be 2 suitcases with a maximum size of 85 x 55 x 35cm (33.4 x 21.6 x 13.7 inches) and a backpack or handbag that does not exceed the dimensions of 36 x 27 x 15cm (14.1 x 10.6 x 5.9 inches).
iryo offers different menus with high-quality products in all classes. You can buy your favorite meal from their onboard restaurant/bar car, which is usually near car 2. If you’re traveling in the Infinita Bistró Class, you can enjoy the Infinita Bistró food service – your meal will be served straight to your seat. Please note that you’ll need to book your meal at least 24 hours in advance.
You can enjoy free WiFi in all classes on iryo trains, as well as an onboard entertainment platform providing a wide selection of movies, TV series, live news and Spotify.
Kids aged 0-3 travel for free on all iryo trains. Kids aged 4-13 get a discounted ticket while those aged 14-18 need to pay the full price. Please note that kids aged under 18 need to be accompanied by their parents or legal guardians.
You can take your bike on board iryo trains for free if it’s folded and does not exceed 90 x 120 x 40cm. Also, your bike must travel without the pedals and with the handlebar rotated 90 degrees.
iryo allows pets that do not exceed 10kg (22lbs) in weight, as long as they travel inside a carrier with a maximum size of 60 x 35 x 35cm (23.6 x 13.7 x 13.7 inches). You'll need to buy a ticket for your pet in advance. In addition, guide dogs can travel at no additional cost.
There are 2 seats for people with reduced mobility on iryo trains. Step-free access is also available both when boarding and when getting off the train.
With AVE, you can travel with up to 3 pieces of baggage that do not exceed 290cm (114.1 inches) and 25kg (55.1 pounds). In total, the maximum measurements of each piece of baggage are 85 x 55 x 35cm (33.4 x 21.6 x 13.7 inches). Musical instruments also count as hand baggage as long as they do not exceed the dimensions 30 x 120 x 38cm (11.8 x 47.2 x 14.9 inches) and are stored in a case.
If you’d like to stretch your legs and grab a coffee during your journey, AVE trains have an onboard dining car. If you’d prefer to stay in your seat, AVE staff will pass through each car with a food and drink cart.
On AVE trains, you can take advantage of PlayRenfe – their free WiFi and entertainment pass. Giving you access to exclusive content and fast connection speeds, PlayRenfe can be downloaded from the app store on your phone. Once you’re connected, you can access the PlayRenfe portal, where you’ll find exclusive live sport, news, films and TV series.
Children under 3 years old travel for free with AVE, as long as they do not occupy a seat and have their free child ticket. Children from 3 to 14 years old can take advantage of a 40% discount on ticket prices.
On all AVE trains, each passenger can take one bicycle or scooter on board, as long as it’s folded and carried inside a case. Also, the pedals must be removed and handlebars turned 90 degrees. Lastly, if the sum of the dimensions of the case is less than 180cm (70.8 inches), it's considered as hand luggage. However, if it’s bigger, it will be considered as special luggage (max dimensions 120 x 90 x 40 cm or 47.2 x 35.4 x 15.7 inches).
With AVE, you can travel with a pet as long as it weighs no more than 10 kg (22 pounds) and travels inside a cage or carrier that measures max 60 x 35 x 35 cm (23 x 13 x 13 inches). Your pet must have their own pet ticket, unless you’re traveling with a Premium ticket, in which case the pet ticket is free. Guide and assistance dogs travel for free.
AVE offer a free assistance and care service for people with reduced mobility. To request the service, passengers should contact AVE directly.
One piece of hand baggage (36 x 27 x 15 cm) and one piece of cabin baggage (55 x 35 x 25 cm) can be taken onboard. You can take additional or larger bags with you (max. 30kg) for an extra fee or by paying for OUIGO Plus.
On OUIGO trains in France: an at-seat service of snacks is available on Train classique services. This service is not available on high-speed OUIGO trains.
On OUIGO trains in Spain: OUIBAR is located in car 4 of each train and offers a selection of hot and cold drinks, plus snacks.
WiFi (OUIFI) and an entertainment portal (OUIFUN) are available at an additional cost.
For OUIGO trains in France: Passengers under 12 years old pay a fixed price for tickets all year round - €5 for journeys on Train classique services, and €8 for high speed services.
For OUIGO trains in Spain: Passengers under 12 pay €5 for all journeys.
You can take your bicycle on board OUIGO trains if you add the 'Bike' option onto your ticket for an additional fee of at least €5. Your bike must be folded or dismantled and placed in a storage bag for transport.
Pets are only allowed on board OUIGO trains if the 'Pets' option is added to your ticket at the time of booking. (1 pet per adult, per booking, €10 per pet.)
For disabled passengers or those with reduced mobility, you can request assistance through 'Accès Plus'. With this service, a member of staff will meet you at the station and help you get to your seat on the train. To book assistance, contact Accès Plus after you book your tickets (and no later than 48 hours before your train is due to depart).
Traveling with a Básica ticket on an Avlo train? You can travel with 1 piece of hand baggage and 1 suitcase. Both pieces of baggage are not subject to a weight limit, but the hand baggage cannot exceed 27cm (10.6") x 36cm (14.1") x 25cm (9.8") and the suitcase cannot exceed 55cm (21.6") x 35cm (13.7") x 25cm (9.8") in dimensions. If you’d like to add 1 extra piece of baggage, you’ll need to pay a fee of €10 if you buy it at the time of purchase and €30 if you get it at the station.
On Avlo trains, there is no onboard dining service. However, you will find a vending machine, serving a diverse variety of hot and cold drinks and snacks. Please note that the vending machine only accepts card payments.
If you’re traveling with Avlo, you can enjoy free WiFi through the PlayRenfe platform. As soon as you’re connected you can enjoy films, television shows, newspapers and much more.
Children under 3 years old travel for free with Avlo, as long as they do not occupy a seat. Children under 14 travel for €5 (maximum of 2 child tickets per adult).
Only folding bikes and scooters are allowed on board Avlo trains, as long as they do not exceed the dimensions permitted for suitcases – 55 x 35 x 25cm (21.6" x 13.7" x 9.8").
You can travel with your pet for only €10 ($11.01), provided that you have a small pet, such as a dog, cat, ferret or bird (not poultry). Your pet must not weigh more than 10 kg (22 lbs) and must travel inside a cage or carrier, which must not exceed dimensions of 60 x 35 x 35 cm (23.6" x 13.7" x 13.7").
Please note there is a maximum of 1 pet per person and all pets must always travel with their own pet ticket and not take up a seat. Guide and assistance dogs are allowed on the train free of charge.
With Avlo, passengers with reduced mobility can request the assistance service. For more information, contact Avlo directly.
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!
Take a look at our handy guides to find out when train operators release their special deals and offers to see if you can find cheap European train tickets for your journey.
For specific information about how to get your hands on cheap tickets, check out our European train tickets hub.
Got questions about your train trip from Barcelona to Madrid? We've got answers.
When flying from abroad to Barcelona, you will almost certainly arrive at El Prat Airport, more commonly known as Barcelona Airport. Continue reading for more details on how to get from the airport to central Barcelona.
If you're traveling from Barcelona to Madrid, your train will depart from Barcelona Sants station.
Located in the heart of the city, Barcelona Sants station is easily accessed via the city’s public transport. To get there, you can use:
As previously mentioned, if you want to travel from Barcelona Airport to Barcelona Sants, you can simply catch the Renfe train from Barcelona Airport station to Barcelona Sants station, which takes around 25 minutes.
As you wait for your train, there are plenty of things to do at Barcelona Sants station. Read on to find everything you need to know, including information on facilities and first class lounges.
Whichever train operator you decide to travel with, you will arrive at Madrid Atocha station, in the city center.
Once you’ve left the station, you can start to explore Madrid’s most legendary landmarks. From Madrid Atocha station, it’s easy to get to central Madrid thanks to public transport. You can get there by:
If you want to travel from Madrid Atocha to Madrid Airport, you can take a Renfe train, taking around 35 minutes in total.
In Madrid, the public transport system is easy, fast, safe and reliable.
The underground system, known as the Metro, is the easiest way to get around the city. Comprised of 12 lines and over 300 stations, Madrid’s Metro is one of the most accessible metro systems in Europe.
Typically, the Metro runs from 6:00 am until 1:30 am, with trains arriving every 2-15 minutes. Generally, a single journey on public transport costs between €1.50 and €2, making it a very low-cost way to navigate the city.
Madrid’s Metro system is integrated with the bus system, meaning that you can travel on the Metro and the bus with the same ticket. Roughly, there are over 200 bus lines with over 2,000 buses in operation. The city’s EMT buses are blue and offer excellent views of the city as you travel to your destination.
Madrid’s tram system, also known as the Metro Ligero, is an overground metro connecting the city through 4 lines and over 50 stations. If you want to travel from the city center to Madrid’s suburbs, or vice versa, the Metro Ligero is what you’re looking for.
When visiting Madrid, there are so many things to see and do, it can be difficult to know where to start! To help you find inspiration, here are some ideas for things to do in Madrid:
If you buy a ticket for one of Renfe’s long-distance services, such as AVE, you can benefit from free travel on Cercanías and other regional trains before and after your journey. This is known as a Combinado Cercanías ticket.
This means that if you need to get to the station where your long-distance journey starts, or if you want to travel onward from your destination station, you may be able to use regional trains at no extra cost!
You’re also able to get a Combinado Cercanías ticket if you’re traveling with iryo.
Find out more on our dedicated Combinado Cercanías page, which contains information about eligible tickets and the cities included in the offer.
After visiting Madrid, why not continue exploring Europe by train? With a Eurail Pass, you can travel across 33 European countries as much as you want on participating European train networks for a set amount of travel days. Check out our guide to Eurail in Spain for more info.
You can use a Eurail Pass if you’re not a European citizen or resident. If you're a European citizen or a non-European who is an official legal resident of a European country, you can use an Interrail Pass instead.
The average journey time by train between Barcelona and Madrid is 2 hours and 52 minutes, with around 33 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 29 minutes.
Train tickets from Barcelona to Madrid can start from as little as $7.95 when you book in advance and are usually more expensive when purchased on the day. Prices can also vary depending the time of day, route and class you book.
Yes, it is possible to travel from Barcelona to Madrid without having to change trains. There are 33 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:50. Times and services may vary during weekends and holidays.
The last train from Barcelona to Madrid leaves at 21:00. 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.
If you’re looking for the return train journey, check out trains from Madrid to Barcelona.