Train tickets from Madrid to San Sebastian

Next train departures

Next departures for Madrid to San Sebastian on November 18
Operated byVehicle typeDeparture timeDeparture locationTrip durationArrival timeArrival locationRecommendedPrice and booking link
RENFE AlviaTrain
Madrid-Chamartin
San Sebastian, DonostiaCheapest
RENFETrain
Madrid-Chamartin
San Sebastian, DonostiaFastest
RENFE AlviaTrain
Madrid-Chamartin
San Sebastian, DonostiaNo tags
RENFE AlviaTrain
Madrid-Chamartin
San Sebastian, DonostiaNo tags
RENFE Media DistanciaTrain
Madrid-Príncipe Pio
San Sebastian, DonostiaNo tags

Last refresh of the prices: Yesterday at 11:48 PM CET.

Compare 3 ways to go from Madrid to San Sebastian

We recommend carpooling

Among the sustainable travel choices, the carpool stands out as a good way to reach San Sebastian. The journey takes about 4 hours 50 minutes, and with fares starting at just $31, it presents an excellent value for a comfortable ride.

16carpool per day
4h 50mAverage Duration
353 kmDistance
15kgCO₂ emissions
Average Price$15 - $178Average Duration6h
9kg CO₂e
Average Price$34 - $200Average Duration5h 28m
8kg CO₂e
Carpool
Average Price$31 - $84Average Duration4h 50m
15kg CO₂e

Frequently asked questions about travelling from Madrid to San Sebastian by train

  1. How much does a cheap train ticket from Madrid to San Sebastian cost?

    The average train ticket price from Madrid to San Sebastian is $94. The best way to find cheap train tickets from Madrid to San Sebastian is to book your tickets as early as possible. Prices tend to rise as your travel date approaches, so book in advance to secure the best prices!

  2. How long is the trip from Madrid to San Sebastian?

    A train trip between Madrid and San Sebastian is around 5h 28m, although the fastest train will take about 5h. This is the time it takes to travel the 353 km that separates the two cities.

  3. How many daily trains are there between Madrid and San Sebastian?

    The number of trains from Madrid to San Sebastian can differ depending on the day of the week. On average, there are 4. Some trains are direct while others include transferring trains. Simplify your train trip from Madrid to San Sebastian by comparing and selecting the train that fits your travel style and budget on Busbud.

  4. Which train companies travel from Madrid to San Sebastian?

    When taking the train from Madrid to San Sebastian, you can travel comfortably and safely with Renfe.

  5. What are the departure and arrival stations for a train from Madrid to San Sebastian?

    Trains travelling between Madrid and San Sebastian leave from Madrid-Príncipe Pio or Madrid-Chamartin and arrive at Donostia.

Find cheapest prices for trains

Price is for a one-way ticket for one passenger and based on past searches.

Best price found
11-15
$193
11-16
$193
Today
$88
11-18
$73
11-19
$85
11-20
$69
11-21
No data
11-22
No data
busbud logoThe cheapest trip from Madrid to San Sebastian was searched and found on Nov 20, 2025 with a price of $69

To save money and be sure you have the best seat, it's a good idea to buy your train tickets from Madrid to San Sebastian, as early as possible.

You can expect to pay from $69 to $193 for a train ticket from Madrid to San Sebastian based on the last 2 days. You can expect to find the cheapest price for the trip at $69 which is on 2025-11-20.

People from around the world trust Busbud

Popular Trains Connecting Madrid

Trains Leaving from Madrid

Popular Trains Connecting San Sebastian

Trains Going to San Sebastian