Buck converter design and analysis schematic with inductor current waveform
Posted in

Buck Converter Design and Analysis: Step-by-Step Guide + Calculator

A buck converter is the most widely used DC-DC converter in electronics. It steps a higher DC voltage down to a lower one, for example 12 V to 5 V, with 90 to 97% efficiency, which is why it powers phone chargers, laptop motherboards, LED drivers, solar charge controllers and almost every microcontroller board. In this guide you will learn buck converter design and analysis step by step: how it works, how to calculate the duty cycle, inductor, output capacitor and input capacitor, how to pick the MOSFETs or diode, and how to estimate power loss, efficiency and operating mode. A complete worked example and a live calculator are included.

Key takeaways
  • Output voltage is set by the duty cycle: Vout ≈ D × Vin.
  • The inductor sets the ripple current. Design it at the maximum input voltage, where ripple is worst.
  • The output capacitor and its ESR set the output voltage ripple.
  • The input capacitor carries a large pulsed ripple current of about Iout × √(D(1 − D)).
  • At light load the converter moves from CCM into DCM (or negative current in forced PWM).
  • A synchronous buck (two MOSFETs) beats a Schottky diode buck in efficiency, especially at low output voltage.

What Is a Buck Converter?

A buck converter, also called a step-down converter, is a switch-mode power supply that converts a DC input voltage into a lower DC output voltage. Instead of burning the extra voltage as heat like a linear regulator (LM7805, LDO), it switches the input on and off very fast and smooths the pulses with an inductor and a capacitor. Ideally no energy is wasted, so the input current is lower than the output current.

For example, a 7805 linear regulator dropping 12 V to 5 V at 3 A wastes (12 − 5) × 3 = 21 W as heat, giving only 42% efficiency. A buck converter doing the same job loses around 0.5 to 1 W.

Need a higher output voltage instead of a lower one? Read our boost converter design and analysis guide with a live calculator.

+Vin Q1PWM control SW D1 / Q2 LI_L Cout Load Vout GND
Basic buck converter: switch Q1, freewheeling diode D1 (or synchronous MOSFET Q2), inductor L and output capacitor Cout.

How a Buck Converter Works

The controller turns the high-side switch Q1 on and off at a fixed switching frequency (fsw), typically 100 kHz to 2 MHz. Each switching period has two states.

1. Switch ON (Q1 closed)

The switch node (SW) connects to Vin. The inductor sees Vin − Vout across it, so its current ramps up linearly. Energy is stored in the inductor’s magnetic field while current also flows to the load and the output capacitor.

2. Switch OFF (Q1 open)

The inductor refuses a sudden change in current, so it pulls the switch node down until the diode D1 (or the low-side MOSFET Q2) turns on. Now the inductor sees −Vout and its current ramps down while it keeps feeding the load. This is why D1 is called the freewheeling or catch diode.

Volt-second balance and the duty cycle

In steady state the inductor current must end each cycle where it started, so the volt-seconds during ON must equal those during OFF:

(Vin − Vout) × D × T = Vout × (1 − D) × T → D = Vout / Vin

Here D is the duty cycle (on-time divided by the switching period T). A 12 V to 5 V converter needs D ≈ 41.7%. In a real converter D is slightly higher because the switch resistance, diode drop and inductor DCR also eat voltage.

Vin0 V V_SW I_L Iout IpkIvalley D × T(1 − D) × T
Switch node voltage (top) and inductor current (bottom) in continuous conduction mode. The current ripple ΔI is the difference between Ipk and Ivalley.

Buck Converter Design Equations

These are the core formulas used in every buck converter design. Use Vin(max) for inductor and output capacitor sizing, because ripple current is largest at the highest input voltage.

ParameterFormulaNotes
Duty cycleD = (Vout + Vf) / (Vin + Vf)Vf = 0 for a synchronous buck
Ripple currentΔI = r × IoutRipple ratio r = 0.2 to 0.4
InductanceL = (Vin(max) − Vout) × D / (fsw × ΔI)Round up to a standard value
Peak inductor currentIpk = Iout + ΔI / 2Choose Isat ≥ 1.25 × Ipk
Inductor RMS currentIL(rms) = √(Iout² + ΔI² / 12)Sets copper (DCR) loss
Output capacitanceCout ≥ ΔI / (8 × fsw × ΔVout)Ceramic caps lose capacitance with DC bias
Output cap ESRESR ≤ ΔVout / ΔICritical for electrolytic caps
Input capacitanceCin ≥ Iout × D(1 − D) / (fsw × ΔVin)Place very close to Q1
Input ripple currentICin(rms) = Iout × √(D(1 − D))Worst at D = 0.5, equal to Iout / 2
CCM/DCM boundaryIcrit = ΔI / 2Below this load, current reaches zero

Buck Converter Design Example: 12 V to 5 V, 3 A

Let us design a real converter step by step. The same values are loaded in the live calculator below, so you can follow along and change anything.

SpecificationValue
Input voltage12 V nominal, 13.2 V maximum
Output voltage5 V
Output current3 A (15 W)
Switching frequency500 kHz
Ripple ratio30%
Output ripple target30 mV peak-to-peak
Input ripple target100 mV peak-to-peak
TopologySynchronous (Q1 and Q2 MOSFETs, 20 mΩ each)

Step 1: Duty cycle

D = Vout / Vin(max) = 5 / 13.2 = 0.379

At the nominal 12 V input, D is about 41.7% ideally, or 42.5% once the MOSFET and inductor drops are included.

Step 2: Inductor value

Target ripple current: ΔI = 0.30 × 3 A = 0.9 A.

L = (13.2 − 5) × 0.379 / (500 kHz × 0.9 A) = 6.90 µH

Round up to the next standard value: 8.2 µH. A larger L lowers the ripple, so the real worst-case ripple becomes 0.76 A.

Step 3: Inductor current rating

Ipk = Iout + ΔI / 2 = 3 + 0.76 / 2 = 3.38 A

Pick an inductor with a saturation current of at least 4.2 A (1.25 × Ipk) and an RMS (heating) rating above 3 A. A saturated inductor loses its inductance, and the current spikes can destroy the MOSFET.

Step 4: Output capacitor

Cout ≥ 0.76 A / (8 × 500 kHz × 30 mV) = 6.3 µF, ESR ≤ 30 mV / 0.76 A = 39.6 mΩ

Adding 50% margin for ceramic DC-bias derating gives 10 µF, 10 V or higher. With 5 mΩ ESR the calculated ripple is about 18 mV. In practice, many designers use 2 × 22 µF ceramics to also improve load transient response.

Step 5: Input capacitor

Cin ≥ 3 × 0.417 × 0.583 / (500 kHz × 0.1 V) = 14.6 µF ICin(rms) = 3 × √(0.417 × 0.583) = 1.48 A

Use 22 µF, 25 V ceramic (X5R or X7R) rated for at least 1.5 A ripple current, plus a small 100 nF capacitor right at the Q1 drain.

Step 6: MOSFET and diode selection

Both switches block the full input voltage. With a 30% safety margin, 13.2 V × 1.3 = 17.2 V, so use 20 V MOSFETs at minimum. A 25 or 30 V rating is safer because the switch node rings above Vin on every edge. Q1 carries about 1.96 A rms and Q2 about 2.28 A rms at full load. Since Q2 conducts longer when D is below 50%, give Q2 the lower Rds(on).

Buck Converter Loss and Efficiency Analysis

Efficiency is where good and bad buck designs separate. The main losses are:

  • Conduction loss in the MOSFETs: Irms² × Rds(on).
  • Switching loss in Q1: ½ × Vin × Iout × t(edge) × fsw × 2, caused by voltage and current overlapping during each transition.
  • Coss loss: ½ × Coss × Vin² × fsw, the energy stored in the MOSFET’s output capacitance, dumped each cycle.
  • Gate drive loss: Qg × Vdrive × fsw for each MOSFET.
  • Diode loss (asynchronous only): Vf × Iout × (1 − D).
  • Inductor copper loss: IL(rms)² × DCR, plus core loss.
  • Capacitor ESR loss: Irms² × ESR in Cin and Cout.

For our example with 10 ns edges, 8 nC gate charge and a 15 mΩ inductor:

Loss sourceSynchronous (Q2 MOSFET)Asynchronous (Schottky, Vf 0.45 V)
Q1 conduction77 mW80 mW
Q1 switching + Coss191 mW191 mW
Gate drive40 mW20 mW
Q2 conduction / D1 forward drop104 mW753 mW
Inductor DCR136 mW136 mW
Capacitor ESR11 mW11 mW
Total loss0.56 W1.19 W
Efficiency at 3 A96.4%92.6%

The Schottky diode alone wastes more than all other losses combined. That is why almost every modern buck regulator below 5 V output is synchronous. With a 50 °C/W thermal resistance, Q1 runs about 13 °C above ambient, while the Schottky diode heats up by almost 40 °C.

Tip: Switching loss rises with frequency and input voltage. Doubling fsw to 1 MHz halves the inductor size but doubles switching, Coss and gate losses. Pick the lowest frequency that fits your size budget.

Operating Modes: CCM, BCM and DCM

The inductor current ripple stays the same as the load drops, but the average current falls. At some point the valley of the triangle touches zero.

  • Continuous Conduction Mode (CCM): inductor current never reaches zero. Vout = D × Vin holds, and the design equations above apply.
  • Boundary Conduction Mode (BCM): the current just touches zero at the end of each cycle. This happens at Iout = ΔI / 2, about 0.36 A (12% load) in our example.
  • Discontinuous Conduction Mode (DCM): below the boundary, the current stays at zero for part of each cycle. A diode buck enters DCM naturally because the diode blocks reverse current. The duty cycle shrinks with load, and the switch node rings during the idle time.
  • Forced PWM (FPWM): a synchronous buck that keeps Q2 on for the full off-time lets the current go negative instead of entering DCM. Frequency stays fixed and ripple stays low, but light-load efficiency suffers. Many controllers use diode emulation or pulse-skipping to avoid this.

Drag the load slider in the calculator below to see the waveform move from CCM into DCM or negative current.

Synchronous vs Asynchronous Buck Converter

FeatureAsynchronous (diode)Synchronous (MOSFET)
Low-side deviceSchottky diodeN-channel MOSFET
EfficiencyLower, especially at low VoutHigher (95%+ common)
Cost and complexitySimple and cheapNeeds a driver with dead-time control
Light-load behaviorNatural DCMFPWM or diode emulation
Shoot-through riskNoneYes, if dead time is wrong
Best forHigh Vout, low current, low costLow Vout, high current, battery devices

PCB Layout Tips for Buck Converters

  • Keep the hot loop small. The loop formed by Cin, Q1 and Q2 (or D1) carries sharp pulsed current. Place Cin right next to the switches.
  • Keep the switch node small. SW is a fast-changing high-voltage node that radiates noise. Use only as much copper as needed for current and heat.
  • Route feedback away from SW and the inductor. Connect the feedback divider at the output capacitor, not at the inductor.
  • Use a solid ground plane and multiple vias under power components.
  • Use a shielded inductor to reduce magnetic interference with nearby circuits.

Common Buck Converter Design Mistakes

  • Choosing an inductor by inductance only and ignoring saturation current.
  • Trusting a ceramic capacitor’s printed value. A small 10 µF 10 V MLCC may give only 4 to 5 µF at 5 V DC bias.
  • Designing the inductor at nominal Vin instead of Vin(max).
  • Forgetting the input capacitor ripple current rating.
  • Picking MOSFETs rated exactly at Vin with no margin for ringing.
  • Running at a duty cycle so small that on-time falls below the controller’s minimum on-time.

Buck Converter Design Checklist

  1. Define Vin range, Vout, Iout, ripple targets and fsw.
  2. Calculate D at Vin(max) and check minimum on-time.
  3. Choose ripple ratio (30%) and calculate L. Round up to a standard value.
  4. Check Ipk and pick Isat ≥ 1.25 × Ipk.
  5. Size Cout for ripple and ESR, then add DC-bias margin.
  6. Size Cin for ripple voltage and ripple current.
  7. Select MOSFETs or diode with 30% voltage margin.
  8. Estimate losses, efficiency and junction temperature.
  9. Check the CCM/DCM boundary and light-load behavior.
  10. Lay out the PCB with a tight hot loop and test with real load.

Try the Live Buck Converter Design Calculator

Use the calculator below to design your own buck converter. Enter your input and output voltage, load current, frequency and device parameters. It instantly selects the inductor and capacitors, shows the voltage and current stress on every device, breaks down power loss and efficiency, estimates junction temperatures, detects the operating mode and draws the live switch node, inductor current and output ripple waveforms.

Buck Converter Design Calculator

Enter your specs. Every value, rating, loss and the waveform updates live as you type.

1. Specifications
2. Topology and devices
3. Operating point

    Operation mode: switching period

    Q1 on (energy into L)Q1 off, freewheelingIdle, zero current (DCM)
    Duty cycle
    Inductor ripple ΔI
    Output ripple
    Load resistance

    Component value selection

    Inductor L
    Inductor current rating
    Output capacitor
    Input capacitor
    High-side MOSFET Q1
    Low-side MOSFET Q2

    Voltage and current of each device

    Power, losses and temperature

    Efficiency
    Pout ÷ Pin at this load.
    Input power
    Total loss
    Q1 junction temp.
    Q2 / D1 junction temp.
    Q1 conductionQ1 switching + CossGate driveQ2 / D1Inductor DCRCapacitor ESR

    Live waveforms

    Estimates for first-pass design. Core loss, dead-time and layout parasitics are not modeled, so expect real efficiency a little lower. Confirm with your controller datasheet.

    Buck Converter Design FAQ

    What is a buck converter?
    A buck converter is a step-down DC-DC switching regulator. It turns a higher DC voltage into a lower DC voltage by switching the input on and off at high frequency and smoothing the pulses with an inductor and capacitor, reaching 90 to 97% efficiency.
    How do you calculate the duty cycle of a buck converter?
    For an ideal buck converter, D = Vout / Vin. With a Schottky diode, use D = (Vout + Vf) / (Vin + Vf). Real converters need a slightly higher duty cycle to cover MOSFET, diode and inductor resistance drops. For 12 V to 5 V, D is about 42%.
    How do you calculate the inductor value for a buck converter?
    Use L = (Vin(max) − Vout) × D / (fsw × ΔI), where ΔI is the ripple current, usually 20 to 40% of the output current. Calculate at the maximum input voltage, then round up to the next standard value. For 13.2 V to 5 V at 3 A and 500 kHz with 30% ripple, L is about 6.9 µH, so 8.2 µH is used.
    What saturation current rating should the inductor have?
    The saturation current should be at least 1.2 to 1.3 times the peak inductor current, where Ipk = Iout + ΔI / 2. The RMS current rating must also exceed the inductor RMS current to prevent overheating.
    How do you size the output capacitor of a buck converter?
    Use Cout ≥ ΔI / (8 × fsw × ΔVout) for the capacitance and ESR ≤ ΔVout / ΔI for the equivalent series resistance. Add extra margin for ceramic capacitors because their capacitance drops under DC bias voltage.
    Why does a buck converter need an input capacitor?
    The input current of a buck converter is pulsed. The input capacitor supplies these pulses locally and carries a ripple current of about Iout × √(D(1 − D)), which is highest at 50% duty cycle. Without it, the input voltage rings and the converter becomes noisy and unstable.
    What is the difference between CCM and DCM in a buck converter?
    In continuous conduction mode (CCM) the inductor current never reaches zero. In discontinuous conduction mode (DCM) the current falls to zero and stays there for part of each cycle. A buck converter enters DCM when the load current drops below half the ripple current, Iout below ΔI / 2.
    Is a synchronous buck converter better than an asynchronous one?
    For efficiency, yes. A synchronous buck replaces the Schottky diode with a low-side MOSFET, so the 0.3 to 0.5 V diode drop becomes a few millivolts of I × Rds(on) loss. In a 5 V, 3 A design this can raise efficiency from about 92% to 96%. Asynchronous designs are simpler, cheaper and naturally enter DCM at light load.
    What causes power loss in a buck converter?
    The main losses are MOSFET conduction loss, switching loss during transitions, output capacitance (Coss) loss, gate drive loss, diode forward-drop loss in asynchronous designs, inductor copper and core loss, and capacitor ESR loss. Switching losses increase with frequency and input voltage.
    What switching frequency should I choose for a buck converter?
    Most designs use 200 kHz to 2 MHz. Higher frequency allows a smaller inductor and capacitors but increases switching and gate losses. Also check the controller’s minimum on-time: on-time = D / fsw must stay above it, often 60 to 100 ns.

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    electronics believer