Trains tickets from San Sebastian to Madrid

Discover your next train travel journey from San Sebastian to Madrid 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.
TodayJun 1
from US$77
TomorrowJun 2
from US$64
TueJun 3
from US$45
WedJun 4
from US$37
ThuJun 5
from US$64
FriJun 6
from US$64
SatJun 7
from US$64
SunJun 8
from US$64

Train schedules for tomorrow

One passenger / one way

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

Last refresh of the prices: Today at 3:04 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 San Sebastian to Madrid

Average PriceUS$57 - US$100Average Duration5h 45m
9kg CO₂e5 out of 5 stars
Average PriceUS$29 - US$101Average Duration5h 22m
8kg CO₂e5 out of 5 stars
Most eco-friendly
Carpool
Average PriceUS$18 - US$72Average Duration4h 50m
15kg CO₂e4 out of 5 stars
CheapestFastest
busbud logoBusbud recommends carpooling from San Sebastian to Madrid

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

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

Train San Sebastian to Madrid: Trip Overview

Please note, this information is subject to change

Average Ticket PriceUS$64
Average train trip duration5h 22m
Number of daily trains3
Earliest train departure8:47am
Distance346 km
Latest train departure4:52pm

San Sebastian to Madrid Train

With Busbud, comparing and booking tickets for a train from San Sebastian to Madrid is a breeze. Browse through an extensive selection of train fares and train schedules to find the best deals.

We make sure you can find a train service from San Sebastian to Madrid from the most reliable train companies operating this trip.

Discover how much the train trip from San Sebastian to Madrid will cost you. Use our filters and sorting features to find the cheapest train tickets or high-end trains.

Frequently asked questions on the trip San Sebastian - Madrid

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

    The average train ticket price from San Sebastian to Madrid is US$64. The best way to find cheap train tickets from San Sebastian to Madrid 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 San Sebastian to Madrid?

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

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

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

Find cheapest prices for trains

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

Best price found
05-30
US$80
05-31
US$73
Today
US$73
06-02
US$60
06-03
US$41
06-04
US$33
06-05
US$60
06-06
US$60
busbud logoThe cheapest trip from San Sebastian to Madrid was searched and found on Jun 4, 2025 with a price of US$33

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

You can expect to pay from US$33 to US$96 for a train ticket from San Sebastian to Madrid based on the last 2 days. You can expect to find the cheapest price for the trip at US$33 which is on 2025-06-04.

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

Taking the fastest trains allows you to travel at speeds greater than 300 km/h. Taking a trip from San Sebastian to Madrid is not only much quicker but more comfortable too! You can usually travel directly to the city centre and save time while you're at it.

Regional train? High-speed train? Whichever train to Madrid you take, 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.

With up to 30x less CO2 emissions for your train journey between San Sebastian and Madrid, the train is an ecological alternative to flights or personal cars.

Create your real-life musical score by curating a personalized train travel playlist - the perfect accompaniment to your train ride from San Sebastian to Madrid.

Did you know?

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.

The longest train journey in the world is between Europe and Asia. This long journey starts from Porto in Portugal and crosses the whole European continent to reach Hanoi in Vietnam in 12 days while travelling more than 17,000 km.

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!

Will you be returning to San Sebastian by train?

Train from Madrid to San Sebastian

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 San Sebastian

Trains Leaving from San Sebastian

Popular Trains Connecting Madrid

Trains Going to Madrid