# RC snubber design: measure the ring, then size R and C

To design an RC snubber, measure the ring frequency $f_0$, add a known capacitor $C_{add}$ and measure the new frequency $f_1$; then the parasitic capacitance is $C_p = C_{add}/((f_0/f_1)^2 - 1)$, the inductance is $L_p = 1/((2\pi f_0)^2 C_p)$, the resistor is $R = \sqrt{L_p/C_p}$ and the capacitor is about $4\,C_p$, which costs $C V^2 f_{sw}$ in the resistor. In a 48 V buck that rings at 22.5 MHz this recovers $C_p$ = 1.0 nF and $L_p$ = 50 nH, gives 6.8 Ω and 3.9 nF, and cuts the switch-node peak from 93.9 V to 64.5 V for 0.91 W.

This article explains where the ring comes from, why the method works, how to pick R and C, what the snubber costs, and what the sweeps of R and C show. All numbers come from Voltecx runs, and a test in the Voltecx source checks them.

## Where the ring comes from

Every hard-switched converter has a commutation loop: the input capacitor, the switch and the diode (or the other switch). Its wiring has inductance, a few nanohenries per centimetre, and the devices have capacitance. When the switch turns on, the current in the loop rises until the diode no longer carries any; the diode then turns off and its capacitance is charged through the loop inductance. That is a series LC circuit excited by a step, and it rings at

$$f_0 = \frac{1}{2\pi\sqrt{L_p C_p}}$$

with a characteristic impedance

$$Z_0 = \sqrt{\frac{L_p}{C_p}}$$

With almost no resistance in the loop, the voltage swings to nearly twice the bus voltage and decays slowly. The ring stresses the diode and the switch (the peak must stay inside their voltage rating), and its tens of megahertz are right in the band of conducted and radiated emission limits.

Mohan, Undeland and Robbins (*Power Electronics: Converters, Applications, and Design*, 3rd ed., chapter 27, "Snubber Circuits") treat the snubber as the damping of this circuit; P. C. Todd's Unitrode seminar paper *Snubber Circuits: Theory, Design and Application* (SEM-900, 1993) gives the design of the RC snubber used here, and ROHM's application note *Snubber Circuit for Buck Converter IC* (Rev. 001) walks through the measurement method step by step.

## The circuit

The example is Voltecx's textbook buck example, `buckIdeal`, (48 V to 12 V, 100 kHz, D = 0.25, 100 µH, 100 µF, 2.4 Ω, so 5 A and 60 W) with the parasitics a real board has:

- **Lp** = 50 nH with 0.1 Ω in series, the commutation loop between the source and the switch;
- **1 nF across the diode** (its junction capacitance, the `cj` parameter of D1);
- **0.5 nF across the switch** (`coss` of S1), so that the loop current has somewhere to go when the switch opens.

These values are illustrative, not from a data sheet: the point of the method is that you do not know them. They are in the right range for a large Schottky diode at low voltage and a few centimetres of loop.

![The buck with its commutation-loop inductance Lp (50 nH) and the RC snubber Rs and Cs across the diode. The diode's 1 nF and the switch's 0.5 nF are parameters of D1 and S1. The PWM output reaches the switch by the label g.](https://voltecx-web.nguyenvanqui291.workers.dev/media/blog/rc-snubber-design/buck-snubber.svg)

The run starts at the operating point (5 A in the inductor, 12 V on the output) and lasts 20 µs on a fixed 0.25 ns step, so the 44 ns ring period has about 180 points. The switch turns on at 0, 10 and 20 µs; every measurement here uses the turn-on at 10 µs.

## Step 1: measure the ring

Without a snubber the switch node jumps from 0 to the bus and rings: the first peak is **93.9 V** on a 48 V bus, and the ring decays slowly because the only damping is the loop's 0.1 Ω. The period, measured between upward crossings of 48 V over four cycles, is **44.4 ns**, so

$$f_0 = \frac{1}{44.4\ \text{ns}} = 22.5\ \text{MHz}$$

On the bench this is a scope measurement at the switch node with a short ground spring; a long ground lead adds its own ring (see [bench testing tips](https://voltecx-web.nguyenvanqui291.workers.dev/blog/bench-testing-power-converter-tips)).

One frequency is not enough: the same 22.5 MHz could be 50 nH with 1 nF or 10 nH with 5 nF, and the right resistor differs by a factor of five between the two.

## Step 2: add a known capacitor

Put a capacitor $C_{add}$ of known value across the diode, the same place as the snubber will go, and measure again. The capacitances add:

$$\frac{f_0}{f_1} = \sqrt{\frac{C_p + C_{add}}{C_p}} \quad\Rightarrow\quad C_p = \frac{C_{add}}{(f_0/f_1)^2 - 1}$$

The ROHM note adds capacitance until the frequency halves, which means $C_{add} = 3\,C_p$; any known value works with the formula above, as long as it moves the frequency clearly. With 2.2 nF added, the period becomes **79.4 ns** (12.6 MHz):

$$C_p = \frac{2.2\ \text{nF}}{(79.4/44.4)^2 - 1} = 1.0\ \text{nF}, \qquad L_p = \frac{1}{(2\pi f_0)^2 C_p} = 50\ \text{nH}$$

Both are within 0.2 % of what the circuit contains. On a real board the result is the effective capacitance at the switch node, whatever it is made of: the diode, the switch's output capacitance through the input capacitor, the inductor's winding capacitance and the board.

![The ring as built (44.4 ns period) and with 2.2 nF added across the diode (79.4 ns). The frequency ratio gives the parasitic capacitance, and then the loop inductance.](https://voltecx-web.nguyenvanqui291.workers.dev/media/blog/rc-snubber-design/ring-added-capacitor.svg)

## Step 3: size R and C

**The resistor.** A series RLC circuit is critically damped (fastest settling without overshoot of the ring) when $R = 2 Z_0$ and well damped from about $R = Z_0$, which is the usual choice because the snubber capacitor also matters:

$$R = \sqrt{\frac{L_p}{C_p}} = \sqrt{\frac{50\ \text{nH}}{1.0\ \text{nF}}} = 7.07\ \Omega \;\rightarrow\; 6.8\ \Omega$$

**The capacitor.** The resistor alone across the diode would draw current from the bus all the time, so it goes in series with a capacitor that is large compared with $C_p$ (so that at the ring frequency the resistor is what the ring sees) but small enough to keep the loss low. Three to four times $C_p$ is the usual compromise:

$$C_s = 4\,C_p = 4.0\ \text{nF} \;\rightarrow\; 3.9\ \text{nF}$$

**The loss.** Every period the snubber capacitor is charged to the bus voltage and discharged again. Charging a capacitor through a resistor from a step loses $\frac{1}{2} C V^2$ in the resistor, whatever the resistance, and discharging it loses the rest:

$$P = C_s V^2 f_{sw} = 3.9\ \text{nF} \times (48\ \text{V})^2 \times 100\ \text{kHz} = 0.90\ \text{W}$$

The simulation measures **0.91 W** in the resistor, 1 % more: the ring's own energy is added to it. That is 1.5 % of the converter's 60 W, a real cost for a 48 V, 5 A converter, and the reason not to use more capacitance than the ring needs. The resistor needs a pulse-rated part rated for this power with margin.

## The result

With 6.8 Ω and 3.9 nF across the diode, the switch node rises to **64.5 V** and settles within about one cycle. The overshoot above the bus falls from 45.9 V to 16.5 V.

![The switch node at the turn-on, without a snubber (it rings at 22.5 MHz up to 93.9 V) and with 6.8 Ω and 3.9 nF (64.5 V, settled within a cycle).](https://voltecx-web.nguyenvanqui291.workers.dev/media/blog/rc-snubber-design/ring-vs-snubber.svg)

The snubber does not remove the first peak entirely: the capacitor needs current to charge, and the first rise is shaped by the loop inductance against $C_p + C_s$ through $R$. To lower the first peak further, reduce the loop inductance (layout) or slow the switch; the snubber's job is to stop the ringing.

## Sweeping R: damping against loss

Holding $C_s$ at 3.9 nF and sweeping $R$:

| R | Peak v(sw) | Loss in R |
|---|---|---|
| 1 Ω | 81.5 V | 0.57 W |
| 2.2 Ω | 73.2 V | 0.70 W |
| 4.7 Ω | 65.3 V | 0.85 W |
| 6.8 Ω | 64.5 V | 0.91 W |
| 10 Ω | 67.2 V | 0.94 W |
| 22 Ω | 76.7 V | 0.97 W |
| 47 Ω | 84.4 V | 0.97 W |

![The peak of the switch node and the loss in the snubber resistor against R, with Cs = 3.9 nF. The peak is lowest near √(Lp/Cp) = 7.07 Ω (the marker at 6.8 Ω); the loss hardly moves above a few ohms.](https://voltecx-web.nguyenvanqui291.workers.dev/media/blog/rc-snubber-design/sweep-r.svg)

The peak has a clear minimum near $Z_0$: a small resistor puts $C_s$ almost directly in parallel with $C_p$ and the circuit just rings slower, and a large resistor disconnects $C_s$ and the circuit rings as before. The loss barely depends on $R$ above a few ohms, because it is set by $C_s V^2 f_{sw}$. Below that, part of the same energy is dissipated in the loop resistance instead of the snubber resistor, so the resistor's share falls, but the converter loses it all the same.

## Sweeping C: more damping, more loss

Holding $R$ at 6.8 Ω and sweeping $C_s$:

| Cs | Peak v(sw) | Loss in R | $C_s V^2 f_{sw}$ |
|---|---|---|---|
| 1 nF | 79.9 V | 0.28 W | 0.23 W |
| 2.2 nF | 70.5 V | 0.54 W | 0.51 W |
| 3.9 nF | 64.5 V | 0.91 W | 0.90 W |
| 6.8 nF | 60.3 V | 1.53 W | 1.57 W |
| 10 nF | 58.3 V | 2.23 W | 2.30 W |

![The peak of the switch node and the loss in the snubber resistor against Cs, with R = 6.8 Ω. More capacitance lowers the peak a little more and costs in proportion.](https://voltecx-web.nguyenvanqui291.workers.dev/media/blog/rc-snubber-design/sweep-c.svg)

From 2.2 nF up the loss stays within 7 % of $C_s V^2 f_{sw}$. Beyond about $4\,C_p$ the peak improves slowly while the loss keeps rising linearly: going from 3.9 nF to 10 nF cuts the peak by 6.2 V and costs 1.3 W more. At 1 nF ($C_s = C_p$) the ring is not well damped.

## When an RC snubber is the wrong tool

- **When the loss is too high.** At high voltage or high frequency, $C V^2 f$ grows quickly. Reduce the loop inductance first: a tighter layout raises $f_0$ and lowers the energy in the ring.
- **When the ring is the diode's reverse recovery.** A slower or softer diode, or a Schottky or SiC diode, can remove the cause.
- **When the switch can be slowed.** A larger gate resistor at turn-on lowers the di/dt that excites the ring, at the cost of switching loss (see the [double-pulse test](https://voltecx-web.nguyenvanqui291.workers.dev/blog/double-pulse-test-switching-energy)).
- **Flyback leakage spikes.** The energy there is in the leakage inductance and too large for an RC; use an [RCD clamp](https://voltecx-web.nguyenvanqui291.workers.dev/blog/flyback-rcd-clamp-design).

## How to do it in Voltecx

1. Open **File › Open Example › buck** (DC-DC) (`file.openExample`, `{"name":"buck"}`). Add an inductor for the loop with **Circuit › Add Component** (`circuit.addComponent`), and set `cj` on D1 and `coss` on S1 (**Circuit › Parameters**, `circuit.setParam`).
2. Set **Simulation › Settings** (`simulation.settings`) to a fixed step well below the ring period (`maxStep` 0.25 ns, `fixedStep` true), or the ring disappears; the [simulation checklist](https://voltecx-web.nguyenvanqui291.workers.dev/blog/five-things-to-check-in-power-electronics-simulation) shows what a coarse step does to it.
3. Run, and read the period with the scope cursors (**Scope › Cursors**, `scope.cursors`) or `analysis.diagnoseWaveforms`, which reports ringing with its frequency.
4. Add a known capacitor, run again, and compute $C_p$, $L_p$, $R$ and $C_s$ as above.
5. Sweep R or C with **Analysis › Parameter Sweep** (`analysis.paramSweep`), measuring the peak of `v(sw)` and the RMS of `i(Rs)`.
6. On a converter made by Voltecx's design flow, **Design › Automate › Debug Aids** (`design.debugAids`) adds a do-not-populate RC snubber footprint across the low-side device with the same rules (R = √(L/C_par), C = 4·C_par, its loss C·V²·fsw); give it `ringHz` from your bench measurement and it sizes the snubber from that ring.

The numbers are checked by `the_snubber_post_ring_measurement_and_design_match_the_simulation` and `the_snubber_post_resistor_and_capacitor_sweeps_trade_damping_for_loss` in `crates/engine/src/auto/tests_blog.rs`.

## Frequently asked questions

### How do I find the parasitic inductance and capacitance of the ring?

Measure the ring frequency, add a known capacitor at the same node and measure it again. Then $C_p = C_{add}/((f_0/f_1)^2 - 1)$ and $L_p = 1/((2\pi f_0)^2 C_p)$. If adding $C_{add}$ halves the frequency, $C_p = C_{add}/3$.

### What resistor value should an RC snubber have?

About the characteristic impedance of the ring, $R = \sqrt{L_p/C_p}$. In the sweep above the peak is lowest between 4.7 Ω and 10 Ω for a 7.07 Ω ring; the result is not sensitive to the exact value within a factor of about 1.5.

### How big should the snubber capacitor be?

Three to four times the parasitic capacitance. Smaller does not damp well; larger damps a little better but the loss $C V^2 f_{sw}$ grows in proportion.

### How much power does an RC snubber dissipate?

$P = C_s V^2 f_{sw}$, independent of R. For 3.9 nF at 48 V and 100 kHz that is 0.90 W; the simulation measures 0.91 W.

### Where should the snubber go?

Across the device that rings, with the shortest possible loop: usually across the diode or the low-side switch of the commutation loop. A snubber at the end of a long trace has its own inductance and damps less.
