The itinerary lasts 5hrs 54min, and has 2 steps.

Latour-de-Carol - Barcelone
The step from Latour-de-Carol to Barcelone lasts 3hrs 24min. You'll travel in a RER operated by SNCF Voyageurs.

Barcelone - Madrid
The step from Barcelone to Madrid lasts 2hrs 30min. You'll travel in a high speed train.