The average train between Madrid and Heidelberg takes 23h 44m and the fastest train takes 21h 32m. The train service runs several times per day from Madrid to Heidelberg. The journey time may be longer on weekends and holidays; use the search form on this page to search for a specific travel date.
Trains run twice daily between Madrid and Heidelberg. The earliest departure is at 12:50 PM in the afternoon, and the last departure from Madrid is at 8:30 PM which arrives into Heidelberg at 10:42 PM. All services require a transfer at Barcelona-Sants and take an average of 23h 44m. The schedules shown below are for the next available departures.
Arrives next day




21h 32m • 4 changes
Arrives next day




26h 12m • 4 changes
Arrives next day




21h 32m • 4 changes
Arrives next day




26h 12m • 4 changes
Arrives next day




21h 32m • 4 changes
Arrives next day




26h 12m • 4 changes
Arrives next day




21h 32m • 4 changes
Arrives next day




26h 12m • 4 changes
Want to know about travelling from Madrid to Heidelberg? We have put together a list of the most frequently asked questions from our users such as: What is the cheapest mode of transport? What is the quickest option? How much do tickets usually cost? and many more.
No, there is no direct train from Madrid to Heidelberg. However, there are services departing from Madrid station and arriving at Heidelberg station via Barcelona-Sants. The journey, including transfers, takes approximately 23h 44m.
Madrid to Heidelberg train services, operated by Renfe Viajeros, depart from Madrid-Puerta de Atocha-Almudena Grandes station.
Madrid to Heidelberg train services, operated by Renfe Viajeros, arrive at Heidelberg, Hauptbahnhof station.
Book your Madrid to Heidelberg train tickets online with Renfe Viajeros, TGV inOui and 5 other operators.
The distance between Madrid and Heidelberg is 1,393.7 km. The road distance is 2,274 km.
You can take a train from Madrid-Puerta de Atocha-Almudena Grandes to Heidelberg, Hauptbahnhof via Barcelona-Sants, Paris Gare de Lyon, Paris Gare Du Nord, Paris Est, and Karlsruhe Hauptbahnhof in around 15h 37m.