Getting there
How to get to La Granja from Madrid and Segovia
Coach, fast train, the M8 bus or your own car: every practical way to reach the palace at San Ildefonso, where to change, and how to get back.
Check dates for the palace tour ↗Quick answer
The palace stands on Plaza de España in Real Sitio de San Ildefonso, 12 km from Segovia and about 80 km north of Madrid. No train reaches the town. From Madrid, take a coach or a fast train to Segovia, then the Linecar M8 bus for about 35 minutes. Driving takes between an hour and an hour and a half.
One town, three names
Maps, buses and road signs do not agree on what to call this place. Real Sitio de San Ildefonso is the municipality, San Ildefonso is its short form, and La Granja is what most people say. Linecar prints La Granja on its timetable. Patrimonio Nacional, which looks after the palace, writes San Ildefonso (Segovia) in its address. All of them mean the same town, in the province of Segovia, on the northern slopes of the Sierra de Guadarrama. Mallorca has an unrelated estate also called La Granja, so check the map pin before you set off. Type Palacio Real de La Granja into a map app and you should land on Plaza de España, the square in front of the palace.
The four ways in, side by side
Most people travelling without a car go through Segovia, because the only public transport into the town comes up from there. Pick the row that suits your day. Times below are rounded and leave out waiting between connections, and they were last checked on 6 November 2026.
Getting from Madrid to La Granja
| Route | Changes | Time on the move | Good for |
|---|---|---|---|
| Coach from Moncloa, then M8 bus | One, at Segovia bus station | About 1 hour to 1 hour 15 for the coach, then about 35 minutes | A simple day with one change and no station transfer |
| Fast train from Chamartín, city bus, then M8 bus | Two | About 30 minutes, about 20 minutes, then about 35 minutes | People already near Chamartín who like a quick main leg |
| Your own car | None | An hour to an hour and a half | Families, early starts and a stop in Segovia on the way back |
| Day tour from Madrid | None | A full day of about 10 hours | Anyone who would rather not plan connections |
By coach: Moncloa to Segovia
For most visitors this is the easiest public route. Patrimonio Nacional names Avanza as the company on the Madrid to Segovia line, and the coaches leave from the Moncloa interchange in north-west Madrid, on the Metro. Expect about an hour to an hour and a quarter, depending on traffic through the north of the city. Get off at Segovia bus station. That detail matters, because the M8 bus to La Granja starts at the same station, so you do not need to cross town. Buy your coach seat on the company's website for weekend trips, and pick a return before you leave. Timetables differ between weekdays and weekends, so read the one for your actual day.
By fast train: Chamartín to Segovia-Guiomar
High-speed trains from Madrid-Chamartín reach Segovia-Guiomar in about half an hour, with Renfe and Ouigo both running on the line. The catch is where the station is. Guiomar lies 7 km from the centre of Segovia, next to an industrial park, so the train is only the first part of the trip. City buses connect it with Segovia in about 20 minutes, and taxis wait outside. Take the city bus as far as the bus station if you want the M8. Linecar's timetable sheet tells riders to check connections with the high-speed trains, so read both timetables together before you choose a departure. If you are a group of three or four, a taxi straight from Guiomar to La Granja may be worth asking about, since it removes two changes.
The slow regional train
Patrimonio Nacional also lists a regional line between Madrid and Segovia. It uses the old Segovia station, which is closer to the city centre than Guiomar, on the branch from Villalba. Only a few trains a day still run, so it rarely fits a day trip. Treat it as a scenic choice for an unhurried traveller, and look up the times before you plan anything around it.
The last leg: Linecar's M8 bus
Line M8 is the link that makes the public route work. It leaves from Segovia bus station, with further stops at the church of Santo Tomás, opposite Bar Norte and at the bullring, and then climbs out of the city. In La Granja it calls at the glass factory, Piscinas, Puertas de Segovia, La Pradera and Frontón before the Plaza stop. The sheet from February 2026 shows about 35 minutes from Segovia to the Plaza stop, with a bus about every 45 minutes on weekdays and wider gaps at weekends and on holidays. Linecar marks its times as approximate. The line carries on towards Valsaín, so stay alert and get off at La Granja.
Read next: Visiting La Granja: a practical guide
By car from Madrid
The motorway route that Patrimonio Nacional gives is the A-6, then the AP-6, then the AP-61 towards Segovia. Part of it is a toll road, so carry a card. From Segovia, follow the signs to La Granja for the last 12 km, on the CL-601. Plan on an hour to an hour and a half from central Madrid, and longer when the city empties on a Friday. The more scenic option runs from Villalba over the Puerto de Navacerrada pass and drops down through pine forest to the town. It is slower, full of bends, and winter snow can make it hard going, so check road conditions in the cold months.
Where to park
Patrimonio Nacional gives a road route but names no visitor car park on its palace page. Assume you will park in the town and walk to Plaza de España, and read any street signs carefully, since these are residential roads. Spaces go first on summer weekends and on fountain days, when arriving early helps. Everything you came for is then on foot: palace, church and gardens all sit together, and the far end of the gardens is the only long walk you will face.
From Segovia, by bus or taxi
If you are staying in Segovia, La Granja is an easy half day. Walk or take a city bus to the bus station and catch the M8. A taxi covers the same 12 km faster, and it is the better choice late in the day when buses thin out. Ask the fare before you get in, and agree a pickup time if you want one for the way back, as taxis are not always waiting in the square. Combining the two places in one day works well if you start early: the aqueduct and old town in the morning, the palace after lunch, or the reverse if you want the gardens in morning light.
With no changes at all: day tours from Madrid
Three day tours from Madrid on GetYourGuide take you to La Granja without any connections to plan, and they differ in what they include. The private tour with the Royal Gardens and Segovia has a guide in Spanish or English and hotel pickup, but it visits the gardens only, not the palace rooms. The small-group van tour of up to eight people is guided in Spanish, with an audio guide in other languages, and treats the palace visit as an optional stop you pay for separately. The private full-day tour from Madrid has an English and Spanish guide, about three hours at La Granja and then Segovia, and costs far more than the others. Read the inclusions on each before you book.
Getting back
Decide your return before you leave the palace. Evening buses thin out, and the times on Linecar's sheet change on Saturdays, Sundays and holidays. If you stay on for a late fountain show, look at the last M8 first and then work back from the last coach or train out of Segovia. Train passengers need extra time, because the city bus to Guiomar is an additional step. When in doubt, take the earlier bus and have dinner in Segovia, where the connections are easier.
What to expect when you arrive
Visitors go into the palace through the ticket desks at the Patio de Coches, the palace forecourt. Guided tours may meet elsewhere: the 2-hour palace tour on GetYourGuide starts at the Real Colegiata, the church attached to the palace, so read your booking. San Ildefonso sits at about 1,190 metres, so the air can feel noticeably cooler than Madrid. Bring a layer even in summer.
Frequently asked questions
Is there a train station at La Granja?
No. The nearest stations are both in Segovia: Segovia-Guiomar on the high-speed line, 7 km from the city centre, and the old regional station. The last stretch is always by bus, taxi or car.
Is there a direct bus from Madrid to La Granja?
Patrimonio Nacional names only the Avanza line from Madrid to Segovia and the Linecar line from Segovia to San Ildefonso. Plan on changing at Segovia bus station, and check Avanza's site in case your date has a through service.
How long is the bus from Segovia to La Granja?
About 35 minutes on Linecar's M8, by its February 2026 timetable. The company marks its times as approximate.
How far is La Granja from Madrid?
About 80 km north of Madrid, and 12 km from Segovia.
Can I visit La Granja as a day trip from Madrid?
Yes. By public transport allow about two hours each way with connections. Driving or a day tour shortens the planning, and you still have time for the palace and gardens.
Where do I get off the M8 bus?
Linecar's last La Granja stop on the outbound run is Plaza. It is the closest match in the timetable for Plaza de España, the palace square. Ask the driver if you are unsure.
Sources
- Patrimonio Nacional: Royal Palace of La Granja, how to get there
- Linecar: M8 timetable, February 2026 (PDF)
- Linecar: Segovia local lines
- Wikipedia: Segovia-Guiomar railway station
- Wikipedia: Real Sitio de San Ildefonso
- Wikipedia: Real Fábrica de Cristales de La Granja (road number)
- La Maleta Inquieta: getting from Madrid to Segovia