The invention relates to a leg spreading device for an animal in a milking stall which defines a desired space between the rear legs of animal for milking as well as motivating the animal to place the legs in a desired longitudinal position for milking. The leg spreading device (10) comprises a first raised surface (10a) provided with a left side edge (10al) and a second raised surface provided with a right side edge (10bi). The leg spreading device (10) comprises a first elongated element (10a) forming the first raised surface and a second elongated element (10b) forming the second raised surface. The elongated elements (10a, 10b) are oriented in a manner such that a transverse distance (w) between the left side edge (10a1) of the first raised surface and the right side edge (10b1) of the second raised surface increases continuously in a longitudinal direction of the elongated elements (10a, 10b) from a first transverse distance (wi) in the first longitudinal position (I1) to a second transverse distance (w2) in a second longitudinal position (12).