---
title: "Trains from Hamburg to Vienna | EveryRail"
description: "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."
image: "https://everyrail.com/api/route-image/hamburg-to-vienna/"
---

[Home](<https://everyrail.com/>)[Europe by train](<https://everyrail.com/trains/>)[Germany](<https://everyrail.com/germany/>)Hamburg to Vienna by train

[Home](<https://everyrail.com/>)[Europe by train](<https://everyrail.com/trains/>)[Germany](<https://everyrail.com/germany/>)Hamburg to Vienna by train

**Share**

-
- [Share on WhatsApp](<https://everyrail.com/trains/hamburg-to-vienna/#>)
- [Share on X](<https://everyrail.com/trains/hamburg-to-vienna/#>)
- [Share on Facebook](<https://everyrail.com/trains/hamburg-to-vienna/#>)
- [Share by email](<https://everyrail.com/trains/hamburg-to-vienna/#>)

**On this page**

- [About Hamburg to Vienna by train](<https://everyrail.com/trains/hamburg-to-vienna/#about>)
- [Where to book](<https://everyrail.com/trains/hamburg-to-vienna/#where-to-buy>)
- [Find places to stay in Vienna](<https://everyrail.com/trains/hamburg-to-vienna/#places-to-stay>)
- [Frequently asked questions](<https://everyrail.com/trains/hamburg-to-vienna/#frequently-asked-questions>)
- [More routes](<https://everyrail.com/trains/hamburg-to-vienna/#more-routes>)

[Book now](<https://everyrail.com/go/omio/?sub_id=er_cd8a906cf4238c9b>)

Last updated October 2026

# 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](<https://everyrail.com/germany/hamburg/>)

Destination

[Vienna](<https://everyrail.com/austria/vienna/>)

Main stations

Hamburg Hbf to Wien Hbf

Countries

[Germany](<https://everyrail.com/germany/>), [Austria](<https://everyrail.com/austria/>)

[Hamburg](<https://everyrail.com/germany/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](<https://everyrail.com/germany/berlin/>), [Dresden](<https://everyrail.com/germany/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](<https://everyrail.com/austria/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](<https://everyrail.com/austria/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](<https://everyrail.com/germany/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](<https://everyrail.com/go/omio/r/hamburg/vienna/?sub_id=er_5c29fad1a7bf5691>)
- 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

- [České dráhy](<https://everyrail.com/czechia/ceske-drahy/>)
  České dráhy is Czechia's national railway, serving Prague, Brno and Ostrava plus international routes; its cheapest Fixed fares are tied to one train.
  [Official website](<https://www.cd.cz/>)
  [Check times & prices](<https://everyrail.com/go/omio/r/hamburg/vienna/?sub_id=er_d8b02db84172f7ca>)
- [Deutsche Bahn](<https://everyrail.com/germany/deutsche-bahn/>)
  Deutsche Bahn (DB) is Germany's national railway, running ICE, IC and regional trains with Flexpreis, Sparpreis and Super Sparpreis fares.
  [Official website](<https://www.bahn.de/>)
  [Check times & prices](<https://everyrail.com/go/omio/r/hamburg/vienna/?sub_id=er_2fd0747bad52f79c>)
- [ÖBB](<https://everyrail.com/austria/obb/>)
  ÖBB is Austria's national railway, with Railjet high-speed and Nightjet sleeper services plus regional trains across Austria and neighbouring countries.
  [Official website](<https://www.oebb.at/>)
  [Check times & prices](<https://everyrail.com/go/omio/r/hamburg/vienna/?sub_id=er_162b94172dd6e5cf>)

## Find places to stay in Vienna

[![Bright bedroom with white bedding and a breakfast tray on the bed](<https://everyrail.com/images/accommodation-card-2-800.webp>)**Browse stays in Vienna**Hotels and apartments via Booking.com](<https://www.jdoqocy.com/click-101845132-17323134?sid=route-hamburg-to-vienna-197765&url=https%3A%2F%2Fwww.booking.com%2Fsearchresults.en-gb.html%3Fss%3DVienna>)

## 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

[![Hamburg Hauptbahnhof's arched train shed and ICE platforms](<https://everyrail.com/api/route-image/amsterdam-to-hamburg/>)Amsterdam to Hamburg by trainAmsterdam to Hamburg takes about 5h15 with one change at Osnabrück; a direct ICE runs four times a day from 2 October 2026.](<https://everyrail.com/trains/amsterdam-to-hamburg/>)[![Belvedere Palace and gardens in Vienna](<https://everyrail.com/api/route-image/barcelona-to-vienna/>)Barcelona to Vienna by trainNo direct Barcelona to Vienna train. Plan two days via Lyon and Zurich, then take a direct Railjet or Nightjet into Vienna.](<https://everyrail.com/trains/barcelona-to-vienna/>)[![An ICE train at a platform under the glass roof of Berlin Hauptbahnhof](<https://everyrail.com/api/route-image/berlin-to-hamburg/>)Berlin to Hamburg by trainDirect ICE trains take as little as 1h47 from Berlin to Hamburg. FlixTrain takes around two hours and may use other stations.](<https://everyrail.com/trains/berlin-to-hamburg/>)[![View of Vienna, Austria](<https://everyrail.com/api/route-image/berlin-to-vienna/>)Berlin to Vienna by trainDirect railjets from Berlin Hbf to Wien Hbf take about 8h20 to 8h40 via Dresden and Prague. A direct ÖBB Nightjet runs overnight. No direct ICE for now.](<https://everyrail.com/trains/berlin-to-vienna/>)[![Belvedere Palace and gardens in Vienna](<https://everyrail.com/api/route-image/bratislava-to-vienna/>)Bratislava to Vienna by trainBratislava and Vienna are linked by direct ÖBB REX trains in about an hour, with departures from Bratislava hlavná stanica and Bratislava-Petržalka.](<https://everyrail.com/trains/bratislava-to-vienna/>)[![Belvedere Palace and gardens in Vienna](<https://everyrail.com/api/route-image/budapest-to-vienna/>)Budapest to Vienna by trainDirect Railjet and EuroCity services take 2 hours 21 minutes to 2 hours 40 minutes between Budapest and Vienna, with about 16 departures daily.](<https://everyrail.com/trains/budapest-to-vienna/>)[![Belvedere Palace and gardens in Vienna](<https://everyrail.com/api/route-image/copenhagen-to-vienna/>)Copenhagen to Vienna by trainCopenhagen to Vienna has no direct train. Travel via Hamburg and Munich in 14 to 16 hours, via Prague in 16 to 19 hours, or overnight on an ÖBB Nightjet.](<https://everyrail.com/trains/copenhagen-to-vienna/>)[![A yellow NS train at Amsterdam Centraal beneath the station's glass roof](<https://everyrail.com/api/route-image/hamburg-to-amsterdam/>)Hamburg to Amsterdam by trainHamburg to Amsterdam takes about 5h15 with one change at Osnabrück; a direct ICE runs four times a day from 2 October 2026.](<https://everyrail.com/trains/hamburg-to-amsterdam/>)

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Organization",
      "@id": "https://everyrail.com/#organization",
      "name": "EveryRail",
      "url": "https://everyrail.com/",
      "logo": {
        "@type": "ImageObject",
        "url": "https://everyrail.com/_astro/everyrail-logomark-2026.VJ4vNX1T.webp",
        "@id": "https://everyrail.com/#organization-logo-1"
      },
      "sameAs": [
        "https://www.instagram.com/everyrailtravel/",
        "https://www.facebook.com/everyrail",
        "https://www.threads.com/@everyrailtravel"
      ]
    },
    {
      "@type": "WebSite",
      "@id": "https://everyrail.com/#website",
      "name": "EveryRail",
      "url": "https://everyrail.com/",
      "publisher": {
        "@id": "https://everyrail.com/#organization"
      },
      "inLanguage": "en"
    },
    {
      "@type": "WebPage",
      "@id": "https://everyrail.com/trains/hamburg-to-vienna/#webpage",
      "name": "Trains from Hamburg to Vienna | EveryRail",
      "description": "Train travel information for Hamburg to Vienna. Origin: Hamburg. Destination: Vienna. Main stations: Hamburg Hbf to Wien Hbf.",
      "about": {
        "@id": "https://everyrail.com/trains/hamburg-to-vienna/#traintrip"
      },
      "isPartOf": {
        "@id": "https://everyrail.com/#website"
      },
      "publisher": {
        "@id": "https://everyrail.com/#organization"
      },
      "url": "https://everyrail.com/trains/hamburg-to-vienna/",
      "dateModified": "2026-10-02T15:40:30.119Z",
      "inLanguage": "en"
    },
    {
      "@type": "TrainTrip",
      "@id": "https://everyrail.com/trains/hamburg-to-vienna/#traintrip",
      "departureStation": {
        "@type": "TrainStation",
        "@id": "https://everyrail.com/germany/hamburg/hamburg-hbf/#trainstation",
        "url": "https://everyrail.com/germany/hamburg/hamburg-hbf/",
        "name": "Hamburg Hbf"
      },
      "arrivalStation": {
        "@type": "TrainStation",
        "@id": "https://everyrail.com/austria/vienna/wien-hbf/#trainstation",
        "url": "https://everyrail.com/austria/vienna/wien-hbf/",
        "name": "Wien Hbf"
      },
      "provider": [
        {
          "@type": "Organization",
          "@id": "https://everyrail.com/czechia/ceske-drahy/#organization",
          "name": "České dráhy",
          "url": "https://www.cd.cz/"
        },
        {
          "@type": "Organization",
          "@id": "https://everyrail.com/germany/deutsche-bahn/#organization",
          "name": "Deutsche Bahn",
          "url": "https://www.bahn.de/"
        },
        {
          "@type": "Organization",
          "@id": "https://everyrail.com/austria/obb/#organization",
          "name": "ÖBB",
          "url": "https://www.oebb.at/"
        }
      ]
    },
    {
      "@type": "FAQPage",
      "mainEntity": [
        {
          "@type": "Question",
          "name": "Is there a direct train from Hamburg to Vienna?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "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.",
            "@id": "https://everyrail.com/trains/hamburg-to-vienna/#faqpage-mainEntity-1-acceptedAnswer-1",
            "inLanguage": "en"
          },
          "@id": "https://everyrail.com/trains/hamburg-to-vienna/#faqpage-mainEntity-1",
          "inLanguage": "en"
        },
        {
          "@type": "Question",
          "name": "How long is the train from Hamburg to Vienna?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "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.",
            "@id": "https://everyrail.com/trains/hamburg-to-vienna/#faqpage-mainEntity-2-acceptedAnswer-2",
            "inLanguage": "en"
          },
          "@id": "https://everyrail.com/trains/hamburg-to-vienna/#faqpage-mainEntity-2",
          "inLanguage": "en"
        },
        {
          "@type": "Question",
          "name": "Is there a direct daytime train from Hamburg to Vienna?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "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.",
            "@id": "https://everyrail.com/trains/hamburg-to-vienna/#faqpage-mainEntity-3-acceptedAnswer-3",
            "inLanguage": "en"
          },
          "@id": "https://everyrail.com/trains/hamburg-to-vienna/#faqpage-mainEntity-3",
          "inLanguage": "en"
        },
        {
          "@type": "Question",
          "name": "Which stations do I use for Hamburg to Vienna?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Use Hamburg Hbf for departure and Wien Hbf for arrival. Keep both full station names in your search and on the completed ticket.",
            "@id": "https://everyrail.com/trains/hamburg-to-vienna/#faqpage-mainEntity-4-acceptedAnswer-4",
            "inLanguage": "en"
          },
          "@id": "https://everyrail.com/trains/hamburg-to-vienna/#faqpage-mainEntity-4",
          "inLanguage": "en"
        },
        {
          "@type": "Question",
          "name": "Which operators run trains from Hamburg to Vienna?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Ö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.",
            "@id": "https://everyrail.com/trains/hamburg-to-vienna/#faqpage-mainEntity-5-acceptedAnswer-5",
            "inLanguage": "en"
          },
          "@id": "https://everyrail.com/trains/hamburg-to-vienna/#faqpage-mainEntity-5",
          "inLanguage": "en"
        },
        {
          "@type": "Question",
          "name": "Can I use Interrail or Eurail from Hamburg to Vienna?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "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.",
            "@id": "https://everyrail.com/trains/hamburg-to-vienna/#faqpage-mainEntity-6-acceptedAnswer-6",
            "inLanguage": "en"
          },
          "@id": "https://everyrail.com/trains/hamburg-to-vienna/#faqpage-mainEntity-6",
          "inLanguage": "en"
        }
      ],
      "@id": "https://everyrail.com/trains/hamburg-to-vienna/#faqpage",
      "inLanguage": "en"
    },
    {
      "@type": "BreadcrumbList",
      "@id": "https://everyrail.com/trains/hamburg-to-vienna/#breadcrumb",
      "itemListElement": [
        {
          "@type": "ListItem",
          "position": 1,
          "name": "Home",
          "item": "https://everyrail.com/",
          "@id": "https://everyrail.com/trains/hamburg-to-vienna/#breadcrumb-itemListElement-1"
        },
        {
          "@type": "ListItem",
          "position": 2,
          "name": "Europe by train",
          "item": "https://everyrail.com/trains/",
          "@id": "https://everyrail.com/trains/hamburg-to-vienna/#breadcrumb-itemListElement-2"
        },
        {
          "@type": "ListItem",
          "position": 3,
          "name": "Germany",
          "item": "https://everyrail.com/germany/",
          "@id": "https://everyrail.com/trains/hamburg-to-vienna/#breadcrumb-itemListElement-3"
        },
        {
          "@type": "ListItem",
          "position": 4,
          "name": "Hamburg to Vienna by train",
          "item": "https://everyrail.com/trains/hamburg-to-vienna/",
          "@id": "https://everyrail.com/trains/hamburg-to-vienna/#breadcrumb-itemListElement-4"
        }
      ],
      "inLanguage": "en"
    }
  ]
}
```
