Subscribe to receive top tips, train news and travel inspiration straight to your inbox
Madrid to San Sebastián by train
-
Cheapest Price €6.86
-
30 days in advance €42.84
-
7 days in advance €51.84
-
First train07:15
-
Last train17:40
-
Avg changes0
-
Fastest journey4hr 47m
-
Distance353 kilometres
-
Trains per day15
-
Avg. journey time6hr 27m
-
Train operators
Madrid to San Sebastián train travel explained
Want to know how to get from Madrid to San Sebastián by train? We have gathered for you all the useful information about this trip!
The fastest trains from Madrid to San Sebastián take around 4 hours and 47 minutes, covering a distance of approximately 353 kilometres.
On weekdays, the first train leaving Madrid is scheduled to depart at around 07:15. The last departure is usually at around 17:40. This is the same as during the weekend. There are frequent services on this particular rail route. On average, there are about 15 trains per day travelling between the two cities. They leave approximately every 10 minutes.
Prices for a single ticket between the two cities start from €6.86.
We think any time is a great time to visit San Sebastián, as each season has its own unique charm. Nevertheless, please make sure you check the local weather and average seasonal temperatures at destination before deciding on your holiday.
For more tips to help you plan your journey, check out our help articles, or read our guide to San Sebastián.
Is there a direct train from Madrid to San Sebastián?
Yes, there is a direct train from Madrid to San Sebastián.
How long does it take to travel from Madrid to San Sebastián?
The Madrid to San Sebastián train travel takes about 4 hours and 47 minutes, no matter when you leave.
What are the Madrid to San Sebastián train times and schedule?
If you're travelling on a weekday, you'll find the earliest train to San Sebastián leaving Madrid at around 07:15 and the last train leaving at around 17:40. This is the same at the weekend.
Other journeys to San Sebastián/Donostia View all journeys to San Sebastián/Donostia
-
From London to San Sebastián/Donostia From €189.43
-
From Hendaye to San Sebastián/Donostia From €5.74
-
From Barcelona to San Sebastián/Donostia From €6.86
-
From Irun to San Sebastián/Donostia From €10.28
-
From Bordeaux to San Sebastián/Donostia From €148.24
-
From Zaragoza to San Sebastián/Donostia From €13.71
-
From Palencia to San Sebastián/Donostia From €30.85
-
From Pamplona/Iruña to San Sebastián/Donostia From €13.28
-
From Paris to San Sebastián/Donostia From €197.52
-
From Valladolid to San Sebastián/Donostia From €38.13
Other journeys from San Sebastián/Donostia
-
From San Sebastián/Donostia to Barcelona From €53.98
-
From San Sebastián/Donostia to Hendaye From €10.33
-
From San Sebastián/Donostia to Palencia From €24.85
-
From San Sebastián/Donostia to Zaragoza From €6.86
-
From San Sebastián/Donostia to Valladolid From €13.71
-
From San Sebastián/Donostia to Miranda de Ebro From €11.14
-
From San Sebastián/Donostia to Irun From €2.57
-
From San Sebastián/Donostia to Pamplona/Iruña From €13.28
-
From San Sebastián/Donostia to Bilbao-Abando From €22.28
-
From San Sebastián/Donostia to Seville From €27.42
Other journeys from Madrid
-
From Madrid to Barcelona From €5.57
-
From Madrid to Valencia From €5.57
-
From Madrid to Córdoba From €9.43
-
From Madrid to Ronda From €6.86
-
From Madrid to Granada From €6.86
-
From Madrid to Santiago de Compostela From €10.71
-
From Madrid to Almería From €20.99
-
From Madrid to Bilbao-Abando From €6.86
-
From Madrid to Seville From €13.71
-
From Madrid to Málaga-María Zambrano From €9.43
-
From Madrid to Toledo From €14.35
-
From Madrid to Salamanca From €18.85
Alvia or Media Distancia
It is very easy to travel by train from Madrid to San Sebastián. On most days, there are Alvia trains and slower Media Distancia (MD) services linking the two cities.
The fast Alvia trains cut through the hills north-west of Madrid in a long tunnel. If you are interested in some beautiful Spanish landscape, you might prefer the slower option, for the rail route over the Sierra de Guadarrama is one of the most beautiful in Spain. It’ll add two hours to your journey time but the views are worth it.
Madrid to San Sebastián/Donostia

Choose between a high-speed Alvia train and slower Media Distancia train to travel directly from Madrid Chamartín station to San Sebastián. Fast Alvia trains stop six to seven times along the way, including Burgos. Media Distancia trains stop at least 20 times.