Skip to content

Train Madrid → San Sebastián

Schedule & travel time

5h 10m 458 km 4 trains/day
ALVIA

Route overview

5h 10m

Fastest time

5h 30m

Avg. duration

458

Kilometers

4

Trains per day

Accommodation

Hotels in San Sebastián

Compare hotels, apartments and vacation rentals on a map, we earn a small commission at no cost to you.

An interactive map of accommodation in San Sebastián, loaded from Stay22.

One click enables only the Stay22 cookie. Other cookies stay untouched.

By train from Madrid to San Sebastián

An important rail connection: The train connection from Madrid to San Sebastián is one of the important rail routes in Germany. On the ALVIA you reach your destination in just 5h 10m and can travel in comfort.

The route covers a distance of 458 kilometers and is served by about 4 trains every day. The regular service gives you plenty of options when planning your trip.

Trains travel via Burgos, Vitoria. These intermediate stops give you the option to transfer or break your journey if needed. The total distance is 458 kilometers.

Route overview

Infrastructure: Konventionelle Strecke

Route highlights

  • Kulinarische Hauptstadt Spaniens
  • Baskische Küste
More route details

Available train types

This route is served by ALVIA.

Travel sustainably

Taking the train from Madrid to San Sebastián saves you about 73 kg of CO₂ per trip compared with driving. Versus flying you save as much as 112 kg of CO₂. Rail is the most sustainable way to cover this route.

Travel tips
  • Book online: bahn.de shows all connections, fares, and BahnCard discounts in one place.
  • Use a BahnCard: Benefit from discounts and exclusive Deutsche Bahn services.

Frequently asked questions

How long is the train journey from Madrid to San Sebastián?

The fastest connection from Madrid to San Sebastián takes 5h 10m. The average travel time is 5h 30m.

How many trains run daily from Madrid to San Sebastián?

About 4 trains run daily on the Madrid - San Sebastián route. Train types include ALVIA.

What is the route from Madrid to San Sebastián?

Trains travel via Burgos, Vitoria. The total distance is 458 km.

Preistrend

Rate this route

How was your experience on the Madrid → San Sebastián route?

Comfort
Punctuality
Value for money

Book Connections & Tickets

Booking takes place on our partner websites (Omio, FlixBus, Trainline).

Recommended

Omio Comparison

Compare Connection — 800+ providers via Omio

Compare train, bus & flight
All routes at a glance
International connections
800+ providers via Omio
Go to Omio
Compare
"We recommend Omio to compare all available transport options (rail, bus, flight) at a glance."
Low price
FlixBus & FlixTrain

Bus & train at low prices

Go to FlixBus
Book Now
Trainline

Book trains & buses across Europe

Go to Trainline

* We receive a small commission for bookings through our links. This does not affect the price for you. Learn more

Schedule data last updated: 20/05/2026 · Live data refreshed in real time

Notice: All information on this page (Travel times, Frequencies, Connections) is provided without guarantee and may change at any time. For current and binding information, please visit the official provider websites. This website is not affiliated with Deutsche Bahn AG or other railway companies.

Last update: April 2026

Sources & More Information:

  • Omio – Compare Providers
  • Omio – Price comparison for train, bus and flight