Barcelona to Madrid Train — Spain's Fastest High-Speed Route
The Barcelona to Madrid train is the easiest way to cross Spain: high-speed AVE, iryo and Ouigo trains link Barcelona-Sants and Madrid-Puerta de Atocha in as little as 3h, running city center to city center along a 621 km high-speed line (about 505 km as the crow flies). Search Madrid train tickets below, compare prices and departure times in one place, and book your ticket early for the best price.
Barcelona to Madrid, Through the Train Window
From Gaudí's Barcelona to the golden plains of Castile and the rooftops of Madrid — a real window-seat view of the AVE high-speed train ride.
Barcelona to Madrid Train Route Map
Every Barcelona to Madrid train runs on Spain's Madrid–Barcelona–French Border high-speed line, one of the busiest high-speed corridors in Europe. Most direct services skip the intermediate stops below, but some AVE and iryo trains call at one or two of them along the way.

Barcelona-Sants Station
Plaça dels Països Catalans, 08014 Barcelona, SpainBarcelona's main train station and the departure point for every Barcelona to Madrid train. Barcelona-Sants also connects to the metro (L3, L5), regional Rodalies trains, and offers direct access to several hotels within walking distance near Plaça Espanya.

Madrid-Puerta de Atocha Station
Plaza del Emperador Carlos V, 28045 Madrid, SpainMadrid's grand terminus for AVE, iryo and Ouigo arrivals, famous for the indoor tropical garden in its original 19th-century train shed. Atocha connects directly to Madrid's metro, Cercanías commuter lines and onward public transport across the city.
Best Way From Barcelona to Madrid: Train vs Plane, Bus & Car
Train, plane, bus or car — here's how the Barcelona to Madrid trip compares by journey time, distance and general cost, so you can pick the best way to travel between Spain's two biggest cities.
| Mode | Typical journey time | Notes |
|---|---|---|
| Train (AVE / iryo / Ouigo) | 3h – 3h 40m | City center to city center, 26 avg. daily departures, no airport transfer needed |
| Plane | ~1 hour flight | Several daily flights, but add airport transfers, check-in and security — total time from departure to arrival is often similar to the train |
| Bus | ~7 hours | The least expensive option for very tight budgets, tickets from around €22, but by far the longest trip |
| Car | ~6 hours driving | 505 km direct via the AP-2/AP-68 toll motorways; renting a car gives the most flexible schedule, but tolls, fuel and city-center parking for your car add up |
Which Trains Run From Barcelona to Madrid? Renfe, iryo & Ouigo
Spain's high-speed lines opened to competition in 2021, and Barcelona to Madrid quickly became one of the most competitive rail corridors in Europe. Three train operators now run high-speed trains on this route, each with its own trains, classes and prices.
Renfe AVE
Spain's original state-owned operator and still the most frequent option, running Alta Velocidad Española (AVE) trains at up to 300 km/h. Renfe also runs Avlo, its own no-frills budget high-speed brand on this line.
- Classes: Turista, Turista Plus, Preferente
- 20+ daily departures on this route
- Free onboard Wi-Fi and a cafeteria coach
iryo
A newer premium operator with spacious cabins, generous legroom and full onboard catering. iryo positions itself as a full-service alternative to Renfe with a modern, design-forward feel.
- Classes: Inicial, Elige, Infinita
- Multiple daily departures Barcelona–Madrid
- Complimentary catering in every class
Ouigo
A low-cost operator. Baggage limits are stricter than Renfe or iryo, and onboard service is minimal, so it suits travelers packing light on a budget.
- Bright pink double-decker high-speed trains
- Strict free baggage allowance, extra charge for oversized bags
- Lowest average fares on the route
Onboard Amenities & Services
What to expect once you're in your seat on the Barcelona to Madrid train, from free Wi-Fi to onboard meals.
Free Wi-Fi
Onboard internet on Renfe AVE and iryo for the whole trip, with brief dips in mountain tunnels.
Comfort seating
Every seat reclines and comes pre-assigned in every class, with extra legroom and a wider seat in Preferente and Infinita.
Power sockets
At-seat power outlets for charging phones and laptops on the full journey.
Snacks & meals
Cafeteria coach or trolley service with tapas, sandwiches and drinks; at-seat meals in first class.
Luggage racks
Overhead and end-of-coach racks fit two suitcases plus hand luggage on most fares. Your ticket confirms your exact coach and seat number.
Accessible seating
Dedicated wheelchair-accessible spaces with step-free platform access and assistance available on request when booking.
Quiet coaches
Select coaches keep noise low for travelers who want to work or rest.
Punctuality
Renfe AVE has long offered compensation for arrivals delayed more than 15 minutes.
Top Spots to Visit in Barcelona
If your Barcelona to Madrid train doesn't leave until later in the day, these are the sights worth fitting in first — a quick tour of two of Spain's most visited cities before you go.

Sagrada Família
Gaudí's unfinished basilica and Barcelona's most recognizable landmark, a short metro ride from Barcelona-Sants.

Park Güell
Gaudí's whimsical mosaic park with panoramic views across the city and out to the Mediterranean.

Gothic Quarter
Narrow medieval lanes, Barcelona Cathedral and countless small squares — best explored on a self-guided walking tour of the Barri Gòtic.

La Rambla
Barcelona's famous tree-lined boulevard, running from Plaça Catalunya down to the old port.

Casa Batlló & La Pedrera
Two more Gaudí masterpieces on Passeig de Gràcia, Barcelona's most elegant avenue.

Barceloneta Beach
The closest city beach to the center, ideal for an hour of sun before or after your train.
Top Spots to Visit in Madrid
Step off the train at Madrid-Atocha and these landmarks are all within easy reach — two of Europe's great cities, one train ride apart.

Museo del Prado
One of the world's great art museums, a 10-minute walk from Madrid-Atocha station.

Retiro Park
Madrid's grand central park, with a boating lake and the glass Crystal Palace.

Royal Palace of Madrid
Europe's largest functioning royal palace, near Madrid's historic center.

Puerta del Sol & Gran Vía
Madrid's central square and its main shopping and theater avenue.

Santiago Bernabéu Stadium
Home of Real Madrid, with tours available even on non-match days.

Mercado de San Miguel
A historic glass-and-iron market hall for tapas and drinks near Plaza Mayor.
Barcelona to Madrid Train — Frequently Asked Questions
How long does the Barcelona to Madrid train take?
What is the best way to get from Barcelona to Madrid?
How much does a Barcelona to Madrid train ticket cost?
Which train operators run between Barcelona and Madrid?
Which stations do Barcelona to Madrid trains use?
Do I need to reserve a seat in advance?
Is the AVE the same as Alta Velocidad Española?
How often do trains run between Barcelona and Madrid?
Are there slower, non-high-speed train options?
What should I know about Ouigo specifically?
Ready to Book Your Barcelona to Madrid Train?
Compare Renfe AVE, iryo and Ouigo fares side by side and lock in your seat before prices rise.
Search Barcelona → Madrid Trains