All Great Journeys Start With A Map 🌎 Try DOTS for free

Madrid to San Sebastián / Donostia Train

the dotted world map
12/02/2026
+ Add return
Stay with Booking.com

Download our App for free

Find the cheapest ticket for your trip

Secure your ticket today and get the best deals!

Today More
Tomorrow More
2 days More
3 days More

Madrid to San Sebastián / Donostia by train

The journey from Madrid to San Sebastián / Donostia by train is 352.77 km and takes 6 hrs 8 mins. There are 6 connections per day, with the first departure at 7:20 am and the last at 5:37 pm. It is possible to travel from Madrid to San Sebastián / Donostia by train for as little as $30.89 or as much as $78.65. The best price for this journey is $30.89.

Lowest Price $30.89
Journey Duration 6 hrs 8 mins
Connection per Day 6
Lowest Price $30.89
Highest Price $78.65
First Departure 7:20 am
Last Departure 5:37 pm
Distance 352.77 km
Departure Madrid
Arrival San Sebastián / Donostia
Carriers Renfe - Intercity, Renfe Viajeros

Be the first to have an
AI Travel Companion

Price as departure date approaches

Train companies may charge higher ticket prices as the date of departure approaches. Prices in the next days can range from around $25.37 to $88.25 but may be subject to change. Our advice is to book as early as possible to potentially save up to 71% on your trip!

Find the best day to travel to San Sebastián / Donostia by train

When travelling to San Sebastián / Donostia by train, if you want to avoid crowds you can check how frequently our customers are travelling in the next 30-days using the graph below. On average, the peak hours to travel are between 6:30am and 9am in the morning, or between 4pm and 7pm in the evening. Please keep this in mind when travelling to your point of departure as you may need some extra time to arrive, particularly in big cities!

Madrid to San Sebastián / Donostia CO2 Emissions by Train

Ecology
Train
24.69kg
Bus
26.46kg
Flight
70.55kg
Car
56.44kg
What are the CO2 emissions from Madrid to San Sebastián / Donostia by train? The CO2 emissions from taking the train between Madrid and San Sebastián / Donostia are 24.69kg.
How much CO2 do I save by taking the train between Madrid and San Sebastián / Donostia? By taking the train between Madrid and San Sebastián / Donostia you will save 45.86kg CO2 emissions compared to a flight, 1.77kg compared to a bus and 31.75kg compared to a car.

Anything we can improve?

Frequently Asked Questions

How much is a train ticket from Madrid to San Sebastián / Donostia?
A train ticket from Madrid to San Sebastián / Donostia is $52.89. However the price varies depending on how early you buy, and if it's peak time to travel. Occasionally you can find them for as cheap as $30.89.
What's the cheapest train ticket from Madrid to San Sebastián / Donostia?
The cheapest ticket you can get from Madrid to San Sebastián / Donostia is $30.89. We recommend booking as early as possible and off-peak hours to get the cheapest ticket possible. Off-peak times are usually from 09:30 to 16:00, and after 19:00.
What's the distance between Madrid and San Sebastián / Donostia by train?
Madrid to San Sebastián / Donostia is 352.77 km.
How long does the train between Madrid and San Sebastián / Donostia take?
Madrid to San Sebastián / Donostia is on average 6 hrs 8 mins. However the fastest option will get you there in 5 hrs 0 mins.
Which companies operate from Madrid to San Sebastián / Donostia?
The train journey from Madrid to San Sebastián / Donostia is covered by 3 operator(s). On Virail you can find these carriers that provide services on this route: Renfe - Intercity, Renfe Viajeros, Alvia and Renfe - Media Distancia.
How many train connections per day go from Madrid to San Sebastián / Donostia?
Madrid to San Sebastián / Donostia has 6 connection(s) per day on average.
What time does the first train from Madrid to San Sebastián / Donostia leave?
The earliest train from Madrid to San Sebastián / Donostia departs at 7:20 am. However be sure to check with us the schedule on the day you want to leave as the time may differ.
What time does the last train from Madrid to San Sebastián / Donostia depart?
The latest train from Madrid to San Sebastián / Donostia departs at 5:37 pm. However be sure to check with us the schedule on the day you want to leave as the time may differ.
Should I book my ticket from Madrid to San Sebastián / Donostia in advance?
If you can, we recommend booking your ticket as early as possible to ensure you get better savings. The cheapest train ticket we have found is $30.89 but this may be subject to change depending on the day of travel, hour you wish to depart and how far in advance you book.
How many direct connections depart from Madrid to San Sebastián / Donostia?
There are on average 6 direct connection(s) from Madrid to go to San Sebastián / Donostia.
What's the fastest journey time between Madrid to San Sebastián / Donostia by train?
The fastest journey time by train between Madrid and San Sebastián / Donostia is 5 hrs 0 mins.
Is there a direct train from Madrid to San Sebastián / Donostia?
Yes, there is a direct train between Madrid and San Sebastián / Donostia.
What are the CO2 emissions for Madrid to San Sebastián / Donostia by train?
The train journey from Madrid to San Sebastián / Donostia creates 24.69kg of CO2 emissions.

Go local from Madrid

Trending routes

Weekend getaways from Madrid

International routes from Madrid and nearby areas

Other destinations from Madrid

Main routes to San Sebastián / Donostia

Related routes

Other popular routes