---
title: Transformer design
heading: Choosing turns from the applied volt-seconds, the trade-off between core loss and copper loss and the flux density that minimizes their sum, allocating the window among windings, and leakage inductance
eyebrow: S11 · Lesson 26 · Transformer design
xp: 50
---

::: hook
A transformer in a switching converter isn't limited by saturation from DC current the way an inductor is, since its windings' ampere-turns largely cancel. It's limited by loss. Fewer turns mean less copper but a larger flux swing and more core loss; more turns mean the reverse. Somewhere between lies a flux density that minimizes the total, and finding it, then splitting the window among the windings in proportion to the current each carries, is transformer design.
:::

::: play
- The core loss, copper loss and total loss of a transformer against the peak AC flux density $B_\text{ac}$, for a core whose loss goes as $B^{2.7}$ and copper whose loss goes as $1/B^2$ (fewer turns at higher B).
- The total has a minimum where the copper loss is $\beta/2$ = 1.35 times the core loss.
- The sliders scale the two loss coefficients, as a bigger window (less copper loss) or a lower frequency (less core loss) would; the optimum moves accordingly.
:::

```sim plot
view: graph
x: B = 0.02..0.3 T log
y: P = 0.001..1 W log
slider: a = 0.0001..0.002 = 0.0004 log
slider: b = 5..80 = 20 log
plot: b*B^2.7 | samples: 300 | label: core loss
plot: a/B^2 | samples: 300 | color: ch3 | label: copper loss
plot: b*B^2.7 + a/B^2 | samples: 300 | color: ch4 | label: total
readout: optimal flux density, T = (2*a/(2.7*b))^(1/4.7) | digits: 3
readout: minimum total loss, W = b*(2*a/(2.7*b))^(2.7/4.7) + a/(2*a/(2.7*b))^(2/4.7) | digits: 3
```

::: predict
## A forward converter applies 48 V to its transformer's primary for 40% of a 5 µs period. With a 0.5 cm² core and a peak AC flux density of 0.1 T, how many primary turns are needed?

- [ ] 1
- [x] About 10
- [ ] About 100
- [ ] It depends on the load current

::: reveal
The applied volt-seconds are λ = 48 × 0.4 × 5 µs = 96 µV·s, which swings the flux by $\Delta B = \lambda/NA_c$, twice the peak AC value: $N = \lambda/(2B_\text{ac}A_c)$ = 96 µV·s/(2 × 0.1 × 0.5 × 10⁻⁴) = 9.6, so 10 turns. Load current doesn't enter: the primary and secondary ampere-turns cancel.
:::
:::

::: nameit
## Turns from volt-seconds

By Faraday's law, applying volt-seconds λ to an N-turn winding swings the core flux density by $\Delta B = \lambda/NA_c$. With $B_\text{ac} = \Delta B/2$ the peak AC flux density:

$$N_1 = \frac{\lambda_1}{2B_\text{ac}A_c}, \qquad \lambda_1 = V_1t_\text{on}$$

Other windings follow from the turns ratios.

## Loss trade-off

Core loss goes as $B_\text{ac}^\beta$ (Steinmetz, β ≈ 2.6 to 2.8). For a fixed window, turns go as $1/B_\text{ac}$ and wire area as $B_\text{ac}$, so copper loss goes as $1/B_\text{ac}^2$. Minimizing the sum gives

$$P_{cu} = \frac{\beta}{2}P_{fe}$$

at the optimum: slightly more copper loss than core loss.

## Window allocation

Give each winding a share of the window in proportion to its share of the total RMS ampere-turns, $\alpha_k = \frac{N_kI_k}{\sum N_jI_j}$. That equalizes current density and minimizes total copper loss.

## Leakage inductance

Flux that links one winding but not another appears as **leakage inductance** in series, causing voltage spikes at turn-off in flybacks and limiting how fast current can transfer between windings. Interleaving the windings (primary, secondary, primary) cuts it.
:::

::: example
## Design the forward converter's transformer: 48 V, D = 0.4, 200 kHz, 0.5 cm² core, 5 V out.

::: solution
1. **Volt-seconds.**
   $$\lambda = 96\ \mu\text{V·s}$$
2. **Flux swing with 12 primary turns.**
   $$\begin{aligned} B_\text{ac} &= \frac{96\ \mu\text{V·s}}{2 \times 12 \times 0.5\ \text{cm}^2} \\ &= 0.08\ \text{T} \end{aligned}$$
3. **Turns ratio.** For 5 V from 48 V × 0.4 × n:
   $$\begin{aligned} n &= \frac{5}{48 \times 0.4} \\ &= 0.26 \end{aligned}$$
   so 3 secondary turns (n = 0.25, D = 0.42 at nominal).
4. **Window split.** With a 4.8 A secondary and a 1.2 A primary, the ampere-turns are equal:
   $$\begin{aligned} 3 \times 4.8\ \text{A} &= 14.4\ \text{A} \\ &= 12 \times 1.2\ \text{A} \end{aligned}$$
   so each winding gets half the window.

**Answer:** 12 primary turns (0.08 T) and 3 secondary turns, with each winding getting half the window.
:::
:::

::: example
## A core loses 20 $B_\text{ac}^{2.7}$ W and the copper 0.0004/$B_\text{ac}^2$ W. Find the optimum.

::: solution
1. **Set the derivative of the total to zero.**
   $$\begin{aligned} B_\text{ac}^{4.7} &= \frac{2 \times 0.0004}{2.7 \times 20} \\ B_\text{ac} &= 0.094\ \text{T} \end{aligned}$$
2. **Losses there.**
   $$\begin{aligned} P_\text{fe} &= 20 \times 0.094^{2.7} \\ &= 0.034\ \text{W} \\ P_\text{cu} &= 0.0004/0.094^2 \\ &= 0.045\ \text{W} \end{aligned}$$
   The ratio is 1.35 = β/2, and the total is 0.079 W.
3. **Away from the optimum.** Halving $B_\text{ac}$ from the optimum would cut core loss by $2^{2.7}$ = 6.5 times but quadruple copper loss.

**Answer:** the optimum is $B_\text{ac}$ = 0.094 T, where the core loses 0.034 W and the copper 0.045 W, 0.079 W in all.
:::
:::

::: example
## A forward converter makes 5 V at 20 A from 48 V at D = 0.4. What turns ratio does it need, and what RMS currents do its windings carry (ignoring magnetizing current and ripple)?

::: solution
1. **Turns ratio.**
   $$\begin{aligned} n &= \frac{5}{0.4 \times 48} \\ &= 0.260 \end{aligned}$$
2. **On-time currents.** During the on-time the secondary carries the 20 A load and the primary
   $$\begin{aligned} I_p &= n \times 20\ \text{A} \\ &= 5.21\ \text{A} \end{aligned}$$
3. **RMS currents.** Each conducts for 40% of the period:
   $$\begin{aligned} I_{s,\text{rms}} &= 20\sqrt{0.4} \\ &= 12.6\ \text{A} \\ I_{p,\text{rms}} &= nI_{s,\text{rms}} \\ &= 3.29\ \text{A} \end{aligned}$$
4. **Sizing the windings.** Winding areas are sized for these RMS values rather than the averages.

**Answer:** n = 0.260; the secondary carries 12.6 A RMS and the primary 3.29 A RMS.
:::
:::

::: check
given: V = 12 | 48 | 380; D = 0.3 | 0.45; f = 100 | 300
answer: V*D/(f*1e3)*1e6
unit: µV·s
tolerance: 0.5%

## A forward converter applies {V} V to its primary at D = {D} and {f} kHz. What volt-seconds does each pulse apply?

::: right
Right. $V_gDT_s$ = {answer} µV·s.
:::

::: misses
- [V*D*f] Divide by the frequency: the on-time is $D/f_s$.
- [any] Not yet. Voltage times on-time.
:::
:::

::: check
given: l = 50 | 100 | 300; B = 0.05 | 0.1 | 0.15; A = 0.3 | 0.8 | 1.5
answer: l*1e-6/(2*B*A*1e-4)
tolerance: 0.5%

## A winding receives {l} µV·s per pulse on a {A} cm² core, with peak AC flux density {B} T. How many turns does it need (before rounding)?

::: right
Right. $\lambda/(2B_\text{ac}A_c)$ = {answer}.
:::

::: misses
- [l*1e-6/(B*A*1e-4)] The swing ΔB is twice the peak AC value.
- [any] Not yet. Faraday's law: $\Delta B = \lambda/NA_c$.
:::
:::

::: check
given: l = 50 | 150; N = 8 | 20; A = 0.4 | 1
answer: l*1e-6/(2*N*A*1e-4)
unit: T
tolerance: 0.5%

## A winding of {N} turns on a {A} cm² core receives {l} µV·s per pulse. What's the peak AC flux density?

::: right
Right. $\lambda/(2NA_c)$ = {answer} T.
:::

::: misses
- [l*1e-6/(N*A*1e-4)] That's the full swing ΔB; the peak AC value is half.
- [any] Not yet. $\Delta B = \lambda/NA_c$.
:::
:::

::: check
given: P = 0.1 | 0.5 | 2; b = 2.6 | 2.7 | 2.8
answer: P*(1 + b/2)
unit: W
tolerance: 0.5%

## At its optimal flux density, a transformer's core loss is {P} W with Steinmetz exponent β = {b}. What's the total loss?

::: right
Right. Copper loss is β/2 times core loss: total $P_{fe}(1 + \beta/2)$ = {answer} W.
:::

::: misses
- [2*P] The optimum isn't equal losses; copper is β/2 times core.
- [any] Not yet. At the optimum $P_{cu} = (\beta/2)P_{fe}$.
:::
:::

::: check
given: a = 10 | 40; i = 0.5 | 2; b = 2 | 5; j = 3 | 8
answer: a*i/(a*i + b*j)
tolerance: 0.5%

## A transformer's primary has {a} turns at {i} A RMS and its secondary {b} turns at {j} A RMS. What fraction of the window should the primary get?

::: right
Right. $N_1I_1/(N_1I_1 + N_2I_2)$ = {answer}.
:::

::: misses
- [a/(a + b)] Allocate by ampere-turns: turns alone leave out the currents.
- [any] Not yet. In proportion to each winding's RMS ampere-turns.
:::
:::

::: check
given: k = 0.5 | 0.7 | 0.8; b = 2.6 | 2.8
answer: k^b
tolerance: 0.5%

## If a transformer's peak AC flux density is cut to {k} of its value, by what factor does its core loss change (β = {b})?

::: right
Right. $k^\beta$ = {answer}.
:::

::: misses
- [k^2] Core loss goes as $B^\beta$, not $B^2$.
- [any] Not yet. Steinmetz: $P \propto B^\beta$.
:::
:::

::: check
kind: parts
given: g = 24 | 48 | 380; V = 3.3 | 5 | 12; D = 0.3 | 0.4; I = 5 | 20

## A forward converter makes {V} V at {I} A from {g} V at D = {D}.

::: part
answer: V/(D*g)
tolerance: 0.5%

### What turns ratio $N_s/N_p$?

::: misses
- [any] $V = nDV_g$.
:::
:::

::: part
answer: I*sqrt(D)
unit: A
tolerance: 0.5%

### What RMS current does the secondary carry?

::: misses
- [I*D] RMS goes as √D, not D.
- [any] $I\sqrt D$.
:::
:::

::: part
answer: V/(D*g)*I*sqrt(D)
unit: A
tolerance: 0.5%

### And the primary?

::: misses
- [any] n times the secondary's.
:::
:::
:::

::: check
kind: derivation
vars: V = 5..400, D = 0.1..0.5, f = 20000..1000000, N = 2..100, A = 0.00001..0.001

## A winding of N turns on core area A receives V volts for D of each period at frequency f.

::: step
answer: V*D/f

### What volt-seconds per pulse?
:::

::: step
answer: V*D/f/(N*A)

### What flux swing ΔB?
:::

::: step
answer: V*D/f/(2*N*A)

### What peak AC flux density?
:::

::: right
Right. Faraday's law: volt-seconds set the flux swing, whatever the current.
:::
:::

::: explain
## Why doesn't a forward converter's transformer saturate from its load current the way an inductor would?

::: model
In a transformer the load current flows in the secondary and an almost equal and opposite current, scaled by the turns ratio, flows in the primary, so their magnetomotive forces cancel and the load current produces essentially no net flux in the core. The only flux comes from the magnetizing current, set by the volt-seconds applied to the winding, independent of the load. So a transformer's core is sized by the applied voltage, frequency and loss, while an inductor's is sized by the current it carries, because in an inductor the entire current produces flux and the energy it stores must fit in the core and gap.
:::
:::

::: practice

::: check
given: V = 24 | 400; D = 0.25 | 0.5; f = 50 | 500
answer: V*D/(f*1e3)*1e6
unit: µV·s
tolerance: 0.5%

## Volt-seconds: {V} V, D = {D}, {f} kHz?

::: misses
- [any] $VD/f_s$.
:::
:::

::: check
given: l = 40 | 250; B = 0.06 | 0.12; A = 0.5 | 2
answer: l*1e-6/(2*B*A*1e-4)
tolerance: 0.5%

## Turns for {l} µV·s, $B_\text{ac}$ = {B} T, {A} cm²?

::: misses
- [any] $\lambda/(2B_\text{ac}A_c)$.
:::
:::

::: check
given: a = 6 | 30; i = 1 | 3; b = 1 | 6; j = 4 | 15
answer: a*i/(a*i + b*j)
tolerance: 0.5%

## Primary's window share: {a} turns × {i} A against {b} turns × {j} A?

::: misses
- [any] $N_1I_1/\sum N_kI_k$.
:::
:::
:::
