Method for forming an electric motor, said electric motor comprising a rotor, a stator, and a supporting structure for the rotor and the stator as well as an output for transmitting rotary movement out of the motor, and in which stator is a plurality of slots and/or poles, characterized in that in the method the plurality of stator slots and/or poles are placed in a manner sinusoidal diverging from equidistant distribution, and which method further includes the phases of: calculating the placement of each slot on the rim of a stator rim with equidistantly distributed slotting in relation to a selected reference point being presented by means of a placement function f as follows f k = k − 1 * L / Q where Q is the number of stator slots, k is the ordinal number of the slot (1, 2,..., Q), and L is the length of the stator rim and whereby f(k) indicates the position of slot k as the distance from the reference point calculating a sinusoidal displacement of the slots from the above calculated equidistant placement via a conversion function which comprises a sine function or the sum of a number of sine functions according to following formula H k = a * sin s * 2 pi * f k / L where s is the symmetry number of the conversion function, which determines the number of symmetrical portions in the stator rim and a is the amplitude, which determines the magnitude of the change.; and calculating the placement of the slots/poles in the electric motor by using a shape function for the placement positions of the stator slots and/or poles by summing the values of the placement function for equidistantly distributed slotting and the conversion function for sinusoidal displacement according to following formula M k = f k + H k where M(k) indicates the placement of the slot for ordinal number k; and forming a stator (30; 60), in which the slots and/or poles are positioned essentially in accordance with the shape function. calculating the placement of each slot on the rim of a stator rim with equidistantly distributed slotting in relation to a selected reference point being presented by means of a placement function f as follows f k = k − 1 * L / Q where Q is the number of stator slots, k is the ordinal number of the slot (1, 2,..., Q), and L is the length of the stator rim and whereby f(k) indicates the position of slot k as the distance from the reference point calculating a sinusoidal displacement of the slots from the above calculated equidistant placement via a conversion function which comprises a sine function or the sum of a number of sine functions according to following formula H k = a * sin s * 2 pi * f k / L where s is the symmetry number of the conversion function, which determines the number of symmetrical portions in the stator rim and a is the amplitude, which determines the magnitude of the change.; and calculating the placement of the slots/poles in the electric motor by using a shape function for the placement positions of the stator slots and/or poles by summing the values of the placement function for equidistantly distributed slotting and the conversion function for sinusoidal displacement according to following formula M k = f k + H k where M(k) indicates the placement of the slot for ordinal number k; and forming a stator (30; 60), in which the slots and/or poles are positioned essentially in accordance with the shape function.