A power tool including a housing, a controller within the housing, and a brushless motor within the housing and controlled by the controller. The brushless motor includes a stator assembly, a rotor core, and a rotor enclosure. The stator assembly includes a stator core having stator laminations defining a stack length in an axial direction. The rotor enclosure includes a front end cap provided on a first side of the rotor core having a front bearing holder; and a rear end cap provided on a second side of the rotor core. The brushless motor further includes a fan, a front bearing, and a rear bearing. The front bearing holder and the fan define a bearing-to-fan length in the axial direction between axial ends of the front bearing holder and the fan, wherein a difference between the bearing-to-fan length and the stack length is less than 23.5 millimeters.