Train tickets from San Sebastian to Madrid

Next departures

Next departures from San Sebastian to Madrid on 2 November
Operated byVehicle typeDeparture timeDeparture locationTrip durationArrival timeArrival locationRecommendedPrice and booking link
RENFE Media Distancia
    San Sebastian, Donostia
    Madrid-Príncipe PioCheapest
    RENFE Alvia
      San Sebastian, Donostia
      Madrid-ChamartinFastest
      RENFE Media Distancia
        San Sebastian, Donostia
        Madrid-Príncipe PioNo tags
        RENFE
          San Sebastian, Donostia
          Madrid-ChamartinNo tags
          RENFE
            San Sebastian, Donostia
            Madrid-ChamartinNo tags

            Last refresh of the prices: Today at 1:40 AM CET.

            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 travel from San Sebastian to Madrid

            We recommend carpooling

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

            18carpool per day
            4h 50mAverage duration
            353 kmDistance
            15kgCO₂ emissions
            Average priceUS$59 - US$92Average duration5h 45m
            9kg CO₂e
            Average priceUS$29 - US$139Average duration5h 26m
            8kg CO₂e
            Carpool
            Average priceUS$20 - US$81Average duration4h 50m
            15kg CO₂e

            Train San Sebastian to Madrid: Trip Overview

            Please note, this information is subject to change.

            Average ticket priceUS$66
            Average train trip duration5h 26m
            Number of daily trains3
            Earliest train departure08:42
            Distance353 km
            Latest train departure16:47

            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$66. 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 train trip from San Sebastian to Madrid?

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

            3. How many daily train 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.

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

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

            Find cheapest prices for trains

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

            Best price found
            30/10
            US$102
            31/10
            US$101
            Today
            US$61
            02/11
            US$61
            03/11
            US$61
            04/11
            US$51
            05/11
            US$59
            06/11
            No data
            busbud logoThe cheapest trip from San Sebastian to Madrid was searched and found on 04 Nov 2025 with a price of US$51

            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$51 to US$135 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$51, which is on 2025-11-04.

            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 own real-life musical score by curating a personalised train travel playlist – the perfect accompaniment for your journey 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 105m, 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 60m 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