Business

No tickets in your basket.

Why not plan a trip?

My Bookings
Loading...
Loading...

TrainlineTrainline is Europe’s leading platform for train and bus tickets

Looking for the cheapest date to travel?

Within 7 days

Outbound from

Within 1 month

Outbound from

Within 3 months

Outbound from
Low prices found by our customers
Each fare is the lowest adult economy ticket fare found by our customers on Trainline. Fares booked further in advance than the dates displayed may be cheaper. Prices are updated daily, subject to change and indicative of price last update. Limited availability. Discount cards and coach journeys excluded, prices exclusive of booking fee.

What customers say about Trainline

Read real reviews from real users

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 6h 10m 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 £13.70 when you book in advance.

First train

07:28

Last train

14:04

Departure station

San Sebastián

Arrival station

Madrid

Journey time

From 5h 31m

Distance

219 miles (353 km)

Frequency

5 trains per day

Changes

Direct trains available

Price

From £13.70

Train and bus operators

Renfe, ALSA

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 operates trains on the longest high-speed railway network in Europe, and the second-longest in the world. The country's major cities are linked up by the high-speed AVE and Avlo trains, while other long-distance routes are served by Altaria, Talgo, Alvia and Euromed trains. Renfe also operates cross-border services into neighbouring Portugal and France. Depending on which service you are travelling on, you'll usually find two classes on Renfe trains - Estándard (Standard Class) and Confort (First Class). Fare types range from the cheapest (but least flexible) Básico fare, to the more flexible Elige fares, to the Premium fare for seats in Confort carriages.

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.

Alvia classes from San Sebastián to Madrid

Compare the different travel classes offered by Alvia when travelling from San Sebastián to Madrid.

Onboard services on Alvia

Discover more about the onboard services offered on trains from San Sebastián to Madrid.

LuggageLuggageLuggage

On Alvia trains you can take up to three pieces of luggage on board, provided that they are less than 290cm long and weigh less than 25kg in total. Pushchairs and instruments smaller than 30 x 120 x 38 cm are also classed as hand luggage.

RestaurantRestaurantFood and drink

Most Alvia trains have an onboard café-bar, as well as an at-seat trolley service with a wide selection of food and drinks.

WiFiWiFiEntertainment

On board Alvia services, you can connect to PlayRenfe, a platform offering free WiFi and hours of entertainment.

ChildPassengerChildPassengerTravel with children

Children under 4 travel free on Alvia services with a free child's ticket. Plus, passengers under 14 get a 40% discount on their chosen tariff.

ModeOfTransportBikeModeOfTransportBikeBikes

With Alvia, folded bicycles that are less than 180cm long and are stored in a case count as hand luggage. If your bike is larger than this, it will count as special luggage and must be no larger than 120 x 90 x 40 cm - you must also detach the pedals and rotate the handlebars 90 degrees.

PetPetPets

You can take your pet with you if they weigh less than 10kg, travel in a carrier no larger than 60 x 35 x 35 cm, and have a pet ticket. In Elige Confort a pet ticket is free, while in Básico a pet ticket costs 25% of the price of a ticket.

WheelchairWheelchairSpecial Assistance

Alvia has an assistance service for passengers with reduced mobility or a disability. To arrange assistance, you can call (+34) 900 400 555 (international calling charges may apply).

Cheap train tickets from San Sebastián to Madrid

The price of train tickets from San Sebastián to Madrid starts at £13.70 one-way for a Standard Class ticket if you book in advance. Booking on the day is usually more expensive and costs can vary depending on the time of day, route or class.

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 guides to find out when train operators release their special deals and offers to see if you can find cheap European train 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 6 hours and 10 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 5 hours and 31 minutes.

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

Train ticket prices from San Sebastián to Madrid can start from as little as £13.70 when you book in advance. The cost of tickets can vary depending on the time of day, route and class you book and are usually more expensive if you book on the day.

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 each day. 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 07:28. 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 14:04. 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.

Europe’s leading train and coach app

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