Barcelona to Porto entirely overland, including the river ferry between Spain and Portugal that most guides never mention. There is still no direct train between Madrid and Lisbon, so crossing the Iberian border by public transport takes a little planning: a train to Huelva, a bus to the border town of Ayamonte, a 15-minute ferry across the Guadiana, and a time zone change on the other side.

I did this trip myself in November and December 2020, traveling with carry-on only and working along the way. The route below is the one I actually took. I have rechecked every fare, connection and workspace for 2026, so the practical details are current even though the journey is not.

🌱 Travel health insurance for Europe

Genki Traveler
A travel health insurance with worldwide cover. Monthly payment plans, and easy signup in less than 1 minute.

Summary

🎯 The route at a glance

🚆 RouteBarcelona, Valencia, Madrid, Seville, the Algarve, Lisbon, Porto
⏱ Travel timeAbout 19 hours of trains, bus and ferry in total
🎟 TicketsAbout €200 to €400 for the whole route, depending on how early you book
📲 Where to bookRenfe (and Iryo or Ouigo on some lines) in Spain, CP in Portugal. Bus and ferry tickets on the day
🎫 InterrailValid on Renfe and CP trains, with seat reservations on high-speed and Alfa Pendular trains. Not on the bus or ferry
🕐 Time zonePortugal is one hour behind Spain
🌤 Best monthsMarch to May and September to November
💶 Monthly budgetFrom about €1,450 in Seville or Valencia to €2,900 in Lisbon
⚡ ShortcutMadrid to Lisbon via Badajoz: three trains, about 10 hours, around €70

🚆 How the route works

Spain's rail network is fast and well connected: high-speed trains link Barcelona, Valencia, Madrid and Seville, and Madrid is the hub between them. Portugal's network is slower but simple, with regional trains along the Algarve and Alfa Pendular and Intercidades trains between Faro, Lisbon and Porto.

The difficult part is the border. There is no direct train between Madrid and Lisbon, so you have two options:

  • The southern route (this itinerary): train from Seville to Huelva, bus to Ayamonte, ferry across the Guadiana to Vila Real de Santo António, and a regional train to Faro. It takes about half a day from Huelva to Faro and lets you travel the whole Algarve coast.
  • The Badajoz shortcut: if you want to skip Andalusia and the Algarve, take a Renfe train from Madrid to Badajoz, a CP regional train to Entroncamento and an Intercity train to Lisbon. Three trains, two bookings, about 10 hours and around €70 in fixed fares.

Booking tips: Spanish high-speed fares change like flight prices, so book Renfe, Iryo or Ouigo a few weeks ahead. Portuguese fares barely move, and CP's Promo fares open around 60 days before travel and drop Lisbon to Porto to about €16. Regional trains have fixed prices, and you buy the bus and ferry tickets on the day.

🗺️ The route leg by leg

LegHowTime2026 cost
Barcelona → ValenciaRenfe2h40€27–90
Valencia → MadridRenfe, Iryo or Ouigo1h40€27–80
Madrid → SevilleRenfe or Iryo2h40€40–100
Seville → HuelvaRenfe1h30€12–18
Huelva → AyamonteBus (Damas)1h€4–6
Ayamonte → Vila RealFerry15 min€2.30–2.50
Vila Real → FaroCP regional1h€7–9
Faro → LagosCP regional1h45€7–9
Lagos → LisbonCP via Tunes3h30–4h€18–30
Lisbon → PortoCP Alfa Pendular2h50€35.70, or €16 early
Whole routeTrains, one bus, one ferryAbout 19hAbout €200–400

Spanish fares swing the most with how early you book; Portuguese fares barely move. The route works best slowly, with a week or more in most stops. Here is what to know about each one.

Barcelona

  • In a nutshell: Together with Lisbon, Barcelona has been on nomads' radar for years. It has an excellent coffee and food scene, lively neighborhoods, plenty of sightseeing and the beach on its doorstep. Spring to autumn is the popular season, and it is the most expensive stop on the route.
  • Arriving: From the airport, the Aerobus runs to Plaça de Catalunya for about €7 when booked online, taking 40 to 60 minutes depending on traffic. The R2 Nord train from Terminal 2 is cheaper.
  • How to get around: The metro is fast and frequent. From Plaça de Catalunya, several lines reach Gràcia in about five minutes. For El Born, take line 4 from Urquinaona to Jaume I. Uber in Barcelona works with licensed taxis only.
  • Where to stay: Gràcia and El Born. Listings here.
  • Where to work: El Pati de la Vila, a small, cozy and dog-friendly coworking in Gràcia, or Espai Born, a creative basement space in El Born.
  • Laptop-friendly cafés: Sabio Infante in Gràcia, and Lulu & Flyn in El Born.
  • Where to find community: Meetup.com, Barcelona Digital Nomads, and this list of festivals, concerts and street fests.
  • Train to Valencia: From Barcelona-Sants, Renfe trains reach Valencia Joaquín Sorolla in about 2 hours 40 minutes, for €27 to €90 depending on how early you book.
Barcelona cost of living
Barcelona rents jumped hard, then Catalonia's rent caps froze the market. Here is what the city actually costs a nomad in 2026, with realistic budgets for sharing, solo, and family setups.

Valencia

  • In a nutshell: Spain's third-largest city has the beach, a lively old town, the Turia gardens and a big food scene, at noticeably lower prices than Barcelona.
  • How to get around: From Joaquín Sorolla station it is a short walk to the Xàtiva metro station. Ruzafa and Ciutat Vella are walkable from the station or a short taxi or Uber ride away. Bike rental is popular and costs about €8 to €12 a day.
  • Where to stay: Algirós (student neighborhood), Ruzafa (trendy), or Ciutat Vella (city center).
  • Where to work: Cowork Ruzafa in Ruzafa, or Garage Coworking in El Carmen with 24-hour access.
  • Laptop-friendly cafés: Café ArtySana and Bluebell Coffee Roasters in Ruzafa, though Bluebell asks guests to close laptops when it is busy. There are 50+ more on laptopfriendly.co.
  • Where to find community: Valencia Digital Nomads.
  • Train to Madrid: From Valencia Joaquín Sorolla to Madrid Puerta de Atocha takes about 1 hour 40 minutes, with Renfe, Iryo and Ouigo competing on price, from €27 to €80.

Madrid

  • In a nutshell: Spain's capital and rail hub, with great public transport, food markets, parks and museums, and a lively, international feel.
  • How to get around: From Madrid Puerta de Atocha, metro line 1 and the Cercanías commuter trains connect you with the rest of the city. Retiro is the closest recommended neighborhood to the station. Uber, Cabify and city bikes are available too.
  • Where to stay: Chamberí, Chamartín, and Retiro.
  • Where to work: The Shed in Salamanca, Modo Coworking in Retiro, or The Mun Hub in Arganzuela, close to Atocha.
  • Laptop-friendly cafés: 70+ laptop-friendly coffee shops on laptopfriendly.co.
  • Where to find community: Meetup.com, Digital Nomads Spain.
  • Train to Seville: From Madrid Puerta de Atocha, Renfe and Iryo trains reach Seville Santa Justa in about 2 hours 40 minutes, for €40 to €100. If you need to fly out of Spain, Madrid is the easiest place to end the trip. For the fastest way to Lisbon, take the Badajoz shortcut from here.

Seville

  • In a nutshell: A beautifully restored historic quarter, a great student, bar and restaurant scene, and plenty of sightseeing. Seville is walkable and has good public transport. Skip July and August, when it is one of the hottest cities in Europe.
  • How to get around: From Santa Justa station, city buses reach Alfalfa and Macarena, for example bus 32 from the José Laguillo stop. Google Maps has good bus information, and Uber is available.
  • Where to stay: Alfalfa and Macarena.
  • Where to work: Arcadia Coworking or La Burbuja Honei Coworking.
  • Laptop-friendly cafés: A short list on laptopfriendly.co.
  • Where to find community: The nationwide Facebook group Digital Nomads Spain includes people who are in Seville or might arrive during your stay.
  • Alternative ending: From Seville, trains via Córdoba or Antequera run to Málaga if you prefer to end the trip on the Costa del Sol.
Spain for nomads
Spain is five nomad countries in one. Barcelona, Madrid, Valencia, Málaga, Seville and San Sebastián compared, with realistic 2026 short-stay costs, how the digital nomad visa works, and where the communities really are.

Crossing into Portugal: Huelva, Ayamonte and the ferry

  • Seville to Huelva: Take the Renfe train from Santa Justa to Huelva (about 1 hour 30 minutes, €12 to €18). If you arrive late, stay overnight in Huelva.
  • Huelva to Ayamonte: Damas buses run to the Spanish border town of Ayamonte in about an hour, for €4 to €6. From the bus station it is a 15-minute walk or a short taxi ride to the pier.
  • The ferry: The small ferry crosses the Guadiana River, the natural border between Spain and Portugal, in about 15 minutes for around €2.50. Buy your ticket at the pier. You also gain an hour, because Portugal is one hour behind Spain.
  • Vila Real de Santo António to Faro: From the pier, walk about 10 minutes to the train station and take the CP regional train to Faro (about 1 hour, €7 to €9). Huelva to Faro is easily done in half a day.

Faro

  • In a nutshell: A small, walkable town with an airport and train station, a handful of nice restaurants and good cafés. When coming from Spain overland, it is the first Algarve stop worth a few nights, but not somewhere to settle.
  • How to get around: Everything central is walkable. Bolt and Uber are available, or rent a bicycle.
  • Where to stay: Close to the center. I stayed at the Alameda Exclusive House, about 12 minutes' walk from the station.
  • Where to work: Faro Avenida, a bright coworking with fast Wi-Fi on Avenida 5 de Outubro, or the small Kobu Spaces.
  • Where to find community: The Facebook groups Digital Nomads Algarve and Digital Nomads Portugal.
  • Train to Lagos: The CP regional train takes about 1 hour 45 minutes and costs €7 to €9. If you want to explore the Algarve on the way, Olhão and Albufeira are both on the line, and Loulé is a short bus ride away. For something different in Albufeira, The Homeboat Company rents houseboats in the marina.

Lagos

  • In a nutshell: The digital nomad hub of the Algarve, with great beaches and a real community. It gets busy, popular and expensive in July and August. Stay two weeks.
  • How to get around: The train station is next to the marina, about 20 minutes' walk from the center. Lagos is very walkable once you have dropped off your luggage, and Uber and Bolt are available.
  • Where to stay: The neighborhoods between the center and the lighthouse, for example Vilas de Dinis, about 15 minutes' walk from the center.
  • Where to work: Nest Coworking near the water, with call booths and weekly happy hours, or CENTRO Work & Event Space in the center.
  • Laptop-friendly cafés: Black and White Coffee Shop, Coffee & Waves, and The Studio, a roaster café where locals come to work.
  • Where to find community: The Facebook groups Lagos Digital Nomads, Digital Nomads Algarve, and Digital Nomads Portugal.
  • Train to Lisbon: Take the regional train to Tunes and change to the Intercidades or Alfa Pendular to Lisbon. The journey takes 3 hours 30 minutes to 4 hours and costs €18 to €30 on CP.

Lisbon

  • In a nutshell: Europe's best-known nomad capital, with thousands of remote workers, regular meetups and plenty of coworking. It is an expensive short-term destination, so research accommodation early, and note that many flats have no AC.
  • How to get around: Metro, buses and trams cover the city, and Uber and Bolt are widely used.
  • Where to stay: Santos. Apartment listings here.
  • Where to work: Second Home in the Mercado da Ribeira, or Resvés.
  • Laptop-friendly cafés: Copenhagen Coffee Lab, which opens early.
  • Where to find community: Lisbon Digital Nomads on Meetup.com.
  • Train to Porto: The Alfa Pendular takes about 2 hours 50 minutes and costs €35.70, or about €16 with a CP Promo fare booked early. The line passes Coimbra, a laid-back and more affordable university city worth a stop of a week or two.
Lisbon cost of living
Lisbon's reputation was built on being cheap. That reputation is out of date. Here is what the city actually costs a nomad in 2026, and how much the numbers have moved since we last ran them.

Porto

  • In a nutshell: A vibrant, walkable city with a growing nomad community and international expat scene, cheaper than Lisbon and easy to spend two to four weeks in.
  • How to get around: Porto is hilly but walkable, with a metro and buses. Uber and Bolt are available.
  • Where to stay: Boavista, Aliados, and Bolhão. Check Flatio and Rent Apartment Porto for more affordable options.
  • Where to work: Porto i/o Downtown, or Porto i/o Riverside with views over the Douro and regular meetups.
  • Laptop-friendly cafés: C'alma Coffee Room, a hidden second-floor café, and Moustache.
  • Where to find community: The Facebook groups Digital Nomads Porto and Porto Digital Nomads for meetups and events.
Portugal for nomads
Portugal is still one of Europe's best places to work remotely, but the tax deal that made it famous is gone. What the D8 actually requires in 2026, what you will really pay, and where to base yourself.
Portugal digital nomad visa: requirements and how to apply
Portugal's D8 lets you live and work remotely for up to five years, if you clear the €3,680 income bar. Here is who qualifies, what it costs, and the tax change that most guides still get wrong.

⏱ How long to stay where

StopSuggested stayWhy
Barcelona1–2 weeksPlenty to do, but the most expensive stop on the route
Valencia1 weekBeach and city for noticeably less than Barcelona
Madrid1 weekUnavoidable as a rail hub, and worth the stop anyway
Seville1 weekWalkable and underrated, the last stop before the border
HuelvaOne night, if thatTransit stop. Only stay if you arrive too late to continue
FaroA few nightsSmall and pleasant, but not somewhere to settle
Lagos2 weeksThe Algarve's nomad hub, with a real community
Coimbra1–2 weeks, optionalOn the Lisbon–Porto line, so stopping costs nothing
Lisbon2–4 weeksEnough scene to justify staying put for a while
Porto2–4 weeksCheaper than Lisbon and easy to linger in

💶 How much does the route cost?

Per monthSeville / ValenciaPortoAlgarve (Lagos)Madrid / BarcelonaLisbon
Furnished 1BR, short stay€900–1,400€1,000–1,500€1,000–1,600€1,300–2,100€1,400–2,000
Coworking€100–200€120–200€150–250€150–250€150–300
Food€400–500€400–500€400–550€450–600€450–550
Transport€20–40About €40€20–40€20–45About €40
Realistic total€1,450–2,100€1,550–2,250€1,600–2,450€1,950–3,000€2,050–2,900

Rent is where the money goes, and furnished short stays cost more than the long-term averages you see online. Lisbon, Barcelona and Madrid are the expensive stops; Seville, Valencia and Porto bring the average down. In the Algarve, prices jump in July and August. In my experience, eating out costs more in Portugal than in Spain, at around €10 to €15 for a simple meal. To save on coworking, pick accommodation you can work from and use a coworking space a few days a week. The tickets themselves are a small part of the budget, at about €200 to €400 for the whole route.

🌤️ When to go

Spring (March to May) and autumn (September to November) are the sweet spots: mild weather and lower prices on the Spanish coast and in the Algarve. July and August are hot, especially in Seville and Madrid, and many apartments have no AC, so check before you book. Winters can be cold indoors, as rentals often lack central heating. In the off-season, for example in November and December when I traveled, some hotels, restaurants and cafés close for their own holidays.

Summer is also peak tourist season: French, British, Dutch and German holidaymakers fill the coasts, especially the Algarve, and small places like Lagos get expensive. If you travel in summer, book accommodation early, or start in Portugal and reach the Algarve after August.

🧳 Who this route is for

This itinerary is for slow-traveling nomads with the heart of a traveler, or grown-up backpackers with flexible jobs and a mid-range budget. When I did this trip in November and December 2020, the mix of famous cities like Barcelona, Madrid and Lisbon with less famous places like Seville, Olhão and Coimbra was what made it. I recommend it if you can check the following points:

  • Light luggage, carry-on luggage.
  • Flexible working hours/days.
  • You enjoy changing scenery overland.
  • Tolerance for delays, ad-hoc changes of travel plans, and waiting time.
  • You don't mind walking from the station to your accommodation, although Uber or Bolt and taxis are available everywhere on the route.

❓ Frequently asked questions

Is there a direct train from Madrid to Lisbon?

No. The fastest rail option is three trains via Badajoz and Entroncamento, taking about 10 hours for around €70. The alternative is the southern route via Seville, Huelva and the Ayamonte ferry into the Algarve.

How do you get from Spain to Portugal by train?

Either via Badajoz (Madrid to Lisbon with three trains) or along the south coast: train from Seville to Huelva, bus to Ayamonte, a 15-minute ferry to Vila Real de Santo António and a regional train to Faro.

How long does Barcelona to Porto take overland?

About 19 hours of actual travel, split into ten legs. Done slowly, with stays in each city, most people take four to eight weeks.

How much does the route cost?

About €200 to €400 in transport for the whole route, depending on how early you book Spanish high-speed trains. Living costs range from about €1,450 a month in Seville or Valencia to €2,900 in Lisbon.

Can I use Interrail in Spain and Portugal?

Yes, on Renfe and CP trains. High-speed trains in Spain and the Alfa Pendular and Intercidades in Portugal need a paid seat reservation. The bus to Ayamonte and the Guadiana ferry are not covered.

Is there a time difference between Spain and Portugal?

Yes. Portugal is one hour behind Spain, so you gain an hour when you cross the Guadiana from Ayamonte to Vila Real de Santo António.

🎯 Conclusion

Barcelona to Porto overland is one of Europe's most rewarding slow-travel routes: fast Spanish trains between big cities, a quirky border crossing by bus and river ferry, the Algarve coast, and two of Europe's favorite nomad cities at the end. Book the Spanish legs early, enjoy the ferry, and take the Badajoz shortcut if you are short on time.

Italy & Germany by train
Italy and Germany are connected by direct trains over the Brenner Pass. Here is how the routes, times and tickets work, plus a slow-travel itinerary from Milan via Verona and Bolzano to Munich.
Prague to Sofia by train and bus
Prague, Budapest, Timișoara, Belgrade and Sofia: an overland route through Central and Eastern Europe. Here is which legs still run by train, where you need a bus, and what each city costs.
Central Europe by train
Prague, Vienna, Ljubljana and Split by train: three capitals and the Adriatic coast, with every leg, fare and coworking space checked for 2026.