The average train between Portbou and Madrid takes 8h 1m and the fastest train takes 5h 42m. The train service runs several times per day from Portbou to Madrid. The journey time may be longer on weekends and holidays; use the search form on this page to search for a specific travel date.
Trains run 4 times a day between Portbou and Madrid. The earliest departure is at 10:05 AM in the morning, and the last departure from Portbou is at 8:25 PM which arrives into Madrid at 9:52 AM. All services require a transfer, and take on average 8h 1m. The schedules shown below are for the next available departures.

6h 13m • 1 change

6h 20m • 1 change

6h 12m • 1 change
Arrives next day

13h 28m • 1 change

6h 13m • 1 change

6h 20m • 1 change

6h 12m • 1 change
Arrives next day

13h 28m • 1 change

6h 13m • 1 change

6h 20m • 1 change

6h 12m • 1 change
Arrives next day

13h 28m • 1 change

5h 43m • 1 change

6h 20m • 1 change

5h 42m • 1 change
Arrives next day

13h 27m • 1 change

5h 43m • 1 change

6h 20m • 1 change

6h 12m • 1 change
Arrives next day

13h 27m • 1 change
Want to know about travelling from Portbou to Madrid? We have put together a list of the most frequently asked questions from our users such as: What is the cheapest mode of transport? What is the quickest option? How much do tickets usually cost? and many more.
No, there is no direct train from Portbou to Madrid. However, there are services departing from Portbou station and arriving at Madrid station via Girona. The journey, including transfers, takes approximately 8h 1m.
Portbou to Madrid train services, operated by Rodalies de Catalunya, depart from Port-Bou station.
Portbou to Madrid train services, operated by Rodalies de Catalunya, arrive at Madrid-Puerta de Atocha-Almudena Grandes station.
Book your Portbou to Madrid train tickets online with Rodalies de Catalunya, Renfe AVE and Renfe Viajeros.
The distance between Portbou and Madrid is 614 km. The road distance is 772 km.
You can take a train from Port-Bou to Madrid-Puerta de Atocha-Almudena Grandes via Girona in around 6h 11m.