The average train between Madrid and Terrassa takes 4h 26m and the fastest train takes 3h 58m. There is an hourly train service from Madrid to Terrassa. 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 hourly between Madrid and Terrassa. The earliest departure is at 6:16 AM in the morning, and the last departure from Madrid is at 8:56 PM which arrives into Terrassa at 5:19 AM. All services require a transfer, and take on average 4h 26m. The schedules shown below are for the next available departures.

4h 18m • 1 change

4h 23m • 1 change

4h 21m • 1 change
Arrives next day

4h 46m • 1 change

4h 19m • 1 change

4h 23m • 1 change

4h 8m • 1 change

3h 58m • 1 change

4h 19m • 1 change

4h 23m • 1 change

4h 8m • 1 change

3h 58m • 1 change
Want to know about travelling from Madrid to Terrassa? 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 Terrassa. However, there are services departing from Madrid station and arriving at Terrassa station via Barcelona-Sants. The journey, including transfers, takes approximately 4h 26m.
Madrid to Terrassa train services, operated by iryo, depart from Madrid-Puerta de Atocha-Almudena Grandes station.
Madrid to Terrassa train services, operated by iryo, arrive at Terrassa Estació Del Nord station.
The distance between Madrid and Terrassa is 496.7 km. The road distance is 642 km.
You can take a train from Madrid-Puerta de Atocha-Almudena Grandes to Terrassa Estació Del Nord via Barcelona Sants in around 4h 4m.