There are 7 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$92–140Bus
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–100Drive 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 Aeropuerto Malaga to Estación de Autobuses de La Línea de la Concepciónbus
5h 26m$59–201Train, bus
- 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 L-617-M
6h 10m$77–177Bus 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$69–122Fly 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 53m$98–334
Madrid to Gibraltar by bus
Questions & Answers
The cheapest way to get from Madrid to Gibraltar is to bus which costs $27 - $100 and takes 7h 50m.
The fastest way to get from Madrid to Gibraltar is to fly and bus which takes 5h 26m and costs $55 - $210.
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 - $100.
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 - $140. Alternatively, you can bus, which costs $27 - $100 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–100 and the journey takes 7h 50m.
- Website
- iberia.com
Flights from Adolfo Suárez Madrid–Barajas Airport to Málaga Airport
- Ave. Duration
- 1h 18m
- 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
- $60–250
- Phone
- +34 91 232 03 20
- Website
- Renfe Viajeros
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
- Renfe Viajeros
Train from Madrid-Puerta de Atocha-Almudena Grandes to Malaga Maria Zambrano
- Ave. Duration
- 3h 15m
- Frequency
- 5 times a day
- Estimated price
- $70–120
- Website
- Renfe Viajeros
- 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–100
- Schedules at
- grupointerbus.com
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 668+ hotels available in Gibraltar.









