There are 5 ways to get from Barcelona to Madrid by train, bus, rideshare, car or plane

Select an option below to see step-by-step directions and to compare ticket prices and travel times in Rome2rio's travel planner.

Recommended option

Train  •  2 h 30 min

  1. Take the train from Barcelona Sants to Madrid-Puerta de Atocha Ave

$70 - $110

Cheapest option

Rideshare  •  7 h 17 min

  1. Take the rideshare from Barcelone to Madrid 386.5 miles

$31 - $33

3 alternative options

Bus  •  7 h 35 min

  1. Take the bus from Barcelona Sants Station to Madrid

$40 - $65

Drive  •  6 h 4 min

  1. Drive from Barcelona to Madrid 386.7 miles

$70 - $110

Fly  •  3 h 26 min

  1. Fly from Barcelona (BCN) to Madrid (MAD) BCN - MAD

$39 - $160

Questions & Answers

The cheapest way to get from Barcelona to Madrid is to rideshare which costs 27€ - 29€ and takes 7 h 17 min.

More details

The quickest way to get from Barcelona to Madrid is to train which costs 65€ - 90€ and takes 2 h 30 min.

More details

The distance between Barcelona and Madrid is 505 km. The road distance is 618.7 km.

Get driving directions

The train from Barcelona Sants to Madrid-Puerta de Atocha takes 2 h 30 min including transfers and departs hourly.

More details

Yes, there is a direct bus departing from Barcelona Sants Station station and arriving at Madrid. Services depart hourly, and operate every day. The journey takes approximately 7 h 35 min.

More details

Yes, there is a direct train departing from Barcelona Sants and arriving at Madrid-Puerta de Atocha. Services depart hourly, and operate every day. The journey takes approximately 2 h 30 min.

More details

Yes, the driving distance between Barcelona to Madrid is 619 km. It takes approximately 6 h 4 min to drive from Barcelona to Madrid.

Get driving directions

Book your Barcelona to Madrid bus tickets online with Busbud.

Search and book

Map of how to get from Barcelona to Madrid.
Launch map view
  • Distance: 315.8 miles
  • Duration: 2 h 30 min

What companies run services between Barcelona, Spain and Madrid, Spain?

Spanish Railways AVE operates a train from Barcelona to Madrid hourly. Tickets cost $70 - $110 and the journey takes 2 h 30 min. Alternatively, ALSA operates a bus from Barcelona to Madrid hourly. Tickets cost $40 - $65 and the journey takes 7 h 35 min.

Airlines
Iberia
Website
iberia.com
Flights from Barcelona to Madrid
Ave. Duration
1 h 25 min
When
Every day
Estimated price
$55 - $250
Flights from Barcelona to Madrid via Valencia
Ave. Duration
3 h 5 min
When
Tuesday and Thursday
Estimated price
$60 - $270
Flights from Barcelona to Madrid via Ibiza
Ave. Duration
3 h 13 min
When
Every day
Estimated price
$45 - $220
Vueling Airlines
Website
vueling.com
Flights from Barcelona to Madrid
Ave. Duration
1 h 25 min
When
Every day
Estimated price
$55 - $250
Flights from Barcelona to Madrid via Ibiza
Ave. Duration
3 h 13 min
When
Every day
Estimated price
$45 - $220
Air Europa
Website
aireuropa.com
Flights from Barcelona to Madrid
Ave. Duration
1 h 26 min
When
Every day
Estimated price
$60 - $220
Flights from Barcelona to Madrid via Palma Mallorca
Ave. Duration
3 h 20 min
When
Every day
Estimated price
$60 - $220
Ethiopian Airlines
Website
ethiopianairlines.com
Flights from Barcelona to Madrid
Ave. Duration
1 h 27 min
When
Every day
Estimated price
$85 - $270
Train operators
Spanish Railways AVE
Bus operators
Other operators
BlaBlaCar.es
Rome2rio's guide to BlaBlaCar.es
Contact Details
Website
blablacar.com
Rideshare from Barcelone to Madrid
Ave. Duration
7 h 17 min
Frequency
Every 30 minutes
Estimated price
$31 - $33
Book at
blablacar.es

Want to know more about travelling around Spain

Rome2rio's Travel Guide series provide vital information for the global traveller. Filled with useful and timely travel information, the guides answer all the hard questions - such as 'How do I buy a ticket?', 'Should I book online before I travel? ', 'How much should I expect to pay?', 'Do the trains and buses have Wifi?' - to help you get the most out of your next trip.