The Distance Is 621 km. The Travel Time Is What Actually Matters.

Barcelona to Madrid is 621 km by road, around 386 miles. As the crow flies, the two cities sit roughly 484 km apart. But neither of those numbers tells you how long your journey will take, and that depends entirely on how you choose to travel.

This is one of the best-connected intercity routes in Spain. You have four real options: high-speed train, flight, car, or bus. The train wins for most tourists, but the reasons are worth knowing before you book.

Madrid to Barcelona by High-Speed Train: The Best Way to Travel

The high-speed train covers the Madrid to Barcelona distance in as little as 2 hours 29 minutes, city centre to city centre. Services run from Barcelona Sants station to Madrid Puerta de Atocha, both sitting right in the heart of their respective cities. Around 32 trains depart daily, with the first at 6:15am and the last at 9:00pm.

Three operators run high-speed services on this route. Renfe's AVE is the most frequent, with 20-plus daily departures and fares starting around €22. Iryo, a newer full-service competitor, starts from around €15 and comes with free WiFi and a full meal service in the top class. Ouigo is the budget choice, with fares from around €9 for advance bookings; the base ticket covers a cabin bag but not a large suitcase, which you pay extra to bring. All three travel at speeds of up to 310 km/h.

One name to drop from your search: Avlo, Renfe's former low-cost subsidiary, was pulled from the Madrid-Barcelona corridor on 8 September 2025 following a safety inspection. Those services were replaced by standard AVE trains at the same times and prices. Any source still listing Avlo on this route is out of date.

If you hold a Eurail pass, it is valid on all three operators, though a seat reservation fee applies. Compare Renfe, Iryo, and Ouigo prices in one search on Omio to find the best fare for your dates. Book as early as possible: the cheapest tickets go first, and fares can jump significantly close to departure.

Local tip

The train does not just beat the plane on comfort. It beats it on time. When the Madrid-Barcelona high-speed line opened in February 2008, the same journey took six hours or more by conventional rail. Today the AVE is so fast that flying is slower door-to-door: factor in the airport transfer on both ends (30 to 45 minutes each way), check-in, security, and boarding, and a typical flight between the two city centres takes 3 to 4 hours in total. The train takes around 2.5 hours and drops you right in the city centre.

Transport researchers often point to this route as proof that a fast enough train can make flying feel pointless for city-centre travellers. The plane looks cheaper at first glance. Run the numbers and the train wins on both time and stress.

Barcelona to Madrid Travel Time: All Options Compared

Transport Journey Time Approx. Cost Best For
High-speed train (AVE / Iryo / Ouigo) 2h 29m to 3h 25m €9 to €130+ Most travellers
Flight (door-to-door) 3 to 4 hours total €40 to €150+ Airport-to-airport trips
Car 6 to 7 hours €90 to €100 (fuel and tolls) Road trips with stopovers
Bus (ALSA) Around 7 hours From €22 Budget travel with flexible time

By Flight: Faster in the Air, Slower Overall

The flight from Barcelona El Prat Airport (BCN) to Madrid Barajas Airport (MAD) takes about an hour. On paper, that beats the train. In practice, you need to get to the airport, check in, clear security, board, then get from Madrid airport into the city. For a city-centre to city-centre journey, the realistic door-to-door travel time is 3 to 4 hours.

Flying makes the most sense if you are already starting or ending your trip at an airport, or if you need to connect to another flight. If you are going city centre to city centre, the train is both faster and a lot less hassle.

If you do decide to fly, compare flights on Kayak to find the best fare for your dates.

By Car: The Slow Route with One Great Detour

Driving from Barcelona to Madrid takes 6 to 7 hours via the AP-2 and A-2 motorways, passing through Zaragoza roughly halfway. Budget around €55 to €60 in fuel and about €35 in tolls. The motorway is safe and well-maintained, though it is not a scenic drive.

Driving makes more sense as a road trip than a commute. Zaragoza sits almost exactly between the two cities and is well worth a stop. Its old town is home to the Aljafería Palace, a Moorish fortress from the 11th century, and the food and bar scene here is good enough to justify the detour on its own. Stop for a couple of hours and the drive becomes a proper day of travelling rather than a tedious slog. If you want to make a genuine road trip of it, an overnight in Zaragoza is the obvious call.

If you need a hire car, compare car rental prices on Booking.com for your travel dates.

Frequently Asked Questions

How far is Barcelona from Madrid?

Barcelona is 621 km from Madrid by road (around 386 miles). The straight-line distance between the two cities is roughly 484 km. The fastest way to cover this distance is by high-speed train, which takes as little as 2 hours 29 minutes.

Can I do a day trip to Barcelona from Madrid?

Yes, though it makes for a long day. Take an early morning train and you can spend several hours in the destination city before catching a late evening return. It is doable for a quick visit, but at least one night gives you a far more relaxed experience.

What is the cheapest way to travel from Barcelona to Madrid?

Ouigo trains start from around €9 for advance bookings, making them the cheapest way to cover the route quickly. Bus services via ALSA start from around €22 but take about 7 hours. If budget is the priority and you have time to spare, compare bus tickets on Omio to find the best price.

How far in advance should I book the Barcelona to Madrid train?

As early as possible. Renfe and Iryo typically release tickets three to six months ahead, and the cheapest fares go first. Ouigo tickets are often released closer to the date but budget seats still sell out early. If you have fixed travel dates, booking the moment tickets go live is the best way to get the lowest price.

Do children travel free on the Barcelona to Madrid train?

It depends on the operator. On Renfe AVE, children under 4 travel free (without occupying a seat); children aged 4 to 13 get a 40% discount. On Iryo, children under 3 travel free and those aged 4 to 13 get a discounted ticket. On Ouigo, children under 12 pay a fixed €5 fare regardless of the adult ticket price.