A gearbox for a vehicle wherein the gearbox is a range gearbox, the gearbox comprising: a planetary gear with a ring gear, a sun gear and a planet gear carrier, on which at least one planet gear is rotatably mounted, which ring gear and sun gear are configured to engage with the at least one planet gear; a gearbox housing surrounding the planetary gear; an input shaft and an output shaft for transfer of torque to and from the gearbox; a first axially movable coupling sleeve for selectively engaging and disengaging the planetary gear with/from the gearbox housing and for selectively engaging and disengaging the ring gear, the sun gear and the planet gear carrier with/from each other; and a second axially movable coupling sleeve for selectively engaging and disengaging the output shaft with/from the ring gear and with/from the planet gear carrier; wherein the first axially movable coupling sleeve, in a first gear position corresponding to a low range position, is configured to engage the ring gear with the gearbox housing; and the second axially movable coupling sleeve, in the first gear position corresponding to a low range position, is configured to engage the planet gear carrier with the output shaft, characterized in that the first axially movable coupling sleeve, in a second gear position corresponding to a high gear position is configured to engage the sun gear with the ring gear; and the second axially movable coupling sleeve, in the second gear position corresponding to a high gear position is configured to engage the ring gear with the output shaft; and the shifting operation from the low range gear position to the high range gear position is made by disengaging the planet carrier from the output shaft by means of the second axially movable coupling sleeve, and when the planet gear carrier has been disengaged from the output shaft the first axially movable coupling sleeve is after synchronization displaced in order to engage the sun gear with the ring gear, wherein the first axially movable coupling sleeve, on an inner surface, comprises first splines, which are configured to engage with first splines arranged on the gearbox housing, the sun gear, the planet gear carrier and the ring gear; and wherein the second axially movable coupling sleeve, in a neutral position, is configured to be positioned in an intermediate axial position between the first and second gear positions. a planetary gear with a ring gear, a sun gear and a planet gear carrier, on which at least one planet gear is rotatably mounted, which ring gear and sun gear are configured to engage with the at least one planet gear; a gearbox housing surrounding the planetary gear; an input shaft and an output shaft for transfer of torque to and from the gearbox; a first axially movable coupling sleeve for selectively engaging and disengaging the planetary gear with/from the gearbox housing and for selectively engaging and disengaging the ring gear, the sun gear and the planet gear carrier with/from each other; and a second axially movable coupling sleeve for selectively engaging and disengaging the output shaft with/from the ring gear and with/from the planet gear carrier; the first axially movable coupling sleeve, in a first gear position corresponding to a low range position, is configured to engage the ring gear with the gearbox housing; and the second axially movable coupling sleeve, in the first gear position corresponding to a low range position, is configured to engage the planet gear carrier with the output shaft, characterized in that the first axially movable coupling sleeve, in a second gear position corresponding to a high gear position is configured to engage the sun gear with the ring gear; and the second axially movable coupling sleeve, in the second gear position corresponding to a high gear position is configured to engage the ring gear with the output shaft; and the shifting operation from the low range gear position to the high range gear position is made by disengaging the planet carrier from the output shaft by means of the second axially movable coupling sleeve, and when the planet gear carrier has been disengaged from the output shaft the first axially movable coupling sleeve is after synchronization displaced in order to engage the sun gear with the ring gear, wherein the first axially movable coupling sleeve, on an inner surface, comprises first splines, which are configured to engage with first splines arranged on the gearbox housing, the sun gear, the planet gear carrier and the ring gear; and wherein the second axially movable coupling sleeve, in a neutral position, is configured to be positioned in an intermediate axial position between the first and second gear positions.