Skip to content

Input Filter Calculator

Size Lf, Cf, and the damping network for a ripple attenuation target. Then verify the design against both the Middlebrook and GMPM stability criteria. GMPM accepts some designs Middlebrook rejects, because it accounts for the phase of the impedance ratio, not just its magnitude. Sometimes that means trading capacitance for inductance, and sometimes it means simplifying the damping network instead. See the worked example below.

Ready to build a complete power stage?

The full design tool adds thermal analysis, efficiency curves, component comparison, and multi-stage topologies to your converter design.

How It Works

Why Input Filters Destabilize Converters

A regulated buck converter behaves like a constant-power load. Hold the output power fixed, and as the input voltage dips, the input current has to rise to compensate. That's a negative incremental input resistance, R = -Vin² / Pin. At this calculator's own default operating point, 12 V to 5 V at 3 A, that works out to -9.6 Ω. An input filter's job is to keep switching ripple off the source. But an undamped LC filter has a high output impedance right at its own resonance, and where that impedance approaches the converter's negative input resistance, the cascade of two individually stable stages can oscillate.

That textbook explanation is real, but at this calculator's default operating point it isn't the binding constraint. The converter's input impedance isn't a flat -9.6 Ω. It also dips sharply wherever the converter's own output LC filter resonates, reflected back through the duty cycle. At the default point, that dip bottoms out around 1.68 Ω at about 7.3 kHz, roughly 5.7× below the constant-power figure and much closer to whatever the input filter's output impedance is doing nearby. The stability verdict at this operating point is decided against that dip, not against -9.6 Ω. That's why this tool plots the converter's modelled input impedance directly, rather than reporting a single constant-power number.

Sizing the Filter for Attenuation

The buck switch pulls a pulsed, roughly rectangular current from the input rail. Its fundamental component, at the switching frequency, is what an input filter has to attenuate down to whatever conducted-EMI or ripple budget the source can tolerate. A two-pole LC filter rolls off at 40 dB per decade above its corner frequency. That means a target attenuation A, in dB, at the switching frequency fsw pins the corner directly:

fc = fsw · 10-A/40

That corner frequency alone doesn't fix Lf and Cf individually, only their product. This calculator also accepts a ripple-current target as an alternative requirement, and it converts either one to the same corner frequency internally.

Why the L/C Split Is a Stability Decision

A given corner frequency, fc= 1 / (2π√(Lf·Cf)), can be hit by many different Lf/Cf pairs. You could pick a small inductor with a large capacitor, or the reverse. What changes between them is the filter's characteristic impedance, R₀ = √(Lf/Cf), and that sets how high the filter's output impedance peaks at resonance. A high-R₀ split, large Lf and small Cf, produces a tall, narrow peak that Zout can easily exceed Zin against. A low-R₀ split spreads that same peak lower and wider. Attenuation alone doesn't determine the filter. The L/C split is where the stability margin actually gets decided, which is why this calculator solves for fc and R₀ jointly, rather than picking Cf from a rule of thumb.

Design mode's results table shows this trade directly. GMPM's column carries its own value next to a signed delta against Middlebrook's, in parentheses. A positive delta on Lf paired with a negative delta on Cf there is exactly this inductance-up, capacitance-down move at a larger R₀, not a saving of either part. The table's min-damping column takes the other freedom instead. It holds Middlebrook's exact Lf and Cf and spends that same slack on shrinking or removing the damping network.

The Four Damping Topologies Compared

  • Parallel RC (a blocking capacitor Cd in series with a damping resistor Rd, both across Cf) is the usual choice. Rd only dissipates power near resonance. Cd blocks it at DC, and its impedance is negligible well above resonance, so this topology damps the resonance without a DC loss or high-frequency attenuation penalty.
  • Series RL(Rd in series with a damping inductor Ld, with that whole Rd+Ld branch in parallel with Lf) suits designs that can't accommodate a large blocking capacitor. Because the damping branch parallels the main inductor rather than sitting in series with it, Lf's low winding resistance carries almost all of the DC load current at low frequency. That leaves Rd and Ld to handle only the current diverted near resonance, so Ld can be a small part rather than a full-current inductor. The trade-off moves to board space, and to Ld's own parasitics instead.
  • Series R (Rd in series with Cf, no blocking element) is the cheapest option, just one resistor and no extra reactive part. But Rd never stops conducting, so it degrades high-frequency attenuation along with the resonance peak.
  • Undamped (no damping network at all) is cheapest of all, and it can still pass a GMPM stability check. The worked example below shows exactly this design, along with the caveat on why it needs extra scrutiny. Its resonance peak is then shaped only by whatever parasitic resistance the real components happen to have, which makes the margin sensitive to load, temperature, and part tolerance.

Middlebrook vs GMPM

Both criteria judge the same quantity, the minor-loop gain Tm = Zout/Zin, which is the ratio of the filter's output impedance to the converter's input impedance. A cascade goes unstable when 1 + Tm has a zero in the right half plane. By the Nyquist criterion, that happens when the Tm locus encircles the point -1.

This calculator plots that locus two ways, side by side. The first chart uses a linear radius, which is the natural read for judging a locus against a forbidden region. The second uses a logarithmic radius instead, with labelled rings marking each decade of |Tm|, so a design whose locus swings far wider than the others doesn't collapse them all to a dot at the origin. It's also the only chart that plots the min-damping design's own locus, since that locus can reach far enough on a linear scale to make the other two unreadable.

Middlebrook's criterionforbids the locus from leaving a disc of some fixed radius around the origin, at every frequency. This calculator's default margin for that disc is 6 dB. The criterion never has to look at phase, which makes it simple and conservative. But that conservatism has a real cost: it rejects any design where |Tm| gets large anywhere, even when the phase there sits nowhere near 180°, in other words nowhere near the -1 point.

The GMPM (gain-margin/phase-margin) criterion forbids only a wedge around the -1 direction. The locus may swing wide, provided it does so at a phase that stays safely away from 180°. That's genuinely more permissive, and it's also what a Nyquist stability argument actually requires, since a large |Tm| pointed away from -1 never encircles it.

Worked example: the same inputs, three designs

This example uses the same 12 V → 5 V @ 3 A, 500 kHz converter as this calculator's default. It's sized to the same 40 dB attenuation target, the same 6 dB separation requirement, and the same series-RL damping topology. From that one set of inputs, Design mode returns three designs, not two. Those are Middlebrook's own sizing, GMPM's own sizing, and a third design that keeps Middlebrook's Lf and Cf exactly, spending GMPM's freedom on the damping network instead of on R0.

Middlebrook's search converges on Lf = 3.9 µH, Cf = 2.2 µF, Rd = 13.3 Ω, and Ld = 39 µH. That design passes its own criterion at +6.882 dB of separation, which is 0.882 dB to spare over the 6 dB gate. Its peak |Tm| of 0.453 sits inside the 0.501-radius circle a 6 dB gain margin sets.

GMPM's search, given the identical inputs, converges on Lf = 15 µH, Cf = 0.68 µF, Rd = 49.9 Ω, and Ld = 150 µH. That's under a third of the capacitance and close to four times the inductance. It passes its own criterion with +6.965 dB of separation.

Its locus swings much wider, peaking at |Tm| ≈ 1.964, about 3.9× outside that same 0.501-radius circle. But its phase there is only +5.49°, nowhere near the ±60° wedge around 180° that GMPM actually forbids. Checked against Middlebrook's own criterion instead, GMPM's design fails outright, at −5.863 dB of separation against the same 6 dB gate. These aren't two designs that happen to both work. They're the two criteria giving genuinely different answers to the same sizing problem.

The third design spends that same freedom differently. It holds Middlebrook's exact Lf = 3.9 µH and Cf = 2.2 µF, leaving the corner frequency and R0 untouched. It simply deletes the damping network, no Rd and no Ld, for 2 components instead of 4. That design passes GMPM at +17.04 dB of separation and fails Middlebrook at +1.00 dB against the same 6 dB gate. It isn't a smaller version of the GMPM R0 design above. It's Middlebrook's own two reactive components, with the parts that damped the resonance removed.

GMPM's freedom is genuinely two-dimensional. These are two different ways to spend it, not two points on one slider. For a fixed corner frequency fc, the attenuation target pins the product Lf·Cf, while stability bounds the ratio R0 = √(Lf/Cf). That's two equations and two unknowns. Push R0 up at a pinned product, and Lf rises while Cf falls together. So there's no design that keeps Middlebrook's inductor while also banking the capacitor saving, which is why GMPM's own R0 design above moves both.

The damping network is a separate freedom, independent of R0. Middlebrook's disc has to bring the whole resonance peak under one radius. GMPM's wedge only has to keep the locus clear of one direction of phase. So a design that needs damping to satisfy Middlebrook can sometimes satisfy GMPM with a lighter network, or none at all, without moving Lf or Cf at all. This calculator explores each of those freedoms from Middlebrook's own baseline separately. The R0 design never touches the damping topology, and the min-damping design never touches Lf or Cf. That's instead of searching the full, two-parameter space of R0-and-damping combinations at once, so neither design claims to be the single best use of GMPM's freedom. Each is simply a genuine, verified one.

Why does GMPM's R0 search push up at all, instead of stopping at Middlebrook's own value? Total energy stored in Lf and Cf at the DC operating point, E = ½·Lf·Idc² + ½·Cf·Vin², is minimised at R0 = Vin²/Pin. That's exactly the constant-power load's own |Zin|, the same -9.6 Ω this page opened with for this operating point.

Stability requires the filter's peak output impedance to sit a gain margin below that same |Zin|, so you'd expect the stability constraint to bind before that energy minimum in general. It did, directly, at four operating points checked on parallel RC, this calculator's default topology. Those were 12 V → 5 V @ 3 A, 12 V → 1.2 V @ 30 A, 48 V → 12 V @ 5 A, and 5 V → 3.3 V @ 2 A. In every case, the largest stable R0 sat 1.7× to 3.6× below that operating point's own energy optimum, with energy falling monotonically as R0 rose toward it.

On the worked example above, Middlebrook's design stores 161 µJ, and 158 µJ of that is in the capacitor alone. At Vin, the capacitor's ½CV² term dominates a modest inductor current's ½LI², so that's expected. GMPM's design, by contrast, stores only 61 µJ. The largest-R0 design this calculator finds is also the one with the least stored energy.

The min-damping design sits at the opposite corner of that same trade. Because it keeps Middlebrook's own Lf and Cf, its stored energy is exactly Middlebrook's 161 µJ, unchanged. The two designs save genuinely different things. One saves joules by moving L and C. The other saves parts by removing Rd and Ld.

That's not the same as saying max-R0 is the cheapest design. Stored energy is a physical quantity, not a cost. It favours max-R0 for a reason that has nothing to do with price. A big capacitor sitting at the full input rail stores more than a modest inductor carrying the DC input current, so cutting the capacitor down always looks good on this particular ledger.

In BOM terms, GMPM's R0 design above trades about 1.5 µF of ceramic for two inductors, Lf and Ld, that nearly quadruple. Read the stored-energy figure as physics that explains why GMPM's R0 search lands where it does, not as a recommendation for which design costs less to build.

That preference for a larger characteristic impedance is not specific to this one operating point. The capacitor's ½CV² term dominates the inductor's ½LI² at any typical buck input. So a lower stored-energy figure on your own results table means the same trade, ceramic capacitance down for a couple of inductors that are often several times larger, and not a cheaper bill of materials.

GMPM doesn't always change the answer. When it doesn't, that's usually a fact about your design, not a limitation of the tool. If the impedance ratio's phase never swings close to 180° anywhere its magnitude is large enough to matter, GMPM's wedge is never entered. There's no GMPM-specific R0 to find, so Design mode reports GMPM's column as Middlebrook's design, unchanged, rather than inventing a difference that isn't there. Two identical columns from this path is a correct read of your inputs, not a sign the tool ran out of anything to check.

Parallel RC is this calculator's default damping topology, not the series-RL used in the worked example above. On parallel RC, the R0 freedom doesn't go unused occasionally. It disappears entirely, once you round to what you can actually buy. At the same four operating points above, GMPM's ideal, unsnapped R0 came out under two parts in 10,000 above Middlebrook's own at three of the four points, and identical at the fourth. It's never larger by a margin that survives snapping to buyable E-series values, so the standard, buildable networks agree at all four.

Parallel RC's disc and wedge bind at effectively the same point on these designs, so there's no larger-R0, less-capacitance buildable design for GMPM to find there. That's a real result about parallel RC on these designs, not a gap in the search. The damping-network freedom is independent of that, and it still applies. This calculator's own default inputs still produce a min-damping design that deletes the damping network entirely, even though the R0 design finds nothing to change.

Occasionally the two sizing columns match for a different reason. The wedge was entered, but GMPM's own R0/fc search failed to converge on a design of its own. Middlebrook's design is provably GMPM-satisfying either way, so Design mode still shows it in GMPM's column. Here, though, that's a search limitation, not proof there's no better GMPM-specific design to find. The tool reports which case applies alongside the design.

One caveat holds regardless of which criterion wins, or which freedom a design spends. A GMPM pass that depends on a large |Tm| peak staying clear of the wedge, rather than on keeping |Tm| small in the first place, is only as good as that phase margin.

GMPM's R0 design above is exactly this case. Its peak |Tm| of 1.964 clears Middlebrook's disc by nearly 4×, and at that peak, near the filter's own resonance, phase sits at +5.49°, nowhere near the ±60° wedge. That point costs no margin at all. GMPM's actual +6.965 dB margin binds elsewhere, near 7.4 kHz, where the converter's own output-filter resonance drags phase to 169.7°, close to dead-on −1, while |Tm| there is smaller, at 0.448.

Shift the real Zin the converter presents, with load, temperature, or component tolerance, and phase, not just magnitude, is what can close that margin, whether or not the design carries a damping network at all.

The caveat bites hardest on the min-damping design, exactly because it came out undamped. With no engineered resistor at all, its own resonance peak, |Tm| of about 0.891 at around 48.5 kHz, is shaped purely by parasitic dcr, esr, and rs. It already sits well outside Middlebrook's 0.501-radius circle, which is exactly why that design fails Middlebrook at only +1.00 dB.

It clears GMPM only because that peak's phase, about +5.47°, sits nowhere near the wedge. Nothing in this design holds that phase in place, since there's no damping resistor left to do it. So a min-damping design that clears GMPM this way is only as safe as an unengineered phase angle, not a designed margin. Scrutinise any GMPM pass that leans on phase staying clear of 180°, whether the design carries a full damping network, a light one, or none at all.

In practice, Middlebrook is the safer default when margin is cheap, and it's the criterion to reach for first. GMPM is worth checking whenever Middlebrook rejects a design that's otherwise attractive. It may reveal that the rejection was about magnitude, not actual instability, or that only the damping network needed to change.

Design mode above sizes Middlebrook's and GMPM's columns on every input you give it, and it runs the min-damping search alongside them whenever Middlebrook's own sizing succeeds. That search doesn't always find a smaller or removed damping network that still passes. At two of the four operating points cited above, 12 V → 1.2 V @ 30 A and 48 V → 12 V @ 5 A, it found none. The third column comes back muted, reading “offers no improvement on this axis.” So the worked example's three distinct designs aren't guaranteed on every input. Enter your own operating point and requirements, and Design mode runs the same search on your own numbers, with the third column included whenever it has something to report.

Check mode is still there for the opposite direction. Once you already have Lf, Cf, and a damping network in hand, from a datasheet, an existing board, or your own calculation, it verifies both criteria against that exact network without resizing anything. The min-damping search only runs in Design mode, where there is a Middlebrook design to hold fixed.

Model Limitations

  • Zin is an averaged small-signal model. It's built from a constant-power asymptote below the converter's control loop crossover, and the converter's passive open-loop impedance above it, interpolated rather than derived through the transition. It has no validity above half the switching frequency, fsw/2, so both the Middlebrook and GMPM verdicts are restricted to that band. The filter's passive attenuation curve has no such restriction and stays valid up to 10·fsw, which is why this calculator still plots attenuation well past the point where it stops drawing a stability verdict.
  • Verdicts are checked twice.First against the ideal, continuously-sized Lf/Cf/Rd, and again against the nearest standard component values, E12 for inductors and capacitors, E96 for the damping resistor. A design that only passes at an ideal 0.83 Ω and fails at the 0.825 Ω you can actually order, the nearest E96 value, hasn't really passed. That's why both verdicts are surfaced.
  • Buck topology only.The converter-side impedance model assumes a synchronous or diode buck. Boost, buck-boost, and other topologies present a different input impedance, and this calculator doesn't cover them.
  • Upstream cable inductance and resistance, Ls/Rs, are modelled explicitly, not assumed away. This calculator's own defaults already include a representative 1 µH / 20 mΩ harness, not an ideal source. Real source impedance adds to the filter's own, and it can shift the resonance this tool evaluates. Set Ls/Rs to match your actual cable, or to zero for an idealized bench-supply connection, rather than leaving the defaults unexamined.

FAQ

Why does adding an input filter make my converter unstable?

A regulated converter behaves as a constant-power load. When its input voltage falls, it draws more current, which is a negative incremental resistance of -Vin²/Pin. An undamped LC input filter has a high output impedance at its resonance. Where the filter's output impedance approaches the converter's negative input impedance, the cascade can oscillate, even though each stage is stable on its own.

What is the Middlebrook criterion?

Middlebrook's criterion requires the source output impedance to stay well below the load input impedance at every frequency, usually by a 6 dB margin. In the complex plane, it forbids everything outside a small disc about the origin for the minor-loop gain Zout/Zin. It's simple and safe, but conservative. It ignores the phase of the impedance ratio, so it rejects some designs that are actually perfectly stable.

How is the GMPM criterion different from Middlebrook?

The gain-margin/phase-margin criterion forbids only the region where the impedance ratio is both large enough to matter and pointed close enough to 180 degrees to approach the -1 point. The ratio may exceed the Middlebrook threshold, provided its phase stays clear of 180 degrees.

That extra freedom can be spent two different ways. You can trade capacitance for inductance at a larger characteristic impedance, or, holding the same inductor and capacitor Middlebrook already chose, you can simplify the damping network, down to removing it entirely. These are two different designs, not two amounts of one saving. At a fixed corner frequency, the attenuation target pins the inductor-capacitor product while stability bounds their ratio, so a larger ratio always moves the inductor up and the capacitor down together.

GMPM doesn't always change the answer, either. When the impedance ratio's phase never approaches 180 degrees, GMPM imposes no extra constraint and sizes to the same design as Middlebrook.

Which input filter damping network should I use?

Parallel RC damping, a blocking capacitor in series with a damping resistor across the filter capacitor, is the usual choice. It damps the resonance without costing DC loss or high-frequency attenuation. Series RL damping suits designs that can't accommodate a large blocking capacitor. Putting a resistor in series with the filter capacitor is cheapest, but it degrades high-frequency attenuation, because that resistor never stops conducting.

Related Calculators

Buck Inductor Calculator

Calculate minimum inductance for CCM or DCM operation, with peak/RMS current and duty cycle.

Coming Soon

MOSFET Loss Calculator

Estimate conduction and switching losses for N-channel MOSFETs in buck converter applications.

Coming Soon

Thermal Calculator

Calculate junction temperature from power dissipation and thermal resistance. Includes derating analysis.