Barcelona to Madrid by train - complete guide to rail connections

The rail connection between Barcelona and Madrid is one of the busiest routes on the Iberian Peninsula. Modern high-speed trains cover the distance between the Catalan and Spanish capitals in record time. Passengers can expect top service, panoramic views and a carefree journey across the Spanish hinterland.

Guide navigation: Details of the railway route, Train connections available, Time schedule, Price calculation, Start of the journey in Barcelona, Destination Madrid

Barcelona - Madrid rail connection in detail

The railway corridor connecting the two metropolises stretches for 620 kilometers. Thanks to modern high-speed infrastructure, the fastest AVE trains can cover this distance in 2,5 hours. The route takes you through a colorful mosaic of the Spanish landscape - from the Mediterranean coast through the highlands to the central plateau of the Meseta.


Map of the train connection from Barcelona to Madrid via Zaragoza

Overview of available train connections

You can use several types of train sets on the route between the two metropolises:

  1. Top AVE kits: The peak of Spanish rail transport with a travel time of 2,5-3 hours. The offer includes a full range of services – from free Wi-Fi to electrical outlets to premium refreshments and superior passenger space.
  2. Avlo economic variant: A more affordable alternative to high-speed transportation. It maintains the speed of AVE trains at the basic service standard.
  3. Alvia Universal Joints: A flexible solution combining operation on both high-speed and conventional lines. Driving time is around 4 hours.

Connection timetable - plan your journey

The rail connection between the two cities offers a high frequency of connections throughout the day.

AVE and Avlo premium connections: The first morning departure leaves Barcelona at 5:50 a.m., the final connection at 21:25 p.m. During the day, trains depart at hourly intervals, even more often during peak hours.

Alvia Kits: A less frequent alternative with 3-4 daily connections. An ideal choice for travelers who prefer a more economical transport option.

Tariff guide - how much does a train ticket cost?

The price range depends significantly on the selected type of transport and the reservation date:

Premium AVE: The normal fare ranges from 45-120 euros. Early purchase can bring discounted tariffs from 35 euros.

Economic Avlo: The most affordable option with starting prices from 7 euros for early booking. The standard fare is in the range of 25-40 euros.

Universal Alvia: Starting prices from 35 euros with a possible increase up to 80 euros.

Travel documents can be purchased directly at train stations, in vending machines or through online reservation systems. For optimal prices, I recommend booking through any of the online train search engines or the official Renfe portal.

Start of your journey: Barcelona Sants

All connections to the capital are served by Barcelona Sants station, Barcelona's key transport hub.


Barcelona Sants
Barcelona Central Station: Barcelona Sants

Barcelona Sants Terminal: The accessibility of the station is ensured by the metro lines L3 and L5. Passengers will find a comprehensive infrastructure here, including luggage storage, gastronomic facilities and a shopping area. Allow at least 30 minutes before departure due to the mandatory security check on high-speed connections.

Finale of the journey: Madrid Puerta de Atocha

Your rail adventure culminates at Madrid Puerta de Atocha station, an important transport hub of the Spanish capital.

Puerta de Atocha in Madrid
Puerta de Atocha Central Station in Madrid will dazzle you with its tropical garden

Madrid Puerta de Atocha complex: A distinctive feature of this architecturally remarkable station is the extensive indoor tropical garden in the main hall. The terminal has an excellent connection to the metro and suburban train network. Visitors will appreciate the complete service, including a tourist information center, a wide range of restaurants and a shopping arcade. The strategic location allows easy access to the main tourist attractions of the Spanish capital.

Signpost: Traveling by train from Barcelona to Spanish cities or other European countries.

Trailer for the new ebook

👇 Don't miss this!

  • Discount tourist cards—save on city transportation and get free admission to museums and landmarks, plus great discounts at shops and restaurants.
  • Buy tickets online—save money, time, and stress by purchasing admission to attractions from the comfort of your home through the Barcelona Tourist Office’s online store; if you’ve never bought tickets online before, read my detailed guide along with my personal experience on how to do it.
  • Find Accommodations—plenty of hotels, hostels, and guesthouses at reasonable prices. You can book immediately and pay after your stay.
  • Rent a car—if you don’t want to walk or want to venture further out of Barcelona, try Rental Cars. They’ll deliver the car to the airport, and you won’t have to worry about a thing.

Map with my tips for places in Barcelona

🎟️ Tickets

Sagrada Família tickets, Barcelona Aquarium tickets, Park Güell tickets, FC Barcelona tickets, Picasso Museum tickets – view all tickets >>>