DC-DC · Inverting Step Up/Down · Virtual Lab

Buck-Boost (Inverting) Converter Simulator

An advanced, physics-accurate simulator of the DC-DC inverting buck-boost converter — a MOSFET, inductor, diode and capacitor that produce a negative output that can be smaller or larger than the input. Sweep the duty cycle D, switching frequency and the L, C, R values, add a real device model (MOSFET Rds(on), diode Vf, inductor DCR, capacitor ESR), and watch every waveform update on a real-time oscilloscope — validated live against Vo = −D·Vin/(1 − D), with CCM/DCM detection, ripple analysis, efficiency and a conduction-loss breakdown.

Inverting buck-boost DC-DC converter circuit: input voltage Vin, MOSFET switch, inductor L to ground, diode and output capacitor C producing a negative output voltage Vo across load R
Inverting buck-boost — the MOSFET charges L from Vin; when it opens, L discharges through the diode into C with reversed polarity, giving Vo = −D·Vin/(1 − D).

Parameters

|Vo| = D·Vin/(1−D) · D<0.5 step-down · D>0.5 step-up
V

Power stage (L · C · load)

The inductor carries both input and output current, so it is stressed harder than in a buck or boost.

Device & parasitics model

Ideal (all 0) gives Vo = −D·Vin/(1−D) exactly; add parasitics to see the real drooped output, ripple and losses.

Sampling & display

Points plotted per switching period

Presets

Waveforms to display

Waveforms — one steady-state switching period

Vin v_sw node Vo output (−) i_L inductor i_Q MOSFET i_D diode
LIVE

Efficiency & conduction-loss breakdown

Estimated efficiency (conduction losses)
Power lost in each component, computed from the true integrated currents: MOSFET Rds(on), diode Vf, inductor DCR and capacitor ESR. Set parasitics above to see the split.

Measurements

Live accuracy check — simulation vs closed-form theory

Output voltage  
Inductor ripple  

What is an inverting buck-boost converter?

A buck-boost converter is a switched-mode DC-DC converter whose output can be either lower or higher than the input, and whose polarity is inverted (negative). A single inductor is charged from the input through a MOSFET; when the switch opens, the inductor discharges through a diode into the output capacitor with the opposite polarity. It combines the ranges of the buck and the boost in one topology.

How it works — the two switching states

  • Switch ON (0 → D·T): the MOSFET connects the inductor across the input; the current ramps up as diL/dt = Vin/L, storing energy. The diode is reverse-biased, so the output capacitor alone supplies the (negative) load.
  • Switch OFF (D·T → T): the inductor forces its current through the diode into the output capacitor with reversed polarity; the current ramps down as diL/dt = −|Vo|/L, and the output is negative.

Key equations

Vo = − D·Vin / (1 − D) (ideal, continuous conduction)
ΔiL = Vin·D / (L·fsw) · ΔVo = Io·D / (C·fsw) + ΔiL·ESR
Switch & diode blocking voltage = Vin + |Vo| = Vin/(1 − D)

This simulator does not plug numbers into these formulas — it numerically integrates the real switching circuit (with your device parasitics) to steady state, then measures Vo, the ripple and the losses from the resulting waveforms and compares them to the equations above in the accuracy panel.

Step-up or step-down?

Because |Vo| = D·Vin/(1 − D), the converter steps the magnitude down for D < 0.5, gives |Vo| = Vin at D = 0.5, and steps up for D > 0.5 — always with an inverted output. Use the Step-down and Step-up presets to see both.

CCM / DCM & device stress

As with the buck and boost, at light load or with a small inductor the current becomes discontinuous (DCM) and the output magnitude rises above the ideal. Note that the inductor carries the sum of the input and output currents, and the switch and diode block Vin + |Vo| — the highest stress of the three basic topologies. The loss-breakdown chart shows where the power goes.

Buck vs boost vs buck-boost

ConverterOutput vs inputIdeal Vo
BuckSteps down (Vo < Vin)D·Vin
BoostSteps up (Vo > Vin)Vin/(1 − D)
Buck-BoostUp or down, inverted−D·Vin/(1 − D)

Applications

Generating a negative rail (e.g. −5 V / −12 V) from a positive supply, LED drivers, battery-powered systems where the output may be above or below the battery voltage, and as the basis of the non-inverting Ćuk, SEPIC and ZETA converters.

Frequently asked questions

What is the output voltage of a buck-boost converter?

In CCM the ideal output is Vo = −D·Vin/(1 − D) — negative, and either smaller or larger than Vin depending on D.

Why is the output negative?

The inductor discharges into the output capacitor with reversed polarity during the off-time, so the output is inverted relative to the input ground.

Does it step up or step down?

|Vo| = D·Vin/(1 − D): step-down for D < 0.5, equal at D = 0.5, step-up for D > 0.5.

What is the inductor ripple current?

ΔiL = Vin·D/(L·fsw). The inductor carries both input and output current, so its average is higher than in a buck or boost.

What must the switch and diode withstand?

Both block Vin + |Vo| = Vin/(1 − D) — higher than either a buck or a boost of the same ratio.

Power4All · Buck-Boost Converter interactive simulator. All waveforms are produced by numerical integration of the actual switching circuit and validated against closed-form theory.