Home · Search
Routes

How to Get from Barcelona to Madrid: Distance, Train, Bus and Car

AI-generated content · How we use AI

How to Get from Barcelona to Madrid: Distance, Train, Bus and Car

Barcelona → Madrid

621 km
🚗 Car 6h (A-2)
🚆 Train 3h 1min
🚍 Bus 7h 25min
Recommended stops 8

There is something deeply Mediterranean about leaving Barcelona at dawn with the A-2 unfolding before you, knowing that six hours later the dry outline of the meseta will greet you with another accent, another light and another way of understanding distances. This corridor between Spain’s two great capitals is not just a journey: it is a geographical and cultural transition that can be made in two and a half hours by AVE, seven and a half by bus, two by direct flight or on a road trip dotted with stops that smell of rosemary, embers and red wine.

🚗 How to get from Barcelona to Madrid

Mode Time Approx. price Book
🚗 Car 6h Fuel: 50–75€ Rent a car ↗ · Map
🚄 Train 3h 1min Check price Omio ↗
🚌 Bus 7h 25min 16-37 € Omio ↗

🎫 Compare all tickets

How to get from Barcelona to Madrid: quick summary

The fastest option is Renfe’s AVE train, which connects Barcelona-Sants with Madrid-Puerta de Atocha-Almudena Grandes in 181 minutes, with a frequency of 33 trains per day and a schedule that starts at 05:40 and runs until 20:20. If budget is your priority, the ALSA or FlixBus coach costs between 16 and 37€, although the journey stretches to 445 minutes. The direct flight with Iberia, Vueling or Air Europa lasts 120 minutes and is priced between 22 and 118€, but add on the transfer times to the airport and security checks. For those who want the freedom to stop and travel at their own pace, driving along the A-2 and AP-2 covers the 621 km in around 6 hours with no tolls. Recommendation: if you are travelling for work or want to arrive rested, the AVE is unbeatable; if you are after the cheapest option, the bus; if you fancy a mini culinary and scenic adventure, the car with stops in Tarragona, Caspe or Alcalá de Henares.

Driving from Barcelona to Madrid

The road route covers 621 km in approximately 6 hours, driving mainly along the A-2, AP-2 and AP-7, all toll-free on the sections indicated. The natural route starts in Barcelona by taking the B-23 for about 16 km to connect with the AP-7, the Autopista de la Mediterrània, which accompanies you for some 49 km south. After that you link up with the AP-2, the Autopista Zaragoza-Mediterrània, which accounts for the longest stretch at around 214 km and crosses the Catalan and Aragonese interior with a landscape that grows increasingly dry and expansive. On reaching the outskirts of Zaragoza, the Z-40 rings the city for about 7 km before you rejoin the A-2, the Autovía del Nordeste, which covers some 327 km of the total route and takes you uninterrupted to the approaches of Madrid. The drive is comfortable, with good road surface and enough service areas to refuel or stretch your legs. It is worth keeping an eye on crosswinds on the Aragonese sections and on heavy traffic at the entrance to Madrid during peak hours.

By train from Barcelona to Madrid

The fastest direct train between Barcelona and Madrid is Renfe’s AVE, which takes 181 minutes to complete the journey between Barcelona-Sants and Madrid-Puerta de Atocha-Almudena Grandes. The frequency is 33 trains per day, with the first service at 05:40 and the last at 20:20. According to Renfe data, 27 AVE trains run daily with a duration of 181 minutes, 5 Ouigo trains per day with 182 minutes of travel and 1 international AVE train with 208 minutes. The high frequency makes it possible to plan the trip as a same-day return, something common for business meetings. The route runs along the high-speed line that crosses Lleida, Zaragoza and Calatayud, with the landscape changing from Mediterranean green to the ochre of the meseta. Tickets are best booked in advance, especially at peak times and weekends, when demand sends prices soaring.

By bus from Barcelona to Madrid

The direct bus between Barcelona and Madrid is operated by ALSA and FlixBus, with a journey time of 445 minutes and a price ranging from €16 to €37 depending on how far in advance you book, the time of day and the company. It is the cheapest option for those who don’t want to depend on a car and don’t mind spending more than seven hours on the journey. Buses usually depart from Barcelona’s Estació del Nord and arrive at Madrid’s Estación Sur de Autobuses or at peripheral transport interchanges, depending on the company. The main advantage is the money saved and the possibility of travelling overnight, making the most of the journey to sleep. The downside is the time: 445 minutes is more than double that of the AVE and almost four times longer than the direct flight. Even so, for tight budgets or travellers in no hurry, it is a solid alternative with a wide range of departure times.

By plane from Barcelona to Madrid

The direct flight between Barcelona-El Prat (BCN) and Adolfo Suárez Madrid-Barajas (MAD) takes 120 minutes according to Google Flights, with prices ranging from €22 per journey on low fares seen on Opodo to €118 for a return ticket on Google Flights. The airlines operating the direct route are Iberia, Vueling and Air Europa. The air shuttle between the two cities is one of the busiest in Europe, with constant departures throughout the day. However, you have to add the transfer time to the airport, the security check and the wait at the gate, which can match or even exceed the total duration of the AVE. Flying makes sense if you are connecting to an international flight at Barajas or if your accommodation in Madrid is near the airport. For the centre of Madrid, the train remains more practical door to door.

The corridor between Barcelona and Madrid offers eight verified stops that can turn the journey into a route with an identity of its own, especially if you’re travelling by car.

Tarragona

A coastal city with a Roman archaeological ensemble declared a UNESCO World Heritage Site. The stop allows for a stroll through the amphitheatre facing the sea and a relaxed meal before getting back on the AP-7 or AP-2. It’s one of the most convenient stops thanks to its proximity to Barcelona.

Reus

A few kilometres from Tarragona, Reus is known for its Modernista architecture and its commercial tradition. It’s a short, ideal stop for a coffee or a vermouth before heading inland. Access from the motorway is quick and straightforward.

Alcalá de Henares

Already in the Community of Madrid, Alcalá de Henares is a UNESCO World Heritage city and the birthplace of Cervantes. Its historic university and its arcaded Calle Mayor justify a stop before tackling the final kilometres into the capital. It’s a perfect cultural finale to the trip.

Torrejón de Ardoz

A municipality in the Henares corridor, very close to Madrid. Its position makes it a practical stop for refuelling or eating with barely any detour from the route. It doesn’t have the monumental appeal of Alcalá, but it’s functional and well connected.

Caspe

In the province of Zaragoza, Caspe is a stop with Aragonese character, linked to the Compromise of Caspe and the Guadalope river. Its old town and its reservoir offer a peaceful breather in the central stretch of the journey. It’s a less touristy stop, but an authentic one.

Alcañiz

In Teruel, Alcañiz stands out for its Calatravan castle, now a national parador, and for its Plaza de España with its Gothic lonja. It’s one of the prettiest stops in inland Aragon and a good spot to sample the local cuisine before continuing on to Zaragoza or Madrid.

Andorra

Not to be confused with the Pyrenean country: this Andorra is a municipality in Teruel, in the Andorra-Sierra de Arcos region. Its mining surroundings and arid landscape create an interesting contrast with the Catalan coast. It’s a discreet stop, useful for stretching your legs on the Aragonese stretch.

Daganzo de Arriba

A small municipality in Madrid to the northeast of the capital, near the A-2 axis. Its main value is its proximity to Madrid and the peacefulness of its rural surroundings. It can serve as a final short stop before entering the city.

🏨 Hotels in Madrid

* Prices are indicative and may vary. We compare hundreds of sites to find the best deal.

🎭 Activities and tours in Madrid

Where to stay in Madrid

Madrid offers a wide variety of accommodation to suit every budget and travel style, with clearly distinct areas to stay in. The historic centre, around Sol, Gran Vía and the Barrio de las Letras, has the largest concentration of hotels and lets you walk to the main attractions. Prices here tend to be higher, especially in high season. The Salamanca district is the elegant option, with high-end hotels and a stately atmosphere. Malasaña and Chueca offer accommodation with character, hostels and tourist apartments, ideal for younger travellers or longer stays. Near Atocha station, hotels are practical for those arriving by AVE who want to minimise transfers. For tighter budgets, the Lavapiés district and the areas near Méndez Álvaro or the Estación Sur have well-connected hostels and budget hotels. Prices vary greatly depending on season, events and how far in advance you book, with a wide range running from basic options for less than €60 a night to luxury hotels above €200.

Where to eat along the route

The journey from Barcelona to Madrid is a culinary tour through three cuisines: Catalan, Aragonese and Castilian. In Catalonia, pan con tomate (bread with tomato) is the emblem: a slice of toasted bread rubbed with ripe tomato, dressed with olive oil and salt, often accompanied by cured meats such as jamón or fuet. Butifarra amb mongetes (sausage with beans), typical of comarcas such as Osona and La Selva, is a fresh pork sausage boiled or grilled and served with stewed white beans. In the comarcas of Tarragona and Barcelona, calçots with romesco sauce are tender onion shoots roasted over embers and served with a sauce made from tomato, ñoras, almonds, hazelnuts, garlic and oil; they are eaten by peeling the calçot with your hands, in an experience as social as it is gastronomic. On entering Aragon, ternasco de Aragón is the meat of young lamb roasted or grilled, tender and mild in flavour, seasoned with salt and sometimes rosemary or garlic. Jamón de Teruel is a cured ham from pigs raised in the province, salted and air-dried, with an intense flavour and firm texture. Bacalao ajoarriero, shared with Navarre, is a stew of flaked cod with garlic, onion, tomato and pepper, sometimes with potato, cooked over a low heat. Once in Castile and León, the Segovian roast suckling pig is cooked whole in the oven with pork lard and salt until the skin is crisp, and is carved with a plate. Judiones de La Granja is a hearty stew with chorizo, morcilla, bacon and pork ear, cooked slowly until the beans are tender and the sauce thick. To drink, Ribera del Duero wine, made mainly from Tempranillo grapes, has an intense colour, aromas of black fruit and spicy notes; Rueda wine, made with Verdejo grapes, is white, fresh and aromatic, with citrus and herbaceous notes.

Frequently asked questions about the Barcelona-Madrid route

How long does it take from Barcelona to Madrid?

It depends on the transport. By car, the 621 km take about 6 hours via the A-2, AP-2 and AP-7. On a Renfe AVE train, the fastest journey takes 181 minutes (about 3 hours). By bus with ALSA or FlixBus, the trip stretches to 445 minutes (7 hours and 25 minutes). On a direct flight with Iberia, Vueling or Air Europa, the flight takes 120 minutes, although transfers and security checks must be added on.

Which is cheaper, the train or the bus?

The bus is clearly cheaper, with prices between 16 and 37€ according to ALSA and FlixBus. The Renfe AVE train has higher prices, especially if booked at short notice or at peak times, although Ouigo’s promotional fares can come close to those of the bus. The plane has a wide range: from 22€ per journey on offers up to 118€ for a return trip.

Is it worth renting a car?

It depends on your plan. If you are only going to Madrid, the AVE is faster and avoids the tiredness of 6 hours at the wheel. But if you want to stop in Tarragona, Caspe, Alcañiz or Alcalá de Henares, the car is the only flexible option, since the train and bus do not allow you to hop on and off along the route. The road journey has no tolls on the indicated stretches of the A-2, AP-2 and AP-7, which makes travelling by car cheaper.

When is the best time to travel?

Spring and autumn are the best seasons to do the route by car, with mild temperatures and pleasant landscapes, especially on the Aragonese stretch. Summer can be very hot inland, and winter brings a risk of fog on the meseta and wind in Aragon. To travel by train or plane, any season is good if you book in advance to avoid high prices on long weekends and holidays.

💡 ¿Sabías que...?

  • ● El primer alumbrado público de Madrid lo impuso Felipe II, y el 15 de octubre de 1765 se inauguró un nuevo sistema con 4.408 faroles de algodón empapados en aceite, atendidos por 100 faroleros. (https://www.abc.es/madrid/tops/20141125/abci-curiosidades-diccionario-madrid-201411242109_1.html)
  • ● El nombre de Madrid deriva del árabe, probablemente de la palabra Mayra, que significa conducciones o canalizaciones de agua, o de Mayrit, que se traduce como arroyo matriz. (https://supercurioso.com/curiosidades-de-madrid/)
  • ● El reloj de la Puerta del Sol, que anuncia las campanadas de fin de año, fue un regalo del relojero Losada, quien tardó tres años en fabricarlo en Londres y se colocó en la Casa de Correos en 1866. (https://www.miradormadrid.com/curiosidades-de-madrid/)
  • ● Madrid tiene una estatua de la Libertad creada por el escultor Ponciano Ponzano en 1853, unos veinte años antes que la de Nueva York; mide unos dos metros y es de mármol blanco, y se encuentra en el Panteón de España. (https://www.miradormadrid.com/curiosidades-de-madrid/)
  • ● El 17 de octubre de 1919, Alfonso XIII inauguró la primera línea de metro de Madrid, en la que se decidió que los trenes circularan por la izquierda como los carruajes; en los años 30 se impuso la circulación por la derecha a nivel nacional, pero la red subterránea ya estaba creada y se quedó así. (https://www.elconfidencial.com/viajes/2021-05-12/10-secretos-de-madrid-que-probablemente-no-conoces_3072931/)
  • ● Según el libro Guinness de los récords, el restaurante Sobrino de Botín, abierto en 1725, es el más antiguo aún en funcionamiento del mundo; se comenta que Goya trabajó en sus fogones con 19 años. (https://lostraveleros.com/curiosidades-de-madrid/)
  • ● El barrio de Malasaña se llama así en honor a Manuela Malasaña, una bordadora ejecutada por los franceses durante el levantamiento del 2 de mayo de 1808 por llevar unas tijeras que usaba para trabajar. (https://lostraveleros.com/curiosidades-de-madrid/)
  • ● En la Plaza Mayor de Madrid se celebraron 359 ejecuciones entre 1642 y 1809, efectuadas a garrote vil o en la horca. (https://www.timeout.es/madrid/es/que-hacer/madrid-misterios-secretos-leyendas)