The average train between Madrid and Castelldefels takes 3h 50m and the fastest train takes 3h 28m. There is an hourly train service from Madrid to Castelldefels. 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 hourly between Madrid and Castelldefels. The earliest departure is at 6:09 AM in the morning, and the last departure from Madrid is at 8:30 PM which arrives into Castelldefels at 12:28 AM. All services require a transfer, and take on average 3h 50m. The schedules shown below are for the next available departures.

3h 48m • 1 change

4h 3m • 1 change

3h 53m • 1 change

3h 33m • 1 change

3h 58m • 1 change

3h 58m • 1 change

3h 33m • 1 change

4h 10m • 1 change

3h 58m • 1 change

3h 33m • 1 change

4h 10m • 1 change

3h 33m • 1 change
Want to know about travelling from Madrid to Castelldefels? 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 Madrid to Castelldefels. However, there are services departing from Madrid station and arriving at Castelldefels station via Barcelona-Sants. The journey, including transfers, takes approximately 3h 50m.
Madrid to Castelldefels train services, operated by Renfe AVE, depart from Madrid-Puerta de Atocha-Almudena Grandes station.
Madrid to Castelldefels train services, operated by Renfe AVE, arrive at Barcelona-Sants station.
Book your Madrid to Castelldefels train tickets online with Renfe AVE, Rodalies de Catalunya and 3 other operators.
The distance between Madrid and Castelldefels is 486.6 km. The road distance is 623 km.
Renfe AVE operates a train from Madrid-Puerta de Atocha-Almudena Grandes to Barcelona-Sants hourly. Tickets cost €90–160 and the journey takes 3h 2m. Three other operators also service this route.