Trains tickets from Madrid to San Sebastian

Discover your next train travel journey from Madrid to San Sebastian and book online with ease

Join 75M+ travelers booking 2M+ routes across 85+ countries.
Enjoy our 24/7 customer service to assist you at every step.
Cancel anytime and receive a 100% refund, no reason needed.
TodayMay 10
from US$64
TomorrowMay 11
from US$64
MonMay 12
from US$64
TueMay 13
from US$61
WedMay 14
from US$53
ThuMay 15
from US$53
FriMay 16
SatMay 17

Train schedules for tomorrow

One passenger / one way

  • This trip is recommended because it is the: Cheapest
    Departure time: May 11 at
    Departure city: Madrid
    Departure location: Madrid-Príncipe Pio
    Arrival time: May 11 at
    Destination city: San Sebastian
    Destination location: San Sebastian, Donostia
    Operated by: RENFE Media DistanciaRENFE Media Distancia
    Vehicle: TrainDuration:
  • This trip is recommended because it is the: Fastest
    Departure time: May 11 at
    Departure city: Madrid
    Departure location: Madrid-Chamartin
    Arrival time: May 11 at
    Destination city: San Sebastian
    Destination location: San Sebastian, Donostia
    Operated by: RENFE AlviaRENFE Alvia
    Vehicle: TrainDuration:
  • Departure time: May 11 at
    Departure city: Madrid
    Departure location: Madrid-Chamartin
    Arrival time: May 11 at
    Destination city: San Sebastian
    Destination location: San Sebastian, Donostia
    Operated by: RENFE AlviaRENFE Alvia
    Vehicle: TrainDuration:
  • Departure time: May 11 at
    Departure city: Madrid
    Departure location: Madrid-Príncipe Pio
    Arrival time: May 11 at
    Destination city: San Sebastian
    Destination location: San Sebastian, Donostia
    Operated by: RENFE Media DistanciaRENFE Media Distancia
    Vehicle: TrainDuration:
  • Departure time: May 11 at
    Departure city: Madrid
    Departure location: Madrid-Chamartin
    Arrival time: May 11 at
    Destination city: San Sebastian
    Destination location: San Sebastian, Donostia
    Operated by: RENFE AlviaRENFE Alvia
    Vehicle: TrainDuration:

Last refresh of the prices: Yesterday at 9:56 PM CEST.

Prices and availability are subject to change.

Accepted payments

  • Visa
  • MasterCard
  • American Express
  • China Union Pay
  • Diners Club Canada
  • Discover Click to Pay
  • JCB payment
  • Klarna (Pay over time)
  • Google Pay

Compare 3 ways to go from Madrid to San Sebastian

Average PriceUS$51 - US$172Average Duration6h
9kg CO₂e5 out of 5 stars
Average PriceUS$23 - US$133Average Duration5h 23m
8kg CO₂e5 out of 5 stars
Most eco-friendly
Carpool
Average PriceUS$21 - US$60Average Duration4h 50m
15kg CO₂e4 out of 5 stars
CheapestFastest
busbud logoBusbud recommends carpooling from Madrid to San Sebastian

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 US$21, it presents an excellent value for a comfortable ride.

22carpool per day
4h 50mAverage Duration
US$21Cheapest ticket
15kgCO₂ emissions

Train Madrid to San Sebastian: Trip Overview

Please note, this information is subject to change

Average Ticket PriceUS$63
Average train trip duration5h 23m
Number of daily trains4
Earliest train departure7:20am
Distance346 km
Latest train departure5:37pm

Madrid to San Sebastian Train

Busbud helps you find a train from Madrid to San Sebastian. Get the best fare and schedule, book a round trip ticket or find trains with WiFi and electrical outlets.

We make it our job to connect you with the most dependable companies that offer train service from Madrid to San Sebastian.

Whether it is train tickets or first class train tickets going to San Sebastian from Madrid, we help you find what you're looking for based on how much of a budget you have.

Frequently asked questions on the trip Madrid - San Sebastian

  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 US$63. 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 23m, although the fastest train will take about 4h 55m. 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. 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 Puerta De Atocha 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
05-08
US$72
05-09
US$96
Today
US$60
05-11
US$60
05-12
US$60
05-13
US$56
05-14
US$48
05-15
US$48
busbud logoThe cheapest trip from Madrid to San Sebastian was searched and found on May 14, 2025 with a price of US$48

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 US$48 to US$96 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 US$48 which is on 2025-05-14.

Usually RENFE_ALVIA will charge you higher prices for tickets closer to the departure date. To find the best prices, you should be flexible on your date of travel.

About Train Travel

Train Travel Tips

There are many train stations in the world, check out the station pages on Busbud to get all information you need.

Whether you take a regional or high-speed train to San Sebastian, you’ll help reduce the environmental impact and carbon footprint of your trip. As you watch the landscapes unfold before your eyes, you can tell yourself that with this choice, you are making sure they remain protected.

By choosing the train between Madrid and San Sebastian, you emit up to 30 times less CO2 than for the same journey made by plane or car!

Make a music playlist for your train ride from Madrid to San Sebastian, and enjoy the scenery to tunes from your own personal soundtrack.

Did you know?

One of the deepest train stations in the world is in Kiev. Located at a depth of 105 m, it was designed in this way to serve as a shelter in the event of an attack. The second deepest station is in China. Badaling station is located 60 m under the Great Wall of China!

New York holds the record for the most platforms and track numbers in a single station. Grand Central Station in Manhattan is one of the largest rail terminals in the world with more than 44 platforms and 67 tracks to accommodate passengers.

You can find dogs as passengers on the trains of Moscow, where there is a large number of stray dogs. Over time, the dogs have learned the inner workings of the rail system and it is not uncommon to find one travelling between the city and the suburbs.

Will you be returning to Madrid by train?

Train from San Sebastian to Madrid

Why choose Busbud?

The Best Way To Book Bus and Train Tickets

Busbud helps you easily search, compare and book intercity bus tickets on a worlwide scale with our comprehensive list of bus routes and schedules. Use Busbud to book your trip online, in your own language and currency, wherever you are. Busbud prides itself on its worldwide partnerships. We make it possible for you to buy tickets with its large network of trustworthy bus partners like Greyhound, Eurolines, ALSA, OUIBUS (BlaBlaBus), National Express and many others.

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