COVID-19 Travel restrictions may apply upon entering Spain. Learn More.

There are 7 ways to get from Hamburg to Madrid by plane, train, bus, car train 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 from Hamburg  •  6h 19m

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

48€ - 194€

Cheapest option

Train to Bremen, fly  •  8h 32m

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

33€ - 246€

5 alternative options

Train  •  19h 48m

  1. Take the train from Hamburg Hbf to Koeln Hbf Ice / ...
  2. Take the train from Koeln Hbf to Paris Nord
  3. Take the train from Paris Gare De Lyon to Barcelona-Sants Tgv
  4. Take the train from Barcelona-Sants to Madrid-Puerta De Atocha Ave

279€ - 586€

Train, bus  •  33h 38m

  1. Take the train from Hamburg Hbf to Dortmund Hbf Ice / ...
  2. Take the bus from Dortmund central bus station to International Interconnection Hub
  3. Take the bus from International Interconnection Hub to Madrid

124€ - 210€

Bus  •  34h 23m

  1. Take the bus from Hamburg Central Bus Station to Bremen Central Bus Station
  2. Take the bus from Bremen to Logroño
  3. Take the bus from Logroño to Madrid 100 / ...

164€ - 251€

Car train, drive  •  25h 39m

  1. Take the car train from Hamburg Altona to Lörrach Hbf Arz 1793 / 1797
  2. Drive from Lörrach Hbf to Madrid

Drive  •  19h 40m

  1. Drive from Hamburg to Madrid 2161.8 km

230€ - 340€

Germany → Spain
Partially open

Travel safe during COVID-19

International entry into Spain from Germany

  • Entry is partially open for citizens and permanent residents of Germany
Show more details
Allowed for: Citizens and permanent residents of Spain, as well as residents from EU Schengen Area (EU countries, Iceland, Liechtenstein, Norway, and Switzerland), Andorra, Australia, China, Cyprus, Gibraltar, Hong Kong, Macau, Monaco, New Zealand, Rwanda, San Marino, Singapore, South Korea, Thailand and Vatican

Restricted for: Foreign nationals from outside EU Schengen Area with the above exceptions. Brazil and South Africa are also restricted

Show less

Conditions of entry into Spain from Germany

  • Negative COVID-19 test issued at most 3 days before arrival
This applies to arrivals from Germany
  • Pre-arrival Health Control Form (FCS) required
This applies to arrivals from all countries, with no exceptions
Show more details
  • Negative COVID-19 test issued at most 3 days before arrival
This doesn't apply to arrivals from the EU Schengen Area with the exception of Andorra, Austria, Belgium, Bulgaria, Croatia, Cyprus, Czech Republic, Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Iceland, Ireland, Italy, Latvia, Liechtenstein, Lithuania, Luxembourg, Malta, Monaco, Netherlands, Norway, Poland, Portugal, Romania, San Marino, Slovakia, Slovenia, Sweden and Switzerland. This also doesn't apply to arrivals from Australia, New Zealand, Rwanda, Singapore, South Korea, Thailand, China, Hong Kong and Macau
  • Pre-arrival Health Control Form (FCS) required
This applies to arrivals from all countries, with no exceptions
  • Negative COVID-19 test issued at most 3 days before arrival and 10 day mandatory self quarantine
  • A negative result for COVID-19 is a condition to end the quarantine obligation earlier. It is tested in quarantine on day 7
This applies to arrivals from Brazil, South Africa, Botswana, Comoros, Ghana, Kenya, Mozambique, Tanzania, Zambia, Zimbabwe, Peru, Colombia and India

Show less

Rules to follow in Spain

1.5m

Mandatory

Considerations leaving from Germany

The official advice is to avoid non-essential international travel to high risk countries

Frequently Asked Questions


Yes, but conditions apply when entering Spain from Germany.

Explore options for future travel

Domestic travel is not restricted, but some conditions may apply

  • Face masks are mandatory
  • There is a social distancing requirement of 1.5 metres
  • Domestic border crossings may be subject to approval, testing and quarantine
  • Nationwide control measures in place
  • Regional restriction measures in place
  • Observe COVID-19 safety rules

Explore travel options

The national COVID-19 helpline number in Madrid is 112.

Wearing a face mask on public transport in Madrid is mandatory.

The social distance requirement in Madrid is 1.5 metres.

Make yourself known to an official member of staff and/or call the national coronavirus helpline number on 112.

Yes, entry into Germany from Spain is currently restricted.

Explore options for future travel.

Last updated: 11 May 2021
Exceptions may apply, for full details: European Union.

We're working around the clock to bring you the latest COVID-19 travel updates.
This information is compiled from official sources. To the best of our knowledge, it is correct as of the last update.
Visit Rome2rio travel advice for general help.

Questions & Answers

The cheapest way to get from Hamburg to Madrid is to fly which costs 45€ - 200€ and takes 6h 19m.

More details

The quickest way to get from Hamburg to Madrid is to fly which costs 45€ - 200€ and takes 6h 19m.

More details

No, there is no direct train from Hamburg to Madrid. However, there are services departing from Hamburg Hbf and arriving at Madrid-Puerta De Atocha via Koeln Hbf, Paris Nord, Paris Gare De Lyon and Barcelona-Sants. The journey, including transfers, takes approximately 19h 48m.

More details

The distance between Hamburg and Madrid is 1786 km. The road distance is 2161.8 km.

Get driving directions

The best way to get from Hamburg to Madrid without a car is to train which takes 19h 48m and costs 270€ - 600€.

More details

It takes approximately 6h 19m to get from Hamburg to Madrid, including transfers.

More details

Hamburg to Madrid train services, operated by Deutsche Bahn Intercity-Express, depart from Hamburg Hbf station.

More details

The best way to get from Hamburg to Madrid is to fly which takes 6h 19m and costs 45€ - 200€. Alternatively, you can train, which costs 270€ - 600€ and takes 19h 48m, you could also bus, which costs 160€ - 260€ and takes 34h 23m.

Mode details

The quickest flight from Hamburg Airport to Madrid Airport is the direct flight which takes 3h 5m.

Search flights

Hamburg to Madrid train services, operated by Renfe AVE, arrive at Madrid-Puerta De Atocha station.

More details

Map of how to get from Hamburg to Madrid.
Launch map view
  • Distance: 1785.6 km
  • Duration: 6h 19m

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

Iberia, Lufthansa and nine other airlines fly from Hamburg to Madrid every 3 hours. Alternatively, you can take a train from Hamburg to Madrid via Koeln Hbf, Paris Nord, Paris Gare De Lyon, and Barcelona-Sants in around 19h 48m.

Airlines
Lufthansa
Website
lufthansa.com
Flights from Hamburg to Madrid via Frankfurt
Ave. Duration
4h 56m
When
Every day
Estimated price
170€ - 360€
Flights from Hamburg to Madrid via Munich
Ave. Duration
4h 50m
When
Monday, Thursday and Sunday
Estimated price
170€ - 360€
Flights from Hamburg to Madrid via Brussels
Ave. Duration
4h 55m
When
Monday, Thursday and Friday
Estimated price
45€ - 240€
Flights from Bremen to Madrid via Frankfurt
Ave. Duration
5h 5m
When
Every day
Estimated price
90€ - 440€
Flights from Bremen to Madrid via Munich
Ave. Duration
8h 35m
When
Monday, Thursday and Sunday
Estimated price
90€ - 460€
KLM
Website
klm.com
Flights from Hamburg to Madrid via Amsterdam Schiphol
Ave. Duration
5h 22m
When
Every day
Estimated price
120€ - 300€
Flights from Bremen to Madrid via Amsterdam Schiphol
Ave. Duration
5h 37m
When
Every day
Estimated price
95€ - 300€
Iberia
Website
iberia.com
Flights from Hamburg to Madrid
Ave. Duration
3h 5m
When
Monday, Tuesday, Wednesday, Friday and Sunday
Estimated price
55€ - 280€
Flights from Bremen to Madrid via Porto
Ave. Duration
5h 15m
When
Friday
Estimated price
25€ - 140€
Swiss
Website
swiss.com
Flights from Hamburg to Madrid via Zurich
Ave. Duration
5h 7m
When
Monday and Wednesday
Estimated price
230€ - 390€
Brussels Airlines
Website
brusselsairlines.com
Flights from Hamburg to Madrid via Brussels
Ave. Duration
4h 55m
When
Monday, Thursday and Friday
Estimated price
45€ - 240€
Air France
Website
airfrance.com
Flights from Hamburg to Madrid via Paris CDG
Ave. Duration
5h 20m
When
Every day
Estimated price
150€ - 650€
TAP Portugal
Website
flytap.com
Flights from Hamburg to Madrid via Lisbon
Ave. Duration
6h
When
Thursday and Saturday
Estimated price
95€ - 700€
easyJet
Website
easyjet.com
Flights from Hamburg to Madrid via Basel
Ave. Duration
6h 55m
When
Monday and Friday
Estimated price
40€ - 190€
Ryanair
Website
ryanair.com
Flights from Bremen to Madrid via Porto
Ave. Duration
8h 50m
When
Friday
Estimated price
25€ - 140€
Train operators
Deutsche Bahn Intercity

Deutsche Bahn’s high-speed InterCity (IC) trains connect cities within Germany. They’re a popular way to travel as they’re faster than Deutsche Bahn’s regional trains and offer a frequent, fast service. All IC trains have first and second class carriages, power sockets and toilets, and most have a bistro cafe or restaurant. Tickets can be booked up to 180 days in advance of travel.

Contact Details
Phone
+49 30 2970
Website
bahn.com
Train from Hamburg Hbf to Bremen Hbf
Ave. Duration
55 min
Frequency
Every 3 hours
Estimated price
40€ - 65€
Website
reiseauskunft.bahn.de
Train from Hamburg Hbf to Koeln Hbf
Ave. Duration
4h 2m
Frequency
Every 3 hours
Estimated price
80€ - 120€
Website
reiseauskunft.bahn.de
Train from Hamburg Hbf to Dortmund Hbf
Ave. Duration
2h 47m
Frequency
4 times a day
Estimated price
70€ - 100€
Website
reiseauskunft.bahn.de
Deutsche Bahn Intercity-Express

German rail company Deutsche Bahn is known for its efficient and comfortable service. It 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 (bookings usually open 6 months in advance for domestic tickets).

Contact Details
Phone
+49 0180 6 99 66 33
Website
bahn.com
Train from Hamburg Hbf to Bremen Hbf
Ave. Duration
1h
Frequency
Every 3 hours
Estimated price
27€ - 40€
Website
Deutsche Bahn
Train from Hamburg Hbf to Koeln Hbf
Ave. Duration
3h 36m
Frequency
Every 2 hours
Estimated price
75€ - 110€
Website
Deutsche Bahn
Train from Hamburg Hbf to Dortmund Hbf
Ave. Duration
2h 48m
Frequency
Every 4 hours
Estimated price
60€ - 90€
Website
Deutsche Bahn
metronom
Phone
+49 581 97164164
Email
presse@der-metronom.de
Website
der-metronom.de
Train from Hamburg Hbf to Bremen Hbf
Ave. Duration
1h 29m
Frequency
Every 30 minutes
Website
metronom
Deutsche Bahn Eurocity

Deutsche Bahn’s EuroCity (EC) trains connect German cities to major cities in neighbouring European countries, and are operated in conjunction with their national train company. All EC trains offer First and Standard class; cars are air-conditioned and food and drinks are available onboard. Tickets can be booked up to 180 days in advance of travel. Seat reservations are not compulsory but are recommended for popular routes.

Contact Details
Phone
+49 30 2970
Website
bahn.com
Train from Hamburg Hbf to Bremen Hbf
Ave. Duration
56 min
Frequency
3 times a day
Estimated price
16€ - 23€
Website
reiseauskunft.bahn.de
Train from Hamburg Hbf to Koeln Hbf
Ave. Duration
4h 4m
Frequency
3 times a day
Estimated price
40€ - 60€
Website
reiseauskunft.bahn.de
Train from Hamburg Hbf to Dortmund Hbf
Ave. Duration
2h 51m
Frequency
Once daily
Estimated price
30€ - 50€
Website
reiseauskunft.bahn.de
Flixtrain
Phone
+49 1807 123 99 123
Email
info@flixbus.de
Website
flixtrain.com
Train from Hamburg central station to Bremen central station
Ave. Duration
56 min
Frequency
Twice daily
Estimated price
8€ - 10€
Website
Flixtrain
Train from Hamburg central station to Cologne central station
Ave. Duration
4h 7m
Frequency
Twice daily
Estimated price
22€ - 28€
Website
Flixtrain
Urlaubs-Express
Phone
+49 (0) 221 800 20 820
Email
info@urlaubs-express.de
Website
urlaubs-express.de
Train from Hamburg Hauptbahnhof to Bremen Hauptbahnhof
Ave. Duration
1h 13m
Frequency
Once a week
Estimated price
90€ - 110€
Book at
Urlaubs-Express
Thalys
Phone
+32 70 66 77 88
Website
thalys.com
Train from Koeln Hbf to Paris Nord
Ave. Duration
3h 21m
Frequency
Twice daily
Estimated price
110€ - 230€
Website
Thalys
Standard
110€ - 150€
Comfort
120€ - 160€
Premium
160€ - 230€
Renfe SNCF
Website
renfe-sncf.com
Train from Paris Gare De Lyon to Barcelona-Sants
Ave. Duration
6h 34m
Frequency
Once daily
Estimated price
85€ - 120€
Website
renfe-sncf.com
Renfe AVE
Rome2rio's guide to Renfe AVE
Contact Details
Website
renfe.com
Train from Barcelona-Sants to Madrid-Puerta De Atocha
Ave. Duration
3h 12m
Frequency
Hourly
Estimated price
60€ - 120€
Website
Renfe AVE
Promo
60€ - 85€
Promo+
70€ - 75€
Flexible
90€ - 120€
BahnTouristikExpress GmbH
Phone
+49 (0) 911 / 240 388 – 22
Email
info@bahntouristikexpress.de
Website
bahntouristikexpress.de
Car train from Hamburg Altona to Lörrach Hbf
Ave. Duration
10h 31m
Frequency
Twice a week
Website
BahnTouristikExpress GmbH
Bus operators
FlixBus

One of Europe’s leading bus companies, Flixbus serves 2000+ destinations in 29 countries, including Germany, France, Italy, Austria, the Netherlands and Croatia and into Scandinavia and eastern Europe, as well as some US cities. Coaches have toilets, free WiFi and power outlets, plus snacks and drinks for purchase on board. Flixbus is a good choice for the budget-conscious traveller; purchase tickets in advance for the cheapest fares (note: there is no option to reserve a seat in advance).

Rome2rio's guide to FlixBus
Contact Details
Phone
+49 1807 123 99 123
Email
info@flixbus.de
Website
flixbus.de
Bus from Dortmund central bus station to International Interconnection Hub
Ave. Duration
25h 50m
Frequency
3 times a week
Estimated price
75€ - 95€
Website
flixbus.co.uk
Bus from International Interconnection Hub to Madrid
Ave. Duration
3h
Frequency
3 times a week
Estimated price
14€ - 17€
Website
flixbus.co.uk
Bus from Hamburg central bus station to Bremen central train station
Ave. Duration
1h 40m
Frequency
4 times a week
Estimated price
9€ - 12€
Website
flixbus.co.uk
Mądeltrans Eurolines
Phone
+48 14 6 571 777
Email
linia@madeltrans.com.pl
Website
madeltrans.pl
Bus from Hamburg Central Bus Station to Bremen Central Bus Station
Ave. Duration
1h 45m
Frequency
6 times a week
Estimated price
7€ - 11€
Website
Mądeltrans Eurolines
Blablabus

As the bus subsidiary of French railway SNCF, Ouibus offers eco-friendly coaches serving 35 French cities and 10 European cities at affordable fares. Ouibus journeys are safe and comfortable, with the four-star coaches offering power outlets, restrooms and WiFi. All Ouibus stations are located close to town centres for easy access to public transport. Getting on one of the 130 daily journeys is easy - electronic travel documents include your ticket and a personalised mini-guide with handy information.

Contact Details
Phone
0890715298
Website
ouibus.com
Bus from Hamburg to Bremen
Ave. Duration
1h 40m
Frequency
5 times a week
Estimated price
8€ - 11€
Website
Blablabus
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. ALSA services are accessible to people with disabilities, and guide dogs are welcome on all journeys. There are 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 Bremen to Logroño
Ave. Duration
26h 45m
Frequency
Once daily
Estimated price
140€ - 200€
Website
alsa.com
Bus from Logroño to Madrid
Ave. Duration
4h
Frequency
Hourly
Estimated price
25€ - 40€
Website
alsa.com

Want to know more about travelling around Spain

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

Yes, the driving distance between Hamburg to Madrid is 2162 km. It takes approximately 19h 40m to drive from Hamburg to Madrid.

Get driving directions

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

Search flights

There are 5774+ hotels available in Madrid. Prices start at 75€ per night.

More details

The best way to get from Hamburg to Hamburg Airport is to train which takes 28 min and costs 3€ - 4€.

More details