| Option | Time | Price | What to know |
|---|---|---|---|
| Direct Alvia train | About 6 h 44 (return about 6 h 16) | Dynamic fares, sold by Renfe | One departure a day, 14:32 from Sants |
| FlixBus coach | From 7 h 20 | From $29.98 | Two departures a day, first at 02:30, last at 22:30 |
| Train via Madrid | Over 8 hours with the change | Two tickets | Barcelona to Madrid about three hours, then the Alvia north |
The direct train
Renfe runs one Alvia in each direction, with no change of train. The current pattern is:
| Direction | Departs | Arrives | Duration |
|---|---|---|---|
| Barcelona Sants to San Sebastián | 14:32 | 21:16 | About 6 h 44 |
| San Sebastián to Barcelona Sants | 06:53 | 13:09 | About 6 h 16 |
The train ends at Donostia station, also signed Estación del Norte, in the city. There is no full high-speed line on this route, so the journey takes close to seven hours. Fares are dynamic: the earlier you book, the better the chance of a low price, and the price changes with the date. Because there is only one train a day, check your date on renfe.com before booking the hotel, and check again around holidays when the timetable can change.
An afternoon departure means you arrive in the evening, with a late dinner of pintxos as the first plan. Going home, the 06:53 departure from Donostia means an early start from the hotel and an arrival in Barcelona in the early afternoon.
The coach
FlixBus shows the fastest trip at about 7 hours 20 minutes, with tickets from $29.98 that change with demand, time of day and how far ahead you book. There are two buses a day, the first at 02:30 and the last at 22:30. In Barcelona the stops are Barcelona Nord bus terminal and Barcelona Sants. In San Sebastián, the bus station on Paseo Federico García Lorca is one stop shown, and the page warns that another stop shown is operated by a marketplace partner, so check the address printed on your ticket.
The coach is cheaper and offers an overnight departure, but a coach that leaves at 02:30 is a tiring way to arrive. For most visitors the train is the more comfortable choice, because it runs in daytime and arrives in the centre.
Changing in Madrid
If the direct train does not fit your day, you can build the trip in two parts: the high-speed train from Barcelona to Madrid, which takes about three hours (see Barcelona to Madrid by train), then the Alvia from Madrid Chamartín to San Sebastián, which takes about 5 hours (see Madrid to San Sebastián). Together they take more than 8 hours with the change, so this makes sense only if the direct train is full or the times do not suit you. The two legs are separate tickets, so leave a buffer in Madrid.
What about Bilbao?
Renfe also runs one direct Alvia a day from Barcelona to Bilbao, about 7 hours, with engineering works at weekends on this line. If your trip covers the Basque coast, Bilbao is the other end of the same line. See Madrid to Bilbao for the northern end of the route.
Where to sleep in San Sebastián
The Parte Vieja is the lively choice for food, while the Centro and Gros are quieter. Hotels are pricey in summer and during the film festival in September. Search hotels in San Sebastián with the Booking box and check free cancellation, since a single daily train makes a missed connection costly.
A day-by-day plan around the train
| Day | Plan |
|---|---|
| Day 1 | 14:32 train from Barcelona, 21:16 arrival, dinner in the Parte Vieja |
| Day 2 | Walk the bay and the old town, pintxos lunch |
| Day 3 | Day out on the Basque coast |
| Day 4 | Early start for the 06:53 train to Barcelona, arrival 13:09 |
If you have only two nights, you can skip the last day and arrive back in Barcelona on the afternoon of day 3.
Mistakes to avoid
- Counting on several trains a day: the direct service is one departure in each direction.
- Planning dinner before 21:16 on the day you arrive.
- Booking the 06:53 return without allowing time to cross the city at dawn.
- Choosing the 02:30 coach to save money without counting the lost night.
- Booking the Madrid change with a tight margin: two separate tickets are not protected if the first train is late.
FAQ
Is there a direct train from Barcelona to San Sebastián?
Yes: one Renfe Alvia a day leaves Barcelona Sants at 14:32 and arrives at 21:16 (November 2026 pattern).
How long does it take?
About 6 hours 44 minutes by train and from 7 hours 20 minutes by FlixBus.
How much is the coach?
From $29.98, depending on demand and the date.
Can I go to Bilbao the same way?
Yes: one direct Alvia a day, about 7 hours, with engineering works at weekends on this line.
Barcelona Authority editorial team, 12 November 2026.



