RoutavioPopular routesMadridMadrid to Barcelona
MadridBarcelona505 km in a straight line

How to Get from Madrid to Barcelona

Madrid to Barcelona is 505 km in a straight line, and the fastest option takes 3h 02m by train. The trip takes 7h 10m by bus.

  • 20 train departures a day with Renfe
  • First train at 06:27, last at 20:30
Madrid to Barcelona

On Routavio you can compare the ways from Madrid to Barcelona by price and travel time (route calculated on 2 December 2026).

Compare the ways to get there. Then check them for your own date.

Start with the Whole Journey.

We compared the ways to travel from Madrid to Barcelona. The most useful door-to-door route takes 3h 02m by train with no transfer. The two cities are about 505 km apart in a straight line. The price and operators below come from a real route search.

This fare comes from a search on November 28, 2026 and has not been refreshed since. Run a live search for today's price.

505 km in a straight line

Which Way Suits You?

These figures were observed on different days. This table is not a live price ranking for your date.

Madrid to Barcelona: Cheapest or Fastest?

Pick a tab: the legs, the timing and the difference from the others all change with it.

Which Date Should You Go?

An amount is a fare we saw earlier; with "around" in front it is our estimate. Neither is a live offer. A day with no figure is one we have not priced, not one without a service.

Price alert
Madrid Barcelona· 23 Dec 2026 ·€42One way

Departures from Madrid to Barcelona

Renfe runs 20 scheduled departures a day, the first at 06:27 and the last at 20:30.

OperatorDepartures a dayFirstLast
Renfetrain2006:2720:30
ALSAbus1101:3021:30
Ouigotrain506:2220:10
FlixBusbus·19:0519:05
Ouigo Spaintrain···
BlaBlaCar Busbus···
BlaBlaCarbus···

All departures Renfe

  • 06:27
  • 07:27
  • 08:27
  • 09:27
  • 10:27
  • 11:27
  • 12:27
  • 12:50
  • 14:27
  • 14:57
  • 15:27
  • 15:57
  • 16:27
  • 16:57
  • 17:27
  • 17:57
  • 18:27
  • 18:57
  • 19:34
  • 20:30

All departures ALSA

  • 01:30
  • 01:59
  • 03:00
  • 08:30
  • 11:00
  • 13:30
  • 15:00
  • 16:00
  • 17:00
  • 18:30
  • 21:30

All departures Ouigo

  • 06:22
  • 09:31
  • 13:42
  • 16:22
  • 20:10

All departures FlixBus

  • 19:05

Departure times come from operator timetables and are local time at the origin. Where a row shows no times, we do not hold a published timetable for that operator. Times can change on holidays and at short notice; confirm with the operator before you travel.

Departure and Arrival

Madrid
MadridDeparture
Barcelona
BarcelonaArrival

Ticket Prices on This Route

What each way of travelling costs, as the operator publishes it. These describe the route rather than a date you pick, and they refresh once a day. Booking opens at our partner Omio.

  • Bus· 7h 20m€17Book
  • Train· 3h 02m€25Book

Omio last refreshed these on Thu, Dec 3.

See fares and book

Operators Seen on These Journeys

On this route you travel with Renfe, BlaBlaCar Bus, Vueling.

How the Trip from Madrid to Barcelona Works

Routavio built this route from its own route data on 2 December 2026. Start with a Renfe train from Madrid to Barcelona, about 3h 17m. In total it's roughly €26 over 3h 17m, direct, no transfers.

Rent a Car

Loading offers...

Things to Do in Barcelona

Loading offers...

Madrid to Barcelona: Common Questions

How long does it take to get from Madrid to Barcelona?

Routavio's route check on 2 December 2026 puts the most useful route at about 3h 02m by train, with no transfer.

When is the first train from Madrid to Barcelona?

The first train with Renfe leaves at 06:27 and the last at 20:30, according to the published timetable.

How many train departures a day are there from Madrid to Barcelona?

Routavio's timetable check shows 20 train departures a day with Renfe, between 06:27 and 20:30.

When is the first bus from Madrid to Barcelona?

The first bus with ALSA leaves at 01:30 and the last at 21:30, from Madrid Barajas, according to the published timetable.

How many bus departures a day are there from Madrid to Barcelona?

Routavio's timetable check shows 11 bus departures a day with ALSA, between 01:30 and 21:30.

Which station does the bus from Madrid to Barcelona leave from?

Madrid Barajas with ALSA, according to the published timetable.

How far is Barcelona from Madrid?

About 505 km in a straight line. The real route on the ground or in the air is longer.

How much does Madrid to Barcelona cost?

Routavio's price check puts the route we recommend at €26. Other options on this page can cost less, and the exact fare depends on your travel date.

Which operators run Madrid to Barcelona?

According to Routavio's route data, on this route you travel with Renfe, BlaBlaCar Bus, Vueling.

Can you get from Madrid to Barcelona without flying?

Yes. A ground route by train takes about 3h 02m.

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

Routavio's comparison usually points to a flexible date, or leaving from a nearby airport. A live search puts every option for your dates side by side.

Can I book directly?

Yes. Routavio sends you straight to the operator or an independent third-party provider. We never add a booking fee. The final fare and availability are confirmed by that provider.

Other Ways People Search Madrid to Barcelona

  • how to get from Madrid to Barcelona
  • Madrid to Barcelona travel time
  • Madrid to Barcelona distance
  • cheapest way from Madrid to Barcelona
  • Madrid to Barcelona by bus

Sources and Method

Routes are calculated by Routavio's multimodal engine from operator timetables and flight data. Durations come from timetables, and prices are the most recent observation, not a guarantee.

Operators: Renfe, BlaBlaCar Bus, Vueling

Route calculated: 2 Dec 2026

Prices checked: 28 Nov 2026