Hamburg to Vienna by train

Two direct trains run Hamburg to Vienna: the daily ÖBB Nightjet overnight and a daytime České dráhy Railjet via Berlin and Prague, a little over 10 hours.

Origin
Hamburg
Destination
Vienna
Main stations
Hamburg Hbf to Wien Hbf
Countries
Germany, Austria

Hamburg Hbf to Wien Hbf is a long international journey. There are two direct trains: the daily ÖBB Nightjet overnight, and a direct daytime Railjet run by České dráhy via Berlin, Dresden and Prague that takes a little over 10 hours. Connections with one change also take a little over 10 hours. The Passau to Obertraubling closure suspends ICE traffic between Vienna and Nuremberg over the affected route through 12 December 2026, so do not plan on a direct ICE. The Nightjet is expected to call at Linz, but construction can change its route and stops. Use the full station names when booking: Hamburg Hbf is the main city-centre departure point and Wien Hbf is Vienna's main long-distance station.

Hamburg to Vienna at a glance

  • Main departure: Hamburg Hbf
  • Main arrival: Wien Hbf
  • Direct options: daily ÖBB Nightjet overnight, and a direct daytime České dráhy Railjet via Berlin, Dresden and Prague
  • Daytime journey time: a little over 10 hours, direct or with one change
  • Other daytime options: connections using RJX and ICE, with changes varying by date
  • Main operators to check: ÖBB, České dráhy and Deutsche Bahn

This is a route where the overnight and daytime choices solve different problems. The Nightjet saves a hotel night and takes you from Hamburg to Vienna while you sleep. The daytime Railjet suits you if you want to stay awake. Check your date, because construction and connection times can change the result.

Daytime trains and the current ICE works

A direct daytime Railjet run by České dráhy links Hamburg and Vienna via Berlin, Dresden and Prague in a little over 10 hours. Other daytime trips use RJX and ICE with one or two changes and also take a little over 10 hours.

The Passau to Obertraubling section is closed from 14 June through 12 December 2026, suspending ICE traffic between Vienna and Nuremberg over the affected route; the Hamburg to Vienna Nightjet is rerouted. Do not plan on a direct ICE. Choose the direct Railjet or a connection that the live timetable offers.

The engineering dates matter most when your arrival in Vienna feeds a flight, hotel check-in or another train. Leave a margin around any connection and check the booking result for departure, arrival and stops.

The direct Nightjet

The daily ÖBB Nightjet runs directly overnight from Hamburg to Vienna, arriving at Wien Hbf in the morning. The train starts at Hamburg-Altona, so check your ticket for the Hamburg station you board at. Construction can alter the route, so check the booking result for exact stops.

You can choose a seat, couchette or sleeping car. A seat is the lowest-comfort option for an overnight journey. A couchette gives you a proper berth, while a sleeper costs more but gives you more privacy. Pick the accommodation first when sleep matters, then compare the available ticket conditions inside that category.

Tickets, reservations and passes

Fares depend on the operator, date, comfort category and how early you book. Check the live Deutsche Bahn, ÖBB or České dráhy booking result for the price on your date. Keep the ticket price separate from any reservation or accommodation charge.

Nightjet tickets include a seat reservation. If you use an Interrail or Eurail pass, the pass can be valid on the Nightjet subject to its conditions, but each pass holder must pay a reservation fee. That fee secures the seat, couchette or bed. Book it before departure rather than assuming that the pass alone is enough.

Sparschiene fares are limited by train and number. They can be useful when your dates are fixed, but a more flexible fare may be worth the extra cost if your Hamburg departure or onward Vienna plans could change.

Stations and planning the connection

Start with Hamburg Hbf and finish at Wien Hbf. Hamburg Hbf is central and has local rail and public transport connections. Wien Hbf is Vienna's main long-distance station, with onward trains and city transport in the same complex.

For a daytime trip, compare the number of changes before you compare a small difference in arrival time. A ten-minute saving is rarely worth a tight international connection, especially while the Passau works are active. For the Nightjet, arrive early enough to find the platform and board the correct accommodation section without rushing.

Keep the final ticket available during the journey. Works can change intermediate stops, so check your booking result.

Which option should you choose?

Choose the Nightjet if you want to save a hotel night or need to arrive in central Vienna in the morning. Choose the direct daytime Railjet or a connection if you want to work, stay awake or avoid overnight travel. For either option, check the live booking result for exact departures and stops, because the 2026 engineering works are still active.

Where to book

Train tickets

  • Omio

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

    Check times & prices
  • 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.

Train service

Find places to stay in Vienna

Bright bedroom with white bedding and a breakfast tray on the bedBrowse stays in ViennaHotels and apartments via Booking.com

Frequently asked questions

Is there a direct train from Hamburg to Vienna?

Yes. The ÖBB Nightjet runs directly overnight every day, and České dráhy runs a direct daytime Railjet via Berlin, Dresden and Prague. Other daytime connections need a change.

How long is the train from Hamburg to Vienna?

The direct daytime Railjet takes a little over 10 hours, and connections with one change take about the same. The Nightjet runs overnight, so use the evening departure and morning arrival shown for your date.

Is there a direct daytime train from Hamburg to Vienna?

Yes, but not an ICE. České dráhy runs a direct daytime Railjet via Berlin, Dresden and Prague. ICE traffic over the Passau route is suspended from 14 June through 12 December 2026, so do not plan on a direct ICE.

Which stations do I use for Hamburg to Vienna?

Use Hamburg Hbf for departure and Wien Hbf for arrival. Keep both full station names in your search and on the completed ticket.

Which operators run trains from Hamburg to Vienna?

ÖBB operates the direct Nightjet and České dráhy operates the direct daytime Railjet. Deutsche Bahn sells and runs the German legs of connecting itineraries. Tickets and reservation rules are product-specific, so use the channel for the train you choose.

Can I use Interrail or Eurail from Hamburg to Vienna?

Yes, subject to your pass validity, but each pass holder must pay a Nightjet reservation fee. The reservation secures the seat, couchette or bed, so arrange it before departure.

More routes