Skip to content

Madrid to San Sebastián Train: Stations, Operators and Booking

7 min readBy Europe by Train Editorial
Madrid to San Sebastián Train: Stations, Operators and Booking

Last updated November 2026. The Madrid to San Sebastián train is a long daytime ride on Renfe's Alvia service from Madrid Chamartín to Donostia. It suits travellers who want a comfortable seat and a view of northern Spain more than the fastest possible arrival. Below you will find the station pair, how rail compares with bus, flight and car, and how to book.

Madrid To San Sebastian Train, Spain — 9
Photo: MaGrc, CC BY-SA 4.0, via Wikimedia Commons.

Featured image: jiesnarr, CC BY 4.0, via Flickr.

Madrid To San Sebastian Train, Spain — 1
Photo: Sneeuwvlakte, CC BY-SA 4.0, via Wikimedia Commons.

Madrid to San Sebastián train: quick answer

Renfe's Alvia trains link Madrid Chamartín with San Sebastián (Donostia), running north through Castilla y León into the Basque Country. Depending on the day, you may get a through service or need to change at a city such as Valladolid or Vitoria-Gasteiz. Renfe is the operator to check first, and its official timetable and fare search shows which pattern applies on your date. Leave from Madrid Chamartín, not Atocha, and expect a full half-day of travel rather than a quick hop. Book early for summer weekends and holidays, because seats on a single daily service fill first. Prices and timetables change by season, so treat anything on a third-party page as a starting point only.

Renfe 130 Alvia at Badajoz — 2
Photo: RAIL P (RAIL.PHOTOGRAPHY), CC0, via Wikimedia Commons.

Train vs bus vs flight vs car

Four options compete on this corridor, and each wins for a different traveller. Rail is the most relaxed choice, but it is rarely the quickest. Use this table to match the mode to your priorities, then check live schedules for the actual figures.

Madrid To San Sebastian Train, Spain — 3
Photo: jiesnarr, CC BY 4.0, via Flickr.
ModeJourney timeCost levelLuggageArrives at
Train (Renfe Alvia)Long, a full half-dayMid-range, rises close to departureGenerous, stored on boardDonostia rail station
BusLong, often similar to railUsually the cheapestHold plus hand luggageDonostia bus station
FlightShortest in the air, longer door to doorVaries widelyBaggage fees on many faresAirport outside the city
CarA full day with stopsFuel, tolls and parking add upUnlimitedParking in the city is costly

Stations: where you leave and where you arrive

Madrid To San Sebastian Train, Spain — 4
Photo: Smiley.toerist, CC BY-SA 3.0, via Wikimedia Commons.

Long-distance trains toward the north depart from Madrid Chamartín, which sits on the northern side of the city. Atocha handles many other routes, so check your ticket carefully; our guide to Madrid Atocha Station Guide: Trains, Garden, Transfers explains what leaves from there instead. Most travellers reach Chamartín by Metro or on the Cercanías commuter network. Arrive with a comfortable buffer for security screening and finding your platform, since Spanish long-distance trains are scanned before boarding. In San Sebastián you arrive at the Donostia rail station. From there you can walk or take a local bus or taxi to the old town and the city beaches. Confirm the current walking route on a map when you land, because it depends on where your hotel is.

Operators, timetable pattern and journey time

Estación de San Sebastián — 5
Photo: tropsnart, CC0 1.0, via Flickr.

Renfe runs the Alvia service on this route, so there is no operator comparison to make here. For routes with several operators, see our breakdown of Iryo, Ouigo and Renfe. Alvia is a fast intercity product but it is not the same as the dedicated high-speed network. Our AVE train guide explains that difference. Journey time on Alvia is much longer than the Madrid–Barcelona high-speed run, because the line shares tracks and slows through the north. Frequency is limited compared with major corridors. Some days offer a direct train, and other days may require a change. Where a change is needed, book it as one ticket so a delay on the first leg does not strand you. Separate tickets leave you responsible for a missed connection. Check the timetable for your exact date, and pick the earliest departure if you want daylight at the other end.

Breaking the journey at Valladolid or Vitoria-Gasteiz

If a single long day on the Alvia feels like too much, the line itself offers natural places to stop. Two cities on the corridor reward a night or an afternoon, and splitting the trip often costs little extra time compared with a day when you need to change trains anyway.

Valladolid

Valladolid is the main city in Castilla y León on this route, and high-speed services from Madrid reach it in roughly an hour. It works well as a half-day stop: the Plaza Mayor, the Museo Nacional de Escultura and the old centre are all compact. Stay the night and take a morning departure north the next day, so you arrive in San Sebastián with daylight left for the seafront.

Vitoria-Gasteiz

Vitoria-Gasteiz, the Basque capital, sits roughly two-thirds of the way along. Its medieval quarter and the Plaza de la Virgen Blanca are easy to cover on foot in a few hours. This is the most practical stop if you want a first taste of Basque food before reaching the coast.

How to book a split trip

  • Price the whole route as one ticket first, then compare it with two separate tickets on Renfe's site. Separate tickets are fine when you plan a deliberate stop, because there is no connection to miss.
  • Leave your main bag at the station left-luggage service, if one is open on your date, so you can explore without hauling it.
  • Check the last onward departure before you wander off. Frequency north of Valladolid is limited, and the evening options may be few.

Timetables change by season, so confirm each leg on Renfe's official site before committing to a stopover.

Tickets and booking

Madrid To San Sebastian Train, Spain — 6
Photo: Smiley.toerist, CC BY-SA 4.0, via Wikimedia Commons.

Book through Renfe's website or app, and see our walkthrough of how to buy Renfe tickets for step-by-step help. Tickets usually open some weeks ahead and fares tend to rise as seats sell, so booking early is the safer rule for peak dates. A flexible fare costs more but lets you change plans, which is worth it if your onward plans are uncertain. Cheaper fares are typically less flexible, so read the change and refund terms before paying. Rail passes may cover this route, but reservations are normally required on Alvia. The Eurail Spain page outlines how passes work in the country. Our Spain rail pass guide helps you decide whether a pass beats point-to-point tickets. For a single trip like this, point-to-point fares are often simpler and cheaper.

Who should take the train, and who shouldn't

Madrid To San Sebastian Train, Spain — 7
Photo: Smiley.toerist, CC BY-SA 4.0, via Wikimedia Commons.

Take the train if you want room for luggage, space to work, and scenery through Castilla y León and the Basque hills. It also suits anyone who dislikes airport transfers, since you arrive in central Donostia. Skip it if you are short on time. A flight saves hours in the air, though airport transfers narrow the gap. Choose the bus if price matters most. Choose a car if you plan to explore the Basque coast beyond San Sebastián, though parking in the city is difficult. If you are still choosing between Basque cities, compare this route with Madrid to Bilbao by train.

Food, Charging and Views on the Long Ride North

Madrid To San Sebastian Train, Spain — 8
Photo: MaGrc, CC BY-SA 4.0, via Wikimedia Commons.

Pack snacks and water, because onboard food service on regional-style long-distance trains can be limited. Charge your phone before departure and download tickets for offline use, since coverage drops in rural stretches. Passengers with reduced mobility can request assistance from Renfe in advance. Sit on the side that suits the views, though the best scenery arrives near the Basque Country. If Madrid is only one stop on a wider journey, our guide to trains in Spain covers the network. Arriving from the east instead? Read about the Barcelona to Madrid by Train: Operators, Times & Tickets as your first leg.

Frequently Asked Questions

How long does it take to drive from San Sebastián to Madrid?

Plan for a full day behind the wheel, including at least one break. Check a live route planner on the day, because traffic and roadworks change the time.

Rail notes for your next trip

Optional updates when our rail guides change.

No spam. Unsubscribe anytime.

More guides

Picked from the same area