Home · Search
Routes

How to Get from Madrid to San Sebastián: Distance, Train, Bus and Car

AI-generated content · How we use AI

How to Get from Madrid to San Sebastián: Distance, Train, Bus and Car

Madrid → San Sebastián

460 km
🚗 Car 4h 45min (A-1)
🚆 Train 5h 25min
🚍 Bus 5h 25min
Recommended stops 8

🚗 How to get from Madrid to San Sebastián

Mode Time Approx. price Book
🚗 Car 4h 45min Fuel: 37–55€ Rent a car ↗ · Map
🚄 Train 5h 25min Check price Omio ↗
🚌 Bus 5h 25min 20-75 € Omio ↗

🎫 Compare all tickets

How to get from Madrid to San Sebastián: quick summary

The route between Madrid and San Sebastián offers four main transport options: car, train, bus and plane. The car is ideal for those who want to make gourmet stops and explore the Basque interior, with a journey of 460 km and 4h 45min. The direct Renfe train is the most comfortable option for travelling worry-free, with 5 daily trains from Madrid-Chamartín. The ALSA or FlixBus bus is the cheapest alternative, with prices between 20 and 75€. The Iberia plane is the fastest in flight time (70 min), but you have to add transfers to the airport and check-in, so it only pays off if you book in advance and really value your time.

By car from Madrid to San Sebastián

The car journey covers 460 km and takes approximately 4 hours and 45 minutes without stops. The route combines toll-free dual carriageways and toll motorways, crossing northern Castile and León and heading into the Basque Country.

The route begins on the M-30 (Avenida de la Paz), with about 7 km to exit from the centre of Madrid. Then you take the A-1 (Autovía del Norte), which accounts for most of the journey with about 258 km toll-free, passing through areas near Burgos and Miranda de Ebro. Next you link up with the AP-1 (Autopista del Norte), which covers about 169 km and connects with the Etxegarate pass and the descent towards Gipuzkoa. The AP-8 (Kantauriko autobidea) provides the last 42 km of motorway to the outskirts of San Sebastián. Finally, the GI-20 (Donostiako Saihesbidea) rings the city for about 6 km to access the neighbourhoods and the centre.

Practical tip: the A-1 has no tolls, but the AP-1 and AP-8 do. It’s worth checking the total toll cost before setting off and considering whether it pays to make a stop in Vitoria-Gasteiz or Bilbao to rest.

By train from Madrid to San Sebastián

Renfe operates direct trains between Madrid-Chamartín-Clara Campoamor and San Sebastián-Donostia, with 5 daily departures. The fastest journey is covered by the Intercity in 325 minutes (about 5 hours and 25 minutes), while ALVIA trains take 332 minutes and MD trains reach 460 minutes.

The first train leaves at 06:55 and the last at 17:48. The daily frequency includes 1 Intercity, 2 ALVIA and 2 MD. Prices vary depending on how far in advance you book and the type of train, but as it’s a long-distance journey it’s worth booking early to get the best fares.

The departure station is Madrid-Chamartín-Clara Campoamor, well connected by metro and Cercanías. The destination station is San Sebastián-Donostia, located next to the Urumea river and a short distance from the historic centre.

By bus from Madrid to San Sebastián

There are direct buses operated by ALSA, Alsa and FlixBus, with an approximate duration of 325 minutes (5 hours and 25 minutes). Prices range between 20 and 75€ depending on how far in advance you book, the company and seasonal demand.

The bus is the cheapest option for travelling from Madrid to San Sebastián without a car. Although the travel time is similar to the Intercity train, the price can be significantly lower if you book in advance. Buses usually leave from Madrid’s Estación Sur de Autobuses and arrive at San Sebastián bus station, near the train station.

By plane from Madrid to San Sebastián

Iberia operates direct flights between Adolfo Suárez Madrid-Barajas airport (MAD) and San Sebastián airport (EAS), with an average duration of 70 minutes. There are approximately 3 flights a day, every day of the week.

Return prices are usually between 82 and 165€, while a one-way ticket can be found from 36-37€ if you book in advance. Although the flight is short, you have to add the transfer time to Barajas airport, security checks and the transfer from San Sebastián airport to the centre, so the total door-to-door time doesn’t always beat the train or bus.

The road route allows for slight detours to discover some towns with a character all their own. These are the recommended stops based on the route data:

  • Durango (Bizkaia): a Biscayan town in the Ibaizabal valley, with a compact old quarter and access to Urkiola Natural Park. A good stop to stretch your legs before continuing on towards the coast.
  • Azkoitia (Gipuzkoa): an inland Gipuzkoan town in the Urola region. It stands out for its green surroundings and its proximity to the Sanctuary of Loyola, very close to the town.
  • Azpeitia (Gipuzkoa): known for the Sanctuary of Loyola, a Baroque monumental complex linked to Saint Ignatius of Loyola. It is a cultural and architectural stop of great interest in inland Gipuzkoa.
  • Beasain (Gipuzkoa): a municipality in the Goierri area, with an industrial tradition and surrounded by mountains. It is a good spot to discover the less touristy interior of Gipuzkoa and sample local cuisine.
  • Bilbao (Bizkaia): the capital of Biscay, famous for the Guggenheim Museum, the Casco Viejo (Old Town) and the estuary. Although it involves a detour from the most direct route, it is a highly recommended stop if you have time.
  • Vitoria-Gasteiz (Álava): the capital of the Basque Country, with a peri-urban green belt, a medieval old quarter and a notable culinary scene. It is the most natural stop before heading along the AP-1 towards Gipuzkoa.
  • Bergara (Gipuzkoa): a town in the Alto Deba area, with a stately old quarter and ancient religious buildings. Its location between Álava and the coast makes it a convenient stop.
  • Arrasate / Mondragón (Gipuzkoa): a municipality in the Alto Deba area, known for its cooperative tradition and its mountainous surroundings. It offers an authentic glimpse of the industrial and rural Basque interior.

🏨 Hotels in San Sebastián

* Prices are indicative and may vary. We compare hundreds of sites to find the best deal.

🎭 Activities and tours in San Sebastián

Where to stay in San Sebastián

San Sebastián offers accommodation for every budget, from guesthouses and hostels in the centre to mid-range and high-end hotels near La Concha beach. The most recommended areas are the Centre, El Antiguo and Gros.

The Centre and the Parte Vieja (Old Town) are ideal for those who want to be close to the pintxos and the nightlife. The Gros neighbourhood, next to Zurriola beach, is quieter and has a good selection of apartments and hostels. El Antiguo, near Ondarreta beach, is residential and somewhat cheaper. Prices vary greatly depending on the season: in summer and on weekends with events, rates rise considerably. Booking in advance is key to avoiding paying over the odds.

Where to eat en route

The journey from Madrid to San Sebastián passes through areas with a very distinctive culinary tradition. These are the typical dishes you can find at the different stops:

  • Cochinillo asado (Segovia): whole suckling pig slow-roasted in a wood-fired oven with pork lard, salt and water. The skin comes out crispy and the meat very tender.
  • Judiones de La Granja (La Granja de San Ildefonso, Segovia): a hearty stew of large white beans with chorizo, morcilla, pancetta and pork ear, cooked slowly until the broth thickens.
  • Lechazo asado (Aranda de Duero, Burgos): milk-fed lamb oven-roasted with lard and salt, typical of the Ribera del Duero. Served with salad or potatoes.
  • Morcilla de Burgos (Burgos): a sausage made with pork blood, rice, onion and spices, stuffed into natural casing. Eaten fried or grilled as an appetiser.
  • Chuletillas de cordero (Vitoria-Gasteiz, Álava): milk-fed lamb chops grilled over embers, seasoned with coarse salt and served very hot, often as a tapa.
  • Bacalao al pil-pil (Basque Country, San Sebastián): desalted cod cooked at low temperature with olive oil, garlic and chilli. The emulsion of the oil with the cod’s gelatin creates the characteristic sauce.
  • Txakoli (Basque Country, Getaria, San Sebastián): a young white wine, slightly sparkling and with high acidity, made mainly from Hondarrabi Zuri grapes. Served as an aperitif or with pintxos.
  • Vino de Ribera del Duero (Burgos, Valladolid, Soria): red wine made mainly from Tempranillo grapes, aged in oak barrels. Full-bodied, with firm tannins and notes of ripe fruit.

Frequently asked questions about the Madrid-San Sebastián route

How long does it take from Madrid to San Sebastián?

By car, the 460 km journey takes approximately 4 hours and 45 minutes without stops. By train, the fastest Intercity takes 325 minutes (5 hours and 25 minutes), while ALVIA services take 332 minutes and MD services 460 minutes. By bus, the duration is 325 minutes. By plane, the direct Iberia flight lasts 70 minutes, but you have to add transfers to the airport and check-in.

Which is cheaper, the train or the bus?

The bus is generally cheaper, with prices between €20 and €75 depending on ALSA and FlixBus. The Renfe train tends to be more expensive, especially on ALVIA and Intercity services, although prices vary depending on how far in advance you book and demand. If you book early, the bus can cost less than half than the train.

Is it worth renting a car?

It depends on the type of trip. If you’re only going to San Sebastián and don’t plan to leave the city, the train or bus are more comfortable and save you paying tolls and parking. If you want to make stops such as Vitoria-Gasteiz, Bilbao, Durango or Azpeitia, the car is the best option, since public transport between these towns is less direct and limits flexibility.

When is the best time to travel?

The best time to travel from Madrid to San Sebastián is between May and October, when the weather is milder and the days are longer. Summer is high season, with more tourism and higher accommodation prices. Autumn, especially September and October, offers good weather and fewer crowds. Winter can be rainy and cold, but prices drop considerably.

💡 ¿Sabías que...?

  • ● Solo una calle del casco antiguo de San Sebastián sobrevivió al incendio de 1813: la calle 31 de Agosto, y cada año los habitantes la conmemoran apagando las luces y encendiendo velas al anochecer. (https://turismo.euskadi.eus/en/blog/discover-8-secrets-of-san-sebastian/webtur00-contfichapost/en/)
  • ● San Sebastián tiene cuatro playas, no tres: además de La Concha, La Zurriola y Ondarreta, existe la pequeña playa de Santa Clara, que solo se ve con la marea baja. (https://turismo.euskadi.eus/en/blog/discover-8-secrets-of-san-sebastian/webtur00-contfichapost/en/)
  • ● La isla de Santa Clara alberga una subespecie de lagarto que solo se encuentra en ese lugar. (https://turismo.euskadi.eus/en/blog/discover-8-secrets-of-san-sebastian/webtur00-contfichapost/en/)
  • ● San Sebastián tiene más estrellas Michelin por metro cuadrado que cualquier otra ciudad del mundo, y también el mayor número de estrellas Michelin per cápita. (https://sansebastianturismoa.eus/en/donosti-feeling-en/4373-did-you-know-that-7-fun-facts-about-san-sebastian/)
  • ● La fundación de San Sebastián data de 1180, cuando el rey Sancho VI el Sabio de Navarra otorgó un fuero fundacional a los pobladores de la villa. (https://www.santelmomuseoa.eus/index.php?Itemid=68&id=65&lang=es&option=com_flexicontent&view=items)
  • ● El término Urgull podría provenir de la palabra gascona Hercull o Hergull, que significa Hercúleo, en referencia a la protección que ofrecía el monte. (https://www.santelmomuseoa.eus/index.php?Itemid=68&id=65&lang=es&option=com_flexicontent&view=items)
  • ● En el siglo XII, San Sebastián fue poblada por gascones provenientes de Francia, por lo que nombres como Miramón, Morlans o la calle Narrika tienen raíces francesas y no vascas. (https://elblog.bintercanarias.com/blog/20-curiosidades-que-no-conoc%C3%ADas-sobre-san-sebastian)