The cheapest and fastest trains from Donostia-San Sebastian to Madrid
Cheapest price
€49
Average price
€67
Fastest journey
5 h 18 m
Average duration
6 h 20 m
Trains per day
13
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 traveling at rush hour.
The average ticket from Donostia-San Sebastian to Madrid will cost around €67 if you buy it on the day, but the cheapest tickets can be found for only €49.
Of the 13 trains that leave Donostia-San Sebastian for Madrid on Sat, Jun 27, 4 travel direct so it’s quite easy to avoid journeys where you’ll have to change along the way.
On Sat, Jun 27 the direct trains cover the 352 km distance in an average of 6 h 20 m but if you time it right, some trains will get you there in just 5 h 18 m .
On Sat, Jun 27 the slowest trains will take 7 h 9 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.
180141:55 PM7h47Donostia-San Sebastián9:42 PMMadrid Príncipe Pío€491One-way0 transfers
1801211:01 AM7h54Donostia-San Sebastián6:55 PMMadrid Príncipe Pío€491One-way0 transfers
041764:47 PM5h33Donostia-San Sebastián10:20 PMMadrid Chamartín€541One-way0 transfers
040868:40 AM5h18Donostia-San Sebastián1:58 PMMadrid Chamartín€541One-way0 transfers
18014+
081981:55 PM6h58Donostia-San Sebastián8:53 PMMadrid Chamartín€681One-way1 transfer
040868:40 AM5h18Donostia-San Sebastián1:58 PMMadrid Chamartín€541One-way0 transfers
041764:47 PM5h33Donostia-San Sebastián10:20 PMMadrid Chamartín€541One-way0 transfers
04086+
081488:40 AM6h42Donostia-San Sebastián3:22 PMMadrid Chamartín€851One-way1 transfer
18014+
081981:55 PM6h58Donostia-San Sebastián8:53 PMMadrid Chamartín€681One-way1 transfer
18012+
0414211:01 AM7h09Donostia-San Sebastián6:10 PMMadrid Chamartín€751One-way1 transfer
Travel Information
Compare train, bus, 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 €19. For those with little time consider booking a flight which can get you there in 3h 4m. 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 €19, and a flight costs an average of €49.
Distance: 352 km
Compare train with
Most popular Train | Bus | Flight |
|---|---|---|
€41 Average price Cheapest | €45 Average price | €230 Average price |
5h 39m Average total duration 5h 9m Onboard + 30m Additional time* | 7h 3m Average total duration 6h 33m Onboard + 30m Additional time* | 6h 4m Average total duration Fastest 3h 4m 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 today, Friday, June 26. You can also manually refresh the results below to see updated train journeys.
| Provider | Departs | Duration | Arrives | Transfers | Tickets |
|---|---|---|---|---|---|
18012+ 08168 | On time 11:01 AM Donostia-San Sebastián | 6h55 | 5:56 PM Madrid Chamartín | 1 transfer | |
18012+ 05792 | On time 11:01 AM Donostia-San Sebastián | 8h06 | 7:07 PM Madrid Chamartín | 1 transfer | |
18012 | On time 11:01 AM Donostia-San Sebastián | 7h54 | 6:55 PM Madrid Príncipe Pío | 0 transfersDirect | |
18012+ 08178 | On time 11:01 AM Donostia-San Sebastián | 8h01 | 7:02 PM Madrid Chamartín | 1 transfer | |
18014 | Delayed 1:55 PM Donostia-San Sebastián | 7h47 | 7:42 PM 7:42 PMMadrid Príncipe Pío | 0 transfersDirect | |
18014+ 08198 | On time 1:55 PM Donostia-San Sebastián | 6h58 | 8:53 PM Madrid Chamartín | 1 transfer | |
18014+ 08208 | On time 1:55 PM Donostia-San Sebastián | 7h52 | 9:47 PM Madrid Chamartín | 1 transfer | |
18014+ 04786 | Delayed 1:55 PM Donostia-San Sebastián | 6h27 | 6:22 PM 6:22 PMMadrid Chamartín | 1 transfer | |
04176+ 04190 | Delayed 4:47 PM Donostia-San Sebastián | 5h45 | 8:32 PM 8:32 PMMadrid Chamartín | 1 transfer | |
04176 | Delayed 4:47 PM Donostia-San Sebastián | 5h33 | 8:20 PM 8:20 PMMadrid Chamartín | 0 transfersDirect | |
04176 · 04192 | On time 4:47 PM Donostia-San Sebastián | 6h44 | 11:31 PM Madrid Chamartín | 1 transfer | |
| Saturday, June 27 | |||||
04086 | 8:40 AM Donostia-San Sebastián | 5h18 | 1:58 PM Madrid Chamartín | 0 transfersDirect | |
04086+ 05178 | 8:40 AM Donostia-San Sebastián | 8h11 | 4:51 PM Madrid Chamartín | 1 transfer | |
04086+ 08148 | 8:40 AM Donostia-San Sebastián | 6h42 | 3:22 PM Madrid Chamartín | 1 transfer | |
04086+ 08158 | 8:40 AM Donostia-San Sebastián | 7h52 | 4:32 PM Madrid Chamartín | 1 transfer | |
Find all the dates and times for this journey
Compare prices and tickets Donostia-San Sebastian to Madrid by train, bus, or flight
Compare train, bus, 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.
Jun 26
Jun 27
Jun 28
Jun 29
Jun 30
Jul 01
Jul 02
Jul 03
Jul 04
Jul 05
Jul 06
Jul 07
Jul 08
Jul 09
Jul 10
Jul 11
Jul 12
Jul 13
Jul 14
Jul 15
Jul 16
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 9m. Cheap train tickets for this journey start at €19 if you book in advance.
There are 4 trains per day. The earliest train runs at 04:45, the last at 17:37. The fastest train covers the 352 km distance in 5h 5m.
Distance 352 km |
Average train duration 5h 9m |
Cheapest ticket price €19 |
Trains per day 4 |
Direct trains 4 |
Fastest train 5h 5m |
First train 4:45 AM |
Last train 5:37 PM |
Cheapest Month Mar |
Cheapest Day Tue |
High Season Jul - Sep |
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 €19. 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
Trains from San Sebastian to Madrid
The Spanish state rail operator Renfe provides direct and indirect rail connections between San Sebastian and Madrid. There are an early morning, late morning and two afternoon direct departures from San Sebastian with journey times ranging from five hours and 30 minutes to eight hours. Additional early morning and late afternoon indirect options require a change at Zaragoza to high-speed AVE connections to Madrid. Trains from San Sebastian to Madrid depart from the Estacion del Norte in the centre of the city, arriving at Madid Chamartin Station, north of the city centre, with connections on the city Metro.
FAQs: Trains from Donostia-San Sebastian to Madrid
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
Popular train stations from Donostia-San Sebastian to 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





+
