Vienna to Hamburg by train

Last reviewed: July 2026

Typical duration
10 hours
Direct
Direct service (one change)
From price
from EUR 34.90
Night train
Night/sleeper option (Nightjet)
Speicherstadt canal and brick warehouses in Hamburg at night

Train service

Deutsche Bahn

Deutsche Bahn (DB) is Germany’s national railway company, operating long-distance, regional, and international train services across Europe.

Train tickets

Omio

Omio connects you with over 1,000 transport providers - trains, buses, flights, and more - to simplify your travel planning.

Rail Europe

Rail Europe is a leading travel tech company specializing in European train bookings for over 15,000 travel professionals worldwide.

Trainline

Trainline sells rail and coach tickets worldwide on behalf of major UK and European transport companies.

Frequently asked questions

Is there a direct train from Vienna to Hamburg?

Yes. The ÖBB Nightjet runs directly from Vienna to Hamburg overnight. Daytime options vary by date and often involve at least one change.

How long is the train from Vienna to Hamburg?

Plan on roughly 10 to 12 hours for many daytime journeys, with the fastest connections around 9 to 10 hours on some dates. The Nightjet runs overnight, so the timing is better judged as an evening departure and next-morning arrival.

Is the Nightjet from Vienna to Hamburg worth it?

It is often the best choice if you want a direct journey and can book a couchette or sleeper at a reasonable price. A seat is cheaper, but it is much less comfortable for a full overnight trip.

Can I use Interrail or Eurail from Vienna to Hamburg?

Yes, but you still need a paid reservation or accommodation supplement for the Nightjet. For daytime trains, check the exact trains in your pass planner and consider reserving a seat for such a long trip.

Where should I book Vienna to Hamburg train tickets?

Check Nightjet or ÖBB for the overnight train, and compare ÖBB with Deutsche Bahn for daytime options. Rail Europe, Omio, and Trainline can also help compare times and prices, but review fees and ticket conditions before paying.

Which Hamburg station should I choose?

Hamburg Hbf is the main central station and the safest default for most visitors. Hamburg-Altona can be better if you are staying in western Hamburg or your train continues there.

More routes