There are 8 ways to get from Madrid to Hamburg by plane, train, bus or car

Select an option below to see step-by-step directions and to compare ticket prices and travel times in Rome2rio's travel planner.

Recommended option

Fly to Hamburg  •  5 h 39 min

  1. Fly from Madrid (MAD) to Hamburg (HAM) MAD - HAM

$39 - $197

7 alternative options

Fly to Bremen, train  •  9 h 19 min

  1. Fly from Madrid (MAD) to Bremen (BRE) MAD - BRE
  2. Take the train from Bremen Hbf to Hamburg Dammtor

$135 - $451

Train  •  24 h 6 min

  1. Take the train from Madrid-Puerta de Atocha to Girona Ave / ...
  2. Take the train from Girona to Port Bou Ir / ...
  3. Take the train from Cerbère to Montpellier Saint-Roch
  4. Take the train from Montpellier Saint-Roch to Lyon Part Dieu Tgv
  5. Take the train from Lyon Part Dieu to Frankfurt(Main)Hbf Tgv
  6. Take the train from Frankfurt(Main)Hbf to Hamburg Hbf Ice

$426 - $573

Bus FlixBus  •  29 h 45 min

  1. Take the bus from Madrid to Paris, Paris 793
  2. Take the bus from Paris, Paris to Hamburg N71

$123 - $210

Bus Eurolines FR  •  36 h 24 min

  1. Take the bus from Madrid to Bordeaux
  2. Take the bus from Bordeaux to Hamburg

$201 - $360

Bus, train  •  2 days 14 h

  1. Take the bus from Madrid to Essen
  2. Take the train from Essen Hbf to Hamburg Dammtor Ic / ...

$186 - $277

Drive, train  •  23 h 17 min

  1. Drive from Madrid to Lörrach Hbf
  2. Take the train from Basel Bad Bf to Hamburg Hbf Ice

$391 - $581

Drive  •  20 h 8 min

  1. Drive from Madrid to Hamburg 1350.8 miles

$280 - $410

Questions & Answers

The cheapest way to get from Madrid to Hamburg is to fly which costs 30€ - 170€ and takes 5 h 39 min.

More details

The quickest way to get from Madrid to Hamburg is to fly which costs 30€ - 170€ and takes 5 h 39 min.

More details

No, there is no direct bus from Madrid to Hamburg. However, there are services departing from Madrid and arriving at Hamburg via Paris, Paris. The journey, including transfers, takes approximately 29 h 45 min.

More details

No, there is no direct train from Madrid to Hamburg. However, there are services departing from Madrid-Puerta de Atocha and arriving at Hamburg Hbf via Girona, Cerbère, Montpellier Saint-Roch, Lyon Part Dieu and Frankfurt(Main)Hbf. The journey, including transfers, takes approximately 24 h 6 min.

More details

The distance between Madrid and Hamburg is 1789 km. The road distance is 2161.3 km.

Get driving directions

The best way to get from Madrid to Hamburg without a car is to train which takes 24 h 6 min and costs 360€ - 490€.

More details

It takes approximately 5 h 39 min to get from Madrid to Hamburg, including transfers.

More details

Madrid to Hamburg bus services, operated by FlixBus, depart from Madrid station.

More details

Madrid to Hamburg train services, operated by Spanish Railways AVE, depart from Madrid-Puerta de Atocha station.

More details

The best way to get from Madrid to Hamburg is to fly which takes 5 h 39 min and costs 30€ - 170€. Alternatively, you can train, which costs 360€ - 490€ and takes 24 h 6 min, you could also bus, which costs 100€ - 180€ and takes 29 h 45 min.

Mode details

Map of how to get from Madrid to Hamburg.
Launch map view
  • Distance: 1117.9 miles
  • Duration: 5 h 39 min

What companies run services between Madrid, Spain and Hamburg, Germany?

Iberia, Ryanair and 11 other airlines fly from Madrid to Hamburg hourly. Alternatively, you can take a train from Madrid to Hamburg via Girona, Port Bou, Cerbère, Montpellier Saint-Roch, Lyon Part Dieu, and Frankfurt(Main)Hbf in around 24 h 6 min.

Airlines
Lufthansa
Website
lufthansa.com
Flights from Madrid to Hamburg via Brussels
Ave. Duration
4 h 30 min
When
Monday, Tuesday, Wednesday, Thursday, Friday and Sunday
Estimated price
$80 - $420
Flights from Madrid to Hamburg via Frankfurt
Ave. Duration
4 h 40 min
When
Every day
Estimated price
$170 - $850
Flights from Madrid to Hamburg via Munich
Ave. Duration
4 h 50 min
When
Every day
Estimated price
$170 - $850
Flights from Madrid to Bremen via Munich
Ave. Duration
5 h
When
Every day
Estimated price
$220 - $950
Flights from Madrid to Bremen via Frankfurt
Ave. Duration
5 h 6 min
When
Every day
Estimated price
$220 - $950
Ryanair
Website
ryanair.com
Flights from Madrid to Hamburg
Ave. Duration
2 h 55 min
When
Monday, Wednesday, Friday and Saturday
Estimated price
$35 - $330
Flights from Madrid to Bremen via Milan Bergamo
Ave. Duration
5 h 40 min
When
Wednesday, Friday and Sunday
Estimated price
$55 - $260
Flights from Madrid to Bremen via Naples
Ave. Duration
6 h 15 min
When
Monday and Friday
Estimated price
$75 - $300
Flights from Madrid to Bremen via London Stansted
Ave. Duration
8 h 12 min
When
Monday, Tuesday, Wednesday, Thursday, Friday and Sunday
Estimated price
$50 - $250
KLM
Website
klm.com
Flights from Madrid to Hamburg via Amsterdam
Ave. Duration
4 h 45 min
When
Every day
Estimated price
$150 - $440
Flights from Madrid to Bremen via Amsterdam
Ave. Duration
6 h 42 min
When
Every day
Estimated price
$210 - $550
Flights from Madrid to Bremen via Bilbao, Amsterdam
Ave. Duration
6 h 45 min
When
Every day
Estimated price
$210 - $550
Iberia
Website
iberia.com
Flights from Madrid to Hamburg
Ave. Duration
2 h 55 min
When
Every day
Estimated price
$85 - $380
Flights from Madrid to Hamburg via Barcelona
Ave. Duration
5 h
When
Monday to Saturday
Estimated price
$120 - $600
Air France
Website
airfrance.com
Flights from Madrid to Hamburg via Paris CDG
Ave. Duration
4 h 50 min
When
Every day
Estimated price
$160 - $500
Flights from Madrid to Bremen via Paris CDG
Ave. Duration
6 h 10 min
When
Monday, Tuesday, Wednesday, Thursday, Friday and Sunday
Estimated price
$190 - $470
Brussels Airlines
Website
brusselsairlines.com
Flights from Madrid to Hamburg via Brussels
Ave. Duration
4 h 30 min
When
Monday, Tuesday, Wednesday, Thursday, Friday and Sunday
Estimated price
$80 - $420
Vueling Airlines
Website
vueling.com
Flights from Madrid to Hamburg via Barcelona
Ave. Duration
5 h
When
Monday to Saturday
Estimated price
$120 - $600
easyJet
Website
easyjet.com
Flights from Madrid to Hamburg via Geneva
Ave. Duration
5 h 5 min
When
Friday and Sunday
Estimated price
$120 - $650
Train operators
Deutsche Bahn

Deutsche Bahn is the German railway company, and the largest railway operator and infrastructure owner in Europe. Based in Berlin, Deutsche Bahn was founded in 1994, and offers many different types of rail transportation including ICE or Intercity-Express for high-speed services between major cities and regions, IC (InterCity) for long-distance trains, RE (Regional Express) trains that connect regions and cities, and the S-Bahn rapid transit service. There are two main tickets on offer: the Flexpreis that has full flexibility, and the Sparpreis which is the cheaper, advanced fare.

Contact Details
Phone
+49 0180 6 99 66 33
Website
bahn.com
Train from Bremen Hbf to Hamburg Dammtor
Ave. Duration
1 h 1 min
Frequency
Hourly
Estimated price
$30 - $45
Website
bahn.de
Train from Frankfurt(Main)Hbf to Hamburg Hbf
Ave. Duration
3 h 37 min
Frequency
Hourly
Estimated price
$100 - $150
Website
bahn.de
Train from Essen Hbf to Hamburg Dammtor
Ave. Duration
3 h 21 min
Frequency
Every 2 hours
Estimated price
$75 - $110
Website
bahn.de
Spanish Railways AVE
Spanish Railways (RENFE)

Based in Madrid, Renfe is a state-owned train operator, that connects cities across Spain and neighbouring countries including Portugal, France, Germany, Switzerland, and the Netherlands. Renfe’s extensive network means most destinations offer multiple trains a day, with the most popular routes normally offering a train each hour. Locally known as AVE, the high-speed trains can reach speeds of up to 350km/h, making travel between major cities very efficient. Comfort is key in a Renfe train, with seats with footrests in all three classes of travel: Standard, Club and First. Each seat has an individual light, a pull-down table and an electrical outlet for in Club and First classes. There is free WiFi for first class passengers and for those with a + Renfe card.

Rome2rio's guide to Spanish Railways (RENFE)
Contact Details
Phone
902 320 320
Website
renfe.com
Train from Girona to Port Bou
Ave. Duration
52 min
Frequency
Every 3 hours
Estimated price
$8 - $19
Website
renfe.com
SNCF

Loosely translated as the French National Railway Corporation, the SNCF is France’s state-owned railway company. It covers the country’s extensive rail network, as well as the TGV and Thalys, France’s two high-speed railway networks. With over 14,000 trains operating daily, it is a fast and efficient way of travelling around the country. The railway network consists of about 32,000km in total, of which 1800km are high-speed lines and 14,500km are electrified.

Rome2rio's guide to SNCF
Contact Details
Phone
+33 9 70 60 99 70
Website
sncf.com
Train from Cerbère to Montpellier Saint-Roch
Ave. Duration
2 h 33 min
Frequency
Hourly
Estimated price
$30 - $50
Website
en.oui.sncf
2nd Class
$30 - $50
1st Class
$45 - $75
TGV
Phone
0033 892 353535
Website
sncf.com
Train from Montpellier Saint-Roch to Lyon Part Dieu
Ave. Duration
1 h 46 min
Frequency
Every 2 hours
Estimated price
$60 - $75
Website
en.oui.sncf
2nd Class
$60 - $75
1st Class
$90 - $120
Train from Lyon Part Dieu to Frankfurt(Main)Hbf
Ave. Duration
5 h 58 min
Frequency
Twice a week
Estimated price
$140 - $160
Website
en.oui.sncf
2nd Class
$140 - $160
1st Class
$180 - $270
Swiss Railways (SBB/CFF/FFS)

The national railway company of Switzerland, Swiss Railways operates trains throughout the country and adjacent European nations including Germany, France, Italy and Austria. Tickets are sold in two classes - First and Second - with most long-distance trains offering a bistro car serving beverages and snacks. Individual tickets can be bought easily at stands, while a variety of travel passes are on offer to suit different travel needs. Swiss Railways codeshares with American Airlines and Swiss International Air Lines out of Zurich International Airport.

Contact Details
Website
sbb.ch
Train from Basel Bad Bf to Hamburg Hbf
Ave. Duration
6 h 36 min
Frequency
3 times a day
Estimated price
$160 - $240
Website
fahrplan.sbb.ch
Schedules at
fahrplan.sbb.ch
Bus operators
FlixBus

One of Europe’s leading bus companies, Flixbus serves over 1400 destinations, in 26 countries including Germany, France, Italy, Austria, the Netherlands, Croatia, Spain, and across Scandinavia and central and eastern Europe. Founded in 2012, Flixbus’ extensive network connects cities with approximately 200,000 trips, with buses often departing every 30 minutes. One of the most affordable ways to get around Europe (and expanding soon into the US), a Flixbus journey is cost-effective, well-connected, comfortable and safe.

Rome2rio's guide to FlixBus
Contact Details
Phone
+49 1807 123 99 123
Email
info@flixbus.de
Website
flixbus.de
Bus from Madrid to Paris, Paris
Ave. Duration
16 h
Frequency
6 times a week
Estimated price
$70 - $120
Website
flixbus.co.uk
Bus from Paris, Paris to Hamburg
Ave. Duration
12 h 45 min
Frequency
Twice daily
Estimated price
$50 - $90
Website
flixbus.co.uk
Eurolines FR
Phone
+ 33 1 41 86 24 21
Website
eurolines.fr
Bus from Madrid to Bordeaux
Ave. Duration
8 h 30 min
Frequency
Once daily
Estimated price
$85 - $130
Schedules at
eurolines.fr
Bus from Bordeaux to Hamburg
Ave. Duration
25 h
Frequency
3 times a week
Estimated price
$150 - $220
Schedules at
eurolines.fr
ALSA

A Spanish subsidiary of National Express, ALSA provides bus and coach services across Spain and neighbouring countries including Portugal, France, Germany, the Netherlands, Italy, Poland and Malta. Founded in 1923, ALSA values service and the customer experience. Buses are equipped with communal TV screens showing movies, individual behind-seat screens, ALSA radio, app for books and music, and free WiFi so you’re never bored on your journey. ALSA services are accessible to people with disabilities, and guide dogs are welcome on all journeys. Flexibility is another highlight of an ALSA journey, with three types of tickets on offer - Frequent Traveller Pass, Share Pass and ALSA Pass, along with discounts for senior citizens, students and children.

Contact Details
Phone
+34 902 42 22 42
Website
alsa.es
Bus from Madrid to Essen
Ave. Duration
2 days 10 h
Frequency
Twice daily
Estimated price
$110 - $170
Website
alsa.com

Want to know more about travelling around Germany

Rome2rio's Travel Guide series provide vital information for the global traveller. Filled with useful and timely travel information, the guides answer all the hard questions - such as 'How do I buy a ticket?', 'Should I book online before I travel? ', 'How much should I expect to pay?', 'Do the trains and buses have Wifi?' - to help you get the most out of your next trip.

More Questions & Answers

The quickest flight from Madrid Airport to Hamburg Airport is the direct flight which takes 2 h 55 min.

Search flights

Madrid to Hamburg bus services, operated by FlixBus, arrive at Hamburg station.

More details

Madrid to Hamburg train services, operated by Deutsche Bahn, arrive at Hamburg Hbf station.

More details

Yes, the driving distance between Madrid to Hamburg is 2161 km. It takes approximately 20 h 8 min to drive from Madrid to Hamburg.

Get driving directions

Iberia, Ryanair, Brussels Airlines and five other airlines offer flights from Madrid Airport to Hamburg Airport.

Search flights

Book your Madrid to Hamburg bus tickets online with FlixBus and FlixBus.

Search and book

There are 684+ hotels available in Hamburg. Prices start at $58 USD per night.

More details

The best way to get from Madrid to Madrid Airport is to train which takes 22 min and costs 1€ - 3€.

More details

Where to next?