A transformer consists of two coils, a primary winding and secondary winding. An alternating current (AC) applied to the primary winding induces a voltage in the secondary winding through electromagnetic induction. The turns ratio between the windings determines whether the transformer steps up or steps down the voltage. Transformers are used for applications such as voltage regulation, impedance matching, phase shifting, isolation, and producing multiple voltage levels.