A surgical instrument including a housing, an endoscopic portion, a driven gear, a drive motor, a shift motor and an end effector is disclosed. The endoscopic portion extends distally from the housing and defines a longitudinal axis. The drive gear is disposed at least partially within the housing and is rotatable about a drive gear axis which extends therethrough. The drive gear is selectively movable along the drive gear axis. The drive motor is disposed in mechanical cooperation with the drive gear and is configured to rotate the drive gear. The shift motor is disposed in mechanical cooperation with the drive gear and is configured to move the drive gear along the drive gear axis. The end effector is disposed adjacent a distal portion of the endoscopic portion.