A surgical instrument including a handle assembly, a first endoscopic portion, a motor, and a first end effector is disclosed. The first endoscopic portion is selectively connectable to a distal portion of the handle assembly and defines a longitudinal axis. The first endoscopic portion includes a housing adjacent its proximal portion and includes an actuation member. The motor is disposed in mechanical cooperation with the housing of the first endoscopic portion and is operatively connected to the actuation member for moving the actuation member substantially along the longitudinal axis. The first end effector is selectively connectable to a distal portion of the first endoscopic portion and is configured to perform a first stapling function.