Rotating magnetic fields are produced by supplying a three-phase winding with alternating current such that the current in each phase is 120 degrees out of phase. This produces three magnetic fluxes that are 120 degrees out of phase. The vector sum of these three fluxes results in a single magnetic flux vector that rotates in space. This rotating magnetic field can be used to drive an electric motor or generator. The speed of rotation is proportional to the supply frequency and number of poles, such that for a 2-pole winding, the magnetic field rotates at half the frequency of the alternating current supply.