Power Supply Designer Back
Power Electronics

Switching Power Supply Designer

Design Buck, Boost, and Buck-Boost DC-DC converters. Calculate L, C, duty cycle, and efficiency in real time. Visualize the inductor current waveform and efficiency curve.

Converter Settings
Converter Type
Input Voltage Vin
V
Output Voltage Vout
V
Output Current Iout
A
Switching Frequency fs
kHz
Ripple Ratio ΔIL/IL
%
Design Results
Notes
Buck: D=Vout/Vin
L=(Vin−Vout)·D/(fs·ΔIL)
C=ΔIL/(8·fs·ΔVout)
Results
Duty Cycle D
Inductance L
µH
Output Cap C
µF
Efficiency η
%
Waveform & Characteristic Plots
Wave

Inductor current triangular ripple (one full switching cycle)

Schematic

Circuit topology schematic

Theory & Key Formulas

$$L = \frac{V_{in} - V_{out}}{f_s \cdot \Delta I_L}$$

Buck コンバータのインダクタ設計:\(f_s\) スイッチング周波数 [Hz]、\(\Delta I_L\) リプル電流

$$D = \frac{V_{out}}{V_{in}} \text{ (Buck)}, \quad D = 1 - \frac{V_{in}}{V_{out}} \text{ (Boost)}$$

デューティ比 \(D\):連続導通モード(CCM)での基本変換比

$$C = \frac{\Delta I_L}{8 f_s \Delta V_{out}}$$

出力コンデンサ容量:\(\Delta V_{out}\) 許容出力リプル電圧 [V]

What is a DC-DC Switching Converter?

🙋
What exactly is a switching power supply? My phone charger gets warm, but my laptop's brick stays cool. Is that related?
🎓
Great observation! Basically, your laptop brick uses a switching converter, which is far more efficient. Instead of burning off excess voltage as heat (like a linear regulator), it rapidly switches a transistor on and off to control energy flow. This tool simulates the three main types: Buck (steps voltage down), Boost (steps it up), and Buck-Boost (can do either). Try selecting "Buck" in the simulator and see how the required duty cycle changes when you adjust Vin and Vout.
🙋
Wait, really? So the "duty cycle" is just the on/off time ratio? How does that tiny switch control a steady output voltage?
🎓
Exactly! The duty cycle (D) is the fraction of time the switch is ON. In practice, we use an inductor as an energy storage element. When the switch is on, the inductor stores energy from the input. When it's off, the inductor releases that energy to the output. A capacitor smooths the result. For a Buck converter, the average output is $V_{out}= D \times V_{in}$. Move the "Input Voltage" slider and watch the calculated duty cycle update instantly—it's the fundamental control law.
🙋
That makes sense. But I see a parameter for "Ripple Ratio." What's that wavy line in the inductor current graph?
🎓
That wavy line is key! Because we're switching, the inductor current isn't perfectly flat—it has a ripple, $\Delta I_L$. The ripple ratio sets this peak-to-peak ripple as a percentage of the average current. A higher ratio means a smaller, cheaper inductor but more current stress on components. Try sliding the "Ripple Ratio" control from 20% to 40%. You'll see the waveform's peaks get taller and the minimum required inductance value drop. It's a classic engineering trade-off between cost, size, and performance.

Physical Model & Key Equations

The core of any switching converter is the volt-second balance across the inductor. Over one switching period, the net voltage-time product must be zero for steady-state operation. This principle directly yields the conversion ratio.

$$ \text{Buck: }\frac{V_{out}}{V_{in}}= D \quad \text{Boost: }\frac{V_{out}}{V_{in}}= \frac{1}{1-D}\quad \text{Buck-Boost: }\frac{V_{out}}{V_{in}}= -\frac{D}{1-D}$$

Where $D$ is the duty cycle (0 to 1), $V_{in}$ is the input voltage, and $V_{out}$ is the output voltage (negative for Buck-Boost indicates polarity inversion).

The inductor value is chosen to limit the current ripple to a designed percentage of the average inductor current. The required minimum inductance depends on the converter topology and operating point.

$$ L_{min}= \frac{V_{L} \times D}{f_s \times \Delta I_L}$$

Here, $V_L$ is the voltage across the inductor during the switch-ON phase (e.g., $V_{in}- V_{out}$ for a Buck), $f_s$ is the switching frequency, and $\Delta I_L$ is the desired peak-to-peak ripple current, calculated from the set Ripple Ratio and the average inductor current $I_L$.

Frequently Asked Questions

The tool automatically calculates the duty ratio from the input voltage values based on the converter type (Buck/Boost/Buck-Boost). If the change is not reflected, first check that the converter type is correctly selected. Also, after entering a numerical value, press the Enter key or click on another field to confirm.
The boundary between continuous conduction mode (CCM) and discontinuous conduction mode (DCM) is determined by the relationship between the inductor current ripple and the load current. In the tool, when the load current falls below half of the ripple, the waveform automatically switches to DCM. During design, adjust the inductance value or switching frequency according to the desired operating mode.
The efficiency curve in this tool primarily considers the inductor copper loss (loss due to DC resistance), core loss, and the conduction loss and switching loss of the switching element using a simplified model. In actual board design, factors such as wiring resistance and capacitor ESR also have an effect, so please use this only as a reference.
The L and C values calculated by the tool are ideal design values. When selecting actual components, choose standard parts close to the calculated values, and check the voltage rating, ripple current rating, and temperature characteristics. Also, for the output capacitor, consider the ripple voltage due to ESR, and it is recommended to use multiple capacitors in parallel or low-ESR types as necessary.

Real-World Applications

Consumer Electronics Power Management: The processor in your smartphone or laptop requires a very specific, low voltage (e.g., 0.8V to 1.2V) that changes dynamically to save power. A Buck converter, often integrated into the chip itself, efficiently steps down the battery voltage (3.7V) to this precise level with minimal energy loss as heat.

LED Drivers and Automotive Systems: A car battery nominally provides 12V, but high-brightness LED headlights might need a forward voltage of 30V or more. A Boost converter is used to step up the voltage. Conversely, infotainment systems need stable 5V or 3.3V, provided by robust Buck converters that handle the battery's voltage surges.

Renewable Energy Systems: The voltage from a solar panel varies greatly with sunlight. A Buck-Boost or dedicated Maximum Power Point Tracking (MPPT) converter is essential to efficiently adjust this variable input to the constant voltage required to charge a battery bank or feed into the power grid, maximizing energy harvest.

Industrial Motor Drives & Robotics: Variable-speed motor drives need to precisely control power delivery. Switching converters provide the controlled DC bus voltage that is then chopped by an inverter to drive the motor. Their high efficiency is critical for reducing heat in enclosed control cabinets and improving overall system runtime.

Common Misconceptions and Points to Note

First, the idea that "you can simply adopt the calculated minimum inductance Lmin as-is" is risky. The value provided by the tool is the theoretical minimum for operation in continuous conduction mode. In practice, the golden rule is to select a value with a margin of about 1.2 to 1.5 times the calculated value, considering transient response under load variations and the DC bias characteristics (saturation) of the inductor itself. For example, if the calculation yields 10µH, you should look for a standard part rated for 12–15µH.

Next, do not underestimate the role of the output capacitor Cout. While the tool calculates the capacitance needed to suppress ripple voltage, the equivalent series resistance (ESR) is often the dominant factor for the actual ripple voltage. For instance, a 10µF ceramic capacitor (low ESR) and an electrolytic capacitor (high ESR) operating at 100kHz will produce completely different output waveforms. For high frequencies, low-ESR ceramic capacitors are essential.

Finally, understand that the duty cycle D is not a parameter you can set freely. In the tool, it is uniquely determined from the input and output voltages. If the calculated D exceeds 90% to achieve your desired output voltage, it's a sign of an impractical design. The switch off-time becomes extremely short, leading to unstable control or non-negligible diode reverse recovery losses. In such cases, you need to reconsider the input voltage range.

How to Use

  1. Enter input voltage (Vin) in volts—typical values range 12V to 48V for industrial supplies or 5V to 15V for consumer electronics.
  2. Set output voltage (Vout) and output current (Iout) requirements; for a 24V/5A buck converter from 48V input, expect Vout=24V and Iout=5A.
  3. Specify switching frequency (Fs) in kHz—standard values are 100kHz for general-purpose designs or 500kHz+ for high-density power modules.
  4. Select converter topology (Buck, Boost, or Buck-Boost) based on voltage relationship; Buck steps down (Vin > Vout), Boost steps up (Vin < Vout).
  5. Review calculated duty cycle, inductor value (µH), output capacitor (µF), and efficiency percentage in real-time waveform and curve plots.

Worked Example

Design a 24V/3A buck converter from 48V input at 200kHz switching frequency. Input voltage Vin=48V, output voltage Vout=24V, output current Iout=3A, switching frequency Fs=200kHz. Calculated duty cycle D = Vout/Vin = 24/48 = 0.5 (50%). For ripple current of 20% (±0.3A), inductor L = (Vin − Vout)×D / (ΔI×Fs) = (48−24)×0.5 / (0.6×200k) ≈ 100µH. Output capacitor Cout ≈ 47µF (voltage rating 35V). Efficiency with 85% diode and 92% MOSFET yields approximately 88% overall; inductor current waveform shows triangular ramp between 2.7A and 3.3A at 5µs period.

Practical Notes

  1. For Buck converters with Vin=48V stepping to Vout=5V, use low-ESR ceramic capacitors (X5R/X7R) rated ≥10V to minimize output voltage ripple below 50mV.
  2. Boost topology duty cycle approaches 1 at high step-up ratios (e.g., 5V to 20V); verify MOSFET current rating and reverse-recovery losses dominate efficiency degradation.
  3. Switching frequency above 500kHz reduces inductor and capacitor size but increases gate-drive and core losses; balance PCB real estate against thermal management for confined spaces.
  4. Measure inductor DCR (typical 0.05Ω to 0.5Ω for 100µH inductors) and include in efficiency calculation; 0.2Ω DCR at 3A dissipates 0.18W.