An electric motor includes a stator made up of individual segments disposed in the circumferential direction, each individual segment including a core stack around which a winding is provided and at whose axial terminal regions end caps are provided, the winding being produced by a winding wire, an end cap including at least one dome, in particular for delimiting the region of the winding, a wire inlet duct for rerouting the winding wire being provided in the base region of the dome, grooves being provided on the end cap, the distance of one groove with respect to the radially following groove and the diameter of the curvature of the respective groove being smaller than the diameter of the winding wire.