Home / Circuit lab / Buck converter

Buck converter simulator

A buck converter steps a voltage down by switching it on and off very fast and smoothing the result with an inductor and a capacitor. Change the values and watch the inductor current.

Advanced

switchCload

Controls

Readings

What's going on

When the switch is on, the input drives current through the inductor to the output, and the current ramps up. When the switch is off, the inductor keeps the current flowing through the diode, and it ramps down. Averaged over a cycle, the inductor current equals the load current, and the output voltage is the input voltage times the duty cycle, the fraction of time the switch is on: Vout = D × Vin.

The current ramps up and down by the ripple current, ΔI = (Vin − Vout) × D ÷ (L × f). A bigger inductor or a higher switching frequency means less ripple. If the ripple is more than twice the load current, the current hits zero each cycle and the converter enters discontinuous mode.

Because the switch is either fully on or fully off, very little power is wasted. Real buck converters often reach 90% efficiency or more, where a linear regulator dropping 12 V to 3.3 V would waste over 70% of the power as heat. Our guide to powering projects safely covers when to use each.

How this simulation works

This is an ideal, lossless buck converter in steady state: the switch, diode and inductor have no voltage drops or resistance, and the output capacitor is big enough to hold the output steady. In discontinuous mode it assumes the controller adjusts the duty cycle to keep the output at the set voltage. Real converters also have losses, output voltage ripple and a minimum on-time. The switch animation runs in slow motion, one cycle every two seconds.

Keep exploring