There are 6 ways to get from Spain to Gibraltar by train (Renfe, Ouigo), bus, car ferry, 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 via Madrid
best- Take the train from Barcelona-Sants to Madrid-Puerta de Atocha-Almudena Grandestrain Ave
- Take the train from Madrid-Puerta de Atocha-Almudena Grandes to San Roque-La Lineatrain Alv
10h 52m$156–334Fly, car ferry, bus
cheapest- Fly from Málaga Airport (AGP) to Tangier Ibn Battouta Airport (TNG)plane AGP - TNG
- Take the car ferry from Port of Tangier Ville to Tarifacarferry
- Take the bus from Tarifa - Centro de Salud to Estación de Algeciras San Bernardobus
- Take the bus from Estación de Algeciras San Bernardo to Estación de Autobuses La Línea de la Concepciónbus
7h 21m$50–490Bus
- Take the bus from Barcelona, Estació d'Autobusos Nord to Algecirasbus Alsa
18h 34m$106–222Car ferry
- Take the car ferry from Port de Barcelona to Port de Tanger Medcarferry
- Take the car ferry from Port de Tanger Med to Port of Algecirascarferry
34h 19m$137–440Drive 1,046.4 km
- Drive from Barcelona to Gibraltarcar 1,046.4 km
11h 22m$192–277Train
- Take the train from Barcelona-Sants to Cordoba-Centraltrain Ave
- Take the train from Cordoba-Central to San Roque-La Lineatrain Alv
12h 5m$142–354
Spain to Gibraltar by bus and foot
Questions & Answers
The cheapest way to get from Spain to Gibraltar is to bus which costs $100 - $230 and takes 18h 34m.
The fastest way to get from Spain to Gibraltar is to fly and car ferry and bus which takes 7h 21m and costs $50 - $490.
No, there is no direct bus from Spain to Gibraltar. However, there are services departing from Barcelona, Estació d'Autobusos Nord and arriving at Estación de Autobuses La Línea de la Concepción via Estación de Algeciras San Bernardo. The journey, including transfers, takes approximately 18h 34m.
No, there is no direct ferry from Spain to Gibraltar. However, there are services departing from Port de Barcelona and arriving at Port of Algeciras via Port de Tanger Med. The journey, including transfers, takes approximately 34h 19m.
No, there is no direct train from Spain to Gibraltar. However, there are services departing from Barcelona Plaça de Catalunya and arriving at San Roque-La Linea via Barcelona-Sants and Madrid-Puerta de Atocha-Almudena Grandes. The journey, including transfers, takes approximately 10h 52m.
The distance between Spain and Gibraltar is 1240 km. The road distance is 1046.4 km.
The best way to get from Spain to Gibraltar without a car is to train via Madrid which takes 10h 52m and costs $150 - $340.
It takes approximately 10h 52m to get from Spain to Gibraltar, including transfers.
Spain to Gibraltar bus services, operated by ALSA, depart from Barcelona, Estació d'Autobusos Nord station.
Spain to Gibraltar train services, operated by Renfe AVE, depart from Barcelona-Sants station.
What companies run services between Spain and Gibraltar?
You can take a train from Barcelona Plaça de Catalunya to La Colonia via Barcelona-Sants, Madrid-Puerta de Atocha-Almudena Grandes, San Roque-La Linea, and Estación de San Roque in around 10h 52m. Alternatively, ALSA operates a bus from Barcelona, Estació d'Autobusos Nord to Algeciras twice daily. Tickets cost $100–220 and the journey takes 17h 15m.
- Website
- ryanair.com
Flights from Málaga Airport to Tangier Ibn Battouta Airport
- Ave. Duration
- 51 min
- When
- Every day
- Estimated price
- $27–180
- Website
- iberia.com
Flights from Málaga Airport to Tangier Ibn Battouta Airport
- Ave. Duration
- 1h 5m
- When
- Monday, Wednesday, Saturday, and Sunday
- Estimated price
- $50–280
- Website
- royalairmaroc.com
Flights from Málaga Airport to Tangier Ibn Battouta Airport
- Ave. Duration
- 50 min
- When
- Monday
- Estimated price
- $80–250
- Phone
- +34 91 232 03 20
- Website
- renfe.com
Train from Barcelona-Sants to Madrid-Puerta de Atocha-Almudena Grandes
- Ave. Duration
- 3h 2m
- Frequency
- Every 30 minutes
- Estimated price
- $100–190
- Website
- https://www.renfe.com/es/en
Train from Barcelona-Sants to Cordoba-Central
- Ave. Duration
- 5h 5m
- Frequency
- Every 4 hours
- Estimated price
- $170–290
- Website
- https://www.renfe.com/es/en
- Phone
- +34 900 926 851
- atencion.cliente@iryo.eu
- Website
- iryo.eu
Train from Barcelona-Sants to Madrid-Puerta de Atocha-Almudena Grandes
- Ave. Duration
- 3h 25m
- Frequency
- Hourly
- Estimated price
- $75–160
- Website
- https://iryo.eu/en/home
Train from Barcelona-Sants to Cordoba-Central
- Ave. Duration
- 5h 30m
- Frequency
- 5 times a day
- Estimated price
- $120–250
- Website
- https://iryo.eu/en/home
- Phone
- +34 900 759 781
- Website
- ouigo.com
Train from Barcelona-Sants to Madrid-Puerta de Atocha-Almudena Grandes
- Ave. Duration
- 3h 28m
- Frequency
- Every 2 hours
- Estimated price
- $65–120
- Website
- https://www.ouigo.com/es/en
Train from Barcelona-Sants to Cordoba-Central
- Ave. Duration
- 5h 50m
- Frequency
- Twice daily
- Estimated price
- $100–180
- Website
- https://www.ouigo.com/es/en
- Phone
- +34 91 232 03 20
- Website
- renfe.com
Train from Barcelona-Sants to Madrid-Puerta de Atocha-Almudena Grandes
- Ave. Duration
- 3h 2m
- Frequency
- 4 times a day
- Estimated price
- $85–130
- Website
- https://www.renfe.com/es/en
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 Cordoba-Central to San Roque-La Linea
- Ave. Duration
- 3h 28m
- Frequency
- Twice daily
- Estimated price
- $40–60
- Website
- https://www.renfe.com/es/en
- Phone
- +34 910 207 007
- Website
- alsa.com
Bus from Barcelona, Estació d'Autobusos Nord to Algeciras
- Ave. Duration
- 17h 15m
- Frequency
- Twice daily
- Estimated price
- $100–220
- Website
- https://www.alsa.com/en/
Bus from Estación de Algeciras San Bernardo to Estación de Autobuses La Línea de la Concepción
- Ave. Duration
- 30 min
- Frequency
- Once daily
- Estimated price
- $2–6
- Website
- https://www.alsa.com/en/
- Phone
- +34 956 807 059
- informacion@tgcomes.es
- Website
- tgcomes.es
Bus from Tarifa - Centro de Salud to Estación de Algeciras San Bernardo
- Ave. Duration
- 40 min
- Frequency
- Every 3 hours
- Estimated price
- $3–7
- Schedules at
- siu.ctmcg.es
Bus from Estación de Algeciras San Bernardo to Estación de Autobuses La Línea de la Concepción
- Ave. Duration
- 45 min
- Frequency
- Hourly
- Estimated price
- $2–8
- Schedules at
- siu.ctmcg.es
- Phone
- +39 010 209 4591
- booking@gnv.it
- Website
- gnv.it
Car ferry from Port de Barcelona to Port de Tanger Med
- Ave. Duration
- 31h
- Frequency
- Twice a week
- Estimated price
- $130–210
- Website
- https://www.gnv.it/en
- Phone
- +34 912 66 02 15
- reservas@balearia.com
- Website
- balearia.com
Car ferry from Port de Tanger Med to Port of Algeciras
- Ave. Duration
- 1h 30m
- Frequency
- Hourly
- Estimated price
- $7–40
- Schedules at
- balearia.com
Car ferry from Port of Tangier Ville to Tarifa
- Ave. Duration
- 1h
- Frequency
- Every 3 hours
- Estimated price
- $6–253
- Schedules at
- balearia.com
- Sirena Seat No Car
- $46
- Neptuno Seat No Car
- $58
- Sirena Seat Car
- $242
- Neptuno Seat Car
- $253
- Phone
- +34 956 68 18 30
- info@frs.es
- Website
- frs.es
Car ferry from Port de Tanger Med to Port of Algeciras
- Ave. Duration
- 1h 30m
- Frequency
- Every 4 hours
- Estimated price
- $45–230
- Website
- https://www.frs.es/en/
- Phone
- +34 (0) 917369957
- Website
- armastrasmediterranea.com
Car ferry from Port de Tanger Med to Port of Algeciras
- Ave. Duration
- 1h 30m
- Frequency
- Every 4 hours
- Estimated price
- $4–27
- Website
- https://armastrasmediterranea.com/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
The best way to get from Spain to Gibraltar is to train via Madrid which takes 10h 52m and costs $150 - $340. Alternatively, you can bus, which costs $100 - $230 and takes 18h 34m.
Spain to Gibraltar bus services, operated by ALSA, arrive at Algeciras station.
Spain to Gibraltar train services, operated by Renfe AVE, arrive at Madrid-Puerta de Atocha-Almudena Grandes station.
Yes, the driving distance between Spain to Gibraltar is 1046 km. It takes approximately 11h 22m to drive from Spain to Gibraltar.
There are 676+ hotels available in Gibraltar.










































