A rotary electric machine includes a stator including a stator winding and a rotor movable relative to the stator in a first direction and arranged to face the stator in a second direction, the rotor including plural pairs of rotor poles at a rotor core, each pair of the plural pairs of rotor poles including different polarities from each other, the stator including a fractional slot configuration where the number of slots per pole per phase is a non-integer, the stator winding being wound by a fractional slot winding, one of a stator core and the rotor core including a base portion and either a single position portion or plural position portions which is connected to the base portion in a third direction and which is displaced relative to the base portion in the first direction, the third direction being orthogonal to the first direction and the second direction.