There are 8 ways to get from Madrid to Gibraltar by train, bus, car, plane or car ferry

Select an option below to see step-by-step directions and to compare ticket prices and travel times in Rome2rio's travel planner.

Recommended option

Train  •  6 h 19 min

  1. Take the train from Madrid-Puerta de Atocha to Algeciras Atr

$75 - $92

Cheapest option

Bus  •  8 h 10 min

  1. Take the bus from Madrid to La Linea de la Concepcion

$24 - $75

6 alternative options

Drive  •  6 h 41 min

  1. Drive from Madrid to Gibraltar 411.5 miles

$75 - $120

Fly to Malaga, bus  •  6 h 44 min

  1. Fly from Madrid (MAD) to Malaga (AGP) MAD - AGP
  2. Take the bus from Marbella to Sotogrande
  3. Take the bus from Sotogrande to La Línea de la Concepción

$55 - $278

Fly to Jerez, bus  •  7 h 13 min

  1. Fly from Madrid (MAD) to Jerez (XRY) MAD - XRY
  2. Take the bus from Jerez de la Frontera to Algeciras

$85 - $398

Fly to Sevilla, train, bus  •  7 h 54 min

  1. Fly from Madrid (MAD) to Sevilla (SVQ) MAD - SVQ
  2. Take the train from Sevilla Santa Justa to Jerez de la Frontera
  3. Take the bus from Jerez de la Frontera to Algeciras

$57 - $275

Fly to Tangier, car ferry, bus  •  7 h 38 min

  1. Fly from Madrid (MAD) to Tangier (TNG) MAD - TNG
  2. Take the car ferry from Tangier to Tarifa
  3. Take the bus from Tarifa to La Línea de la Concepción

$90 - $331

Fly to Granada, bus  •  8 h 45 min

  1. Fly from Madrid (MAD) to Granada (GRX) MAD - GRX
  2. Take the bus from Granada to Algeciras

$93 - $336

What companies run services between Madrid, Spain and Gibraltar?

Spanish Railways (RENFE) operates a train from Madrid to Gibraltar 3 times a day. Tickets cost $70 - $90 and the journey takes 5 h 13 min. Alternatively, Interbus Madrid-Malaga-Algeciras operates a bus from Madrid to Gibraltar every 4 hours. Tickets cost $25 and the journey takes 8 h 10 min. ALSA also services this route once daily.

Airlines
Iberia
Website
iberia.com
Flights from Madrid to Malaga
Ave. Duration
1 h 15 min
When
Every day
Estimated price
$45 - $420
Flights from Madrid to Malaga via Valencia
Ave. Duration
3 h 7 min
When
Monday, Tuesday, Wednesday, Friday and Sunday
Estimated price
$45 - $420
Flights from Madrid to Jerez
Ave. Duration
1 h 15 min
When
Every day
Estimated price
$140 - $480
Flights from Madrid to Sevilla
Ave. Duration
1 h 5 min
When
Every day
Estimated price
$30 - $290
Flights from Madrid to Tangier
Ave. Duration
1 h 20 min
When
Every day
Estimated price
$90 - $400
Flights from Madrid to Granada
Ave. Duration
1 h 5 min
When
Every day
Estimated price
$130 - $420
Air Europa
Website
aireuropa.com
Flights from Madrid to Malaga
Ave. Duration
1 h 30 min
When
Every day
Estimated price
$50 - $320
Air Arabia Maroc
Website
airarabia.com
Flights from Madrid to Malaga via Tangier
Ave. Duration
3 h
When
Saturday
Estimated price
$70 - $220
Flights from Madrid to Tangier
Ave. Duration
1 h 25 min
When
Wednesday and Saturday
Estimated price
$55 - $290
Ryanair
Website
ryanair.com
Flights from Madrid to Tangier
Ave. Duration
1 h 35 min
When
Monday, Wednesday, Thursday, Friday and Sunday
Estimated price
$30 - $220
Train operators
Spanish Railways (RENFE)
Phone
902 320 320
Website
renfe.com
Train from Madrid-Puerta de Atocha to Algeciras
Ave. Duration
5 h 13 min
Frequency
3 times a day
Estimated price
$70 - $90
Website
renfe.com
Train from Sevilla Santa Justa to Jerez de la Frontera
Ave. Duration
55 min
Frequency
Hourly
Estimated price
$13 - $24
Website
renfe.com
Bus operators
Interbus Madrid-Malaga-Algeciras
Phone
+34 (0) 902 64 64 28
Email
info@interbus.es
Website
mma.interbus.es
Bus from Madrid to La Linea de la Concepcion
Ave. Duration
8 h 10 min
Frequency
Every 4 hours
Estimated price
$25
Schedules at
mma.interbus.es
Avanza Grupo
Phone
+34 (0) 91 272 28 32
Email
informacion@avanzabus.com
Website
avanzabus.com
Bus from Marbella to Sotogrande
Ave. Duration
51 min
Frequency
Hourly
Estimated price
$8 - $13
Schedules at
portillo.avanzabus.com
Bus from Sotogrande to La Línea de la Concepción
Ave. Duration
21 min
Frequency
Hourly
Estimated price
$6 - $10
Schedules at
portillo.avanzabus.com
Bus from Granada to Algeciras
Ave. Duration
3 h 15 min
Frequency
3 times a day
Estimated price
$20 - $35
Schedules at
portillo.avanzabus.com
CTMCG
Phone
+34 (0) 955038665
Website
siu.ctmcg.es
Bus from Sotogrande Alto to La Línea de la Concepción
Ave. Duration
32 min
Frequency
Every 4 hours
Estimated price
$2 - $6
Schedules at
siu.ctmcg.es
Autocares Valenzuela
Phone
+34 (0) 956702609
Email
informacion.cadiz@grupovalenzuela.com
Website
grupovalenzuela.com
Bus from Jerez de la Frontera to Algeciras
Ave. Duration
1 h 30 min
Frequency
Every 3 hours
Estimated price
$9 - $20
Schedules at
grupovalenzuela.com
Ferry operators
FRS Ferries
Website
frs.es
Car ferry from Tangier to Tarifa
Ave. Duration
1 h
Frequency
Every 4 hours
Estimated price
$40 - $130
Schedules at
frs.es
Passenger
$43 - $47
Standard Car
$115 - $125
Inter Shipping
Phone
+34 956 68 47 29
Email
info@intershipping.es
Website
intershipping.es
Car ferry from Tangier to Tarifa
Ave. Duration
1 h
Frequency
Every 4 hours
Estimated price
$45
Schedules at
intershipping.es

Want to know more about travelling around the world?

Rome2rio's Travel Guide series provide vital information for the global traveller. Read our range of informative guides on popular transport routes and companies - including The London Underground: Essential tips to navigate the Tube, Travelling to and around Russia for the 2018 FIFA World Cup and French strikes 2018: What are my alternative transport options? - to help you get the most out of your next trip.

Questions & Answers

The distance between Madrid and Gibraltar is 496 km. The road distance is 658 km.

The cheapest way to get from Madrid to Gibraltar is to bus which costs 21€ - 65€ and takes 8 h 10 min.

The quickest way to get from Madrid to Gibraltar is to train which takes 6 h 19 min and costs 60€ - 80€.

Yes, there is a direct bus departing from Madrid and arriving at La Linea de la Concepcion. Services depart every four hours, and operate every day. The journey takes approximately 8 h 10 min.

It takes approximately 6 h 19 min to get from Madrid to Gibraltar, including transfers.