Trains from Barcelona to Madrid

Best Price

Real time comparison

Easy Booking

Direct access to over 450 train, bus and flight partners

Customer Satisfaction

More than 30 million users from over 120 countries

Barcelona to Madrid Train Information

Avg. Train Duration5h 47m
Trains arrive inMadrid
Trains depart fromBarcelona
Train Ticket Price 39.98 €
Distance504 km
Train Companies
  • Renfe
  • Renfe AVE

Quick Guide: Trains from Barcelona to Madrid

Average Price: $102
Trains per day: ~20
Transfers: Direct
Average Time: 3:00
Fastest Route: 2:36
Slowest Route: 9:11

Trains from Barcelona to Madrid: Journey Details

Trains in Spain are a convenient way to travel between cities, with a number of companies offering domestic and international train routes. Train travel between Spain's two biggest cities is made possible the national provider, Renfe AVE, which runs direct trains from Barcelona to Madrid every day. The journey takes approximately two and a half to three hours and conveniently, most trains are direct. Services begin just prior to 6:00 a.m., operating until around 9:00 p.m., and you'll usually only need to wait between 15 and 30 minutes for a train.

Barcelona to Madrid trains: Not what you're looking for?

Return trains from Madrid to Barcelona | Compare all modes of traveling from Barcelona to Madrid | Or learn more about cheap trains to Madrid

Barcelona to Madrid Train Cost

Average prices for Renfe trains from Barcelona to Madrid when you book in advance

Booking Period

Average Price

Same Day


1 Day in Advance


1 Week in Advance


2 Weeks in Advance


1 Month in Advance


3 Months in Advance


Barcelona to Madrid Trains: General Information

Travelers in Spain can offset some of the cost of Barcelona to Madrid train tickets by planning ahead and booking tickets as far in advance as possible.

  • autobus All Barcelona to Madrid trains are run by Renfe.

  • autobus All Renfe trains are direct, depart from Barcelona's Sants train station and arrive at Madrid's Puerta de Atocha train station.

  • autobus Journey Time: The Barcelona to Madrid train journey takes as little as 2 hours and 36 minutes to arrive in Madrid.

  • autobus Most travelers book their Barcelona to Madrid train tickets approximately 1 day in advance of the travel date.

Based on GoEuro's travel data, as the table above clearly illustrates, ticket prices on Barcelona to Madrid trains decrease the further you book in advance:

  • It is 11% cheaper to book a Barcelona to Madrid train a day ahead of time rather than purchasing a ticket at the station.
  • It is 19% cheaper to purchase Barcelona to Madrid train tickets 1 week ahead of when you intend to travel.
  • Finally, Barcelona to Madrid train costs are 24% cheaper when booked 1 month in advance as opposed to purchasing a train ticket the day of.


Local Time 19:45
Population 3,200,000
Region Madrid
Languages Spanish

How expensive is Madrid?

An Average Meal

An average meal in a restaurant in Madrid costs 1% more than in Barcelona.


Prices in Madrid are on average 2.1% higher than in Barcelona.

Public Transport

Public transport in Madrid costs around 28.6% less than in Barcelona.

A Night in a Hotel

A night in a hotel in Madrid is about 29.4% less expensive than in Barcelona.

Taking the Train from Barcelona

Most trains from Barcelona to Madrid leave from Barcelona Sants station, but some services also depart from Barcelona Passeig De Gracia as well. Both stations are centrally located and easy to reach - Barcelona Sants, the city's main transport hub, is well served by local taxis and also has a large car park for travelers driving to the station. The station also lies on two branches of Barcelona's busy Metro system, Blue Line L5 and Green Line L3.

Getting into Madrid by Train

Well known as Spain's fashion capital, Madrid's museums and galleries are packed with works by renowned artists, well-manicured parks, and the beautiful royal palace is a popular destination with business and leisure travelers alike. Madrid Atocha station is the main termination point for trains from Barcelona to Madrid. A busy transport hub, the station welcomes both local, national and international services and even boasts a tropical garden on the main concourse. Onward journeys are easy from Atocha, which connects to the wide-reaching Madrid Metro on Blue Line 1, and is well served by both taxis and public buses, as well as local trains and high speed regional trains to and from destinations further afield.

Cheapest Barcelona to Madrid Trains This Weekend