In short
- Distance as the crow flies
- 510 km
- Cheapest trip
- €23 · 7h 30
- Fastest trip
- 3h 02 · €49
- Fewest transfers
- Direct
- Based on
- 2 searches · 600 travel options
Between Madrid and Barcelona it's 510 kilometres as the crow flies. For departure dates between 25 December 2026 and 8 January 2027 we found 600 travel options for one adult, door to door.
The cheapest trip cost €23 and took 7h 30. The fastest trip took 3h 02 and cost €49. Half of all trips cost less than €187.
Going without flying was cheaper: from €23, compared with €49 by plane. Without flying you're just as fast or faster: from 3h 02, compared with 4h 39 by plane.
There are direct connections, from €23.
40% of the trips include a hotel night along the way, because the last connection doesn't leave until the next day. That night is included in the price.
Transport compared
| Transport | From | Median price | Fastest trip | Options |
|---|---|---|---|---|
| Bus only | €23 | €65 | 7h 30 | 24 |
| Flying | €49 | €192 | 4h 39 | 556 |
| Train only | €49 | €49 | 3h 02 | 18 |
| By car | €177 | €177 | 9h 35 | 2 |
Prices per person for a one-way trip, including the journey to and from the station or airport. The median price is the middle value: half the trips are cheaper, half are more expensive.
Sample trips
Here's what a few trips from Madrid to Barcelona looked like. You book each leg separately with the carrier.
Cheapest trip
€23 · 7h 30 · Direct
- Bus: Madrid → Barcelona (FlixBus) · 7h 30
Fastest trip
€49 · 3h 02 · Direct
- Train: Madrid → Barcelona (OUIGO Espana) · 3h 02
Transfers and carriers
Cheap trips on this route often transfer in Ibiza Airport (IBZ). A detour like that via another city or airport is often cheaper than the direct connection.
Carriers on these trips: FlixBus, Ryanair, ALSA, BlaBlaCar Bus, Barcelona Bus, SL, Renfe Cercanias, SARFA SL and SA Alsina Graells de Auto Transportes.
Tips for this trip
- With a flight, factor in the journey to and from the airport. A cheap flight from a distant airport isn't always the cheapest trip; that's why Travelstacker includes it.
- Train tickets often get more expensive as the travel date approaches. Book international trains as early as you can.
- A hotel night along the way isn't a bad thing: you arrive well rested, and the trip is often cheaper than with an early or late connection.
- Flexible on your departure day? Search with a period of a few days: the price often varies from day to day.
-
Combining separate tickets without the stress
How to plan transfers, book in the right order and protect yourself against a missed connection. -
Combining flights and trains
Taking the train to an airport further away to fly cheaper from there: what to look out for, what to factor in and how much buffer to allow.
Questions about this route
How far is it from Madrid to Barcelona?
As the crow flies, it is 510 kilometres from Madrid to Barcelona. By road or rail the distance is longer.
How long does the journey from Madrid to Barcelona take?
The fastest journey we found took 3h 02, door to door. The cheapest journey took 7h 30. Fastest journey by type of transport: Train only: 3h 02; Flying: 4h 39; Bus only: 7h 30; By car: 9h 35.
How much does a trip from Madrid to Barcelona cost?
From €23 per person for a one-way trip. Half of the journeys we found cost less than €187.
Is there a direct connection from Madrid to Barcelona?
Yes, from €23 and 7h 30.
Can you travel from Madrid to Barcelona without flying?
Yes. Without flying, the journey costs from €23 and takes at least 3h 02.
About this data
This page is based on 2 searches on Travelstacker, most recently on 4 December 2026, for departure dates between 25 December 2026 and 8 January 2027. Prices change every day: search yourself for the current price on your travel date.
Some of the prices are estimates, for example for a taxi, a rental car or a ticket that had no known price yet for that day. Always check the price when booking.
More routes
-
Madrid → Marrakech
From €21 · fastest trip 5h 35 -
Rotterdam → Barcelona
From €64 · fastest trip 4h 57 -
Amsterdam → Barcelona
From €46 · fastest trip 5h 44 -
Eindhoven → Barcelona
From €51 · fastest trip 5h 07 -
Brussels → Barcelona
From €44 · fastest trip 5h 02 -
Paris → Barcelona
From €41 · fastest trip 5h 04