The average train between Mainz and Hamburg takes 4h 56m and the fastest train takes 4h 22m. There is a train service every few hours from Mainz 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 hourly between Mainz and Hamburg. The earliest departure is at 3:34 AM at night, and the last departure from Mainz is at 10:34 PM which arrives into Hamburg at 6:50 AM. All services require a transfer, and take on average 4h 56m. The schedules shown below are for the next available departures.

4h 54m • 1 change

4h 54m • 1 change

4h 54m • 1 change

4h 54m • 1 change

4h 56m • 1 change

4h 55m • 1 change

4h 54m • 1 change

4h 56m • 1 change

5h 39m • 1 change

4h 55m • 1 change

4h 55m • 1 change

4h 57m • 1 change
Want to know about travelling from Mainz 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 Mainz to Hamburg. However, there are services departing from Mainz station and arriving at Hamburg station via Hamburg Hbf. The journey, including transfers, takes approximately 4h 56m.
Mainz to Hamburg train services, operated by Deutsche Bahn Regio (DB Regional), depart from Frankfurt station.
Mainz to Hamburg train services, operated by Deutsche Bahn Regio (DB Regional), arrive at Hamburg Hbf station.
Book your Mainz to Hamburg train tickets online with Deutsche Bahn Regio (DB Regional), Deutsche Bahn Intercity (DB IC) and 2 other operators.
The distance between Mainz and Hamburg is 413.7 km. The road distance is 550 km.
Deutsche Bahn Intercity (DB IC) operates a train from Frankfurt to Hamburg Hbf hourly. Tickets cost €95–400 and the journey takes 3h 43m.