Gopaxo

Train routes

Madrid → Barcelona by train

The train journey between Madrid and Barcelona connects the two cities in about 2 h 45 (620 km) from €19.00, with 30 departures per day. Several operators serve the direct route: AVE, Iryo, Ouigo España. Gopaxo compares the timetables and fares of every operator in real time to help you book the cheapest ticket.

The best prices for train, bus, carpooling and plane

The Madrid - Barcelona train journey

Madrid and Barcelona are 620 km apart. Allow about 2 h 45 of travel time and 30 daily departures on the route. Exact timings depend on the day and the operator; the Gopaxo search shows live availability for your chosen date.

  • Distance: 620 km
  • Average duration: 2 h 45
  • Fastest journey: 2 h 30
  • Departures per day: 30
  • First departure: 06:00
  • Last departure: 21:00
  • Departure station: Madrid Puerta de Atocha (Madrid)
  • Arrival station: Barcelona Sants (Barcelona)
  • Direct train: yes

Operators and carriers

A direct service operates between Madrid and Barcelona. The operators on this route are: AVE, Iryo, Ouigo España. Each offers its own fare range and service level (high-speed, intercity, regional); Gopaxo aggregates their offers in a single search so you don't have to compare them one by one.

Why travel by train

The train remains the most comfortable and sustainable way to cover the 620 km between Madrid and Barcelona. You travel from city centre to city centre, without airport queues, and can work, read or relax throughout the journey. The carbon footprint of rail is far lower than that of a private car or plane over an equivalent distance.

Finding a cheap ticket

To get the best fare on the Madrid → Barcelona route, book in advance (ideally 2 to 4 months before departure), avoid school-holiday weekends and prefer midday trains. The first tickets start from €19.00 when sales open. Gopaxo automatically compares every operator and sorts results by price, duration or schedule, so the cheapest offer of the day is visible at a glance.

Frequently asked questions

How much is a train ticket from Madrid to Barcelona?

A Madrid → Barcelona ticket starts from €19.00 for the opening-sale fares. The average price varies by date, operator and class: it rises as departure approaches and during school holidays. Gopaxo compares offers in real time to show you the lowest price of the day.

What is the cheapest train ticket from Madrid to Barcelona?

The cheapest ticket is usually the one released earliest, in the most economical class (Standard or Economy). Book in advance, avoid school-holiday peaks and compare operators on Gopaxo to spot the lowest fare. Midday trains are often cheaper than morning ones.

What is the distance from Madrid to Barcelona by train?

The distance between Madrid and Barcelona is about 620 km. The rail alignment may differ slightly from the road distance, particularly on high-speed lines.

How long is the train journey from Madrid to Barcelona?

The journey takes 2 h 45 on average; the fastest journey is about 2 h 30. The exact duration depends on the operator, the type of train and any connection.

Which companies run trains from Madrid to Barcelona?

The Madrid → Barcelona route is served by: AVE, Iryo, Ouigo España. Timetables, onboard services and fares vary by operator; Gopaxo aggregates them in a single search.

How many trains run per day from Madrid to Barcelona?

There are about 30 departures per day on the Madrid → Barcelona route. Frequency varies by day of the week and by season (peak/off-peak).

What time does the first train from Madrid to Barcelona leave?

The first train of the day leaves Madrid at around 06:00. The exact time may shift from day to day; check the day's availability on Gopaxo.

What time does the last train from Madrid to Barcelona leave?

The last train of the day leaves Madrid at around 21:00. Check the day's timetable on Gopaxo, as late departures may be withdrawn off-peak.

Should I book my ticket in advance?

Yes. Madrid → Barcelona trains usually use dynamic fares: the cheapest tickets go first. Book 2 to 4 months ahead for the best prices, especially in peak season.

Which station do I depart from?

Departures are mainly from Madrid Puerta de Atocha in Madrid, arriving at Barcelona Sants in Barcelona. Other stations may be served depending on the operator; Gopaxo shows the exact station in the trip summary.

Is there a direct train from Madrid to Barcelona?

Yes, direct trains run from Madrid to Barcelona with no change. Routes with a connection may also be offered at certain times.

What is the fastest journey time?

The fastest journey between Madrid and Barcelona takes about 2 h 30. This is usually a direct high-speed train; journeys with a connection are longer.

Popular train routes

Book cheap and premium train tickets on the most searched routes.