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.

Earliest departure 05:50Latest departure 20:00Distance 505 km direct
3h 2m
Shortest travel time
$80
Lowest ticket cost
26
Avg. daily departures
505 km
Barcelona–Madrid distance
Every fare is a reserved-seat ticket — pick your class, pick your ticket, and travel with confidence.
Watch the journey

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.

The route

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.

Sagrada Família icon
Barcelona Sants
Start
Tarragona cathedral icon
Tarragona
Camp de Tarragona
Lleida cathedral icon
Lleida
Lleida-Pirineus
Zaragoza basilica icon
Zaragoza
1h 15m from BCN
Madrid Almudena cathedral icon
Madrid Atocha
Arrival
Barcelona-Sants train station

Barcelona-Sants Station

Plaça dels Països Catalans, 08014 Barcelona, Spain

Barcelona'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 train station

Madrid-Puerta de Atocha Station

Plaza del Emperador Carlos V, 28045 Madrid, Spain

Madrid'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 to travel

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.

ModeTypical journey timeNotes
Train (AVE / iryo / Ouigo)3h – 3h 40mCity center to city center, 26 avg. daily departures, no airport transfer needed
Plane~1 hour flightSeveral daily flights, but add airport transfers, check-in and security — total time from departure to arrival is often similar to the train
Bus~7 hoursThe least expensive option for very tight budgets, tickets from around €22, but by far the longest trip
Car~6 hours driving505 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
Train operators

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.

Founded 1941 (AVE since 1992)

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
Launched 2022

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
Launched 2021

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 experience

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.

Before you board

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 basilica in Barcelona

Sagrada Família

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

Park Güell mosaic terrace overlooking Barcelona

Park Güell

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

Narrow medieval street in Barcelona's Gothic Quarter

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 tree-lined boulevard in Barcelona

La Rambla

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

Casa Batlló and La Pedrera facades on Passeig de Gràcia

Casa Batlló & La Pedrera

Two more Gaudí masterpieces on Passeig de Gràcia, Barcelona's most elegant avenue.

Barceloneta Beach skyline in Barcelona

Barceloneta Beach

The closest city beach to the center, ideal for an hour of sun before or after your train.

After you arrive

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 art museum in Madrid

Museo del Prado

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

Crystal Palace and lake in Madrid's Retiro Park

Retiro Park

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

Royal Palace of Madrid facade

Royal Palace of Madrid

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

Puerta del Sol and Gran Vía in Madrid

Puerta del Sol & Gran Vía

Madrid's central square and its main shopping and theater avenue.

Santiago Bernabéu Stadium in Madrid

Santiago Bernabéu Stadium

Home of Real Madrid, with tours available even on non-match days.

Mercado de San Miguel market hall in Madrid

Mercado de San Miguel

A historic glass-and-iron market hall for tapas and drinks near Plaza Mayor.

FAQ

Barcelona to Madrid Train — Frequently Asked Questions

How long does the Barcelona to Madrid train take?
Total Barcelona to Madrid travel time can range from about 3 hours on the fastest non-stop AVE, iryo and Ouigo high-speed trains up to around 9 hours on slower classic trains, depending on which service you book. A recent search on HighSpeedTrains.com showed a shortest travel time of 3 hours 2 minutes for that day's fares.
What is the best way to get from Barcelona to Madrid?
For most travelers, the high-speed train is the best way to get from Barcelona to Madrid — city center to city center, no airport security, and a far more comfortable ride than the 7-hour bus or a 6-hour drive.
How much does a Barcelona to Madrid train ticket cost?
Tickets start from about $80 for the lowest fares found on HighSpeedTrains.com.
Which train operators run between Barcelona and Madrid?
Three operators run high-speed trains on this route: Renfe (AVE and Avlo), iryo and Ouigo. Spain's high-speed lines opened to competition in 2021, making this one of the most competitive rail corridors in Europe.
Which stations do Barcelona to Madrid trains use?
Trains depart from Barcelona-Sants (Plaça dels Països Catalans, 08014 Barcelona) and arrive at Madrid-Puerta de Atocha (Plaza del Emperador Carlos V, 28045 Madrid). Many services also call at Camp de Tarragona, Lleida-Pirineus and Zaragoza-Delicias.
Do I need to reserve a seat in advance?
Yes — every seat is assigned and shown on your ticket, so a reservation is required, and booking ahead also unlocks the lowest available fares.
Is the AVE the same as Alta Velocidad Española?
Yes, AVE stands for Alta Velocidad Española, Spain's original high-speed rail brand operated by Renfe. The Madrid–Barcelona AVE line was one of the country's first high-speed corridors and remains its busiest.
How often do trains run between Barcelona and Madrid?
Renfe AVE trains operate every 30 minutes between Barcelona and Madrid at the busiest times of day, and across all three operators combined, the frequency of high-speed train departures is roughly every 30 to 60 minutes during peak hours. Direct trains from Barcelona to Madrid number around 40 per day once Renfe AVE, iryo and Ouigo are all counted.
Are there slower, non-high-speed train options?
Yes. Classic trains can take up to 9 hours between the cities, far longer than the roughly 3-hour high-speed AVE, iryo and Ouigo services, which is why nearly all travelers on this route book a high-speed departure instead.
What should I know about Ouigo specifically?
Ouigo is a low-cost operator with strict baggage limits, trading a no-frills onboard experience and smaller free luggage allowance for the lowest average fares on the Barcelona to Madrid route.

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