Travelling from Madrid to Barcelona by rail takes roughly 2h 30m on Renfe AVE, a straightforward alternative to flying between the two cities.
Where to stay
How long is the train from Madrid to Barcelona?
Plan for roughly 2h 30m door to door on the fastest train. Slower connections exist too, so always confirm the exact time for your travel date.
Which trains run from Madrid to Barcelona?
This connection is served by Renfe AVE. Checking all of the day's trains at once is the fastest way to spot the cheapest seat.
Worth knowing
This corridor was the first in Spain to see full open-access competition: Renfe AVE now shares the tracks with rivals Ouigo and iryo, so the same journey can carry three very different price points depending on the operator — worth checking all three before booking.
Stations: where you leave and where you arrive
- Madrid Puerta de Atocha is the main departure station, on Cercanías and metro line 1; some services use Madrid Chamartín instead, so check your ticket.
- Barcelona Sants is on metro lines L3 and L5; Plaça de Catalunya is about 10 minutes away by metro.
Madrid to Barcelona train times and frequency
Renfe's open timetable shows 31 direct trains from Madrid to Barcelona on a weekday, the first at 06:16 and the last at 20:30. The fastest non-stop trains take about 2h 30m; services stopping at Zaragoza, Lleida or Camp de Tarragona take closer to 3h 15m. Ouigo and Iryo also run on the line, so there are more departures than Renfe's alone.
Tickets and fares: what you actually pay
Four brands compete on this line, which keeps prices lower than they used to be:
| Ticket | What it means | Typical level |
|---|---|---|
| Ouigo / Avlo (low-cost) | One train; bags and seat choice cost extra | Often the cheapest; indicative fares can start around €10–€30. |
| Iryo / Renfe AVE standard | One train, more included | Mid-range; indicative fares often in the €25–€70 range. |
| Flexible / premium classes | Changes allowed, more space and service | The most expensive. |
Fares are indicative and change by date, time and how early you book. The live search shows the exact price for your trip.
- Compare all operators for the same time slot; the cheapest changes by day and hour.
- Add luggage costs to low-cost fares before choosing.
- Non-stop trains save around 30–45 minutes; filter by duration if time matters.
Best time to travel
Monday mornings, Friday afternoons and Sunday evenings are busiest with business and weekend travellers. Midday trains mid-week are typically the cheapest.
What to do when you arrive in Barcelona
Barcelona is easy to explore by metro and on foot. Highlights:
- Sagrada Família — Gaudí's basilica; book a timed ticket in advance.
- Barri Gòtic and El Born — the medieval streets, the cathedral and the Picasso Museum.
- Passeig de Gràcia — Casa Batlló and Casa Milà (La Pedrera).
- Montjuïc and Barceloneta — gardens and museums on the hill, and the city beach.
Other ways to get from Madrid to Barcelona
- Flying — about 1h 15m in the air, but with airport transfers and security the train is usually faster door to door.
- Coach — Omio lists coaches at around 5h 40m or more, usually cheaper.
- Car — about six hours via Zaragoza.
Related routes: Paris to Barcelona · Barcelona to Valencia · Madrid to Valencia · Zaragoza to Barcelona
Madrid to Barcelona train price (2026)
Advance fares start from around €25-45, rising as the date approaches.
| Operator | From | Journey time | Frequency |
|---|---|---|---|
| Renfe AVE | €25-45 | 2h 30m | Several daily |
Prices are indicative advance fares. Check live availability for your exact date.
How to get the best fare
- Buy ahead of time. Prices climb as the departure date gets closer, sometimes by a large margin.
- Shift your departure slightly. Leaving an hour earlier or later than peak times often drops the fare noticeably.
- Don't rule out first class on longer routes — the price gap can be smaller than expected.
- Compare all departures side by side rather than booking the first result you see.
Frequently asked questions
How many hours does Madrid to Barcelona take by train?
The quickest Madrid–Barcelona trains run about 2h 30m. There are multiple departures daily, so it's worth checking today's schedule for the exact times.
What does a Madrid to Barcelona train ticket cost?
Ticket prices for Madrid to Barcelona start from roughly €25-45 for advance purchase and increase the closer you get to the travel date.
What operator serves the Madrid–Barcelona line?
Renfe AVE handles this connection. Comparing every departure that day in one place is the quickest way to find the best combination of time and price.
Do I need to change trains between Madrid and Barcelona?
It depends on the day — Renfe AVE runs both direct and connecting services, so check the live schedule for your travel date to confirm.
When should I book Madrid to Barcelona tickets for the best price?
Book as early as you can: the cheapest seats are released first and disappear fast, and travelling mid-week instead of weekends usually costs less too.
How do I get from Madrid to Barcelona by train?
The usual option is a Renfe AVE train, with a journey time of about 2h 30m. Search your date on Omio to compare departures, prices and the exact stations in one place.
Can you travel from Madrid to Barcelona by train?
Yes. The route is served by Renfe AVE and the trip takes about 2h 30m. Some departures can include a change, so check the details of each result before you book.
What is the cheapest way to get from Madrid to Barcelona?
Train fares usually run €25-45 and are lowest when you book early, because advance tickets sell out on busy days. Compare dates on Omio, and add the time to and from airports or bus stops if you are weighing other options.
Which station do I leave from and arrive at?
It depends on the service. Large cities can have more than one station, so check the departure and arrival stations shown on each result before you book.
Is it better to take the train or fly from Madrid to Barcelona?
For many city-centre-to-city-centre trips the train is competitive: no airport transfers or check-in time, and about 2h 30m on board. Compare total time and price for your own dates.
Should I book the Madrid to Barcelona train in advance?
Booking earlier usually gives lower prices (€25-45 is the typical range) and popular departures can sell out.
Can I buy Madrid to Barcelona train tickets online from my phone?
Yes. On Omio you can compare times and book from your phone. Most tickets are delivered as e-tickets, but check the operator's rules for the service you choose.
How early should I get to the station?
For international or high-speed services, aim for 20 to 30 minutes before departure; for local trains, less. Check the operator's rules for your ticket.
What time are the trains from Madrid to Barcelona?
Departure times vary by day. Search your date on Omio to see every departure and the duration of each service (about 2h 30m).
What time is the first direct train from Madrid to Barcelona?
On weekdays, the first direct Renfe high-speed or long-distance train from Madrid to Barcelona leaves at 06:16; in the other direction, the first from Barcelona to Madrid leaves at 05:40. Source: Renfe open timetable (CC BY 4.0), 17 October 2026 (week of 20 to 25 October). Timetables change by season, so check your date before you book.
What time is the last direct train from Madrid to Barcelona?
On weekdays, the last direct Renfe high-speed or long-distance train from Madrid to Barcelona leaves at 20:30; from Barcelona to Madrid, at 20:00. Source: Renfe open timetable (CC BY 4.0), 17 October 2026 (week of 20 to 25 October).
How many direct trains a day run from Madrid to Barcelona?
In the Renfe high-speed and long-distance timetable there are 31 direct trains a day from Madrid to Barcelona on weekdays, 15 on Saturdays and 24 on Sundays. From Barcelona to Madrid: 30, 18 and 19. Source: Renfe open timetable (CC BY 4.0), 17 October 2026 (week of 20 to 25 October).
Ready to go? Check live Madrid → Barcelona times and fares and book your seat — secure checkout, mobile tickets, every operator in one search.
Prefer to compare every rail operator? Check schedules & book →
Opens in a new tab — come back here anytime.
Part of our Spain train guide →