Home / Spain / Madrid

Madrid to San Sebastián by train

Take the direct Intercity. It leaves at 14:50 and takes 5h 04m.

6 connections from Madrid to San Sebastián on Tuesday, 1 December 2026, 3 of them direct. The first leaves at 06:55 and the last at 19:54. 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

Madrid-ChamartinSan SebastiánPalenciaVitoria/GasteizSegovia GuiomarValladolidBurgos Rosa de LimaMiranda de EbroAlsasuaZumarragaMadrid-ChamartinSan SebastiánValladolidSegovia GuiomarVenta de BanosPalenciaBurgos Rosa de LimaBriviescaMiranda de EbroVitoria/GasteizAlsasuaMadrid-ChamartinSan SebastiánValladolidBurgos Rosa de LimaMiranda de EbroVitoria/GasteizZumarragaTolosa
Drawn along the track, © OpenStreetMap contributors.
5h 04mDirect Intercity, the fastest of 3 a day
IC 4257
15:48Valladolid
16:32Burgos Rosa de Lima
17:31Miranda de Ebro
17:57Vitoria/Gasteiz
18:45Zumarraga
19:21Tolosa

These are the times for the 14:50. It also leaves at 06:55 or 17:48.

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.

06:55 to 12:325h 37mDirect, Renfe
AVE 4087, Renfe Viajeros S.M.E., S.A., towards Irun, 5h 37m
6 stops
  1. 07:22 Segovia Guiomar
  2. 07:59 Valladolid
  3. 08:48 Burgos Rosa de Lima
  4. 09:57 Miranda de Ebro
  5. 10:38 Vitoria/Gasteiz
  6. 11:27 Zumarraga
Wheelchair space
Reservation required: €12 in 2nd class. Reserve with a pass at Rail Europe

Tickets from Renfe

10:15 to 16:436h 28mChange at Valladolid, 30m
AVN 8109, Renfe Viajeros S.M.E., S.A., towards Valladolid, 1h 05m
1 stops
  1. 10:42 Segovia Guiomar
Wheelchair spaceAssistance for disabled travellers
Reservation required: €6 in 2nd class. Reserve with a pass at HappyRail
Change trains at Valladolid, 30m
Train, Renfe Viajeros S.M.E., S.A., towards Irun, 4h 53m
18 stops
  1. 12:14 Venta de Banos
  2. 12:25 Palencia
  3. 13:17 Burgos Rosa de Lima
  4. 13:46 Briviesca
  5. 14:14 Miranda de Ebro
  6. 14:37 Vitoria/Gasteiz
  7. 14:46 Alegria de Alava
  8. 14:53 Salvatierra de Alava
  9. 14:58 Araya
  10. 15:07 Alsasua
  11. 15:28 Legazpia
  12. 15:33 Zumarraga
  13. 15:48 Beasain
  14. 15:51 Ordizia
  15. 16:07 Tolosa
  16. 16:13 Billabona Zizurkil
  17. 16:19 Andoain Centro
  18. 16:29 Hernani Centro
Wheelchair space
Reservation required: €6 in 2nd class. Reserve with a pass at Rail Europe

Tickets from Renfe

11:23 to 18:507h 27m2 changes at Palencia and Vitoria/Gasteiz
AVL 4121, Renfe Viajeros S.M.E., S.A., towards Gijon, 1h 25m
2 stops
  1. 11:49 Segovia Guiomar
  2. 12:23 Valladolid
Wheelchair space
12:48 Palencia
Change trains at Palencia, 1h 31m
14:19 Palencia
AVE 621, Renfe Viajeros S.M.E., S.A., towards Barcelona-Sants, 2h 02m
2 stops
  1. 14:53 Burgos Rosa de Lima
  2. 15:55 Miranda de Ebro
Wheelchair space
Reservation required: €12 in 2nd class. Reserve with a pass at Rail Europe
16:21 Vitoria/Gasteiz
Change trains at Vitoria/Gasteiz, 24m
16:45 Vitoria/Gasteiz
IC 282, Renfe Viajeros S.M.E., S.A., towards San Sebastián, 2h 05m
2 stops
  1. 17:23 Alsasua
  2. 17:53 Zumarraga
Reservation required: €8.6 in 2nd class. Reserve with a pass at Rail Europe

Tickets from Renfe

14:50 to 19:545h 04mDirect, Renfe
IC 4257, Renfe Viajeros S.M.E., S.A., towards Irun, 5h 04m
6 stops
  1. 15:48 Valladolid
  2. 16:32 Burgos Rosa de Lima
  3. 17:31 Miranda de Ebro
  4. 17:57 Vitoria/Gasteiz
  5. 18:45 Zumarraga
  6. 19:21 Tolosa
Wheelchair space
Reservation required: €8.6 in 2nd class. Reserve with a pass at Rail Europe

Tickets from Renfe

17:48 to 23:045h 16mDirect, Renfe
AVE 4167, Renfe Viajeros S.M.E., S.A., towards Irun, 5h 16m
7 stops
  1. 18:14 Segovia Guiomar
  2. 18:52 Valladolid
  3. 19:42 Burgos Rosa de Lima
  4. 20:44 Miranda de Ebro
  5. 21:13 Vitoria/Gasteiz
  6. 22:00 Zumarraga
  7. 22:32 Tolosa
Wheelchair space
Reservation required: €12 in 2nd class. Reserve with a pass at Rail Europe

Tickets from Renfe

19:54 to 10:48+114h 54m2 changes at Burgos Rosa de Lima and Vitoria/Gasteiz, overnight wait at Vitoria/Gasteiz
AVE 5171, Renfe Viajeros S.M.E., S.A., towards Burgos Rosa de Lima, 1h 35m
1 stops
  1. 20:48 Valladolid
Wheelchair spaceAssistance for disabled travellers
Reservation required: €12 in 2nd class. Reserve with a pass at Rail Europe
21:29 Burgos Rosa de Lima
Change trains at Burgos Rosa de Lima, 14m
21:43 Burgos Rosa de Lima
Train, Renfe Viajeros S.M.E., S.A., towards Alsasua, 1h 17m
2 stops
  1. 22:10 Briviesca
  2. 22:38 Miranda de Ebro
Wheelchair space
Reservation required: €6 in 2nd class. Reserve with a pass at Rail Europe
23:00 Vitoria/Gasteiz
Change trains at Vitoria/Gasteiz, 9h 45m
08:45 Vitoria/Gasteiz
RE 16001, Renfe Viajeros S.M.E., S.A., towards Irun, 2h 03m
12 stops
  1. 08:52 Alegria de Alava
  2. 08:59 Salvatierra de Alava
  3. 09:04 Araya
  4. 09:13 Alsasua
  5. 09:34 Legazpia
  6. 09:38 Zumarraga
  7. 09:52 Beasain
  8. 09:55 Ordizia
  9. 10:12 Tolosa
  10. 10:19 Billabona Zizurkil
  11. 10:24 Andoain Centro
  12. 10:34 Hernani Centro
Wheelchair space

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

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
Alvia3 trains, such as Madrid-Chamartin to San Sebastián
Train2 trains, such as Valladolid to San Sebastián
Intercity2 trains, such as Madrid-Chamartin to San SebastiánSome
AvantMadrid-Chamartin to Valladolid
AVLOMadrid-Chamartin to Palencia
AVEMadrid-Chamartin to Burgos Rosa de Lima
RegionalVitoria/Gasteiz to San Sebastián

“Some” means the timetable lists it for some trains of that kind, not all of them.

Questions about this trip

How long is the train from Madrid to San Sebastián?
The fastest connection takes 5h 04m. Across the day, connections take between 5h 04m and 14h 54m, depending on the train and the connections.
Is there a direct train from Madrid to San Sebastián?
Yes. 3 of the 6 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 Madrid at 06:55 and the last at 19:54.
Do I need a seat reservation?
6 of the 6 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.
Madrid to San Sebastián train: 5h 04m, 6 a day