A transformer is a device that transfers electrical energy from one circuit to another through a shared magnetic field. A changing current in the first circuit (the primary) creates a changing magnetic field; in turn, this magnetic field induces a voltage in the second circuit (the secondary). By adding a load to the secondary circuit, a current is made to flow in it, thus transferring energy from one circuit to the other.
By appropriate selection of the numbers of turns, a transformer thus allows an alternating voltage to be stepped up — by making NS more than NP — or stepped down, by making it less.
A key application of transformers is to reduce the current before transmitting electrical energy over long distances through wires. By transforming electrical power to a high-voltage, low-current form for transmission and back again afterwards, the transformer allows electricity to be transmitted more efficiently, enabling the economic transmission of power over long distances. Consequently, transformers have shaped the electricity supply industry, permitting generation to be located remotely from points of demand. All but a fraction of the world's electrical power has passed through a series of transformers by the time it reaches the consumer.
Transformers are some of the most efficient electrical 'machines', with some large units able to transfer 99.75% of their input power to their output. Transformers come in a range of sizes from a thumbnail-sized coupling transformer hidden inside a stage microphone to huge gigavolt-ampere-rated units used to interconnect portions of national power grids. All operate with the same basic principles, though a variety of designs exist to perform specialized roles throughout home and industry.