Speed from city center to city center
Get from Madrid to Barcelona by train in 2h 30 m with Trainline 🚆
Read real reviews from real users
Want to take the train from Madrid to Barcelona and looking for more information about the journey? Start your journey now!
On average, the train journey from Madrid to Barcelona takes 3h, but can take just 2h 30m on the fastest Renfe Ave services. As there are direct trains available, you won’t need to worry about making any changes along the way. Each day, there are around 16 trains running from Madrid Atocha station to Barcelona Sants station. There are now 4 high-speed trains to choose from on this route – OUIGO, Avlo, AVE and iryo trains:
As two of the biggest and most popular cities in Spain, it’s no surprise that Madrid to Barcelona is one of Spain’s most popular train routes with locals and tourists. Travelling from Madrid to Barcelona by train means your journey starts and ends in both city centres, cutting out the hassle of airport transfers and waiting around before your flight. Want to travel in First Class? AVE Preferente passengers enjoy reclining leather seats and complimentary snacks.
If you’re travelling to the Catalan capital, there’s no shortage of things to do, such as wandering along Las Ramblas or admiring La Sagrada Familia. Need somewhere to stay and cool off? Check out Barcelona's best hotels with pools! Or if you're looking to trek a little further afield, take a look at our guide to exploring the Costa Brava without a car so that you can see the region's best beaches.
Ready to book your cheap train tickets from Madrid to Barcelona? Start your search in our Journey Planner at the top of the page. If you want more information first, keep reading for FAQs about the journey and tips on how to find cheap train tickets.
It takes an average of 2h 50m to travel from Madrid to Barcelona by train, over a distance of around 314 miles (506 km). There are normally 29 trains per day traveling from Madrid to Barcelona and tickets for this journey start from $7.95 when you book in advance.
First train | 6:30 am | |
---|---|---|
Last train | 9:00 pm | |
Departure station | Madrid | |
Arrival station | Barcelona | |
Journey time | From 2h 30m | |
Distance | 314 miles (506 km) | |
Frequency | 29 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 Madrid to Barcelona 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 Madrid to Barcelona? We've got answers.
If you’re flying to Madrid from abroad, you will almost certainly land at Madrid-Barajas Airport. If you want to get from the airport to central Madrid, keep reading for more details.
Madrid Barajas Airport is the main international airport serving the Spanish capital and can be easily reached by Metro, bus or train. Read our detailed guide to trains to and from Madrid Airport for more information.
Metro from Madrid-Barajas Airport
The Metro is the quickest and easiest way to get from Madrid-Barajas Airport to the city center. From 6:00 am to 2:00 am, you can take the Metro from Terminal T2 or Terminal T4. Jump on Line 8 and go straight to Nuevos Ministerios Metro station in the center of Madrid in just 12 minutes. From here, you can jump on another Metro and reach just about every part of Madrid!
Buses from Madrid-Barajas Airport
Running 24 hours a day, the Exprés Aeropuerto (Airport Express) stops at O'Donnell, Plaza de Cibeles and Atocha – home to Madrid’s largest train station. During the day, buses run every 15 minutes and during the night, every 35 minutes. You can jump on the bus at terminals T1, T2 and T4. In total, the journey takes approximately 40 minutes.
Situated in the heart of the city, Madrid Atocha station is easy to get to because of the city’s easy, fast and reliable public transport system. You can get there by:
Looking to travel from Madrid Airport to Madrid Atocha station? You can take a Renfe train, which takes around 35 minutes in total.
Want to grab something to read or find something to eat? There are plenty of things to do at Madrid Atocha station while waiting for your train to arrive.
For more information, check out our guide to navigating Madrid Atocha train station.
If you opt to travel with AVE in First Class, you can take advantage of Renfe’s Club Lounge at Madrid Atocha station. Before your journey, you can take advantage of the following:
No matter which train operator you decide to travel with, you’ll arrive at Barcelona Sants station, a short journey from the city center.
In Barcelona, you’ll want to start soaking up the city’s atmosphere as soon as possible. The center of Barcelona is easily accessible due to the city’s extensive public transport network. You can get there by:
Want to travel from Barcelona Sants station to Barcelona Airport? You can simply catch the Renfe train, which takes around 20 minutes. Find out more about trains to and from Barcelona Airport here.
Barcelona is a sprawling city with many different areas, but it boasts a modern public transport system to help you navigate the city.
Barcelona’s Metro is the easiest way to get around the city and consists of 12 lines and 186 stations.
When traveling on the Metro, there are various tickets, including a Single for just one journey and a T-Dia, for unlimited travel for a whole day. The Metro runs 365 days a year, operating from 05:00 am until 12:00 am, except on Friday when it closes at 02:00 am and Saturday when it does not close.
Travel by bus to take in excellent city views. In Barcelona, over 230 bus lines run from 05:00 am until 10:00 pm.
Barcelona’s tram system is a quick and convenient way to get around the city. Known locally as El Tram, Barcelona’s trams run through the city’s heart. If you’d like to travel via tram, you can purchase tickets from the machines at tram stations.
If you’re planning a trip to the Catalan capital, but unsure where to visit first, here are some ideas for things to see and do in Barcelona:
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 Barcelona, 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 Madrid and Barcelona is 2 hours and 50 minutes, with around 29 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 Madrid to Barcelona is 2 hours and 30 minutes.
Train tickets from Madrid to Barcelona 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 Madrid to Barcelona without having to change trains. There are 29 direct trains from Madrid to Barcelona each day. Though there may be fewer direct services available depending on your exact departure date.
The first train from Madrid to Barcelona leaves at 06:30. Times and services may vary during weekends and holidays.
The last train from Madrid to Barcelona 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 Madrid to Barcelona 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 Barcelona to Madrid.