There are 8 ways to get from Madrid to Gibraltar by train (Renfe), bus, car, plane, or train
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 Madrid-Puerta de Atocha-Almudena Grandes to San Roque-La Lineatrain Alv
5h 31m$93–142Bus
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$27–140Drive 626.9 km
- Drive from Madrid to Gibraltarcar 626.9 km
6h 53m$115–166Fly 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 Malaga Airport to Estación de Autobuses de La Línea de la Concepciónbus
5h 26m$63–200Train, bus
- Take the train from Madrid-Puerta de Atocha-Almudena Grandes to Malaga Maria Zambranotrain Ave
- Take the bus from Malaga Airport to Estación de Autobuses de La Línea de la Concepciónbus L-611
6h 8m$73–188Bus via Córdoba
- Take the bus from Estación Sur de Autobuses to Córdoba, Estación de Autobusesbus Madrid
- Take the bus from Córdoba, Estación de Autobuses to Estación de Autobuses de La Línea de la Concepciónbus L-526
11h 31m$68–121Fly 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 Algeciras Puertobus
6h 55m$93–319Fly to Seville Airport, train, bus
- Fly from Adolfo Suárez Madrid–Barajas Airport (MAD) to Seville Airport (SVQ)plane MAD - SVQ
- Take the train from Sevilla-Santa Justa to Jerez De La Fronteratrain
- Take the bus from Jerez de la Frontera to Algeciras Puertobus
8h 4m$63–225
Madrid to Gibraltar by bus
Questions & Answers
The cheapest way to get from Madrid to Gibraltar is to bus which costs $27 - $140 and takes 7h 50m.
The fastest way to get from Madrid to Gibraltar is to fly and bus which takes 5h 26m and costs $60 - $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 San Roque-La Linea via . The journey, including transfers, takes approximately 5h 31m.
The distance between Madrid and Gibraltar is 635 km. The road distance is 626.9 km.
The best way to get from Madrid to Gibraltar without a car is to bus which takes 7h 50m and costs $27 - $140.
It takes approximately 5h 31m 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 train which takes 5h 31m and costs $90 - $150. Alternatively, you can bus, which costs $27 - $140 and takes 7h 50m.
What companies run services between Madrid, Spain and Gibraltar?
Renfe Viajeros operates a train from Madrid-Puerta de Atocha-Almudena Grandes to San Roque-La Linea twice daily. Tickets cost $90–140 and the journey takes 5h 14m. Alternatively, 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 $27–140 and the journey takes 7h 50m.
- Website
- iberia.com
Flights from Adolfo Suárez Madrid–Barajas Airport to Málaga Airport
- Ave. Duration
- 1h 17m
- When
- Every day
- Estimated price
- $40–130
Flights from Adolfo Suárez Madrid–Barajas Airport to Jerez Airport
- Ave. Duration
- 1h 20m
- When
- Every day
- Estimated price
- $55–250
Flights from Adolfo Suárez Madrid–Barajas Airport to Seville Airport
- Ave. Duration
- 1h 13m
- When
- Every day
- Estimated price
- $26–120
- Website
- aireuropa.com
Flights from Adolfo Suárez Madrid–Barajas Airport to Málaga Airport
- Ave. Duration
- 1h 15m
- When
- Every day
- Estimated price
- $45–160
Flights from Adolfo Suárez Madrid–Barajas Airport to Seville Airport
- Ave. Duration
- 1h 10m
- When
- Every day
- Estimated price
- $30–110
- Website
- royalairmaroc.com
Flights from Adolfo Suárez Madrid–Barajas Airport to Málaga Airport via Tangier
- Ave. Duration
- 3h 10m
- When
- Monday
- Estimated price
- $130–170
- Phone
- +34 91 232 03 20
- Website
- renfe.com
Train from Madrid-Puerta de Atocha-Almudena Grandes to San Roque-La Linea
- Ave. Duration
- 5h 14m
- Frequency
- Twice daily
- Estimated price
- $90–140
- Website
- https://www.renfe.com/es/en
Train from Madrid-Puerta de Atocha-Almudena Grandes to Malaga Maria Zambrano
- Ave. Duration
- 3h 15m
- Frequency
- 3 times a day
- Estimated price
- $75–120
- Website
- https://www.renfe.com/es/en
Train from Sevilla-Santa Justa to Jerez De La Frontera
- Ave. Duration
- 51 min
- Frequency
- Hourly
- Estimated price
- $15–23
- Website
- https://www.renfe.com/es/en
- Phone
- +34 91 232 03 20
- Website
- renfe.com
Train from Madrid-Puerta de Atocha-Almudena Grandes to Malaga Maria Zambrano
- Ave. Duration
- 2h 50m
- Frequency
- Hourly
- Estimated price
- $90–160
- Website
- https://www.renfe.com/es/en
- Phone
- +34 900 926 851
- [email protected]
- Website
- iryo.eu
Train from Madrid-Puerta de Atocha-Almudena Grandes to Malaga Maria Zambrano
- Ave. Duration
- 2h 49m
- Frequency
- Every 2 hours
- Estimated price
- $60–120
- Website
- https://iryo.eu/en/home
- Phone
- +34 900 759 781
- Website
- ouigo.com
Train from Madrid-Puerta de Atocha-Almudena Grandes to Malaga Maria Zambrano
- Ave. Duration
- 2h 47m
- Frequency
- Every 4 hours
- Estimated price
- $50–95
- Website
- https://www.ouigo.com/es/en
- 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
- $27–140
- Schedules at
- grupointerbus.com
- Phone
- +34 91 272 28 32
- [email protected]
- Website
- avanzabus.com
Bus from Malaga Airport to Estación de Autobuses de La Línea de la Concepción
- Ave. Duration
- 1h 56m
- Frequency
- Twice daily
- Estimated price
- $17–27
- Schedules at
- malaga.avanzagrupo.com
Bus from Malaga Airport to Estación de Autobuses de La Línea de la Concepción
- Ave. Duration
- 1h 56m
- Frequency
- Twice daily
- Estimated price
- $17–27
- Schedules at
- malaga.avanzagrupo.com
Bus from Córdoba, Estación de Autobuses to Estación de Autobuses de La Línea de la Concepción
- Ave. Duration
- 5h 45m
- Frequency
- Once daily
- Estimated price
- $35–70
- Schedules at
- alsa.es
- Phone
- +34 915 304 417
- [email protected]
- Website
- socibusventas.es
Bus from Estación Sur de Autobuses to Córdoba, Estación de Autobuses
- Ave. Duration
- 4h 46m
- Frequency
- 4 times a day
- Estimated price
- $30–55
- Website
- https://socibusventas.es/en/
- Phone
- +34 900 92 91 92
- [email protected]
- Website
- monbus.es
Bus from Jerez de la Frontera to Algeciras Puerto
- Ave. Duration
- 1h 30m
- Frequency
- 4 times a day
- Estimated price
- $9–15
- Website
- https://www.monbus.es/en
Bus from Jerez de la Frontera to Algeciras Puerto
- Ave. Duration
- 1h 30m
- Frequency
- 4 times a day
- Estimated price
- $9–15
- Website
- https://www.monbus.es/en
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
More Questions & Answers
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 San Roque-La Linea 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 677+ hotels available in Gibraltar.
































