A buck converter calculator determines the output voltage, duty cycle, or required inductor value for a step-down switching regulator. You enter the input voltage, output voltage, and switching frequency (plus inductor current ripple or load current), and it returns the duty cycle and recommended inductance. This page explains the standard formulas and how to apply them to real designs.
Formula
The buck converter is a step-down switching regulator that uses a transistor, diode, inductor, and capacitor to convert a higher DC voltage to a lower DC voltage with high efficiency. The two key equations are:
- Duty cycle (D) = Vout / Vin (for continuous conduction mode, ignoring diode and switch losses).
- Minimum inductance (Lmin) = (Vin − Vout) × D × Ts / ΔIL, where Ts = 1/fsw and ΔIL is the peak-to-peak inductor ripple current, often chosen as 20–40% of the load current.
In the calculator, the duty cycle is expressed as a percentage, and the ripple ratio is the percentage of load current that the inductor ripple represents. The peak inductor current equals the load current plus half the ripple current.
Worked Example
Using the default values: Vin = 12 V, Vout = 5 V, fsw = 500 kHz, Iout = 2 A, ripple = 30%.
- Duty cycle: D = 5 / 12 = 0.4167, or 41.67%.
- Ripple current: ΔIL = 0.30 × 2 A = 0.6 A.
- Switching period: Ts = 1 / 500,000 = 2 µs.
- Minimum inductance: Lmin = (12 − 5) × 0.4167 × 2 µs / 0.6 A = 9.72 µH.
- Peak inductor current: Ipeak = 2 A × (1 + 0.15) = 2.3 A.
The calculator rounds Lmin to 9.72 µH, matching the hand calculation.
How a Buck Converter Works
A buck converter stores energy in an inductor when the switch (typically a MOSFET) is on, and releases it to the output when the switch is off. The duty cycle controls the ratio of on-time to the total switching period, which determines the average output voltage. In continuous conduction mode (the inductor current never falls to zero), the output voltage is simply Vin × D, independent of load current. In discontinuous mode (current falls to zero), the relationship becomes load-dependent, and the formulas above require modification.
The inductor value affects the ripple current: a larger inductance gives lower ripple but a slower transient response and a physically larger component. The output capacitor smooths the voltage ripple, and the diode (or synchronous MOSFET) provides a path for inductor current when the switch is off.
How to Choose the Right Inductor
Selecting an inductor involves more than just the minimum value. The inductor must also handle the peak current without saturating, and its DC resistance (DCR) affects efficiency. Here are the steps:
- Calculate Lmin using the formula above, but choose a value 20–50% higher to ensure continuous conduction and margin.
- Check the saturation current rating: it must exceed the peak inductor current (Ipeak).
- Consider the RMS current for thermal rating; for a buck, RMS current is close to the average load current.
- Verify the self-resonant frequency is well above the switching frequency to avoid parasitic capacitance issues.
- Check the DCR: lower DCR improves efficiency but often increases size and cost.
For the default example, a 10 µH inductor with a saturation current of at least 2.5 A would be a reasonable choice.
Common Mistakes and Misconceptions
A frequent error is using the duty cycle formula without accounting for diode forward voltage drop (Vd) in low-voltage outputs. The corrected formula is D = (Vout + Vd) / (Vin − Vswitch), where Vswitch is the voltage drop across the MOSFET. For a 5 V output with a 0.5 V diode drop, the duty cycle becomes (5 + 0.5) / 12 = 45.8%, not 41.7%.
Another misconception is that a higher inductance is always better. While it reduces ripple, it also slows the transient response and may cause the converter to enter discontinuous mode at light loads, which can affect regulation. The ripple ratio should be chosen based on the output voltage ripple requirement and the capacitor’s ESR.
Unit errors are common: switching frequency in MHz vs kHz, inductance in µH vs mH, and current in mA vs A. Always convert to base units before calculating.
Efficiency and Losses
Real buck converters have losses from the switch’s on-resistance, the diode’s forward voltage, the inductor’s DCR, and the capacitor’s ESR. Efficiency (η) is the ratio of output power to input power. The calculator above assumes ideal components, so the actual output voltage will be slightly lower than Vin × D. To compensate, you can increase the duty cycle slightly or use a synchronous converter where the diode is replaced by a second MOSFET with lower loss.
For a quick efficiency estimate, you can measure input and output power, but the calculator only provides the ideal duty cycle. For precise designs, use a simulator or the manufacturer’s reference design.
When to Use a Buck Converter vs Other Topologies
A buck converter is used when the output voltage is lower than the input. If you need to step up voltage, use a boost converter. If the input can be both higher and lower than the output, a buck-boost or SEPIC converter is appropriate. For very high step-down ratios (e.g., 48 V to 3.3 V), a buck converter may have an extremely low duty cycle, which can cause minimum on-time issues; in that case, a two-stage approach or a tapped-inductor buck may be better.
For isolated applications, a flyback or forward converter is used. The buck converter is the simplest and most efficient for non-isolated step-down, which is why it is ubiquitous in power supplies for CPUs, LEDs, and battery-powered devices.
Safety and Practical Considerations
When building or testing a buck converter, always observe polarity and voltage ratings. The input capacitor must withstand the input voltage with margin, and the output capacitor must have a voltage rating above the output voltage. Inductors can get hot; ensure adequate thermal margin. If you are designing a power supply for a commercial product, consult a qualified engineer and follow safety standards such as IEC 62368 for information technology equipment. The calculator provides theoretical values; always verify with a prototype and oscilloscope.
Frequently Asked Questions
What is the difference between continuous and discontinuous conduction mode? In continuous conduction mode (CCM), the inductor current never drops to zero; the duty cycle formula is simple. In discontinuous mode (DCM), the current reaches zero for part of the cycle, and the output voltage depends on load. The calculator assumes CCM, which is typical for most designs.
How do I choose the ripple ratio? A common choice is 20–40% of the maximum load current. A lower ripple ratio requires a larger inductor but reduces output voltage ripple and peak current. A higher ratio allows a smaller inductor but increases ripple and may require a larger output capacitor.
Can I use this calculator for a synchronous buck converter? Yes, but the duty cycle will be slightly different because the low-side MOSFET has a lower voltage drop than a diode. The ideal formula still holds; for accurate results, use the corrected formula with the MOSFET’s on-resistance.
What happens if my input voltage varies? The duty cycle will adjust to maintain a constant output voltage. The inductor value should be calculated at the worst-case condition: the highest input voltage and maximum load current, because that gives the largest ripple.
Why does my output voltage differ from the calculated value? Real components have losses, and the output voltage is regulated by a feedback loop that adjusts the duty cycle to compensate. The calculator gives the ideal open-loop duty cycle; a closed-loop converter will automatically correct for losses.
Is a larger inductor always better? No. Larger inductance reduces ripple but increases size, cost, and response time. It can also cause instability if the converter’s compensation is not designed for it. Choose the smallest value that meets your ripple and transient requirements.
Related
Formula used
in vin | Input voltage | V | 12 | 0 | 1000 in vout | Output voltage | V | 5 | 0 | 1000 in fsw | Switching frequency | kHz | 500 | 1 | 10000 in iout | Load current | A | 2 | 0 | 1000 in ripple | Inductor ripple ratio | % | 30 | 1 | 100 out duty | Duty cycle | % | (vout / vin) * 100 | 1 out lmin | Minimum inductance | µH | ((vin - vout) * (vout / vin) * 1000) / (fsw * (ripple / 100) * iout) * 1000 | 2 out ipeak | Peak inductor current | A | iout * (1 + (ripple / 100) / 2) | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
- Hexagonal Pyramid Calculator: Volume & Surface Area
- Pizza Size Calculator: Find the Right Pie113.1 in²
- Information Ratio Calculator: Formula & Use0.40
- Definite Integral Calculator: Steps & Examples
- Expense Ratio Impact Calculator5,078 $
- Wire Size Calculator: How to Size Electrical Wire9.63