The average train between Hamburg and Madrid takes 29h 30m and the fastest train takes 27h 4m. The train service runs several times per day from Hamburg 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 twice daily between Hamburg and Madrid. The earliest departure is at 5:45 AM in the morning, and the last departure from Hamburg is at 10:45 PM which arrives into Madrid at 9:02 AM. All services require a transfer at Koeln Hbf and take an average of 29h 30m. The schedules shown below are for the next available departures.
Arrives next day




28h 7m • 4 changesArrives +2 days




34h 12m • 4 changesArrives next day




28h 7m • 4 changesArrives +2 days




34h 12m • 4 changesArrives next day




28h 7m • 4 changesArrives +2 days




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