If you must travel, travel safely. For contactless travel, use digital tickets on your phone.

Renfe
ALSA

The best prices from hundreds of train and coach companies

Join millions of people who use us every day

Travel to thousands of destinations in 45 countries

Independent
"Trainline’s take-off has been vertical. It’s the only global digital travel platform of its sort."
GQ
"For those travelling by train, the most efficient and trustworthy way to purchase tickets is Trainline."
MSN
"If you’re thinking of getting the train the best site to use is thetrainline.com."

San Sebastián to Madrid by train

The picturesque seaside resort of San Sebastián is more than 200 miles from the Spanish capital of Madrid, but you can make the journey in five and a half hours on board Renfe’s Alvia and Media Distancia trains, each with their own comforts and conveniences for passengers to enjoy.

Arriving in the big city, feeling the inimitable energy and history of the Spanish capital all around you, you'll be mere minutes from world-famous museums, monuments, and landmarks like the Prado Museum and the Royal Palace. You could also choose to do some shopping or visit a local tapas bar for some tasty snacks. Scroll down for further details on the journey, including train times and FAQs.

San Sebastián to Madrid by train

It takes an average of 11h 11m to travel from San Sebastián to Madrid by train, over a distance of around 219 miles (353 km). There are normally 5 trains per day travelling from San Sebastián to Madrid and tickets for this journey start from €16.60 when you book in advance.
Journey timeFrom 6h 47m
Price€16.60 - €181
Distance219 miles (353 km)
Frequency5 trains per day
Departure stationSan Sebastián
Arrival stationMadrid
ChangesDirect trains available
Train and bus operators

San Sebastián to Madrid train times

Check out the next trains departing from San Sebastián to Madrid for Friday 29th May 2020. For the full train timetable/schedule, or to search for a later time or date, click here.
DepartsArrivesTrainDuration
07:28 San Sebastián-Donostia13:10 Madrid AtochaAlvia/Avant 533 Renfe Get tickets5h 42m, 1 change
08:57 San Sebastián-Donostia14:28 Madrid ChamartínAlvia/Avant 4086 Renfe Get tickets5h 31m, direct
11:14 San Sebastián-Donostia17:32 Madrid ChamartínMedia Distancia 18012 Renfe Get tickets6h 18m, 1 change
11:14 San Sebastián-Donostia18:42 Madrid Príncipe PioMedia Distancia 18012 Renfe Get tickets7h 28m, direct
14:04 San Sebastián-Donostia19:40 Madrid ChamartínMedia Distancia 18014 Renfe Get tickets5h 36m, 1 change
16:40 San Sebastián-Donostia21:35 Madrid AtochaAlvia/Avant 608 Renfe Get tickets4h 55m, direct
19:10 San Sebastián-Donostia08:26 Madrid Príncipe PioTrenhotel 313 Renfe Get tickets13h 16m, 1 change
19:57 San Sebastián-Donostia12:19 Madrid AtochaRegional Exprés 16004 Renfe Get tickets16h 22m, 2 changes
07:28 San Sebastián-Donostia13:10 Madrid AtochaAlvia/Avant 533 Renfe Get tickets5h 42m, 1 change
08:57 San Sebastián-Donostia14:28 Madrid ChamartínAlvia/Avant 4086 Renfe Get tickets5h 31m, direct

Renfe, Alvia and Media Distancia trains from San Sebastián to Madrid

You can travel from San Sebastián to Madrid on Renfe, Alvia and Media Distancia trains. When you search for times and tickets, we might also show you some other options with multiple connections or operators if they’re available.

Renfe is the national train operator in Spain. It has the widest network of high-speed trains in Europe, linking major cities with AVE, AV-City, Avant, Alvia, and Euromed trains. Long-distance routes are served by Altaria and Talgo trains, while regional routes are operated by Media Distancia, Regional and Express Regional trains. Renfe also operates on international routes to France and Portugal. Renfe trains offer four different travel classes, depending on the train you’re travelling on – Turista (Standard), Turista Plus (Premium Economy), Preferente (Business Class) and Club (First Class).

Renfe's Alvia services combine high-speed tracks with lower speed sections, reaching speeds of up to 155 mph (250 km/h) on international lines and 125 mph (200 km/h) on conventional lines. These trains connect the cities of Madrid, Barcelona and Alicante with the other main Spanish cities. Alvia offers two types of classes – Turista (Second Class) and Preferente (First Class). The latter has wider seats, carriages with fewer seats, offers complimentary food and drinks, free newspapers, and access to parking and Club meeting rooms.

Renfe's Media Distancia are regional trains operated by CAF locomotives that run on medium-distance routes not covered by Avant high-speed trains. Most Media Distancia trains have one class. However, there are some that will have Turista (Second Class) and Preferente (First Class). These trains also have spaces for bicycles, and all seats are equipped with power sockets and reading lights.

Cheap train tickets from San Sebastián to Madrid

Train tickets from San Sebastián to Madrid start at €16.60 one-way for a Standard Class ticket if you book in Advance, however, if you're booking last-minute tickets on the day, the average price is around €63.06.
lowest price found
from16.60
2 weeksin advance
avg. single price41.55
on the day
avg. single price63.06

Book in advance

Most of the train companies across Europe release their tickets around three to six months in advance, many of which can be cheaper the earlier you book. If you know the dates you want to travel, you may be able to find some cheaper train tickets from San Sebastián to Madrid by booking early.§

Be flexible with your travel times

Many of the train services in Europe are also popular commuter services, lots of train companies increase ticket prices during “peak hours” (generally between 06:00 – 10:00 and 15:00 – 19:00 on weekdays). If you can, consider travelling outside of peak hours to find lower priced tickets.

Choose a slower or connecting train

On some of the busier routes, you might also have the option to take a slower or connecting train. It may take a little longer than some high-speed or direct services, but if you have a little extra time on your hands, you might find a cheaper fare. Plus, you'll have more time to enjoy the view of the countryside!

Look out for special deals

Take a look at our handy guide to check when European train operators release their special deals and offers to see if you can find cheap tickets for your journey.

For specific information about how to get your hands on cheap tickets, check out our European train tickets hub.

§Some train companies may not offer any Advance ticket types or cheaper deals for early bookings. On rare occasions, train companies may choose to release special offers closer to the date on last-minute or late-release tickets. This is dependent on the individual train operating company you travel with.

Journey details

Want to know more about your journey from San Sebastián to Madrid? We've compiled some of the most frequently asked questions by our customers to help you plan your journey.

How long does the train from San Sebastián to Madrid take?

The average journey time by train between San Sebastián and Madrid is 11 hours and 11 minutes, with around 5 trains per day. The journey time may be longer on weekends and holidays, so use our Journey Planner on this page to search for a specific travel date.

What's the fastest journey time between San Sebastián and Madrid by train?

The fastest journey time by train from San Sebastián to Madrid is 6 hours and 47 minutes.

How much does the train from San Sebastián to Madrid cost?

Train tickets from San Sebastián to Madrid can start from as little as €16.60 when you book in advance and are usually more expensive when purchased on the day. Prices can also vary depending the time of day, route and class you book.

Is there a direct train from San Sebastián to Madrid?

Yes, it is possible to travel from San Sebastián to Madrid without having to change trains. There are 2 direct trains from San Sebastián to Madrid. Though there may be fewer direct services available depending on your exact departure date.

What time does the first train from San Sebastián to Madrid leave?

The first train from San Sebastián to Madrid leaves at 11:14. Times and services may vary during weekends and holidays.

What time does the last train from San Sebastián to Madrid leave?

The last train from San Sebastián to Madrid leaves at 19:57. Trains that depart in the early morning hours or very late evening may be sleeper services, time and services may also vary during weekends and holidays.

What's the distance between San Sebastián and Madrid by train?

Trains travelling from San Sebastián to Madrid cover a distance of around 219 miles (353 km) during the journey.

Looking for more information?

If you’re looking for the return train journey, check out trains from Madrid to San Sebastián. If you’re looking for other options, you can also catch the bus from San Sebastián to Madrid.
Average prices for adult tickets in economy. Discount cards and coach journey excluded. Prices are based on searches made by our customers over the past 6 months. "14 days in advance" includes days 13 and 15. / The information provided is calculated based on scheduled train services for San Sebastián to Madrid for a typical week day using timetable data for 29/05/2020. On weekends, holidays or other exceptional times, fewer services may be available. The fare range provided has been found by our customers on Trainline on 01/04/2019 for travel on 03/04/2019 and for adult tickets in economy, discount cards and coach journeys excluded.

Europe’s leading train and coach app

We help customers across Europe make more than 172,000 smarter journeys every day.