The cheapest and fastest trains from Donostia-San Sebastian to Madrid
Cheapest price
$63
Average price
$81
Fastest journey
5 h 26 m
Average duration
6 h 24 m
Trains per day
9
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 $81 if you buy it on the day, but the cheapest tickets can be found for only $63.
Of the 9 trains that leave Donostia-San Sebastian for Madrid on Thu, Apr 02, 3 travel direct so it’s quite easy to avoid journeys where you’ll have to change along the way.
On Thu, Apr 02 the direct trains cover the 352 km distance in an average of 6 h 24 m but if you time it right, some trains will get you there in just 5 h 26 m .
On Thu, Apr 02 the slowest trains will take 7 h 13 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.
1801211:01 AM7h54Donostia-San Sebastián6:55 PMMadrid Príncipe Pío$631One-way0 transfers
180141:55 PM7h47Donostia-San Sebastián9:42 PMMadrid Príncipe Pío$631One-way0 transfers
18012+
0579211:01 AM7h59Donostia-San Sebastián7:00 PMMadrid Chamartín$771One-way1 transfer
18012+
0517011:01 AM6h11Donostia-San Sebastián5:12 PMMadrid Chamartín$831One-way1 transfer
18014+
082081:55 PM7h45Donostia-San Sebastián9:40 PMMadrid Chamartín$871One-way1 transfer
041764:47 PM5h26Donostia-San Sebastián10:13 PMMadrid Chamartín$871One-way0 transfers
18012+
0517011:01 AM6h11Donostia-San Sebastián5:12 PMMadrid Chamartín$831One-way1 transfer
18014+
047861:55 PM6h20Donostia-San Sebastián8:15 PMMadrid Chamartín$911One-way1 transfer
18014+
081981:55 PM6h51Donostia-San Sebastián8:46 PMMadrid Chamartín$871One-way1 transfer
18012+
0414211:01 AM7h13Donostia-San Sebastián6:14 PMMadrid Chamartín$911One-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 $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: 218 miles (352 km)
Compare train with
Most popular Train | Bus | Flight |
|---|---|---|
$56 Average price Cheapest | $56 Average price | $252 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 today, Wednesday, April 1. You can also manually refresh the results below to see updated train journeys.
| Provider | Departs | Duration | Arrives | Transfers | Tickets |
|---|---|---|---|---|---|
04086+ 08148 | On time 6:40 AM Donostia-San Sebastián | 6h35 | 1:15 PM Madrid Chamartín | 1 transfer | |
04086+ 05178 | On time 6:40 AM Donostia-San Sebastián | 8h04 | 2:44 PM Madrid Chamartín | 1 transfer | |
04086+ 05750 | On time 6:40 AM Donostia-San Sebastián | 6h20 | 1:00 PM Madrid Chamartín | 1 transfer | |
04086 | On time 6:40 AM Donostia-San Sebastián | 5h11 | 11:51 AM Madrid Chamartín | 0 transfersDirect | |
18012 | On time 9:01 AM Donostia-San Sebastián | 7h54 | 4:55 PM Madrid Príncipe Pío | 0 transfersDirect | |
18012+ 08168 | On time 9:01 AM Donostia-San Sebastián | 6h29 | 3:30 PM Madrid Chamartín | 1 transfer | |
18012+ 05170 | On time 9:01 AM Donostia-San Sebastián | 6h11 | 3:12 PM Madrid Chamartín | 1 transfer | |
18012+ 04170 | On time 9:01 AM Donostia-San Sebastián | 10h11 | 7:12 PM Madrid Chamartín | 1 transfer | |
18014+ 04786 | On time 11:55 AM Donostia-San Sebastián | 6h20 | 6:15 PM Madrid Chamartín | 1 transfer | |
18014+ 04170 | On time 11:55 AM Donostia-San Sebastián | 7h17 | 7:12 PM Madrid Chamartín | 1 transfer | |
18014 | On time 11:55 AM Donostia-San Sebastián | 7h47 | 7:42 PM Madrid Príncipe Pío | 0 transfersDirect | |
18014+ 08198 | On time 11:55 AM Donostia-San Sebastián | 6h51 | 6:46 PM Madrid Chamartín | 1 transfer | |
04176 | On time 2:47 PM Donostia-San Sebastián | 5h26 | 8:13 PM Madrid Chamartín | 0 transfersDirect | |
04176+ 04190 | On time 2:47 PM Donostia-San Sebastián | 5h38 | 8:25 PM Madrid Chamartín | 1 transfer | |
04176 · 04192 | On time 2:47 PM Donostia-San Sebastián | 6h37 | 9:24 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.
Apr 01
Apr 02
Apr 03
Apr 04
Apr 05
Apr 06
Apr 07
Apr 08
Apr 09
Apr 10
Apr 11
Apr 12
Apr 13
Apr 14
Apr 15
Apr 16
Apr 17
Apr 18
Apr 19
Apr 20
Apr 21
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 (€25) 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 218 miles (352 km) distance in 5h 5m.
Distance 218 miles (352 km) |
Average train duration 5h 11m |
Cheapest ticket price $31 (€25) |
Trains per day 4 |
Direct trains 4 |
Fastest train 5h 5m |
First train 4:50 AM |
Last train 5:37 PM |
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 (€25). 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: 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



