Shortest travel time:
2 h 29 m
Longest travel time:
9 h 6 m
Lowest train ticket cost:
Avg. daily departures:
Earliest departure:
Latest departure:
Catalonia's capital is a very popular travel destination, welcoming hundreds of tourists daily. Find all you need to know about railway stations in Barcelona!
Show more
Barcelona train stations
Sants Station
Carrer del Rector Triado, 75, 08014, Barcelona, Spain
Barcelona Airport Terminal
08820 El Prat de Llobregat, Barcelona, Spain
505 km
The lively capital of Spain boasts quite a few busy train hubs. Check out everything you need to know about railway stations in Madrid.
Show more
Madrid train stations
Pta. Atocha - Almudena Grandes
Plaza Emperador Carlos V, 28045, Madrid, Spain
Agustín de Foxá, 40, Madrid, Spain
Madrid - Atocha Cercanias
28045 , Madrid, Spain
Principe Pio
Paseo del Rey, 1092, Madrid, Spain
Madrid Estacion Sur
Calle Méndez Álvaro 84, 28045, Madrid, Spain

Barcelona to Madrid Train Information

The charming Spanish capital, Madrid, and the popular Catalonian gem, Barcelona, are surely worth seeing at least once in a lifetime. And taking a well-equipped high-speed Barcelona to Madrid train is certainly a great and comfortable option, saving a lot of your time. Below you can find out more about travel from Barcelona to Madrid, the route, and the trains, including answers to frequently asked questions. Or you can enhance your experience and make the most of your Spain trip with the innovative trip planner. Let your imagination go wild with the Spain itinerary builder. Mix the amazing sights into one trip and get ready to dive into the charms of this incredible country!

How far is Barcelona from Madrid?

The distance from Barcelona to Madrid is 505 kilometers which is approximately 314 miles. Although it may seem that traveling on an airplane for your connection between the cities is the wisest choice when covering such a long distance, taking a train from Barcelona to Madrid has proven itself to be a more time-efficient option.

Are there direct train services?

The most popular choice among travelers is the direct train which runs on the route, the high-speed AVE, which can reach the speed of 186 mph. Such trains are operated by the Renfe company and are favored for their onboard comfort and convenience of departure and arrival locations (right in the city centers: the Sants Station in Barcelona and the Puerta de Atocha Station in Madrid).

How long does it take to travel?

As mentioned before, one of the fastest and most advantageous travel options is taking the bullet train. If you’re wondering how long is the train from Barcelona to Madrid, the trip duration varies from 2 hours 30 minutes to 3 hours 10 minutes and the train doesn’t make any stops along the way after its departure.

What time is the first and last train of the day?

Luckily, the fast train from Barcelona to Madrid boasts an extensive schedule with practically hourly departures. Therefore, no matter which day of the week you’ll be traveling, you can count on over 10 options. As a rule, the first train departs at around 6 a.m. and the last train leaves at about 9 p.m.

When to buy tickets - now or in advance?

When it comes to purchasing your train tickets from Barcelona to Madrid, the smartest way to go is “the earlier - the better”, especially if you’re sure about your travel dates. On Rail Ninja you can book rail tickets for departures as early as 2 years in advance. This way can avoid higher rates and safeguard yourself from the unfortunate cases of little or no availability for your specific date or needed departure time, which is possible when booking last-minute.

What is the minimum price of a ticket?

Ticket prices for the bullet train Barcelona to Madrid vary based on the departure time, the chosen coach class, the traveler's age (child or adult), as well as on the proximity to the departure. Generally, ticket prices start from around 100 USD.

What class to choose?

If you plan to take the high-speed AVE Barcelona to Madrid train, you’ll have the choice of several classes: First Class, also called Preferente, or the Second Class, referred to as Turista. All train cars are air-conditioned, modern, and have comfortable seats. First Class cars are more spacious and designed for a smaller number of passengers. You can read more about the seat classes and the train here: AVE high-speed train.

Do you need seat reservation?

Seat reservation is included in the ticket. When booking your ticket you may indicate your preferable seat choice and, depending on the availability, the best option will be provided for you. Information about your assigned seat and the seat number will be displayed in the ticket.

Barcelona to Madrid Train Timetable

Train type
Fastest trip
Longest trip
Morning trains
2 hrs 30 min
9 hrs 6 min
Afternoon trains
2 hrs 29 min
3 hrs 12 min
Evening trains
2 hrs 30 min
3 hrs 12 min
Night trains
2 hrs 30 min
2 hrs 45 min

Trains on Barcelona - Madrid Route

Brand name
Train type
Travel time
Price from
Bullet train
2 hrs 29 min
Express train
2 hrs 45 min
Bullet train
2 hrs 30 min
Bullet train
2 hrs 55 min
Regional train
9 hrs 6 min
Show more
9.8 / 10 based on 62 reviews

Barcelona to Madrid Train Review & Rating

Really fast and smart connection, very clean and modern trains

Caroline K. about traveling from Barcelona to Madrid