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

San SebastiánMadrid-Puerta de AtochaZaragoza-DeliciasZumarragaAlsasuaPamplonaTafallaCastejon de EbroTudela de NavarraCalatayudGuadalajara YebesSan SebastiánMadrid-ChamartinValladolidTolosaZumarragaAlsasuaArayaVitoria/GasteizBriviescaBurgos Rosa de LimaPalenciaSan SebastiánMadrid-ChamartinPalenciaTolosaZumarragaAlsasuaArayaVitoria/GasteizBriviescaBurgos Rosa de LimaValladolidSan SebastiánMadrid-ChamartinTolosaZumarragaVitoria/GasteizMiranda de EbroBurgos Rosa de LimaValladolid
Drawn along the track, © OpenStreetMap contributors.
5h 12mDirect Intercity, the fastest of 3 a day
IC 4056
05:57Tolosa
06:29Zumarraga
07:15Vitoria/Gasteiz
07:40Miranda de Ebro
08:46Burgos Rosa de Lima
09:31Valladolid

These are the times for the 05:26. It also leaves at 08:36 or 16:45.

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
IC 4056, Renfe Viajeros S.M.E., S.A., towards Madrid-Chamartin, 5h 12m
6 stops
  1. 05:57 Tolosa
  2. 06:29 Zumarraga
  3. 07:15 Vitoria/Gasteiz
  4. 07:40 Miranda de Ebro
  5. 08:46 Burgos Rosa de Lima
  6. 09:31 Valladolid
Wheelchair space
Reservation required: €8.6 in 2nd class. Reserve with a pass at Rail Europe

Tickets from Renfe

06:53 to 13:446h 51mChange at Zaragoza-Delicias, 37m
AVE 533, Renfe Viajeros S.M.E., S.A., towards Barcelona-Sants, 4h 13m
6 stops
  1. 07:53 Zumarraga
  2. 08:20 Alsasua
  3. 08:58 Pamplona
  4. 09:29 Tafalla
  5. 10:01 Castejon de Ebro
  6. 10:18 Tudela de Navarra
Wheelchair space
Reservation required: €12 in 2nd class. Reserve with a pass at Rail Europe
11:06 Zaragoza-Delicias
Change trains at Zaragoza-Delicias, 37m
11:43 Zaragoza-Delicias
AVE 3304, Renfe Viajeros S.M.E., S.A., towards Madrid-Puerta de Atocha, 2h 01m
2 stops
  1. 12:10 Calatayud
  2. 13:04 Guadalajara Yebes
Wheelchair spaceAssistance for disabled travellers
Reservation required: €12 in 2nd class. Reserve with a pass at Rail Europe

Tickets from Renfe

08:36 to 13:515h 15mDirect, Renfe
AVE 4086, Renfe Viajeros S.M.E., S.A., towards Madrid-Chamartin, 5h 15m
7 stops
  1. 09:03 Tolosa
  2. 09:33 Zumarraga
  3. 10:21 Vitoria/Gasteiz
  4. 10:46 Miranda de Ebro
  5. 11:50 Burgos Rosa de Lima
  6. 12:41 Valladolid
  7. 13:20 Segovia Guiomar
Wheelchair space
Reservation required: €12 in 2nd class. Reserve with a pass at Rail Europe

Tickets from Renfe

11:01 to 17:126h 11mChange at Valladolid, 15m
Train, Renfe Viajeros S.M.E., S.A., towards Madrid-Principe Pio, 5h 00m
18 stops
  1. 11:13 Hernani Centro
  2. 11:22 Andoain Centro
  3. 11:27 Billabona Zizurkil
  4. 11:35 Tolosa
  5. 11:52 Ordizia
  6. 11:55 Beasain
  7. 12:10 Zumarraga
  8. 12:15 Legazpia
  9. 12:36 Alsasua
  10. 12:45 Araya
  11. 12:50 Salvatierra de Alava
  12. 12:57 Alegria de Alava
  13. 13:05 Vitoria/Gasteiz
  14. 13:26 Miranda de Ebro
  15. 13:55 Briviesca
  16. 14:24 Burgos Rosa de Lima
  17. 15:22 Palencia
  18. 15:36 Venta de Banos
Wheelchair space
Reservation required: €6 in 2nd class. Reserve with a pass at Rail Europe
Change trains at Valladolid, 15m
AVE 5170, Renfe Viajeros S.M.E., S.A., towards Valencia Joaquin Sorolla, 56m
Wheelchair spaceAssistance for disabled travellers
Reservation required: €12 in 2nd class. Reserve with a pass at Rail Europe

Tickets from Renfe

11:30 to 17:586h 28m2 changes at Vitoria/Gasteiz and Palencia
IC 281, Renfe Viajeros S.M.E., S.A., towards Vitoria/Gasteiz, 2h 05m
2 stops
  1. 12:13 Zumarraga
  2. 12:43 Alsasua
Reservation required: €8.6 in 2nd class. Reserve with a pass at Rail Europe
13:35 Vitoria/Gasteiz
Change trains at Vitoria/Gasteiz, 28m
14:03 Vitoria/Gasteiz
AVE 622, Renfe Viajeros S.M.E., S.A., towards Leon, 2h 05m
2 stops
  1. 14:24 Miranda de Ebro
  2. 15:28 Burgos Rosa de Lima
Wheelchair spaceAssistance for disabled travellers
Reservation required: €12 in 2nd class. Reserve with a pass at Rail Europe
16:08 Palencia
Change trains at Palencia, 18m
16:26 Palencia
AVE 4142, Renfe Viajeros S.M.E., S.A., towards Madrid-Chamartin, 1h 32m
1 stops
  1. 16:56 Valladolid
Wheelchair space
Reservation required: €12 in 2nd class. Reserve with a pass at Rail Europe

Tickets from Renfe

13:55 to 20:006h 05mChange at Palencia, 19m
Train, Renfe Viajeros S.M.E., S.A., towards Madrid-Principe Pio, 4h 19m
16 stops
  1. 14:08 Hernani Centro
  2. 14:17 Andoain Centro
  3. 14:22 Billabona Zizurkil
  4. 14:29 Tolosa
  5. 14:46 Ordizia
  6. 14:49 Beasain
  7. 15:04 Zumarraga
  8. 15:09 Legazpia
  9. 15:30 Alsasua
  10. 15:39 Araya
  11. 15:44 Salvatierra de Alava
  12. 15:51 Alegria de Alava
  13. 15:59 Vitoria/Gasteiz
  14. 16:20 Miranda de Ebro
  15. 16:49 Briviesca
  16. 17:19 Burgos Rosa de Lima
Wheelchair space
Reservation required: €6 in 2nd class. Reserve with a pass at Rail Europe
18:14 Palencia
Change trains at Palencia, 19m
18:33 Palencia
AVE 5200, Renfe Viajeros S.M.E., S.A., towards Valencia Joaquin Sorolla, 1h 27m
2 stops
  1. 18:56 Valladolid
  2. 19:32 Segovia Guiomar
Wheelchair spaceAssistance for disabled travellers
Reservation required: €12 in 2nd class. Reserve with a pass at Rail Europe

Tickets from Renfe

16:45 to 22:205h 35mDirect, Renfe
AVE 4176, Renfe Viajeros S.M.E., S.A., towards Madrid-Chamartin, 5h 35m
7 stops
  1. 17:11 Tolosa
  2. 17:40 Zumarraga
  3. 18:32 Vitoria/Gasteiz
  4. 18:57 Miranda de Ebro
  5. 20:18 Burgos Rosa de Lima
  6. 21:09 Valladolid
  7. 21:48 Segovia Guiomar
Wheelchair space
Reservation required: €12 in 2nd class. Reserve with a pass at Rail Europe

Tickets from Renfe

20:33 to 11:28+114h 55m1 change at Miranda de Ebro, overnight wait at Miranda de Ebro
RE 16004, Renfe Viajeros S.M.E., S.A., towards Miranda de Ebro, 2h 30m
12 stops
  1. 21:00 Tolosa
  2. 21:17 Ordizia
  3. 21:20 Beasain
  4. 21:35 Zumarraga
  5. 21:39 Legazpia
  6. 22:02 Alsasua
  7. 22:10 Araya
  8. 22:15 Salvatierra de Alava
  9. 22:22 Alegria de Alava
  10. 22:32 Vitoria/Gasteiz
  11. 22:45 Nanclares
  12. 22:50 La Puebla de Arganzon
Wheelchair space
23:03 Miranda de Ebro
Change trains at Miranda de Ebro, 9h 35m
08:38 Miranda de Ebro
AVE 4186, Renfe Viajeros S.M.E., S.A., towards Madrid-Chamartin, 2h 50m
3 stops
  1. 09:31 Burgos Rosa de Lima
  2. 10:20 Valladolid
  3. 10:58 Segovia Guiomar
Wheelchair spaceAssistance for disabled travellers
Reservation required: €12 in 2nd class. Reserve with a pass at Rail Europe

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:

  1. Madril-Hendaia trenbidea10.3
  2. Túnel de Peña Rayada2.0
  3. Túnel de Tabladillo2.5
  4. Túnel de la Puentecilla1.8
  5. Túnel ferroviario de Guadarrama28.7
  6. 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:

  1. 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.

TrainWheelchairAssistance
Alvia6 trains, such as San Sebastián to Madrid-ChamartinSome
AVE4 trains, such as Zaragoza-Delicias to Madrid-Puerta de Atocha
Intercity3 trains, such as San Sebastián to Madrid-ChamartinSome
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

Paris to Seville by train

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

Overall*
Punctuality
Comfort
Cleanliness
On-board facilities
Scenery
Value for money
Photos
Checked before it appears.

Sources

  1. Train times, routes, platforms and services: the Interrail timetable, checked on 27 November 2026, with dates up to 12 December 2026.
  2. 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.
San Sebastián to Madrid train: 5h 12m, 8 a day