A switched-mode power supply (switching-mode power supply, switch-mode power supply, switched power supply, SMPS, or switcher) is an electronic power supply that incorporates a switching regulator to convert electrical power efficiently. Like other power supplies, an SMPS transfers power from a DC or AC source (often mains power) to DC loads, such as a personal computer, while converting voltage and current characteristics. Unlike a linear power supply, the pass transistor of a switching-mode supply continually switches between low-dissipation, full-on and full-off states, and spends very little time in the high dissipation transitions, which minimizes wasted energy. A hypothetical ideal switched-mode power supply dissipates no power. Voltage regulation is achieved by varying the ratio of on-to-off time (also known as duty cycles). In contrast, a linear power supply regulates the output voltage by continually dissipating power in the pass transistor. This higher power conversion efficiency is an important advantage of a switched-mode power supply. Switched-mode power supplies may also be substantially smaller and lighter than a linear supply due to the smaller transformer size and weight. A switched-mode power supply (switching-mode power supply, switch-mode power supply, switched power supply, SMPS, or switcher) is an electronic power supply that incorporates a switching regulator to convert electrical power efficiently. Like other power supplies, an SMPS transfers power from a DC or AC source (often mains power) to DC loads, such as a personal computer, while converting voltage and current characteristics. Unlike a linear power supply, the pass transistor of a switching-mode supply continually switches between low-dissipation, full-on and full-off states, and spends very little time in the high dissipation transitions, which minimizes wasted energy. A hypothetical ideal switched-mode power supply dissipates no power. Voltage regulation is achieved by varying the ratio of on-to-off time (also known as duty cycles). In contrast, a linear power supply regulates the output voltage by continually dissipating power in the pass transistor. This higher power conversion efficiency is an important advantage of a switched-mode power supply. Switched-mode power supplies may also be substantially smaller and lighter than a linear supply due to the smaller transformer size and weight. Switching regulators are used as replacements for linear regulators when higher efficiency, smaller size or lighter weight are required. They are, however, more complicated; their switching currents can cause electrical noise problems if not carefully suppressed, and simple designs may have a poor power factor. A linear regulator provides the desired output voltage by dissipating excess power in ohmic losses (e.g., in a resistor or in the collector–emitter region of a pass transistor in its active mode). A linear regulator regulates either output voltage or current by dissipating the excess electric power in the form of heat, and hence its maximum power efficiency is voltage-out/voltage-in since the volt difference is wasted. In contrast, a switched-mode power supply changes output voltage and current by switching ideally lossless storage elements, such as inductors and capacitors, between different electrical configurations. Ideal switching elements (approximated by transistors operated outside of their active mode) have no resistance when 'on' and carry no current when 'off', and so converters with ideal components would operate with 100% efficiency (i.e., all input power is delivered to the load; no power is wasted as dissipated heat). In reality, these ideal components do not exist, so a switching power supply cannot be 100% efficient, but it is still a significant improvement in efficiency over a linear regulator. For example, if a DC source, an inductor, a switch, and the corresponding electrical ground are placed in series and the switch is driven by a square wave, the peak-to-peak voltage of the waveform measured across the switch can exceed the input voltage from the DC source. This is because the inductor responds to changes in current by inducing its own voltage to counter the change in current, and this voltage adds to the source voltage while the switch is open. If a diode-and-capacitor combination is placed in parallel to the switch, the peak voltage can be stored in the capacitor, and the capacitor can be used as a DC source with an output voltage greater than the DC voltage driving the circuit. This boost converter acts like a step-up transformer for DC signals. A buck–boost converter works in a similar manner, but yields an output voltage which is opposite in polarity to the input voltage. Other buck circuits exist to boost the average output current with a reduction of voltage. In an SMPS, the output current flow depends on the input power signal, the storage elements and circuit topologies used, and also on the pattern used (e.g., pulse-width modulation with an adjustable duty cycle) to drive the switching elements. The spectral density of these switching waveforms has energy concentrated at relatively high frequencies. As such, switching transients and ripple introduced onto the output waveforms can be filtered with a small LC filter.