The average train between Madrid and Hamburg takes 30h 43m and the fastest train takes 26h 59m. The train service runs several times per day from Madrid to Hamburg. 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 twice daily between Madrid and Hamburg. The earliest departure is at 11:27 AM in the morning, and the last departure from Madrid is at 8:30 PM which arrives into Hamburg at 6:54 AM. All services require a transfer at Barcelona-Sants and take an average of 30h 43m. The schedules shown below are for the next available departures.
Arrives next day




26h 59m • 4 changesArrives +2 days




34h 20m • 4 changesArrives next day




26h 59m • 4 changesArrives +2 days




34h 24m • 4 changesArrives next day




26h 59m • 4 changesArrives +2 days




34h 24m • 4 changesArrives next day




26h 59m • 4 changesArrives +2 days




34h 24m • 4 changesWant to know about travelling from Madrid to Hamburg? 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 Hamburg. However, there are services departing from Madrid station and arriving at Hamburg station via Barcelona-Sants. The journey, including transfers, takes approximately 30h 43m.
Madrid to Hamburg train services, operated by Renfe Viajeros, depart from Madrid-Puerta de Atocha-Almudena Grandes station.
Madrid to Hamburg train services, operated by Renfe Viajeros, arrive at Hamburg Hbf station.
Book your Madrid to Hamburg train tickets online with Renfe Viajeros, TGV inOui and 5 other operators.
The distance between Madrid and Hamburg is 1,785.6 km. The road distance is 2,647 km.
You can take a train from Madrid-Puerta de Atocha-Almudena Grandes to Hamburg Hbf via Barcelona-Sants, Paris Gare de Lyon, Paris Nord, and Köln Hbf in around 19h 58m.