There are 7 ways to get from Madrid to Gibraltar by train, bus, car, plane, or train (Renfe)
Select an option below to see step-by-step directions and to compare ticket prices and travel times in Rome2Rio's travel planner.
Train, bus
best- Take the train from Madrid-Puerta de Atocha-Almudena Grandes to Malaga Maria Zambranotrain Ave
- Take the bus from Estación de Autobuses de Málaga to Estación de Autobuses de La Línea de la Concepciónbus 623 / ...
5h 45m$61–157Bus
cheapest- Take the bus from Madrid Estación Sur de Autobuses to Estación de Autobuses de La Línea de la Concepciónbus Madrid
7h 50m$26–80Drive 626.9 km
- Drive from Madrid to Gibraltarcar 626.9 km
6h 53m$105–151Fly to Málaga Airport, bus
- Fly from Adolfo Suárez Madrid–Barajas Airport (MAD) to Málaga Airport (AGP)plane MAD - AGP
- Take the bus from Aeropuerto Málaga to Estación de Autobuses de La Línea de la Concepciónbus
5h 25m$58–192Train (Renfe)
- Take the train from Madrid-Puerta de Atocha-Almudena Grandes to Algecirastrain Alv
6h 42m$85–133Bus via Córdoba
- Take the bus from Madrid Estación Sur de Autobuses to Estación de Autobuses de Córdobabus Madrid
- Take the bus from Cordoba to La Linea De La Concepcionbus ALSA - Co-Ma-Alg
11h 55m$64–90Fly to Jerez Airport, bus
- Fly from Adolfo Suárez Madrid–Barajas Airport (MAD) to Jerez Airport (XRY)plane MAD - XRY
- Take the bus from Jerez de la Frontera to Estación de Algeciras San Bernardobus
6h 49m$83–389
Madrid to Gibraltar by train and bus
Comparing Your Travel Options
The cheapest way to get from Madrid to Gibraltar is to bus which costs $26 - $80 and takes 7h 50m.
The fastest way to get from Madrid to Gibraltar is to fly and bus which takes 5h 25m and costs $55 - $200.
Yes, there is a direct bus departing from Madrid Estación Sur de Autobuses and arriving at Estación de Autobuses de La Línea de la Concepción. Services depart once daily, and operate every day. The journey takes approximately 7h 50m.
No, there is no direct train from Madrid to Gibraltar. However, there are services departing from Madrid-Puerta de Atocha-Almudena Grandes and arriving at Algeciras via . The journey, including transfers, takes approximately 6h 42m.
The distance between Madrid and Gibraltar is 642 km. The road distance is 626.9 km.
The best way to get from Madrid to Gibraltar without a car is to train and bus which takes 5h 45m and costs $60 - $160.
It takes approximately 5h 45m to get from Madrid to Gibraltar, including transfers.
Madrid to Gibraltar bus services, operated by Interbus, depart from Madrid Estación Sur de Autobuses station.
Madrid to Gibraltar train services, operated by Renfe Viajeros, depart from Madrid-Puerta de Atocha-Almudena Grandes station.
The best way to get from Madrid to Gibraltar is to bus which takes 7h 50m and costs $26 - $80. Alternatively, you can train, which costs $80 - $140 and takes 6h 42m.
What companies run services between Madrid, Spain and Gibraltar?
Interbus operates a bus from Madrid Estación Sur de Autobuses to Estación de Autobuses de La Línea de la Concepción once daily. Tickets cost $26–80 and the journey takes 7h 50m. Alternatively, Renfe Viajeros operates a train from Madrid-Puerta de Atocha-Almudena Grandes to Algeciras twice daily. Tickets cost $80–130 and the journey takes 5h 29m.
- Website
- iberia.com
Flights from Adolfo Suárez Madrid–Barajas Airport to Málaga Airport
- Ave. Duration
- 1h 17m
- When
- Every day
- Estimated price
- $35–160
Flights from Adolfo Suárez Madrid–Barajas Airport to Jerez Airport
- Ave. Duration
- 1h 20m
- When
- Every day
- Estimated price
- $50–220
- Website
- aireuropa.com
Flights from Adolfo Suárez Madrid–Barajas Airport to Málaga Airport
- Ave. Duration
- 1h 17m
- When
- Every day
- Estimated price
- $35–150
- Phone
- +34 91 232 03 20
- Website
- Renfe AVE
Train from Madrid-Puerta de Atocha-Almudena Grandes to Malaga Maria Zambrano
- Ave. Duration
- 2h 50m
- Frequency
- Hourly
- Estimated price
- $70–130
- Website
- Renfe AVE
- Phone
- +34 900 926 851
- [email protected]
- Website
- Iryo
Train from Madrid-Puerta de Atocha-Almudena Grandes to Malaga Maria Zambrano
- Ave. Duration
- 2h 56m
- Frequency
- Every 2 hours
- Estimated price
- $45–90
- Website
- Iryo
- Phone
- +34 900 759 781
- Website
- Ouigo
Train from Madrid-Puerta de Atocha-Almudena Grandes to Malaga Maria Zambrano
- Ave. Duration
- 2h 50m
- Frequency
- Every 4 hours
- Estimated price
- $40–65
- Website
- Ouigo
- Phone
- +34 91 232 03 20
- Website
- Renfe Viajeros
Train from Madrid-Puerta de Atocha-Almudena Grandes to Malaga Maria Zambrano
- Ave. Duration
- 3h 15m
- Frequency
- 3 times a day
- Estimated price
- $65–110
- Website
- Renfe Viajeros
Train from Madrid-Puerta de Atocha-Almudena Grandes to Algeciras
- Ave. Duration
- 5h 29m
- Frequency
- Twice daily
- Estimated price
- $80–130
- Website
- Renfe Viajeros
- Phone
- +34 91 272 28 32
- [email protected]
- Website
- avanzabus.com
Bus from Estación de Autobuses de Málaga to Estación de Autobuses de La Línea de la Concepción
- Ave. Duration
- 1h 55m
- Frequency
- 3 times a day
- Estimated price
- $19–35
- Schedules at
- malaga.avanzagrupo.com
Bus from Aeropuerto Málaga to Estación de Autobuses de La Línea de la Concepción
- Ave. Duration
- 1h 55m
- Frequency
- Once daily
- Estimated price
- $22–30
- Schedules at
- malaga.avanzagrupo.com
- Phone
- +34 916 52 00 11
- [email protected]
- Website
- grupointerbus.com
Bus from Madrid Estación Sur de Autobuses to Estación de Autobuses de La Línea de la Concepción
- Ave. Duration
- 7h 50m
- Frequency
- Once daily
- Estimated price
- $26–80
- Schedules at
- grupointerbus.com
- Phone
- +34 915 304 417
- [email protected]
- Website
- Socibus
Bus from Madrid Estación Sur de Autobuses to Estación de Autobuses de Córdoba
- Ave. Duration
- 4h 50m
- Frequency
- Twice daily
- Estimated price
- $35–45
- Website
- Socibus
- Phone
- +34 910 207 007
- Website
- ALSA
Bus from Cordoba to La Linea De La Concepcion
- Ave. Duration
- 6h 5m
- Frequency
- Once daily
- Estimated price
- $29–45
- Website
- ALSA
- Phone
- +34 900 92 91 92
- [email protected]
- Website
- Monbus
Bus from Jerez de la Frontera to Estación de Algeciras San Bernardo
- Ave. Duration
- 1h 35m
- Frequency
- 4 times a day
- Estimated price
- $10
- Website
- Monbus
- Phone
- +34 956 807 059
- [email protected]
- Website
- tgcomes.es
Bus from Jerez de la Frontera to Estación de Algeciras San Bernardo
- Ave. Duration
- 3h 45m
- Frequency
- Once a week
- Estimated price
- $21–28
- Schedules at
- tgcomes.es
Want to know more about travelling around Gibraltar
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
Madrid to Gibraltar bus services, operated by Interbus, arrive at Estación de Autobuses de La Línea de la Concepción station.
Madrid to Gibraltar train services, operated by Renfe Viajeros, arrive at Algeciras station.
Yes, the driving distance between Madrid to Gibraltar is 627 km. It takes approximately 6h 53m to drive from Madrid to Gibraltar.
Book your Madrid to Gibraltar bus tickets online with Omio.
There are 400+ hotels available in Gibraltar.














































