The average train between Madrid and Heidelberg takes 23h 41m and the fastest train takes 22h 1m. 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 9:49 PM. All services require a transfer at Barcelona-Sants and take an average of 23h 41m. The schedules shown below are for the next available departures.
Arrives next day




22h 1m • 4 changesArrives next day




25h 19m • 4 changesArrives next day




22h 1m • 4 changesArrives next day




25h 39m • 4 changesArrives next day




22h 1m • 4 changesArrives next day




25h 19m • 4 changesArrives next day




22h 1m • 4 changesArrives next day




25h 19m • 4 changesWant 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 41m.
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,255 km.
You can take a train from Madrid-Puerta de Atocha-Almudena Grandes to Heidelberg, Hauptbahnhof via Barcelona-Sants, Paris Gare de Lyon, Paris Nord, Paris Est, Karlsruhe Hbf, and Karlsruhe Hauptbahnhof in around 15h 31m.