- Must visit
Miniatur Wunderland
World-famous model railway and miniature world in Speicherstadt, known for astonishing detail and strong appeal for all ages.
Cheapest price
$638
Average price
$644
Fastest journey
1 d 3 h 25 m
Average duration
1 d 6 h 34 m
Trains per day
2
Distance
1789 km
The best way to find a cheap train ticket from Madrid to Hamburg is to book your journey as far in advance as possible and to avoid traveling at rush hour.
The average ticket from Madrid to Hamburg will cost around $644 if you buy it on the day, but the cheapest tickets can be found for only $638.
It's difficult to get from Madrid to Hamburg without transferring at least 4 times.




Omio recommends booking the flight as it is the most popular option from Madrid to Hamburg among Omio's users. If you are prioritising price take the bus with prices starting from $118. For those with little time consider booking a flight which can get you there in 6h 16m. In case you are seeking to minimise your carbon footprint the bus is your best bet as it emits only 1.8 - 4.5kg. The ticket price range depends on the travel mode: a bus costs an average of $118, and a train costs an average of $638.
Distance: 1111 miles (1789 km)
| Train | Most popular Flight | Bus | Driving |
|---|---|---|---|
$643 Average price | $272 Average price | $210 Average price Cheapest | $435 Average price (fuel + tolls) |
31h 1m Average total duration 30h 31m Onboard + 30m Additional time* | 9h 16m Average total duration Fastest 6h 16m Onboard + 3h 0m Additional time* | 12h 26m Average total duration 11h 56m Onboard + 30m Additional time* | 21h 36m Average total duration (door-to-door) |
- CO2 emissions | 5.4 - 10.7kg CO2 emissions | 1.8 - 4.5kg CO2 emissions Lowest | - CO2 emissions |
Direct Options | Direct Options | Direct Options | Direct Options |
Additional time: Average total travel duration to departure point, security checks and transfers.
This is compared to other travel options from Madrid to Hamburg:
A bus is $62 (€50) less than a flight for this route with tickets for a flight from Madrid to Hamburg costing on average $272 (€220).
A bus is $433 (€351) less than a train for this route with tickets for a train from Madrid to Hamburg costing on average $643 (€521).
Other travel options to Hamburg take longer:
Bus takes on average 11h 56m.
Train takes on average 30h 31m.
Tickets start at around $643 (€521) compared to roughly $435 (€352) in fuel and tolls — a saving of about $-208.21 (€-168.48). The journey takes 30h 31m versus 21h 36m by car, so you'll arrive a bit later, but you can work, read, or sleep along the way rather than spending the time behind the wheel. You'll also save the hassle of parking at the other end.
Driving is worth it if you're on a tight schedule, travelling as a group, or want to stop somewhere en route.
The table below shows live departures for Madrid to Hamburg trains for today, Sunday, May 24. You can also manually refresh the results below to see updated train journeys.
| Provider | Departs | Duration | Arrives | Transfers | Tickets |
|---|---|---|---|---|---|
![]() | 12:50 PM Madrid | 27h25 | 4:15 PM Hamburg | 4 transfers | |
![]() | 9:07 PM Madrid | 34h05 | 7:12 AM Hamburg | 4 transfers | |
This is the last train of the day. | |||||
Find all the dates and times for this journey
Compare train, bus, and flight prices over the next three weeks. See the best deals at a glance, find the lowest fares, and choose the option that fits your budget.
Trains from Madrid to Hamburg run on average 5 times per day, taking around 30h 31m. Cheap train tickets for this journey start at $638 (€516) but you can travel from only $118 (€96) by bus.
The earliest train runs at 00:33, the last at 23:50. The fastest train covers the 1111 miles (1789 km) distance in 26h 59m.
Distance 1111 miles (1789 km) |
Average train duration 30h 31m |
Cheapest ticket price $638 (€516) |
Trains per day 5 |
Fastest train 26h 59m |
First train 12:33 AM |
Last train 11:50 PM |
High Season Oct - Dec |
Low Season Apr - Jun |
Busiest Day Wed |
Least Busy Day Mon |
Best time to book 63 days |
Discover the best of Hamburg — top attractions, local food, transport tips, budget advice, and currency essentials. Plan your perfect Hamburg trip today.
World-famous model railway and miniature world in Speicherstadt, known for astonishing detail and strong appeal for all ages.
Hamburg’s leading art museum, with major European works from the Middle Ages to contemporary art across several buildings.
Large maritime museum in a historic Speicherstadt warehouse, covering shipbuilding, navigation, and naval history over nine decks.
Elegant waterfront promenade on the Binnenalster, ideal for strolling, shopping, and classic city-center views.
Lively harbor promenade and transport hub with ferry access, river views, and one of Hamburg’s signature urban scenes.
Large central park with themed gardens, water features, and relaxed walking paths popular with locals.
A classic North German fish sandwich, usually filled with herring, Bismarck herring, salmon, or shrimp in a crusty roll. It is a signature Hamburg harbor snack.
A traditional seafarer’s dish of mashed potatoes, cured beef, and beetroot, often served with herring, pickles, and a fried egg. It is strongly associated with Hamburg and northern ports.
Pan-fried fish, often made with leftover fillets, served with mustard sauce and potatoes. It is a beloved old-style Hamburg and coastal specialty.
A long-established seafood restaurant near the harbor, known for polished service, classic fish dishes, and an elegant traditional atmosphere.
A well-known casual institution famous for hearty northern German portions, schnitzel, and late-night dining in an unfussy setting.
A historic Hamburg restaurant near St. Pauli, celebrated for traditional local cuisine such as Labskaus, herring, and other Hanseatic classics.
Moderate by German standards. Public transport is fair, while hotels and central restaurants cost more.
Service is usually included, but rounding up is standard. In restaurants, add about 5-10% for good service. Round up taxi fares; small tips are appreciated in bars and cafes.
Official public transport app
Hamburg Hbf, Hamburg -> Hamburg City Center, Hamburg
Find answers to the most common questions about traveling from Madrid to Hamburg by train. From journey times and ticket prices to direct connections, first and last departures, and even whether the route is scenic, our FAQs cover everything you need to plan your trip. Whether you’re looking for the fastest train, the cheapest option, or tips for making the most of your visit at Hamburg, this guide helps you travel smarter and with confidence.

Here are some other resources that might have the information you need