There are 5 ways to get from Gibraltar–Spain border to Madrid by train (Renfe), bus, 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.
Train (Renfe)
best- Take the train from Algeciras to Madrid-Puerta de Atocha-Almudena Grandestrain Alv
7h 47m€77–125Bus
cheapest- Take the bus from Estación de Autobuses de La Línea de la Concepción to Madrid Estación Sur de Autobusesbus Algeciras
8h 36m€24–75Drive 626 km
- Drive from Gibraltar–Spain border to Madridcar 626 km
6h 55m€98–142Bus, fly
- Take the bus from Estación de Autobuses de La Línea de la Concepción to Aeropuerto Malagabus
- Fly from Málaga Airport (AGP) to Adolfo Suárez Madrid–Barajas Airport (MAD)plane AGP - MAD
4h 47m€59–180Bus via Córdoba
- Take the bus from Estación de Autobuses de La Línea de la Concepción to Córdoba, Estación de Autobusesbus L-526
- Take the bus from Córdoba, Estación de Autobuses to Estación Sur de Autobusesbus Huelva
11h 21m€62–119
Gibraltar–Spain border to Madrid by foot, bus, and train (Renfe)
Comparing Your Travel Options
The cheapest way to get from Gibraltar–Spain border to Madrid is to bus which costs €24 - €75 and takes 8h 36m.
The fastest way to get from Gibraltar–Spain border to Madrid is to bus and fly which takes 4h 47m and costs €55 - €180.
Yes, there is a direct bus departing from Estación de Autobuses de La Línea de la Concepción and arriving at Madrid Estación Sur de Autobuses. Services depart once daily, and operate every day. The journey takes approximately 8h 30m.
No, there is no direct train from Gibraltar–Spain border to Madrid. However, there are services departing from Algeciras and arriving at Madrid-Puerta de Atocha-Almudena Grandes via . The journey, including transfers, takes approximately 7h 47m.
The distance between Gibraltar–Spain border and Madrid is 662 km. The road distance is 626 km.
The best way to get from Gibraltar–Spain border to Madrid without a car is to train which takes 7h 47m and costs €75 - €130.
It takes approximately 7h 47m to get from Gibraltar–Spain border to Madrid, including transfers.
Gibraltar–Spain border to Madrid bus services, operated by Interbus, depart from Estación de Autobuses de La Línea de la Concepción station.
Gibraltar–Spain border to Madrid train services, operated by Renfe Viajeros, depart from Algeciras station.
The best way to get from Gibraltar–Spain border to Madrid is to train which takes 7h 47m and costs €75 - €130. Alternatively, you can bus, which costs €24 - €75 and takes 8h 36m.
What companies run services between Gibraltar–Spain border, Gibraltar and Madrid, Spain?
Renfe Viajeros operates a train from Algeciras to Madrid-Puerta de Atocha-Almudena Grandes once daily. Tickets cost €75–120 and the journey takes 5h 50m. Alternatively, Interbus operates a bus from Estación de Autobuses de La Línea de la Concepción to Madrid Estación Sur de Autobuses once daily. Tickets cost €24–75 and the journey takes 8h 30m.
- Website
- iberia.com
Flights from Málaga Airport to Adolfo Suárez Madrid–Barajas Airport
- Ave. Duration
- 1h 17m
- When
- Every day
- Estimated price
- €35–140
- Website
- aireuropa.com
Flights from Málaga Airport to Adolfo Suárez Madrid–Barajas Airport
- Ave. Duration
- 1h 10m
- When
- Every day
- Estimated price
- €30–130
- Website
- ryanair.com
Flights from Málaga Airport to Adolfo Suárez Madrid–Barajas Airport via Tangier
- Ave. Duration
- 3h 10m
- When
- Sunday and Monday
- Estimated price
- €35–180
- Phone
- +34 91 232 03 20
- Website
- Renfe Viajeros
Train from Algeciras to Madrid-Puerta de Atocha-Almudena Grandes
- Ave. Duration
- 5h 50m
- Frequency
- Once daily
- Estimated price
- €75–120
- Website
- Renfe Viajeros
- Phone
- +34 916 52 00 11
- [email protected]
- Website
- grupointerbus.com
Bus from Estación de Autobuses de La Línea de la Concepción to Madrid Estación Sur de Autobuses
- Ave. Duration
- 8h 30m
- Frequency
- Once daily
- Estimated price
- €24–75
- Schedules at
- grupointerbus.com
- Phone
- +34 91 272 28 32
- [email protected]
- Website
- avanzabus.com
Bus from Estación de Autobuses de La Línea de la Concepción to Aeropuerto Malaga
- Ave. Duration
- 2h 6m
- Frequency
- Once daily
- Estimated price
- €23–28
- Schedules at
- malaga.avanzagrupo.com
Bus from Estación de Autobuses de La Línea de la Concepción to Córdoba, Estación de Autobuses
- Ave. Duration
- 5h 30m
- Frequency
- Once daily
- Estimated price
- €30–70
- Schedules at
- malaga.avanzagrupo.com
- Phone
- +34 915 304 417
- [email protected]
- Website
- Socibus
Bus from Córdoba, Estación de Autobuses to Estación Sur de Autobuses
- Ave. Duration
- 4h 45m
- Frequency
- 3 times a day
- Estimated price
- €30–50
- Website
- Socibus
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.
Related travel guides
Train travel in Spain: A guide to Renfe
Read the travel guide
What are the different types of Renfe trains in Spain?
Read the travel guide
Booking & Getting There
Gibraltar–Spain border to Madrid bus services, operated by Interbus, arrive at Madrid Estación Sur de Autobuses station.
Gibraltar–Spain border to Madrid train services, operated by Renfe Viajeros, arrive at Madrid-Puerta de Atocha-Almudena Grandes station.
Yes, the driving distance between Gibraltar–Spain border to Madrid is 626 km. It takes approximately 6h 55m to drive from Gibraltar–Spain border to Madrid.
Book your Gibraltar–Spain border to Madrid bus tickets online with Omio.
There are 7033+ hotels available in Madrid.




















