There are 9 ways to get from Madrid to Hernani by train (Renfe), bus, car, plane, 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 via Zumarraga (Renfe)
best- Take the train from Madrid Chamartín to Zumarragatrain Alv / ...
- Take the train from Zumarraga to Hernani-Erdiatrain C1
5h 45m€65–95Bus via Madrid - Barajas Airport T4
cheapest- Take the bus from Madrid - Barajas Airport T4 to San Sebastián - Bus Stationbus BlaBlaCar Bus
7h 17m€31–56Bus
- Take the bus from Madrid, Avenida de América to Estación de Autobuses Donostia-San Sebastiánbus ALSA - S Mad-Ss / ...
6h 2m€35–60Drive 446.5 km
- Drive from Madrid to Hernanicar 446.5 km
4h 33m€73–105Fly to San Sebastián Airport, train
- Fly from Adolfo Suárez Madrid–Barajas Airport (MAD) to San Sebastián Airport (EAS)plane MAD - EAS
- Take the train from San Sebastián-Donostia to Hernani-Erdiatrain
5h 2m€57–303Train (Renfe)
- Take the train from Madrid-Principe Pio to Hernani Centrotrain 18061
7h 23m€80–120Fly to Pamplona Airport, bus
- Fly from Adolfo Suárez Madrid–Barajas Airport (MAD) to Pamplona Airport (PNA)plane MAD - PNA
- Take the bus from Pamplona to Estación de Autobuses Donostia-San Sebastiánbus
5h 42m€70–394Fly to Bilbao Airport, bus
- Fly from Adolfo Suárez Madrid–Barajas Airport (MAD) to Bilbao Airport (BIO)plane MAD - BIO
- Take the bus from Airport Loiu Bilbao to Donostia / San Sebastiánbus
5h 33m€43–160Fly to Santander Airport, bus
- Fly from Adolfo Suárez Madrid–Barajas Airport (MAD) to Santander Airport (SDR)plane MAD - SDR
- Take the bus from Estación de autobuses de Santander to Estación de Autobuses Donostia-San Sebastiánbus
7h 33m€71–271
Madrid to Hernani by train (Renfe)
Comparing Your Travel Options
The cheapest way to get from Madrid to Hernani is to bus via Madrid - Barajas Airport T4 which costs €30 - €60 and takes 7h 17m.
The fastest way to get from Madrid to Hernani is to drive which takes 4h 33m and costs €70 - €110.
No, there is no direct bus from Madrid to Hernani. However, there are services departing from Madrid, Avenida de América and arriving at Hernani - Txirrita Kalea 8 via Donostia - Urbieta 28. The journey, including transfers, takes approximately 6h 2m.
Yes, there is a direct train departing from Madrid-Principe Pio and arriving at Hernani Centro. Services depart once daily, and operate every day. The journey takes approximately 7h 23m.
The distance between Madrid and Hernani is 541 km. The road distance is 446.5 km.
The best way to get from Madrid to Hernani without a car is to train via Zumarraga which takes 5h 45m and costs €65 - €100.
It takes approximately 5h 45m to get from Madrid to Hernani, including transfers.
Madrid to Hernani bus services, operated by ALSA, depart from Madrid, Avenida de América station.
Madrid to Hernani train services, operated by Renfe Viajeros, depart from Madrid Chamartín station.
The best way to get from Madrid to Hernani is to train via Zumarraga which takes 5h 45m and costs €65 - €100. Alternatively, you can bus, which costs €35 - €60 and takes 6h 2m.
What companies run services between Madrid, Spain and Hernani, Spain?
You can take a train from Madrid Chamartín to Hernani-Erdia via Zumarraga in around 5h 45m. Alternatively, ALSA operates a bus from Madrid, Avenida de América to Estación de Autobuses Donostia-San Sebastián every 3 hours. Tickets cost €35–60 and the journey takes 5h 25m.
- Website
- iberia.com
Flights from Adolfo Suárez Madrid–Barajas Airport to San Sebastián Airport
- Ave. Duration
- 1h 10m
- When
- Every day
- Estimated price
- €40–290
Flights from Adolfo Suárez Madrid–Barajas Airport to Pamplona Airport
- Ave. Duration
- 1h 5m
- When
- Every day
- Estimated price
- €60–360
Flights from Adolfo Suárez Madrid–Barajas Airport to Bilbao Airport
- Ave. Duration
- 1h 5m
- When
- Every day
- Estimated price
- €29–120
Flights from Adolfo Suárez Madrid–Barajas Airport to Santander Airport
- Ave. Duration
- 1h 10m
- When
- Every day
- Estimated price
- €35–240
- Website
- aireuropa.com
Flights from Adolfo Suárez Madrid–Barajas Airport to Bilbao Airport
- Ave. Duration
- 1h 2m
- When
- Every day
- Estimated price
- €30–140
- Website
- volotea.com
Flights from Adolfo Suárez Madrid–Barajas Airport to Santander Airport
- Ave. Duration
- 1h 10m
- When
- Friday
- Estimated price
- €75–240
- Phone
- +34 91 232 03 20
- Website
- Renfe Viajeros
Train from Madrid Chamartín to Zumarraga
- Ave. Duration
- 4h 12m
- Frequency
- Every 4 hours
- Estimated price
- €60–90
- Website
- Renfe Viajeros
Train from Madrid-Principe Pio to Hernani Centro
- Ave. Duration
- 7h 23m
- Frequency
- Once daily
- Estimated price
- €80–120
- Website
- Renfe Viajeros
- Phone
- +34 912 32 03 20
- [email protected]
- Website
- Renfe Cercanias
Train from Zumarraga to Hernani-Erdia
- Ave. Duration
- 58 min
- Frequency
- Hourly
- Estimated price
- €3–7
- Website
- Renfe Cercanias
Train from San Sebastián-Donostia to Hernani-Erdia
- Ave. Duration
- 16 min
- Frequency
- Every 3 hours
- Estimated price
- €1–2
- Website
- Renfe Cercanias
- Phone
- +34 910 207 007
- Website
- ALSA
Bus from Madrid, Avenida de América to Estación de Autobuses Donostia-San Sebastián
- Ave. Duration
- 5h 25m
- Frequency
- Every 3 hours
- Estimated price
- €35–60
- Website
- ALSA
Bus from Pamplona to Estación de Autobuses Donostia-San Sebastián
- Ave. Duration
- 1h 15m
- Frequency
- Every 2 hours
- Estimated price
- €7–11
- Website
- ALSA
Bus from Estación de autobuses de Santander to Estación de Autobuses Donostia-San Sebastián
- Ave. Duration
- 2h 50m
- Frequency
- Every 4 hours
- Estimated price
- €17–27
- Website
- ALSA
- Phone
- +3 318 576 2228
- Website
- BlaBlaCar Bus
Bus from Madrid - Barajas Airport T4 to San Sebastián - Bus Station
- Ave. Duration
- 5h 20m
- Frequency
- 4 times a week
- Estimated price
- €30–55
- Website
- BlaBlaCar Bus
- Phone
- +34 900 121 400
- [email protected]
Bus from Airport Loiu Bilbao to Donostia / San Sebastián
- Ave. Duration
- 1h 20m
- Frequency
- Hourly
- Estimated price
- €11–17
- Schedules at
- gipuzkoa.avanzagrupo.com
- Book at
- online.pesa.net
Want to know more about travelling around Spain
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
Booking & Getting There
Madrid to Hernani bus services, operated by ALSA, arrive at Estación de Autobuses Donostia-San Sebastián station.
Madrid to Hernani train services, operated by Renfe Viajeros, arrive at Zumarraga station.
Yes, the driving distance between Madrid to Hernani is 446 km. It takes approximately 4h 33m to drive from Madrid to Hernani.
Book your Madrid to Hernani train tickets online with Omio.
There are 1662+ hotels available in Hernani.
















