# How to choose the switching frequency of a DC-DC converter

Choose the switching frequency as the highest one at which switching loss stays an acceptable share of the total, then check two hard limits: the controller's minimum on-time at the lowest duty cycle, and where the fundamental and its harmonics land in the conducted-EMI band. Switching loss rises in proportion to frequency while the inductance you need falls in proportion to it, so the answer is a trade-off, not a formula. For a 48 V to 12 V, 10 A buck with 20 ns edges, going from 100 kHz to 400 kHz shrinks the inductor from 30 µH to 7.5 µH but raises the high-side switching loss from 0.96 W to 3.84 W.

## The idea: every switching edge costs a little energy

Each time the switch turns on or off, for a few nanoseconds it carries current while voltage is still across it. That overlap burns a small, fixed amount of energy per edge, about $\tfrac{1}{2} V I t$. Switch twice as often and you pay it twice as often: switching loss is simply energy per cycle times cycles per second.

What you buy with those extra cycles is a smaller inductor. The inductor only has to carry the load from one switching edge to the next; the shorter that time, the less energy it needs to store, so the inductance falls in proportion to the frequency. Choosing the frequency is deciding how much heat you will pay for how much smaller magnetics.

## What changes with switching frequency?

| Rises with $f_{sw}$ | Falls with $f_{sw}$ |
|---|---|
| Switching loss $\propto f_{sw}$ | Inductance $\propto 1/f_{sw}$ |
| Output-capacitance ($C_{oss}$) loss $\propto f_{sw}$ | Output capacitance for the same ripple $\propto 1/f_{sw}^2$ (ceramic) |
| Gate-drive loss $\propto f_{sw}$ | Loop bandwidth you can reach ($f_c$ up to about $f_{sw}/10$) |
| Core loss per cycle × cycles per second | Size and cost of the magnetics, to a point |
| Proximity and skin effect in windings | |

Conduction loss barely moves: the RMS current depends on the ripple ratio, which you keep constant by scaling $L$.

## Worked example: 48 V to 12 V, 10 A buck

The operating point and device data are the ones of the article on [MOSFET loss and junction temperature](https://voltecx-web.nguyenvanqui291.workers.dev/blog/mosfet-loss-and-thermal-estimation): $D = 0.25$, rise and fall times of 20 ns, $C_{o(er)} = 500$ pF, a ripple ratio kept at 30 %.

$$P_{sw} = \tfrac{1}{2} V_{in} I_o (t_r + t_f) f_{sw}, \qquad P_{oss} = \tfrac{1}{2} C_{o(er)} V_{in}^2 f_{sw}, \qquad L = \frac{V_{out}(1-D)}{r I_o f_{sw}}$$

| $f_{sw}$ | $P_{sw}$ | $P_{oss}$ | $L$ for 3 A ripple |
|---|---|---|---|
| 100 kHz | 0.96 W | 0.058 W | 30 µH |
| 200 kHz | 1.92 W | 0.115 W | 15 µH |
| 400 kHz | 3.84 W | 0.230 W | 7.5 µH |

The high-side conduction loss is about 0.35 W at 80 °C at every frequency. At 100 kHz switching (with $C_{oss}$) is already 74 % of the switch's loss; at 400 kHz it is over 90 %, and the junction would run far hotter on the same heatsink.

![The buck simulated in Voltecx from 50 to 500 kHz, with the inductor rescaled at each point to keep a 30 % ripple. Top: the high-side switch's switching loss rises in a straight line, from 0.96 W at 100 kHz to 3.84 W at 400 kHz, while its conduction loss stays at 0.35 W. Bottom: the inductance needed falls as 1/fsw, from 30 µH at 100 kHz to 7.5 µH at 400 kHz.](https://voltecx-web.nguyenvanqui291.workers.dev/media/blog/choosing-switching-frequency/loss-and-inductance-vs-fsw.svg)

The two curves show the trade-off at a glance. Going from 100 to 200 kHz halves the inductor and costs about 1 W; going from 200 to 400 kHz saves only another 7.5 µH and costs almost 2 W more.

![The inductor current at 100 kHz with 30 µH and at 400 kHz with 7.5 µH, simulated in Voltecx. The ripple is the same 3 A in both; at 400 kHz the inductor only has to carry the current for a quarter of the time, which is why a quarter of the inductance is enough.](https://voltecx-web.nguyenvanqui291.workers.dev/media/blog/choosing-switching-frequency/inductor-current-100k-vs-400k.svg) With these switching times, 100 to 200 kHz is the sensible range. A part with faster edges, or a soft-switching topology, moves it up. For a sweep from 100 kHz to 1 MHz with a real MOSFET's data-sheet loss model, the efficiency, the ripple and the knee of the trade-off, see the [worked example](https://voltecx-web.nguyenvanqui291.workers.dev/blog/switching-frequency-sweep-worked-example).

## What limits the frequency at low duty cycle?

Every controller has a minimum on-time, often tens to a few hundred nanoseconds; take it from the data sheet. The on-time is $t_{on} = D / f_{sw}$, so

$$f_{sw,max} = \frac{D_{min}}{t_{on,min}}$$

From 48 V to 1 V, $D = 0.0208$. With a 100 ns minimum on-time, the converter cannot regulate above $0.0208 / 100\,\text{ns} = 208$ kHz; above it, the controller skips pulses or the output rises. Two-stage conversion (48 V to 12 V, then 12 V to 1 V) is often the answer at large step-down ratios.

## How does frequency interact with EMI?

Conducted-emission limits such as those of CISPR 32 start at 150 kHz. A converter switching just below 150 kHz keeps its fundamental out of the band, although its second and higher harmonics still fall inside it. Above the band start, the fundamental is the largest line in the spectrum and usually sets the size of the input filter. The filter's corner must sit about a decade below the frequency it has to attenuate by 40 dB, so a higher switching frequency allows a smaller filter for the same attenuation. Spread-spectrum modulation lowers the measured peak but not the energy. See [conducted EMI pre-compliance in simulation](https://voltecx-web.nguyenvanqui291.workers.dev/blog/conducted-emi-pre-compliance).

![The conducted spectrum Voltecx estimates for the 48 V buck (no input filter), up to 3 MHz, against the CISPR 32 class B average limit. At 140 kHz the fundamental is below the band, and the largest line is the second harmonic at 280 kHz, 42.5 dB over the limit. At 200 kHz the fundamental itself is the largest line, 48.6 dB over.](https://voltecx-web.nguyenvanqui291.workers.dev/media/blog/choosing-switching-frequency/spectrum-140k-vs-200k.svg)

Moving from 200 to 140 kHz lowers the attenuation the input filter must give by about 6 dB. It does not make the filter go away: every harmonic above 150 kHz still needs it.

## Common mistakes

- **Choosing the frequency first and the switch later.** The answer depends on the switch's edges. With 20 ns edges 100 to 200 kHz is sensible; a part with 5 ns edges moves the whole loss line down by a factor of four.
- **Forgetting $C_{oss}$ and gate-drive loss.** They are small at 100 kHz but grow with frequency like the switching loss, and $C_{oss}$ loss does not shrink with faster edges.
- **Ignoring the minimum on-time.** At a large step-down ratio the controller may simply not be able to make pulses that short. Check $D_{min}/t_{on,min}$ before falling in love with a frequency.
- **Landing the fundamental just above 150 kHz.** That puts the largest line of the spectrum where the limit is strict. Either stay below 150 kHz or plan the filter for the fundamental.
- **Expecting a smaller inductor to mean a smaller converter.** Above some frequency, the heatsink grows faster than the magnetics shrink.

## How to do it in Voltecx

- **Sweep the frequency.** `analysis.paramSweep` runs the circuit for a list of values of a parameter, such as the PWM frequency, and returns each result; pair it with `analysis.losses` to see conduction and switching loss of each switch at each point.
- **Size at each point.** The Design panel's **Converter** task (`design.converter`) sizes L and C for the frequency you give it and adds a switching-frequency hint. `design.efficiency` gives the efficiency at four loads and the loss of each device, and `design.thermal` the junction temperatures and the heatsink you need.
- **Let the optimiser choose.** `analysis.pareto` searches the design space and returns the efficiency-against-size front. Automatic design (`design.auto`, **Design › Auto Design**) uses 100 kHz for a DC-DC converter unless you give `fsw`; with `auto.mode` set to `pareto` it takes the switching frequency and ripple from the knee of that front.
- **Check EMI.** `emi.conducted` (**Design › Automate › Conducted EMI**) estimates the spectrum at each candidate frequency against the CISPR 32 limit. It is a pre-compliance estimate, not a measurement.

See the [design tools overview](https://voltecx-web.nguyenvanqui291.workers.dev/features/design-tools) for where these steps sit in the flow.

## Frequently asked questions

### Is a higher switching frequency always more efficient?

No. Higher frequency usually lowers efficiency, because switching, $C_{oss}$, gate and core losses all grow with it. It buys smaller magnetics and capacitors and a faster loop.

### What frequency do most DC-DC converters use?

There is no single answer. Silicon hard-switched converters of tens to hundreds of watts often run between 100 kHz and 1 MHz; GaN and soft-switching topologies run higher. Derive it from your switching times and loss budget as above.

### Why avoid switching just above 150 kHz?

Because conducted-emission limits start at 150 kHz, so a fundamental just above it falls in the band at its largest amplitude. Just below 150 kHz only the harmonics are inside the band.

### How does minimum on-time limit the frequency?

The on-time $D/f_{sw}$ must stay above the controller's minimum on-time. At low duty cycle that sets the highest usable frequency: $f_{sw,max} = D_{min}/t_{on,min}$.
