Home / Spain / San Sebastián
San Sebastián to Madrid by train
Take the direct Intercity. It leaves at 05:26 and takes 5h 12m.
8 connections from San Sebastián to Madrid on Tuesday, 1 December 2026, 3 of them direct. The first leaves at 05:26 and the last at 20:33. 553 km by track, 61 km of it in tunnels.
On a rail pass you need a seat reservation for this train, from €8.6 in 2nd class. Reserve at Rail Europe
These are the times for the 05:26. It also leaves at 08:36 or 16:45.
These are the times for the 13:55.
These are the times for the 11:01.
These are the times for the 06:53.
Every connection, day by day
Open a connection for platforms, stops, facilities and booking. Connections with a long wait are hidden until you ask for them.
05:26 to 10:385h 12mDirect, Renfe
6 stops
- 05:57 Tolosa
- 06:29 Zumarraga
- 07:15 Vitoria/Gasteiz
- 07:40 Miranda de Ebro
- 08:46 Burgos Rosa de Lima
- 09:31 Valladolid
Tickets from Renfe
06:53 to 13:446h 51mChange at Zaragoza-Delicias, 37m
6 stops
- 07:53 Zumarraga
- 08:20 Alsasua
- 08:58 Pamplona
- 09:29 Tafalla
- 10:01 Castejon de Ebro
- 10:18 Tudela de Navarra
2 stops
- 12:10 Calatayud
- 13:04 Guadalajara Yebes
Tickets from Renfe
08:36 to 13:515h 15mDirect, Renfe
7 stops
- 09:03 Tolosa
- 09:33 Zumarraga
- 10:21 Vitoria/Gasteiz
- 10:46 Miranda de Ebro
- 11:50 Burgos Rosa de Lima
- 12:41 Valladolid
- 13:20 Segovia Guiomar
Tickets from Renfe
11:01 to 17:126h 11mChange at Valladolid, 15m
18 stops
- 11:13 Hernani Centro
- 11:22 Andoain Centro
- 11:27 Billabona Zizurkil
- 11:35 Tolosa
- 11:52 Ordizia
- 11:55 Beasain
- 12:10 Zumarraga
- 12:15 Legazpia
- 12:36 Alsasua
- 12:45 Araya
- 12:50 Salvatierra de Alava
- 12:57 Alegria de Alava
- 13:05 Vitoria/Gasteiz
- 13:26 Miranda de Ebro
- 13:55 Briviesca
- 14:24 Burgos Rosa de Lima
- 15:22 Palencia
- 15:36 Venta de Banos
Tickets from Renfe
11:30 to 17:586h 28m2 changes at Vitoria/Gasteiz and Palencia
2 stops
- 12:13 Zumarraga
- 12:43 Alsasua
2 stops
- 14:24 Miranda de Ebro
- 15:28 Burgos Rosa de Lima
1 stops
- 16:56 Valladolid
Tickets from Renfe
13:55 to 20:006h 05mChange at Palencia, 19m
16 stops
- 14:08 Hernani Centro
- 14:17 Andoain Centro
- 14:22 Billabona Zizurkil
- 14:29 Tolosa
- 14:46 Ordizia
- 14:49 Beasain
- 15:04 Zumarraga
- 15:09 Legazpia
- 15:30 Alsasua
- 15:39 Araya
- 15:44 Salvatierra de Alava
- 15:51 Alegria de Alava
- 15:59 Vitoria/Gasteiz
- 16:20 Miranda de Ebro
- 16:49 Briviesca
- 17:19 Burgos Rosa de Lima
2 stops
- 18:56 Valladolid
- 19:32 Segovia Guiomar
Tickets from Renfe
16:45 to 22:205h 35mDirect, Renfe
7 stops
- 17:11 Tolosa
- 17:40 Zumarraga
- 18:32 Vitoria/Gasteiz
- 18:57 Miranda de Ebro
- 20:18 Burgos Rosa de Lima
- 21:09 Valladolid
- 21:48 Segovia Guiomar
Tickets from Renfe
20:33 to 11:28+114h 55m1 change at Miranda de Ebro, overnight wait at Miranda de Ebro
12 stops
- 21:00 Tolosa
- 21:17 Ordizia
- 21:20 Beasain
- 21:35 Zumarraga
- 21:39 Legazpia
- 22:02 Alsasua
- 22:10 Araya
- 22:15 Salvatierra de Alava
- 22:22 Alegria de Alava
- 22:32 Vitoria/Gasteiz
- 22:45 Nanclares
- 22:50 La Puebla de Arganzon
3 stops
- 09:31 Burgos Rosa de Lima
- 10:20 Valladolid
- 10:58 Segovia Guiomar
Tickets from Renfe
The line
- By track
- 553 km
- In tunnels
- 61 km · 11%
- Long bridges
- 7
Tunnels over 1 km
9, 58.4 km in all, the longest 28.7 km. In order:
- Madril-Hendaia trenbidea10.3
- Túnel de Peña Rayada2.0
- Túnel de Tabladillo2.5
- Túnel de la Puentecilla1.8
- Túnel ferroviario de Guadarrama28.7
- Túneles del Cerro de San Pedro8.8
And 3 more with no name on the map, 4.2 km.
Bridges
7, 6.6 km in all, the longest 1.8 km. In order:
- Viaducto Arroyo del Valle1.8
And 6 more with no name on the map, 4.7 km.
For the fastest connection. Lengths in km.
On board
What each train on this trip lists in the timetable.
| Train | Wheelchair | Assistance |
|---|---|---|
| Alvia6 trains, such as San Sebastián to Madrid-Chamartin | Some | |
| AVE4 trains, such as Zaragoza-Delicias to Madrid-Puerta de Atocha | ||
| Intercity3 trains, such as San Sebastián to Madrid-Chamartin | Some | |
| Train2 trains, such as San Sebastián to Palencia | ||
| RegionalSan Sebastián to Miranda de Ebro |
“Some” means the timetable lists it for some trains of that kind, not all of them.
Part of these journeys
Down the Atlantic side through Bordeaux and the Basque Country, or along the Mediterranean through Barcelona, to Andalusia.
Questions about this trip
- How long is the train from San Sebastián to Madrid?
- The fastest connection takes 5h 12m. Across the day, connections take between 5h 12m and 14h 55m, depending on the train and the connections.
- Is there a direct train from San Sebastián to Madrid?
- Yes. 3 of the 8 connections on Tuesday, 1 December 2026 are direct, with no change of train.
- What time is the first and last train?
- On Tuesday, 1 December 2026 the first train leaves San Sebastián at 05:26 and the last at 20:33.
- Do I need a seat reservation?
- 8 of the 8 connections include a train where a reservation is required, from €8.6. Interrail and Eurail pass holders also need one on those trains.
- How far is it?
- 553 km along the track the fastest connection takes, 61 km of it in tunnels.
Times are for Tuesday, 1 December 2026. Timetables change, so check with the train operator before you travel.
Reviews
Thanks for your review. We read every one before it goes up.
Your review couldn't be sent. Please check the form and try again.
No reviews of this trip yet. Been? Yours could be the first.
Write a review
Sources
- Train times, routes, platforms and services: the Interrail timetable, checked on 27 November 2026, with dates up to 12 December 2026.
- The track on the map, its length, tunnels, bridges and water, station facilities, and lines and walks between stations: © OpenStreetMap contributors, available under the Open Database Licence. It may be incomplete; walking times are estimates.