The cheapest and fastest trains from Donostia-San Sebastian to Madrid
Cheapest price
$77
Average price
$96
Fastest journey
5 h 26 m
Average duration
7 h 17 m
Trains per day
5
Distance
352 km
The best way to find a cheap train ticket from Donostia-San Sebastian to Madrid is to book your journey as far in advance as possible and to avoid travelling at rush hour.
The average ticket from Donostia-San Sebastian to Madrid will cost around $96 if you buy it on the day, but you can find cheap train tickets today for only $77.
Of the 5 trains that leave Donostia-San Sebastian for Madrid every day 1 travel direct so it’s quite easy to avoid journeys where you’ll have to change along the way.
These direct trains cover the 352 km distance in an average of 7 h 17 m but if you time it right, some trains will get you there in just 5 h 26 m .
The slowest trains will take 9 h 30 m and usually involve a change or two along the way, but you might be able to save a few pennies if you’re on a budget.
041764:47 PM5h26Donostia-San Sebastián10:13 PMMadrid Chamartín$771One-way0 changes
18012+
0416211:01 AM9h30Donostia-San Sebastián8:31 PMMadrid Chamartín$781One-way1 change
04166 · 041622:10 PM6h21Donostia-San Sebastián8:31 PMMadrid Chamartín$971One-way1 change
04086+
051788:40 AM8h04Donostia-San Sebastián4:44 PMMadrid Chamartín$1141One-way1 change
04176 · 041924:47 PM7h05Donostia-San Sebastián11:52 PMMadrid Chamartín$1141One-way1 change
041764:47 PM5h26Donostia-San Sebastián10:13 PMMadrid Chamartín$771One-way0 changes
04166 · 041622:10 PM6h21Donostia-San Sebastián8:31 PMMadrid Chamartín$971One-way1 change
04176 · 041924:47 PM7h05Donostia-San Sebastián11:52 PMMadrid Chamartín$1141One-way1 change
04086+
051788:40 AM8h04Donostia-San Sebastián4:44 PMMadrid Chamartín$1141One-way1 change
18012+
0416211:01 AM9h30Donostia-San Sebastián8:31 PMMadrid Chamartín$781One-way1 change
Travel Information
Compare train, coach and flight for Donostia-San Sebastian to Madrid
Omio recommends booking the train as it is the most popular option from Donostia-San Sebastian to Madrid among Omio's users. If you are prioritising price take the train with prices starting from $31. For those with little time consider booking a flight which can get you there in 3h 2m. In case you are seeking to minimise your carbon footprint the train is your best bet as it emits only 0.1 - 0.3kg. The ticket price range depends on the travel mode: a train costs an average of $31, and a flight costs an average of $34.
Distance: 352 km
Compare train with
Most popular Train | Coach | Flight |
|---|---|---|
$56 Average Price Cheapest | $57 Average Price | $256 Average Price |
5h 41m Average total duration 5h 11m Onboard + 30m Additional time* | 7h 2m Average total duration 6h 32m Onboard + 30m Additional time* | 6h 2m Average total duration Fastest 3h 2m Onboard + 3h 0m Additional time* |
0.1 - 0.3kg CO2 emissions Lowest | 0.4 - 0.9kg CO2 emissions | 1.1 - 2.1kg CO2 emissions |
![]() Most popular train company | ![]() Most popular bus company | ![]() Most popular airline |
Direct Options | Direct Options | Direct Options |
Additional time: Average total travel duration to departure point, security checks and transfers.
Live departures
Donostia-San Sebastian to Madrid train times
The table below shows live departures for Donostia-San Sebastian to Madrid trains for tomorrow, Sunday, 3 May. You can also manually refresh the results below to see updated train journeys.
| Provider | Departs | Duration | Arrives | Changes | Tickets |
|---|---|---|---|---|---|
04086+ 05178 | Delayed 6:40 AM 8:40 AMDonostia-San Sebastián | 8h04 | 4:44 PM Madrid Chamartín | 1 change | |
18012+ 04162 | 11:01 AM Donostia-San Sebastián | 9h30 | 8:31 PM Madrid Chamartín | 1 change | |
04166 · 04162 | 2:10 PM Donostia-San Sebastián | 6h21 | 8:31 PM Madrid Chamartín | 1 change | |
04176 | 4:47 PM Donostia-San Sebastián | 5h26 | 10:13 PM Madrid Chamartín | 0 changesdirect | |
04176 · 04192 | 4:47 PM Donostia-San Sebastián | 7h05 | 11:52 PM Madrid Chamartín | 1 change |
Find all the dates and times for this journey
Compare prices and tickets Donostia-San Sebastian to Madrid by train, coach or flight
Compare train, coach and flight prices over the next three weeks. See the best deals at a glance, find the lowest fares, and choose the option that fits your budget.
02 May
03 May
04 May
05 May
06 May
07 May
08 May
09 May
10 May
11 May
12 May
13 May
14 May
15 May
16 May
17 May
18 May
19 May
20 May
21 May
22 May
Why should you book Donostia-San Sebastian to Madrid trains with Omio?
Why book with Omio vs Renfe ALVIA?
- Compare with other providers: On Omio, you can not only buy tickets for Renfe ALVIA, but also compare tickets for the likes of Renfe INTERCITY, Renfe MD or Renfe Viajeros to find the best option for your trip from Donostia-San Sebastian to Madrid.
- Designed for International Travelers: Omio is in your language including 24/7 customer service and offers multiple payment options, including PayPal, credit cards, and bank transfer, in your preferred currency.
- Compare all your options: Omio allows you to compare Renfe ALVIA with all available travel options, which are train, bus and flight to ensure you get the best deal for traveling from Donostia-San Sebastian to Madrid.
How far in advance should I book train tickets from Donostia-San Sebastian to Madrid?
Journey information
Overview: Train from Donostia-San Sebastian to Madrid
Trains from Donostia-San Sebastian to Madrid run on average 4 times per day, taking around 5h 11m. Cheap train tickets for this journey start at $31 if you book in advance.
There are 4 trains per day. The earliest train runs at 04:50, the last at 17:37. The fastest train covers the 352 km distance in 5h 5m.
Distance 352 km |
Average train duration 5h 11m |
Cheapest ticket price $31 |
Trains per day 4 |
Direct trains 4 |
Fastest train 5h 5m |
First train 4:50 AM |
Last train 5:37 PM |
Cheapest Month Feb |
Cheapest Day Sat |
High Season Apr - Jun |
Low Season Jan - Mar |
Busiest Day Wed |
Least Busy Day Sun |
Best time to book 91 days |
Train companies: Renfe ALVIA, Renfe INTERCITY, Renfe MD, Renfe Viajeros from Donostia-San Sebastian to Madrid trainsRenfe ALVIA, Renfe INTERCITY, Renfe MD, Renfe Viajeros trains will get you between Donostia-San Sebastian and Madrid from $31. With over 1000 travel companies on Omio, you can find the best train times and tickets for your trip.
Renfe ALVIA
Renfe INTERCITY
Renfe MD
Renfe Viajeros
FAQs: Donostia-San Sebastian to Madrid train
Find answers to the most common questions about traveling from Donostia-San Sebastian to Madrid by train. From journey times and ticket prices to direct connections, first and last departures, and even whether the route is scenic, our FAQs cover everything you need to plan your trip. Whether you’re looking for the fastest train, the cheapest option, or tips for making the most of your visit at Madrid, this guide helps you travel smarter and with confidence.

popular train stations
Important Stations and Airports in Donostia-San Sebastian and Madrid
- 6:00 AM - 10:00 PM Monday - Sunday
- Free
- The car park is open 7 days a week, with special rates arranged by nearby hotels.
- Restaurant Casa Mingo
- Café de Oriente
- Noodles King
- Outside the main entrance.
- Ramps.
- €0.60
- Hotel Príncipe Pío
- Acta Madfor Hotel
- Hotel Exe Moncloa
- Located in the main hall
- Avis
- Europcar
- Located in the main hall
- Free
- Hall 1: main entrance, platforms for regional and Cercanías trains
- Hall 2: Metro connections
- Metro: Line 6, Line 10
- Bus: Several lines available
- Cercanías: Lines C1, C7, C10
Most popular train connections from Donostia-San Sebastian
More options for your journey from Donostia-San Sebastian to Madrid
Here are some other resources that might have the information you need


