A power tool includes a housing and an electric motor supported within the housing. The housing includes a main housing portion that defines a rear opening. The electric motor includes an output shaft supporting a rotor assembly for rotation about a motor axis. The electric motor also includes a stator assembly surrounding the rotor assembly, and a rear end cap. The rear end cap supports a rear motor bearing that rotatably supports the output shaft at a rear end. A portion of the rear end cap resides within the rear opening to close the rear opening.