The present invention relates to an injection device (20). The injection device (20) comprises a housing (11) for holding a syringe (18) that has a needle (17) at one end and a cap (21) that is removably attached to the housing (11) and has a needle shield (22) to cover said needle (17). The cap (21) further comprises an actuator (27) and a gear assembly (26) comprising first and second linear gears (28, 29) and a double gear (30). The gear assembly (26) is configured such that movement of the first linear gear (28) in a first direction rotates the double gear (30) to drive the second linear gear (29) to urge the needle shield (22) away from the housing (11). The actuator (27) is configured to move the first linear gear (28) in the first direction.