El Espinar and La Granja to Barajas and Madrid's stations: Segovia's mountain villages right next to Madrid, with the AP-6 on the doorstep and the Navacerrada pass in winter
Segovia's mountain villages live right next to Madrid: El Espinar and San Rafael have the AP-6 and the Guadarrama tunnel on their doorstep, and La Granja de San Ildefonso chooses between the Navacerrada pass, shorter but a mountain road, and the detour through Segovia and the AP-61. For Barajas there is no direct public transport from either: the regional train and the coach drop you in Madrid and force you across the city with luggage to the terminal. A car with a driver leaves from home, descends on the A-6 and skirts Madrid on the M-40 to the terminal; from El Espinar it is 83 km and about 71 min, from 121,95 € per car, with the price fixed before booking.
Written by Ridelta - Taxi y VTC · reviewed on 27 October 2026
Why do Segovia's mountain villages work almost like a Madrid suburb?
Because the border between the two provinces is a tunnel. El Espinar, with its settlements of San Rafael, Los Ángeles de San Rafael and La Estación, sits on the northern side of the Alto del León, exactly where the AP-6 enters the Guadarrama tunnels, and on leaving them you are already in the Madrid region, heading for Villalba and the A-6. La Granja de San Ildefonso lies a few kilometres to the east, at the foot of the Navacerrada pass, with the Royal Palace and its gardens as a reason to visit all year round. The province page describes it precisely: these are villages with many Madrid second homes, whose trips are weekend and long-weekend runs, visits to the palace, and residents who work in Madrid or fly from there.
That closeness misleads in one respect: public transport looks towards Madrid, not the airport. At El Espinar, regional Media Distancia trains on the conventional Madrid–Segovia line stop and run down to Madrid via Villalba with few departures, and the intercity coaches that pass through San Rafael reach the Moncloa interchange. From La Granja the bus links the Real Sitio with Segovia, and the rest of the journey is made from there. In every case, Barajas lies on the far side of the city: after reaching Madrid you have to cross it by metro or Cercanías with your luggage, and first thing in the morning that connection does not exist or does not arrive in time. That is why the airport is, in the mountains, the journey most often made by car.
How do you get from El Espinar and San Rafael to Barajas and Madrid's stations?
On the AP-6. From San Rafael the car joins the motorway, crosses the Guadarrama tunnels and descends through Villalba to the A-6, which enters Madrid at Moncloa. For Chamartín you leave the A-6 at the M-30 or the M-40 and skirt the city to the north; for Atocha you go down into the centre on the A-6 and the Paseo de la Castellana, or around on the M-30; for Barajas you follow the M-40 to the junction with the A-2 and the M-14, without touching the centre. The route pages publish the "from" fare for each destination: Chamartín station from 96,39 € and Atocha from 98,23 €, both with the train number on the booking so that the pickup time can be adjusted.
The toll-free alternative is the Alto del León on the N-VI, the historic pass the motorway left to cars that do not want to pay and to the days when the tunnel seizes up: more bends, more time and in winter snow or ice. The fixed price of the transfer includes the toll by default, because it is the fastest and safest road, and anyone who prefers to avoid it says so when booking. There is an advantage that El Espinar's residents know well: being at the mouth of the tunnel, the journey to Madrid is shorter than from the city of Segovia and the margin for a morning flight is wider. For those living in Los Ángeles de San Rafael or the La Estación district, it helps to give the exact address of the house, because the settlements are separated by several kilometres of hillside.
And from La Granja de San Ildefonso: over Navacerrada or via Segovia and the AP-61?
La Granja has two roads to Madrid and neither is perfect. The short one crosses the Navacerrada pass on the CL-601 and descends on the M-601 to Collado Villalba and the A-6: it is a mountain pass above eighteen hundred metres, with bends, fog and, from December to March, snow that requires chains or closes it, as the province page reminds us. The long one heads back towards Segovia, takes the AP-61 to San Rafael and the AP-6 through the tunnel: more kilometres, two tolls and a motorway alignment that works the same in January as in July. Barajas from La Granja is 91 km and about 91 min by the road the route engine takes as reference, and the driver chooses the pass or the tunnel according to the day's road report.
What is most requested from the Real Sitio is not only the airport: it is Madrid's stations, to connect with trains to the south and east that do not pass through Segovia, and central Madrid for work or a show. Chamartín station lies in the north of the city, on the side you enter from the mountains, and is the shortest destination: from 113,01 € per car. Atocha means crossing Madrid and is booked with a margin at rush hour. On the way back, the driver waits at the station door with a name sign and follows the train on the board, so a delayed train moves the pickup and leaves nobody working out how to get up to La Granja at night, when there is no longer a bus.
Guiomar or Chamartín: when is it worth catching the AVE from the mountains?
There is a third option that looks absurd on the map and is not: driving the other way to Segovia-Guiomar station and catching the high-speed train to Chamartín there. From El Espinar it is 32 km and from La Granja 13 km, and the train reaches central Madrid without the tunnel or the A-6, which matters on a Sunday of holiday returns or a day of snow on the passes. It pays when the final destination is well connected to Chamartín, such as the northern business district itself, and when you travel light; it stops paying for Barajas, because the connection from Chamartín with luggage eats up the train's advantage.
For the conventional railway, El Espinar has its own station on the Madrid–Segovia line, where regional trains bound for Madrid via Villalba stop; they have few departures and are slow compared with the AVE, but useful for anyone living near the station and in no hurry. The timetables of both are published by Renfe and change by season, so the decision is made by looking at the day's timetable, not from memory. A car with a driver does not compete with the train on the Guiomar–Chamartín stretch, where high speed is unbeatable; it competes at the front door, on luggage and on timing, and that is why the mountain villages' most frequent service is the connection: from home to Guiomar for a train time, and from Guiomar home on the way back.
What changes in winter and on long weekends, and how do you book?
Winter rules in the mountains. Between December and March the Alto del León and the Navacerrada pass may require chains or close, and the AP-6 with its tunnels becomes the safe way through; the driver checks the state of the passes published by the DGT and confirms the route the day before, and transfers for early flights and trains are booked with added margin. Long weekends bring the opposite problem: the AP-6 towards Madrid fills up on Sunday afternoon with the whole mountain range heading home, and the tunnel is the funnel for the entire valley, so the pickup time is set with that traffic in mind, not a weekday's. In summer, the mountain weekend begins on Friday afternoon in the other direction.
Booking is done on the website or in the app with the exact address of the house, the destination — terminal and flight number, station and train, or a Madrid address — and the date and time. The calculator fixes the price before you confirm, per car rather than per passenger, with the toll included and an invoice available for anyone travelling with a business account. For a pickup at Barajas, the driver waits in arrivals with a name sign and follows the flight in the app; the airport pickup page describes the meeting point at each terminal, and waiting and cancellation terms are on the help page. Central Madrid from El Espinar, for example, is published from 96,50 €.
Frequently asked questions
How much is it from La Granja de San Ildefonso to Barajas?
The published "from" fare is 134,73 € per car, toll included. The calculator gives the exact price with your address, date and time; the driver chooses between Navacerrada and the AP-61 according to the state of the passes.
Is there a train from El Espinar to Madrid?
Yes, regional trains on the conventional Madrid–Segovia line stop at El Espinar station and run down to Madrid via Villalba, with few departures; the current timetable is published by Renfe. For the airport you then continue by Cercanías or metro.
Do you go through the AP-6 tunnel or over the Alto del León?
By default through the tunnel, which is the fastest road and the only safe one in snow; the toll is included in the fixed price. If you prefer the Alto del León on the N-VI, say so when booking, knowing the journey is slower.
Can you collect a guest at Barajas and take them to a house in San Rafael?
Yes. You book in their name with the flight number and the exact address of the house; the driver waits in arrivals with a name sign and follows the flight if it is delayed. It helps to give a landmark in estates without clear numbering.
Is it worth going to Guiomar from the mountains to catch the AVE?
When the destination is well linked to Chamartín and you travel light, or when the passes are closed: the train avoids the tunnel and the A-6. For Barajas it rarely pays, because the connection with luggage from Chamartín eats up the train's advantage.
Sources
- Aena · aeropuerto Adolfo Suárez Madrid-Barajas: terminales y accesos (consulted on 27 October 2026)
- Renfe · Media Distancia Madrid–Segovia y Avant desde Segovia-Guiomar (consulted on 27 October 2026)
- Dirección General de Tráfico · estado de las carreteras y puertos de montaña (consulted on 27 October 2026)
- Patrimonio Nacional · Palacio Real de La Granja de San Ildefonso (consulted on 27 October 2026)
How we write, where the figures come from and how we correct an error: editorial policy.
Timetables for regional trains, the AVE and coaches change by season and are published by Renfe and the operators; check them before travelling. The state of the passes is published by the DGT. Distances and times are those of the route engine in daytime with no incidents; the exact price comes from the calculator with date and time.