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:
- 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.
- Avlo economic variant: A more affordable alternative to high-speed transportation. It maintains the speed of AVE trains at the basic service standard.
- 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 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 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.
👇 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.
🎟️ Tickets
Sagrada Família tickets, Barcelona Aquarium tickets, Park Güell tickets, FC Barcelona tickets, Picasso Museum tickets – view all tickets >>>
💥 Latest Articles
- For lovers of water and the sea: the Barcelona Aquarium, Marineland Mallorca, Marineland Catalunya, or Water World Park in Lloret de Mar
- Pablo Picasso in Barcelona – How Did the Catalan Metropolis Influence the Life of This World-Renowned Artist?
- Three Kings’ Day in Barcelona – What It’s All About and Where to Watch the Parades
- The Church of Santa Maria del Mar, or the Cathedral of the Sea, as a perfect example of Catalan Gothic architecture
- Souvenirs from Barcelona – what to buy for yourself or your loved ones as a memento of your vacation?
- Bike Rentals in Barcelona – Information on Bike Rental Options and Rental Shops
- Cava + winery tour – where to go for it during your stay in Barcelona?
- Barcelona Metro Map – Digital, Downloadable, and Printable
- Castells, human towers, and gegants, giant figures – unusual Catalan traditions
- The Balearic Islands: Mallorca, Ibiza, Menorca, Formentera – popular tourist destinations about 200 km from Barcelona by sea
- Cable cars in Barcelona – what are the main tourist cable cars, and which one should you choose?
- Free walking tours in Barcelona – guided city tours that won’t cost you a thing
- The Cascada Monumental Fountain – a fountain in a city park designed in part by Gaudí
- Best places for brunch in Barcelona + Best bottomless brunch in Barcelona
- Gaudí’s buildings in Barcelona (map)
- What to Do in Barcelona on Christmas Eve and During the Holiday Season?
- Christmas Garden in Barcelona: Els Llums de Sant Pau
- Taxis in Barcelona: Official Fares for 2026 and Mobile Taxi Apps
- The Luxury Shopping District of Passeig de Gràcia in Barcelona – If You Love Shopping, You Can’t Miss This Street
- Gluten-Free Restaurants in Barcelona – Tips on the Best Places You Must Visit
- La Mercè Celebrations – What Are They All About, and What’s on the Program This Year?
- The Banksy Museum in Barcelona – this unconventional museum featuring works by the famous graffiti artist is definitely worth a visit!
- The Salvador Dalí Museum – take a trip to Figueres, where the famous artist has his museum
- Antoni Gaudí and His Buildings in Barcelona – My List of the Top 9 Must-See Structures
- Vacation in Tarragona – what to see and do in this city?
- Long weekend in Barcelona? – My tips for anyone heading to Barcelona for the first time for a long weekend and wanting to make the most of their vacation.
- Montjuïc Castle (Castell de Montjuïc)—a trip to the castle fortress atop Barcelona’s Montjuïc Hill
- La Roca Village – an outlet village offering international fashion near Barcelona
- What to See, Do, and Experience in Barcelona? (video) – a few videos to inspire your visit to Barcelona
- Spanish food—what must you try in Barcelona? It’s not just paella or tapas...
- Flixbus launches a new bus route from Prague to Barcelona
- Christopher Columbus Monument – a monument to the famous explorer with an unusual view.
- Casa Vicens – Gaudí’s first house in Barcelona, which you’ve definitely never seen before.
- Parking at the Vienna Airport—a detailed article on where to park if you’re flying to Barcelona from Vienna.
- Airport Lounges in 2026—my super-long guide to airport lounges: what they are, what services they offer, and how to get in for free
- Why Not to Buy Flights on Kiwi.com – a summary of my experiences explaining why you should avoid buying flights to Barcelona from resellers
- Austrian Highway Toll Sticker (2026) – my experience with the Austrian highway toll sticker and where to buy it
- Ferries from Barcelona: Barcelona–Mallorca Ferry, Barcelona–Ibiza Ferry, Barcelona–Menorca Ferry
- Internet and Unlimited Data in Switzerland




Michal Acler writes the Barcelona guide for you (