Barcelona to Madrid by train or flight

For most travellers, a direct high-speed train is the easiest choice: it runs from Barcelona Sants to Madrid Atocha, with room to move about on board. A flight can make sense if you are connecting at Madrid airport or staying near the airports, but allow for airport transfers, check-in and security when comparing the full journey.

Which route should you take?

iryo high-speed train

A comfortable city-to-city journey

Barcelona Sants → Madrid Puerta de Atocha; over 3 hours according to iryo; no change on a direct train.

Book on iryo's website; compare fare flexibility and check the duration for your departure.

OUIGO high-speed train

A lower-cost train with optional extras

Barcelona Sants → Madrid Puerta de Atocha; OUIGO advertises about 2 hours 30 minutes, but check the duration for your date; no change.

Book on OUIGO's website or app; check luggage and seat options before paying.

Vueling flight

An airport connection or a trip starting near Barcelona airport

Barcelona El Prat airport → Madrid Barajas airport; about 1 hour 25 minutes in the air; direct.

Book with Vueling and check the baggage allowance, airport terminal and check-in requirements.

How to make the transfer

  1. Compare direct services for your date on iryo and OUIGO, and check the actual journey duration, luggage allowance and change conditions.
  2. Book your chosen train and keep the ticket on your phone or print it.
  3. Go to Barcelona Sants and follow the departure screens to your boarding area. For iryo, be at the gate at least 30 minutes before departure.
  4. Have your ticket ready for boarding and travel to Madrid Puerta de Atocha, where you can continue by metro, local train, bus or taxi.

If you arrive late

Check the operators' booking sites for remaining trains and flights. If you have missed a booked service, contact the operator or its station desk to ask what your fare allows. If there is no suitable departure left, arrange a night in Barcelona and book the next available service.

Planning the return

For the return train, search Madrid Puerta de Atocha to Barcelona Sants and check the departure and boarding instructions for your chosen operator. For a flight, search Madrid Barajas to Barcelona El Prat and allow for the trip to the airport.

Is flying faster door to door?

The flight itself takes about 1 hour 25 minutes, but that excludes travel to and from the airports, check-in, security and any baggage collection. The train links the cities' central stations; add your local transfers and boarding time to compare the full journey for your addresses.

Official routes, tickets and timetables