Home · Search
Routes

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

Crossing the peninsula from the salty breeze of the Cantabrian Sea to the bustle of the capital is an experience that changes pace and landscape in just a few hours, offering a fascinating visual transition from the lush green north to the golden light of the center. This journey is not just a logistical transfer, but an opportunity to understand Spain’s geographical diversity, whether you enjoy the speed of a modern train or take the wheel to discover stops steeped in history along the way.

🚗 How to get from San Sebastián to Madrid

Mode Time Approx. price Book
🚗 Car 4h 45min Fuel: 37–55€ View route
🚄 Train 5h 5min From €15 (varies) Renfe ↗

🎫 Compare all tickets

How to get from San Sebastián to Madrid: a quick overview

The fastest way to connect San Sebastián with Madrid is the Renfe Intercity train, which covers the distance in just over 5 hours, although driving offers the greatest flexibility for exploring the surrounding area.

For the traveler who prioritizes comfort and wants to avoid driving, the train is the undisputed choice, with multiple daily frequencies that allow you to work or rest during the journey. If your budget is tight and you have plenty of time, the Alsa bus is an economical alternative, although the trip is considerably longer. Finally, if you value total freedom and plan to visit several towns in the Basque Country and Navarre before reaching the capital, renting a car is the best strategy, allowing you to manage your own stops and schedule without depending on public transport.

Driving from San Sebastián to Madrid

The total distance by road between San Sebastián and Madrid is 460 kilometers, a journey that requires approximately 4 hours and 45 minutes of effective driving time.

When you take the wheel for this route, you will find a modern, toll-free highway network that makes the journey considerably easier. The road infrastructure is robust and designed to connect the north with the center seamlessly. According to verified route data, the main arteries that make up this corridor include the A-8 (Autovía del Cantábrico), essential for leaving the coastal area, and the A-1 (Autovía del Norte), which acts as the backbone of the journey south. You will also travel on the A-15 (Autovía de Navarra) and the A-10 (Sakanako autobia), which allow you to cross the Navarre region comfortably.

Depending on the exact variant you choose or traffic conditions, you might use other important roads such as the A-12 (Donejakue Bidearen autobia), the A-13, or the A-73. As you approach the plateau and the Castile and León region, the network expands with options like the A-62 (Autovía de Castilla) and the A-11 (Autovía del Duero). For the final access to the capital and its surroundings, the road system connects with the A-6 (Autovía del Noroeste), the A-2 (Autovía del Nordeste), the A-3 (Autovía del Este), the A-4 (Autovía del Sur), the A-5 (Autovía del Suroeste), and the A-42 (Autovía de Toledo). All these roads are toll-free, meaning the cost of the trip is mainly limited to fuel and vehicle wear and tear.

By train from San Sebastián to Madrid

The direct train service between San Sebastián and Madrid is operated exclusively by Renfe, with a frequency of 7 daily trains departing from San Sebastián/Donostia station.

Arrival is at Madrid-Chamartín-Clara Campoamor station, a key transport hub in the capital. Departure times are varied, starting with the first train at 4:55 a.m. and ending with the last service at 16:47. In terms of service type and duration, Renfe offers three different options with distinct travel times. Travellers seeking the fastest journey can opt for the Intercity service, with 2 trains per day completing the trip in 305 minutes. A very similar option in terms of speed is the ALVIA service, also with 2 daily departures, taking 311 minutes to complete the journey. For those with more flexible schedules, there is the MD (Media Distancia, Medium Distance) train, with 3 trains per day, although its duration extends to 500 minutes. In the slowest case, the travel time can reach up to 562 minutes depending on the specific connection.

By bus from San Sebastián to Madrid

The company Alsa offers a direct bus service connecting both cities with a journey duration of 350 minutes.

This option is ideal for travellers who are not in a hurry and are looking for an alternative to the train or a private car. The bus departs directly from San Sebastián and arrives in Madrid without the need for complex intermediate transfers. In terms of cost, the ticket price starts at 47 euros, although this fare may vary depending on how far in advance you book or on demand at the time. It is a solid option if you prefer to avoid driving the 460 kilometres but find the train budget too high.

If you decide to make the journey by car, the route is dotted with charming towns that are well worth a pause to stretch your legs and soak up the local culture.

Durango

Located in the province of Biscay, Durango is a perfect strategic stop to break up the trip just after leaving the coastal area. It is a town with a rich history and offers basic services for the traveler, as well as being a point of cultural interest in the Duranguesado region.

Azkoitia

Continuing along the route, Azkoitia appears as a historic town of great importance. It is known for its heritage and tranquil atmosphere, ideal for a quick coffee or a short stroll through its old town before getting back on the road south.

Azpeitia

Very close to Azkoitia, Azpeitia is another gem of the Basque Country that you should not overlook. Famous as the birthplace of Ignatius of Loyola, this town combines religious history with beautifully preserved traditional architecture, offering a typical scene from northern Spain.

Beasain

Beasain is a municipality situated in the Oria Valley, in the province of Gipuzkoa. It is a key communications hub for the area and has a strong industrial sector, but also offers green areas and spaces to rest during the 460 km journey.

Bilbao

Although it may require a small detour depending on your exact route on the A-8, Bilbao is the capital of Biscay and a quintessential must-see stop. Its urban transformation and cultural offerings are top-tier, making it the perfect place for a longer stop if you have plenty of time in your 4 hour and 45 minute itinerary.

Vitoria-Gasteiz

Capital of Álava and seat of the Basque government, Vitoria-Gasteiz is a city that stands out for its sustainability and green spaces. It is an excellent stop for lunch, offering high-quality gastronomy at reasonable prices before heading into the Castilian plateau.

Bergara

Bergara, historically known for its Royal Seminary of Nobles and its tradition in the fields of arms and music, is another of the verified stops on this route. Its natural surroundings and tranquility make it a haven of peace in the middle of the journey.

Arrasate / Mondragón

Finally, Arrasate, also known as Mondragón, closes this list of recommended stops. It is an industrial town with a strong cooperative network and an interesting old town to visit, strategically located on the route south.

🏨 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 sleep in Madrid

Upon arriving in Madrid, the accommodation options are immense and are mainly divided by area and price range, without the need to look for specific hotel names.

For travelers who want to be in the heart of the action, the recommended areas are around Puerta del Sol, Gran Vía, and the Barrio de las Letras (Literary Quarter). Here you will mainly find mid-range and high-end hotels, as well as tourist apartments, with price ranges that tend to be higher due to the prime location. If you prefer a more local and quiet atmosphere, neighborhoods like Malasaña, Chueca, or La Latina are ideal, offering a mix of boutique hostels and charming hotels. For tighter budgets, peripheral areas well connected by metro, or shared hostels in the center, are the most viable option. Price ranges in the capital vary drastically depending on the season, but generally you can find everything from budget options to luxury accommodation in all these areas.

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

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

Travel time varies depending on the mode of transport: by car it takes 4 hours and 45 minutes, by Intercity train it takes 305 minutes, and by bus it takes 350 minutes.

Which is cheaper, the train or the bus?

The Alsa bus is generally the most economical option with prices starting at 47€, while Renfe train fares vary but are usually higher depending on how far in advance you book and the type of train (Intercity, Alvia, or MD).

Is it worth renting a car?

Yes, it is worth it if you plan to visit recommended stops such as Durango, Azpeitia, or Vitoria-Gasteiz, as a car gives you complete freedom to explore these towns that often lack fast direct connections.

When is the best time to travel?

The best time depends on your preferences, but travelling by train allows you to enjoy the scenery in any season, while by car it is advisable to avoid peak departure times (4:55) or arrival times if there is heavy traffic on the A-1 or A-8 motorways.