Home · Search
Routes

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

AI-generated content · How we use AI

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

San Sebastián → Madrid

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

There is something deeply satisfying about leaving the Cantabrian coast behind, with its damp breeze and green hills, and gradually easing into the Castilian plateau, where the horizon opens up and the landscape changes texture. The journey from San Sebastián to Madrid is a transition between two Spains: the Atlantic one, of pintxos and fine rain, and the inland one, of cocidos, red wines and endless sunsets. By car, train, bus or plane, this 460 km route offers a different experience depending on the mode chosen, and hides gastronomic gems and charming stops that deserve a pause.

🚗 How to get from San Sebastián to Madrid

Mode Time Approx. price Book
🚗 Car 4h 45min Fuel: 37–55€ Rent a car ↗ · Map
🚄 Train 5h 12min Check price Omio ↗
🚌 Bus 5h 10min 47+ € Omio ↗

🎫 Compare all tickets

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

There are four direct options for travelling from San Sebastián to Madrid: car (4h 45min via motorway), train (from 312 to 477 min depending on the type), bus (310 min with ALSA) and plane (70 min direct flight with Iberia or Vueling). For those who want flexibility and gastronomic stops along the way, the car is unbeatable. If you prioritise comfort without driving, the Intercity or ALVIA train leaves you in the centre of Madrid in just over 5 hours. The bus is the cheapest option (from €47), and the plane, although quick in the air, adds transfer times to airports and check-in, so it only pays off if you find a good deal or if your final destination is near Barajas.

By car from San Sebastián to Madrid

The drive from San Sebastián to Madrid covers 460 km and takes approximately 4 hours and 45 minutes along well-maintained dual carriageways and motorways. The route combines several road axes: you start by taking the GI-20 (Donostiako Saihesbidea) for about 6 km to leave the city, and link up with the DO (Kantauriko autobidea), which accompanies you for 41 km towards the Guipuzcoan interior. Then the AP-1 (Iparraldeko autobidea) takes centre stage for about 130 km, crossing the Deba valley and bringing you closer to Vitoria-Gasteiz. Next, the A-1 (Autovía del Norte) becomes the backbone of the journey: some 255 km toll-free crossing Burgos and descending towards the Madrid plateau. On the final stretch, a short pass along the N-240 (5 km, toll-free) completes the access. It is a comfortable route, with frequent service areas and landscapes that shift from Cantabrian green to Castilian ochre.

By train from San Sebastián to Madrid

Yes, there is a direct train from San Sebastián to Madrid, operated by Renfe, with a frequency of 11 trains per day and a duration ranging from 312 to 477 minutes depending on the type of service. The fastest is the Intercity, with 4 daily departures completing the journey in 312 minutes (about 5 hours and 12 minutes). It is followed by the ALVIA, also with 4 trains per day and 315 minutes of travel. The MD (Media Distancia) trains are the slowest, with 3 daily departures and 467 minutes of duration. The first train leaves at 05:15 from San Sebastián-Donostia station, and the last at 16:45. All services arrive at Madrid-Chamartín-Clara Campoamor station, well connected to the rest of the capital via metro and Cercanías. According to Renfe, prices vary depending on how far in advance you book and the class, but the Intercity usually offers the best balance between time and cost.

By bus from San Sebastián to Madrid

Yes, there is a direct bus from San Sebastián to Madrid, operated by ALSA (also listed as Alsa on some search engines), with a duration of 310 minutes (5 hours and 10 minutes). Ticket prices start from €47, although they may vary depending on how far in advance you book, the time and demand. Buses usually depart from San Sebastián bus station and arrive at Madrid stations such as Avenida de América or Méndez Álvaro, depending on the service. It is a comfortable alternative for those who do not want to drive and are looking for a more restrained price than the train, especially if booked in advance.

By plane from San Sebastián to Madrid

There is indeed a direct flight from San Sebastián to Madrid, operated by Iberia and Vueling, with a flight time of 70 minutes in the air. Iberia operates 3 direct flights daily (1h 10min), and Vueling also appears with one direct flight, adding up to approximately 3 flights per day between both airlines. The departure airport is San Sebastián (EAS), located in Hondarribia, about 20 km from the centre of San Sebastián, and the arrival airport is Adolfo Suárez Madrid-Barajas (MAD). One-way prices can start from €24 according to Opodo, although return legs can reach hundreds of euros on specific dates or last-minute purchases. Bear in mind that total door-to-door travel time includes getting to the airport, security checks and waiting, so the plane is only clearly faster if your accommodation in Madrid is near Barajas or if you manage to get a very cheap fare.

These eight stops, all verified on the route between San Sebastián and Madrid, allow you to turn a simple journey into an itinerary with an identity of its own.

Durango

A Biscayan town located in the Ibaizábal valley, at the foot of the imposing Mount Anboto. Its historic centre retains a medieval feel and is a good place to stretch your legs before tackling the stretch towards Vitoria-Gasteiz. The Plaza de Santa María and the archway at the entrance to the town are two quick landmarks to visit.

Azkoitia

A Gipuzkoan town in the Urola valley, known for its religious heritage and mountainous surroundings. It is a discreet but pleasant stop, ideal for grabbing a coffee and breathing in the fresh air of the Basque interior without tourist crowds.

Azpeitia

A few kilometres from Azkoitia, Azpeitia is famous for the Sanctuary of Loyola, an imposing Baroque complex that attracts visitors from all over the world. Although it is not a long stop, the majesty of the building justifies a brief detour if you are interested in architectural and religious heritage.

Beasain

A municipality in the Goierri region of Gipuzkoa, traditionally linked to the railway and steel industry. Its location in the Oria valley makes it a natural waypoint towards the A-1. It is a functional stop, with good access and services for travellers.

Bilbao

Although it involves a detour from the most direct route, Bilbao is one of the great cities of the north and deserves a stop if you have time. The Guggenheim, the Casco Viejo (Old Town) and the estuary are more than enough reasons to extend the trip by a few hours. That said, bear in mind that adding Bilbao to the journey significantly increases the kilometres and total time.

Vitoria-Gasteiz

The capital of Álava is the most natural stop on the way to Madrid. Its medieval centre, declared a Monumental Complex, is one of the best preserved in the Basque Country. The Plaza de la Virgen Blanca and the Cathedral of Santa María are two essential stops before getting back on the A-1 towards Burgos.

Bergara

A Gipuzkoan town with an interesting collection of monuments, including the Royal Seminary of Bergara and the Tower of Olaso. It is a quiet stop, ideal for those who prefer to avoid big cities and enjoy a more relaxed atmosphere.

Arrasate / Mondragón

An industrial and university town in the Alto Deba region, surrounded by mountains. Its Plaza Mayor and the church of San Juan Bautista are the most recognisable landmarks. It is a practical stop to refuel or grab a bite before continuing towards the plateau.

🏨 Hotels in Madrid

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

🎭 Activities and tours in Madrid

Where to stay in Madrid

Madrid offers an enormous range of accommodation for every budget, from guesthouses and pensions from around 40-60€ per night to mid-range hotels between 80 and 150€, and luxury hotels that exceed 200€. The most recommended areas for a traveller arriving from San Sebastián are the historic centre (Sol, Ópera, La Latina), ideal for visiting the main monuments on foot; the Salamanca district, more elegant and with a good dining scene; and Chamberí or Malasaña, with a more alternative atmosphere and excellent connections to Chamartín station. If you arrive by train at Chamartín, staying near this station or Nuevos Ministerios will save you journeys on arrival and departure. For short stays, the centre is the most practical option; for longer stays or business trips, the areas near Paseo de la Castellana offer good connections and services.

Where to eat en route

The journey from San Sebastián to Madrid is a first-class culinary tour, with dishes that change depending on the region you cross.

Bacalao al pil-pil (Basque Country, San Sebastián)

A dish of desalted cod cooked at low temperature with olive oil, garlic and chilli. The emulsion of the oil with the cod’s gelatin creates a characteristic bound sauce, unctuous and glossy. It is a must before leaving San Sebastián.

Txakoli (Basque Country, Getaria and Zarautz)

A young white wine, slightly sparkling and with high acidity, made mainly from Hondarribi Zuri grapes. It is served very cold and poured from a height to enhance its aromas. Perfect for accompanying fish and seafood on the Gipuzkoa coast.

Chuletillas de cordero (Castile and León, Burgos and Aranda de Duero)

Milk-fed lamb chops grilled over embers with coarse salt. They are served very juicy and eaten with your hands. In the Aranda de Duero and Burgos area they are an institution, especially in traditional roast houses.

Morcilla de Burgos (Castile and León, Burgos)

A cooked sausage made with pig’s blood, rice, onion and spices, stuffed into natural casing. It is eaten fried or in a sandwich, and is one of the most recognisable products of the province of Burgos.

Ribera del Duero (Castile and León, Aranda de Duero and Peñafiel)

Red wine made mainly from Tempranillo grapes (Tinta del País), aged in barrel. It stands out for its intense colour, body and notes of ripe fruit and oak. Ideal for accompanying red meats and roasts.

Cochinillo asado (Castile and León, Segovia)

Milk-fed suckling pig slowly roasted in a wood-fired oven with lard and salt. The skin is crispy and the meat very tender; traditionally it is cut with a plate to demonstrate its texture. It is a classic of Segovian cuisine.

Judiones de La Granja (Castile and León, Segovia and La Granja de San Ildefonso)

A stew of large beans with chorizo, morcilla, pancetta and pig’s ear. It is a hearty dish typical of the Segovian mountains, perfect for replenishing your strength in the cold months.

Vino de la DO Vinos de Madrid (Community of Madrid, Arganda del Rey, Navalcarnero and San Martín de Valdeiglesias)

Red, white and rosé wines made with grapes such as Tempranillo, Garnacha and Malvar. The DO brings together several subzones of the Community of Madrid, and in recent years has gained recognition for its quality and character.

Callos a la madrileña (Community of Madrid, Madrid)

A stew of beef tripe with chorizo, morcilla, paprika and spices, cooked slowly over a low heat. It is a traditional Madrid tavern dish, hearty and full of flavour, ideal for winter.

Bocadillo de calamares (Community of Madrid, Madrid)

A sandwich of crusty bread filled with battered and fried squid, often with a touch of lemon or alioli. It is a classic of Plaza Mayor and its surroundings, and a quick and delicious way to get your first taste of the capital.

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

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

It depends on the means of transport. By car, the 460 km journey takes approximately 4 hours and 45 minutes. By train, the Intercity takes 312 minutes (5h 12min), the ALVIA 315 minutes and the MD 467 minutes. By bus, ALSA takes 310 minutes (5h 10min). By plane, the direct flight lasts 70 minutes, but you have to add transfers to the airport and waiting times, so the total door-to-door time can exceed 3 hours.

Which is cheaper, the train or the bus?

The bus is generally cheaper, with tickets from €47 on ALSA. Renfe train prices vary depending on how far in advance you book and the type of service (Intercity, ALVIA or MD), and are usually higher than bus fares, especially at peak times or for last-minute purchases. However, the train offers more comfort and arrives in the centre of Madrid, while the bus can be slower during traffic hours.

Is it worth renting a car?

Yes, especially if you want to make food stops or visit places such as Durango, Vitoria-Gasteiz, Aranda de Duero or Segovia. The car gives you total flexibility and the route along the A-1 and AP-1 is comfortable and well signposted. If you’re only interested in getting to Madrid without stops, the train or bus are more relaxed and economical options, since you avoid the fatigue of driving and the costs of fuel and tolls.

When is the best time to travel?

The best time to do this route is spring (April-June) and autumn (September-October), when temperatures are mild and the landscape is especially attractive. In summer, Madrid can exceed 35°C, which makes arrival and sightseeing on foot less pleasant. In winter, the plateau can experience frost and fog, especially on the stretch from Burgos to Madrid, so it’s advisable to check road conditions if you’re travelling by car.

💡 ¿Sabías que...?

  • ● El primer alumbrado público de Madrid lo impuso Felipe II, quien obligó a los habitantes a encender, limpiar y conservar las farolas de aceite en las fachadas. El 15 de octubre de 1765 se inauguró un nuevo sistema con 4.408 faroles atendidos por 100 faroleros. (https://www.abc.es/madrid/tops/20141125/abci-curiosidades-diccionario-madrid-201411242109_1.html)
  • ● En la Plaza Mayor de Madrid se celebraron 359 ejecuciones entre 1642 y 1809, efectuadas a garrote vil o en la horca. (https://www.timeout.es/madrid/es/que-hacer/madrid-misterios-secretos-leyendas)
  • ● El nombre de Madrid procede del árabe, según la mayoría de los expertos, y se cree que deriva de la palabra Mayra, que significa conducciones o canalizaciones de agua, o de Mayrit, que se traduce como arroyo matriz. (https://supercurioso.com/curiosidades-de-madrid/)
  • ● El reloj de la Puerta del Sol, que anuncia las campanadas de fin de año, fue un regalo a la ciudad hecho por el relojero Losada, quien tardó tres años en fabricarlo en Londres y se colocó en la Casa de Correos en 1866. (https://www.miradormadrid.com/curiosidades-de-madrid/)
  • ● Madrid tiene una estatua de la Libertad creada por el escultor aragonés Ponciano Ponzano en 1853, unos veinte años antes de la de Frédéric Auguste Bartholdi. Es más pequeña, de unos dos metros de altura, y toda de mármol blanco. (https://www.miradormadrid.com/curiosidades-de-madrid/)
  • ● El 17 de octubre de 1919, Alfonso XIII inauguró la primera línea de metro de Madrid, en la que se decidió que los trenes circularan por la izquierda como lo hacían los carruajes. En los años 30 se impuso la conducción por la derecha a nivel nacional, pero la red subterránea ya estaba creada y se quedó tal como estaba. (https://www.elconfidencial.com/viajes/2021-05-12/10-secretos-de-madrid-que-probablemente-no-conoces_3072931/)
  • ● La parroquia de San Antonio de la Florida, junto al río Manzanares, alberga los restos de Francisco de Goya (excepto su calavera) y unas magníficas pinturas al fresco del pintor aragonés en la bóveda. (https://www.elconfidencial.com/viajes/2021-05-12/10-secretos-de-madrid-que-probablemente-no-conoces_3072931/)