Rajiv Gaur was trying to board the II AC coach of the Dakshin Express train at Mandi Bamora station but its door was closed.
By the time he realised that he would not be able to get in, the train had started running at a high speed and he clung on to the door, they said.
Though Gaur must have tried to get open the door but no one inside the compartment heard his voice, police said
His hands probably slipped and he fell down near Kulhar station and died on the spot, they added.