Travel Information
Compare train, bus, and flight for Donostia-San Sebastian to Madrid
Omio recommends booking the train as it is the most popular option from Donostia-San Sebastian to Madrid among Omio's users. If you are prioritising price, take the train, with an average ticket price of $37 For those with little time, consider booking a flight, which has an average total journey time of 3h 14m. If you are seeking to minimise your carbon footprint, the train is your best option, with estimated CO2 emissions of 0.1 - 0.3kg. Average ticket prices depend on the travel mode: a train costs an average of $37, while a flight costs an average of $230.
Distance: 218 miles (352 km)
Compare train with
Most popular Train | Bus | Flight | Driving |
|---|---|---|---|
$37 Average price Cheapest | $52 Average price | $230 Average price | $109 Average price (fuel + tolls) |
6h 19m Average total duration 5h 49m Onboard + 30m Additional time* | 6h 27m Average total duration 5h 57m Onboard + 30m Additional time* | 3h 14m Average total duration Fastest 1h 14m Onboard + 2h 0m Additional time* | 4h 20m Average total duration (door-to-door) |
0.1 - 0.3kg CO2 emissions Lowest | 0.4 - 0.9kg CO2 emissions | 1.1 - 2.1kg CO2 emissions | - CO2 emissions |
![]() Most popular train company | ![]() Most popular bus company | ![]() Most popular airline | Your own car or car rental |
Direct Options | Direct Options | Direct Options | Direct Options |
Additional time: Average total travel duration to departure point, security checks and transfers.
Compare ways to travel from Donostia-San Sebastian to Madrid
Compare the available ways to get from Donostia-San Sebastian to Madrid, with the key details around price, speed, convenience, and direct service.
This is compared to other travel options from Donostia-San Sebastian to Madrid:
A train is $16 less than a bus for this route with tickets for a bus from Donostia-San Sebastian to Madrid costing on average $52.
A train is $194 less than a flight for this route with tickets for a flight from Donostia-San Sebastian to Madrid costing on average $230.
Other travel options to Madrid take longer:
Train takes on average 6h 19m.
Bus takes on average 6h 27m.
Tickets start at around $37 compared to roughly $109 in fuel and tolls — a saving of about $73. The journey takes 5h 49m versus 4h 20m by car, so you'll arrive a bit later, but you can work, read, or sleep along the way rather than spending the time behind the wheel. You'll also save the hassle of parking at the other end.
Driving is worth it if you're on a tight schedule, travelling as a group, or want to stop somewhere en route.
Travel optionsfrom Donostia-San Sebastian to Madrid
How to get from Donostia-San Sebastian to Madrid by train, bus or flight.
Our recommendation
The best way to travel from Donostia-San Sebastian to Madrid is by taking a train because it’s the best combination of price and speed.
040565:26 AM 5h12 Donostia-San Sebastián 10:38 AM Madrid Chamartín $38 1 One-way 0 transfers
Cheapest
040565:26 AM 5h12 Donostia-San Sebastián 10:38 AM Madrid Chamartín $38 1 One-way 0 transfers
Fastest
IB4509:30 PM 1h10 San Sebastián Airport 10:40 PM Madrid Barajas Airport $245 1 One-way 0 transfers
Other options
04056+
051785:26 AM 11h18 Donostia-San Sebastián 4:44 PM Madrid Chamartín $45 1 One-way 1 transfer
040868:36 AM 5h15 Donostia-San Sebastián 1:51 PM Madrid Chamartín $48 1 One-way 0 transfers
041764:45 PM 5h35 Donostia-San Sebastián 10:20 PM Madrid Chamartín $48 1 One-way 0 transfers
Normal6:30 PM 6h00 Donostia-San Sebastian, Estación de Autobuses 12:30 AM Madrid, Intercambiador de Avenida de América $39 1 One-way 0 transfers
Normal4:01 PM 6h44 Donostia-San Sebastian, Estación de Autobuses 10:45 PM Madrid, Intercambiador de Avenida de América $39 1 One-way 0 transfers
Normal8:45 AM 6h40 Donostia-San Sebastian, Estación de Autobuses 3:25 PM Madrid, Intercambiador de Avenida de América $45 1 One-way 0 transfers
IB4461:40 PM 1h10 San Sebastián Airport 2:50 PM Madrid Barajas Airport $390 1 One-way 0 transfers
Find all the dates and times for this journey by train, bus, flight, and ferry .
Compare prices and tickets Prices for trains, buses and flights
Compare train, bus, and flight prices over the next three weeks. See the best deals at a glance, find the lowest fares, and choose the option that fits your budget.
How to Travel from San Sebastian to Madrid
Getting from San Sebastian in the north to the Spanish capital is easy, with direct daily bus, train and plane routes between the two cities. Flying is easily the quickest way to reach Madrid, at around 1 hour 15 minutes, although buses and trains will complete the journey in approximately 5 hours, so they are excellent budget options.
Trains from San Sebastian to Madrid | Buses from San Sebastian to Madrid | Flights from San Sebastian to Madrid
San Sebastian to Madrid Travel Comparison
Average Price |
Travel Time |
Cheapest Time to Book |
|
|---|---|---|---|
|
€36 |
5:10 h |
1 Day Ahead |
|
€49 |
4:56 h |
1 Week Ahead |
|
€273 |
1:15 h |
2 Months Ahead |
What is the best way to travel from San Sebastian to Madrid?
Cheapest way to travel from San Sebastian to Madrid
![]()
Taking the bus is the cheapest way to travel from San Sebastian to Madrid. Alsa is the main bus company in Spain and operates all the buses from San Sebastian to Madrid. Alsa buses take at least 5:10 h to travel from San Sebastian to Madrid and depart 19 times per day with the first leaving San Sebastian at 12:30 a.m. Most Alsa buses depart from San Sebastian Donostia bus station and arrive at Madrid's Intercambiador Avenida de America bus station.
Fastest way to travel from San Sebastian to Madrid
![]()
Flying is the fastest way to travel from San Sebastian to Madrid. Taking a flight is still at least an hour faster than traveling from San Sebastian to Madrid by train or bus even when travel time to and from Madrid and San Sebastian's airports is taken into consideration. Flights traveling from San Sebastian to Madrid depart from San Sebastian airport and arrive at Madrid's Barajas airport after 1:15 h of flight time. Iberia is the main airline that offers direct flights from San Sebastian to Madrid, with around 5 direct flights departing per day.
Most popular way to travel from San Sebastian to Madrid

Taking the bus is the most popular way to travel from San Sebastian to Madrid. While buses and trains take approximately the same amount of time to travel from San Sebastian to Madrid, buses are €13 cheaper on average. Alternatively, while flights are approximately an hour faster than buses when travel time to and from San Sebastian and Madrid's airports is considered, flights are also €237 more expensive on average.
How to get from Donostia-San Sebastian to Madrid
The Best Way According to our Users
More than 1,000 travel companies trust us to sell their tickets all in one place.
FAQs: Travel from Donostia-San Sebastian to Madrid
Travel to Madrid easily. Whether you want fast, cheap or something entirely different, our travel experts have collected everything you need to know so you can find the best option from Donostia-San Sebastian to Madrid.

This is compared to other travel options from Donostia-San Sebastian to Madrid:
A train is $16 less than a bus for this route with tickets for a bus from Donostia-San Sebastian to Madrid costing on average $52.
A train is $194 less than a flight for this route with tickets for a flight from Donostia-San Sebastian to Madrid costing on average $230.
Other travel options to Madrid take longer:
Train takes on average 6h 19m.
Bus takes on average 6h 27m.
- Around 17 trains per day.
- Around 17 buses per day.
- Around 3 flights per day.
However, we recommend checking specific travel dates for your route between Donostia-San Sebastian and Madrid as scheduled services by train, bus, and flight can vary by season or day of the week.
- Flights mostly depart from San Sebastián Airport and arrive in Madrid Barajas Airport.
- Trains mostly depart from Donostia-San Sebastián and arrive in Madrid Chamartín.
- Buses mostly depart from Donostia-San Sebastian, Estación de Autobuses and arrive in Madrid, Intercambiador de Avenida de América.
- Travel with Iberia, CitizenPlane, Vueling, Air Europa to go to Madrid by flight.
- Travel with Alsa, Autobuses Pamplona Madrid, Alsa Supra to go to Madrid by bus.
- Travel with Renfe MD, Renfe ALVIA, Renfe INTERCITY, Renfe to go to Madrid by train.
- 3 direct flights per day with Iberia, CitizenPlane, Air Europa.
- 17 direct buses per day with Alsa, Alsa Supra.
- 4 direct trains per day with Renfe MD, Renfe ALVIA, Renfe INTERCITY, Renfe.
Travelling from Donostia-San Sebastian to Madrid: related information
Here are some other resources that might have the information you need

