There are 6 ways to get from Spain to Gibraltar by train (Renfe, Ouigo), bus, car ferry, ferry, car, 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
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 27m$88–187Train, bus
cheapest- Take the train from Barcelona-Sants 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
10h 40m$60–200Bus
- Take the bus from Barcelona, Estació d'Autobusos Nord to Algecirasbus Alsa
18h 44m$111–222Car ferry, ferry
- Take the car ferry from Port de Barcelona to Port de Tanger Medcarferry
- Take the ferry from Port de Tanger Med to Port of Gibraltarferry
33h 30m$136–483Drive 1,046.9 km
- Drive from Barcelona to Gibraltarcar 1,046.9 km
11h 22m$192–277Bus via Málaga
- Take the bus from Barcelona to Málagabus Kyiv-Málaga
- Take the bus from Málaga - Comisaría de Policía to Estación de Autobuses de La Línea de la Concepciónbus L-313
19h 14m
Spain to Gibraltar by bus and foot
Questions & Answers
The cheapest way to get from Spain to Gibraltar is to bus which costs $110 - $230 and takes 18h 44m.
The fastest way to get from Spain to Gibraltar is to train which takes 10h 27m and costs $85 - $190.
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 de La Línea de la Concepción via Estación de Algeciras San Bernardo. The journey, including transfers, takes approximately 18h 44m.
No, there is no direct ferry from Spain to Gibraltar. However, there are services departing from Port de Barcelona and arriving at Port of Gibraltar via Port de Tanger Med. The journey, including transfers, takes approximately 33h 30m.
The distance between Spain and Gibraltar is 1244 km. The road distance is 1046.9 km.
Book your Spain to Gibraltar ferry tickets online with Omio.
The best way to get from Spain to Gibraltar without a car is to bus which takes 18h 44m and costs $110 - $230.
It takes approximately 10h 27m to get from Spain to Gibraltar, including transfers.
Spain to Gibraltar bus services, operated by ALSA, depart from Barcelona, Estació d'Autobusos Nord station.
The best way to get from Spain to Gibraltar is to train which takes 10h 27m and costs $85 - $190. Alternatively, you can bus, which costs $110 - $230 and takes 18h 44m.
What companies run services between Spain and Gibraltar?
You can take a train from Barcelona-Plaça De Catalunya to Gibraltar via Barcelona-Sants, Madrid-Puerta de Atocha-Almudena Grandes, and San Roque-La Linea in around 10h 27m. 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.
- 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
- Hourly
- Estimated price
- $60–90
- Website
- https://www.renfe.com/es/en
- Básico
- $60–90
Train from Barcelona-Sants to Malaga Maria Zambrano
- Ave. Duration
- 6h 19m
- Frequency
- 3 times a day
- Estimated price
- $100–150
- Website
- https://www.renfe.com/es/en
- Básico
- $100–150
- 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 17m
- Frequency
- Hourly
- Estimated price
- $30–100
- Website
- https://iryo.eu/en/home
- Inicial
- $30–100
Train from Barcelona-Sants to Malaga Maria Zambrano
- Ave. Duration
- 6h 24m
- Frequency
- Once daily
- Estimated price
- $45–170
- Website
- https://iryo.eu/en/home
- Inicial
- $45–170
- Phone
- +34 910 780 990
- Website
- ouigo.com
Train from Barcelona-Sants to Madrid-Puerta de Atocha-Almudena Grandes
- Ave. Duration
- 3h 17m
- Frequency
- 5 times a day
- Estimated price
- $29–90
- 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 28m
- Frequency
- Twice daily
- Estimated price
- $55–80
- Website
- https://www.renfe.com/es/en
Train from Madrid-Puerta de Atocha-Almudena Grandes to San Roque-La Linea
- Ave. Duration
- 5h 49m
- Frequency
- Once daily
- Estimated price
- $55–80
- Website
- https://www.renfe.com/es/en
- Phone
- +34 910 207 007
- alsa@alsa.es
- 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/
- Phone
- +34 91 272 28 32
- info.LD@avanzagrupo.com
- Website
- avanzabus.com
Bus from Malaga Airport to Estación de Autobuses de La Línea de la Concepción
- Ave. Duration
- 1h 55m
- Frequency
- Once daily
- Estimated price
- $12–25
- Schedules at
- malaga.avanzagrupo.com
Bus from Málaga - Comisaría de Policía to Estación de Autobuses de La Línea de la Concepción
- Ave. Duration
- 3h 11m
- Frequency
- Once daily
- Estimated price
- $13–21
- Schedules at
- malaga.avanzagrupo.com
- Phone
- +380(67)-484-57-27
- support@pavluks-trans.com
- Website
- pavluks-trans.com
Bus from Barcelona to Málaga
- Ave. Duration
- 14h 44m
- Frequency
- Once daily
- Website
- https://pavluks-trans.com/en/tickets/kyiv/goettingen?sort_by=departure&order_by=ASC&page=1
- 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
- $95–240
- Website
- https://www.gnv.it/en
- Seat
- $95–160
- Cabin
- $180–240
- Phone
- +34 956 68 18 30
- info@frs.es
- Website
- frs.es
Ferry from Port de Tanger Med to Port of Gibraltar
- Ave. Duration
- 1h 30m
- Frequency
- Once a week
- Estimated price
- $43–250
- Website
- https://www.frs.es/en/
- Standard Car
- $230–250
- Passenger
- $43–46
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
Spain to Gibraltar bus services, operated by ALSA, arrive at Algeciras station.
Yes, the driving distance between Spain to Gibraltar is 1047 km. It takes approximately 11h 22m to drive from Spain to Gibraltar.
There are 615+ hotels available in Gibraltar.



































