Skip to content

Flyback converter

  • Compute the flyback’s conversion ratio in CCM and DCM with the 1:n turns-ratio convention.
  • Find the switch and diode stress, and the energy the leakage inductance leaves behind at every turn-off.
  • Explain why a fixed duty ratio into a fixed output pins the input voltage of a CCM flyback.
Flyback converter. Coupled windings with turns ratio 1:n1:n take the place of the buck-boost inductor: energy stored in the magnetizing inductance while Q1Q_1 is on reaches the output through D1D_1 while Q1Q_1 is off. The dots at opposite ends show that the windings conduct in turn. [Erickson & Maksimović 2020, Ch. 6]

The flyback converter replaces the buck-boost’s inductor by two coupled windings on one core, with turns ratio 1:n, where nn is the secondary turns divided by the primary turns. The magnetizing inductance LML_M, referred to the primary, stores energy while the switch is on; the secondary winding and the diode deliver it to the output while the switch is off. The windings isolate the output and the turns ratio scales the conversion ratio [Erickson & Maksimović 2020, Ch. 6]:

M=nD1−DM = \frac{n D}{1 - D}
MM
conversion ratio
DD
duty ratio
nn
turns ratio, secondary/primary
Flyback conversion ratio, CCM✓ verified by 8 tests
Assumptions, convention and source
Assumptions
  • ideal (lossless) switches and passive components
  • continuous conduction mode (CCM)
  • periodic steady state
  • small-ripple approximation
Convention
M=V/VgM = V/V_g; 1:n transformer with n=Ns/Npn = N_s/N_p
Source
Erickson & Maksimović 2020, Ch. 6 (Converter Circuits)
Derivation
step-by-step sympy derivation
Equation id
flyback.ccm.M · equations.yaml entry

KK is formed with LML_M and the actual load resistance, and the turns ratio then appears in the critical value (flyback critical K). In DCM the ratio no longer depends on the turns ratio [Erickson & Maksimović 2020, Ch. 5]:

M=DKM = \frac{D}{\sqrt{K}}
MM
conversion ratio
DD
duty ratio
KK
inductor parameter (CCM vs DCM)
Flyback conversion ratio, DCM✓ verified by 8 tests
Assumptions, convention and source
Assumptions
  • ideal (lossless) switches and passive components
  • discontinuous conduction mode (DCM)
  • periodic steady state
  • small-ripple approximation
  • resistive load R
Convention
1:n transformer, n=Ns/Npn = N_s/N_p; KK uses LML_M (primary-referred) and the actual load RR
Notes
independent of nn: the turns ratio only enters KcritK_\mathrm{crit} and the stresses
Source
Erickson & Maksimović 2020, Ch. 5–6 (DCM; flyback as an isolated buck-boost)
Derivation
step-by-step sympy derivation
Equation id
flyback.dcm.M · equations.yaml entry

In CCM the flyback behaves like the buck-boost with the secondary quantities referred to the primary. While the diode conducts, the secondary carries the magnetizing current divided by nn, so charge balance on the output capacitor gives the average magnetizing current [Erickson & Maksimović 2020, Ch. 6]:

IM=nV(1−D)RI_M = \frac{n V}{\left(1 - D\right) R}
IMI_M
dc magnetizing current
DD
duty ratio
RR
load resistance
VV
output voltage
nn
turns ratio, secondary/primary
Flyback magnetizing current (referred to the primary), CCM✓ verified by 7 tests
Assumptions, convention and source
Assumptions
  • ideal (lossless) switches and passive components
  • continuous conduction mode (CCM)
  • periodic steady state
  • small-ripple approximation
  • resistive load R
Convention
1:n transformer, n=Ns/Npn = N_s/N_p; the secondary carries IM/nI_M/n while the diode conducts
Notes
with n=1n = 1 this is the buck-boost's inductor current
Source
Erickson & Maksimović 2020, Ch. 6 (Converter Circuits); derived here by charge balance
Derivation
step-by-step sympy derivation
Equation id
flyback.IM · equations.yaml entry

While the switch is on, VgV_g across LML_M sets the magnetizing-current ripple, and the output capacitor alone feeds the load, which sets the output ripple:

ΔiM=VgDTs2LM\Delta i_M = \frac{V_g D T_s}{2 L_M}
ΔiM\Delta i_M
magnetizing ripple, half peak-to-peak
DD
duty ratio
LML_M
magnetizing inductance (primary)
TsT_s
switching period
VgV_g
input voltage
Flyback magnetizing current ripple, CCM✓ verified by 7 tests
Assumptions, convention and source
Assumptions
  • ideal (lossless) switches and passive components
  • continuous conduction mode (CCM)
  • periodic steady state
Convention
ΔiM\Delta i_M is HALF the peak-to-peak ripple (Erickson)
Source
Erickson & Maksimović 2020, Ch. 6 (Converter Circuits); derived here by volt-seconds on L_M
Derivation
step-by-step sympy derivation
Equation id
flyback.ripple.iM · equations.yaml entry
Δv=VDTs2RC\Delta v = \frac{V D T_s}{2 R C}
Δv\Delta v
output ripple, half peak-to-peak
CC
capacitance (output capacitor)
DD
duty ratio
RR
load resistance
TsT_s
switching period
VV
output voltage
Flyback output voltage ripple, CCM✓ verified by 7 tests
Assumptions, convention and source
Assumptions
  • ideal (lossless) switches and passive components
  • continuous conduction mode (CCM)
  • periodic steady state
  • small-ripple approximation
  • resistive load R
Convention
Δv\Delta v is HALF the peak-to-peak ripple (Erickson)
Notes
while the switch is on the diode is off and the capacitor alone supplies the load, as in the buck-boost
Source
Erickson & Maksimović 2020, Ch. 6 (Converter Circuits); derived here by charge balance
Derivation
step-by-step sympy derivation
Equation id
flyback.ripple.v · equations.yaml entry

The converter designer solves these for LML_M and CC.

While the switch is off, the secondary is clamped to the output plus the diode drop, and that voltage appears on the primary divided by nn. The switch therefore blocks the input voltage plus this reflected voltage [Erickson & Maksimović 2020, Ch. 6]:

VDS=Vg+V+VDnV_\mathrm{DS} = V_g + \frac{V + V_D}{n}
VDSV_\mathrm{DS}
switch voltage while off
VV
output voltage
VDV_D
output-diode forward drop
VgV_g
input voltage
nn
turns ratio, secondary/primary
Flyback switch voltage while off (without the leakage spike)✓ verified by 7 tests
Assumptions, convention and source
Assumptions
  • ideal (lossless) switches and passive components
  • periodic steady state
  • output diode modelled as a constant forward drop V_D
Notes
the leakage-inductance spike adds on top; see ElkE_\mathrm{lk}
Source
Erickson & Maksimović 2020, Ch. 6 (Converter Circuits)
Derivation
step-by-step sympy derivation
Equation id
flyback.Vds_off · equations.yaml entry

While the switch is on, the secondary sees nVgn V_g, and the diode blocks it on top of the output voltage:

VR=V+nVgV_R = V + n V_g
VRV_R
diode reverse voltage
VV
output voltage
VgV_g
input voltage
nn
turns ratio, secondary/primary
Flyback output-diode reverse voltage✓ verified by 7 tests
Assumptions, convention and source
Assumptions
  • ideal (lossless) switches and passive components
  • periodic steady state
Source
Erickson & Maksimović 2020, Ch. 6 (Converter Circuits)
Derivation
step-by-step sympy derivation
Equation id
flyback.diode.VR · equations.yaml entry

A smaller nn lowers the diode stress but raises the reflected voltage on the switch.

DCM peak current and the loss-free resistor

Section titled “DCM peak current and the loss-free resistor”

In DCM the magnetizing current starts from zero every period, so its peak depends only on the input voltage, the on-time and LML_M [Erickson & Maksimović 2020, Ch. 5]:

Ipk=VgDLMfsI_\mathrm{pk} = \frac{V_g D}{L_M f_s}
IpkI_\mathrm{pk}
peak current
DD
duty ratio
LML_M
magnetizing inductance (primary)
VgV_g
input voltage
fsf_s
switching frequency
Flyback peak magnetizing current, DCM✓ verified by 7 tests
Assumptions, convention and source
Assumptions
  • ideal (lossless) switches and passive components
  • discontinuous conduction mode (DCM)
  • periodic steady state
Notes
in DCM the magnetizing current starts every cycle from zero
Source
Erickson & Maksimović 2020, Ch. 5 (The Discontinuous Conduction Mode)
Derivation
step-by-step sympy derivation
Equation id
flyback.Ipk.dcm · equations.yaml entry

The energy stored per period sets the input power, and the input behaves as a loss-free resistor (DCM input power, input resistance).

Not all of the primary flux links the secondary. The leakage inductance carries the primary current at turn-off, and its energy cannot reach the output [Erickson & Maksimović 2020, Ch. 4]:

Elk=LlkIpk22E_\mathrm{lk} = \frac{L_\mathrm{lk} I_\mathrm{pk}^{2}}{2}
ElkE_\mathrm{lk}
leakage energy per turn-off
IpkI_\mathrm{pk}
peak current
LlkL_\mathrm{lk}
leakage inductance (primary)
Energy stored in the leakage inductance at turn-off✓ verified by 7 tests
Assumptions, convention and source
Assumptions
  • linear (unsaturated) magnetic material
Notes
this energy cannot reach the secondary; a clamp or snubber must absorb it
Source
Erickson & Maksimović 2020, Ch. 4 (Switch Realization: losses from energy stored in leakage and stray inductances)
Derivation
step-by-step sympy derivation
Equation id
flyback.leak.E · equations.yaml entry

A clamp or snubber must take this energy in every period. A dissipative clamp turns it into heat, so the resulting power is a lower bound on the clamp’s loss; a clamp that returns the energy to the input or the output processes this power without dissipating it:

Plk=ElkfsP_\mathrm{lk} = E_\mathrm{lk} f_s
PlkP_\mathrm{lk}
leakage energy times fs
ElkE_\mathrm{lk}
leakage energy per turn-off
fsf_s
switching frequency
Leakage-energy power✓ verified by 7 tests
Assumptions, convention and source
Assumptions
  • periodic steady state
  • all of the stored energy is dissipated every cycle
Notes
a lower bound for the loss of a dissipative clamp, which also absorbs energy from the reflected voltage and so dissipates more; a clamp that returns the energy to the input or the output processes this power instead of dissipating it
Source
Erickson & Maksimović 2020, Ch. 4 (Switch Realization)
Derivation
step-by-step sympy derivation
Equation id
flyback.leak.P · equations.yaml entry

The clamp check sizes a TVS or RCD clamp for this energy: the clamp voltage, the switch voltage and the clamp’s dissipation.

If the output is held by a battery or a regulated bus, and the duty ratio is fixed, CCM volt-second balance leaves only one input voltage that fits:

Vg,crit=(V+VD)(1−D)nDV_{g,\mathrm{crit}} = \frac{\left(V + V_D\right) \left(1 - D\right)}{n D}
Vg,critV_{g,\mathrm{crit}}
input voltage at the CCM/DCM boundary
DD
duty ratio
VV
output voltage
VDV_D
output-diode forward drop
nn
turns ratio, secondary/primary
Flyback: input voltage at the CCM/DCM boundary (fixed D, fixed output)✓ verified by 7 tests
Assumptions, convention and source
Assumptions
  • ideal (lossless) switches and passive components
  • at the CCM/DCM boundary
  • periodic steady state
  • output held at a fixed voltage V (battery or regulated bus)
  • output diode modelled as a constant forward drop V_D
Notes
below Vg,critV_{g,\mathrm{crit}} the converter is in DCM; a source-driven bus that rises to Vg,critV_{g,\mathrm{crit}} is pinned there by CCM volt-second balance
Source
Erickson & Maksimović 2020, Ch. 6 (Converter Circuits); derived here by volt-second balance
Derivation
step-by-step sympy derivation
Equation id
flyback.V_crit · equations.yaml entry

Below it the flyback runs in DCM and draws power like a resistor. When a current-limited source drives the input, its voltage rises until it reaches this value, where CCM begins and holds the input there: the converter then acts as a constant-voltage sink. At that point the switch blocks

VDS=V+VDnDV_\mathrm{DS} = \frac{V + V_D}{n D}
VDSV_\mathrm{DS}
switch voltage while off
DD
duty ratio
VV
output voltage
VDV_D
output-diode forward drop
nn
turns ratio, secondary/primary
Flyback switch voltage with the input pinned at the boundary✓ verified by 7 tests
Assumptions, convention and source
Assumptions
  • ideal (lossless) switches and passive components
  • at the CCM/DCM boundary
  • periodic steady state
  • output held at a fixed voltage V (battery or regulated bus)
  • output diode modelled as a constant forward drop V_D
Convention
evaluated at Vg=Vg,critV_g = V_{g,\mathrm{crit}}
Source
Erickson & Maksimović 2020, Ch. 6 (Converter Circuits); derived here
Derivation
step-by-step sympy derivation
Equation id
flyback.Vds_clamped · equations.yaml entry

This section looks at one steady period of each example, mode by mode. The waveforms come from the site’s simulator, whose operating-mode view draws the same for any values. In CCM the period has two modes: the switch conducts and the magnetizing inductance charges from the input while the output diode blocks, then the switch is off and the magnetizing current flows out of the secondary through the diode [Erickson & Maksimović 2020, Ch. 6].

M1M2vGSoniLM1.15 A185 mAiS1.15 A0 AiD4.58 A0 AvDS80.1 V0 VvLM48 V−32.1 Vt0t1t2

carries current  no current

(a) Mode 1 switch on (t0 to t1: 0 s to 4 µs, 4 µs)
+−VgsuppliesLM↑ storesNpSONNsDoffCdischargingRon

S conducts: the primary winding is connected across the input. The secondary's dot is at its lower end, so D is reverse biased and no current flows in the secondary. The voltage across LM averages 48 V. LM's current grows: it stores energy. C discharges. The input delivers power.

(b) Mode 2 switch off (t1 to t2: 4 µs to 10 µs, 6 µs)
+−VgLM↓ releasesNponSOFFNsonDonCcharge →dischargeRon

S is off: the magnetizing current moves to the secondary, where D carries it, divided by n, into the output. The voltage across LM averages −32 V. LM's current shrinks: it releases energy. C charges, then discharges. The input supplies nothing.

The operating modes of one steady period of the example flyback-ccm, from the site's simulator: the key waveforms with the modes' boundaries t0,t1,…t_0, t_1, \ldots, then the circuit in each mode, its current-carrying branches in colour. ▶ Change the values in the simulator

In DCM the magnetizing current reaches zero before the period ends, and a third mode follows in which neither the switch nor the diode conducts [Erickson & Maksimović 2020, Ch. 5]:

M1M2M3vGSoniLM2.88 A0 AiS2.88 A0 AiD11.5 A0 AvDS130 V0 VvLM48 V−81.6 Vt0t1t2t3

carries current  no current

(a) Mode 1 switch on (t0 to t1: 0 s to 3 µs, 3 µs)
+−VgsuppliesLM↑ storesNpSONNsDoffCdischargingRon

S conducts: the primary winding is connected across the input. The secondary's dot is at its lower end, so D is reverse biased and no current flows in the secondary. The voltage across LM averages 48 V. LM's current grows: it stores energy. C discharges. The input delivers power.

(b) Mode 2 switch off (t1 to t2: 3 µs to 4.77 µs, 1.77 µs)
+−VgLM↓ releasesNponSOFFNsonDonCcharge →dischargeRon

S is off: the magnetizing current moves to the secondary, where D carries it, divided by n, into the output. The voltage across LM averages −81.5 V. LM's current shrinks: it releases energy. C charges, then discharges. The input supplies nothing.

(c) Mode 3 idle (t2 to t3: 4.77 µs to 10 µs, 5.23 µs)
+−VgLM0NpSOFFNsDoffCdischargingRon

The magnetizing current is zero (DCM): S and D are both off. LM carries no current. C discharges. The input supplies nothing.

The operating modes of one steady period of the example flyback-dcm, from the site's simulator: the key waveforms with the modes' boundaries t0,t1,…t_0, t_1, \ldots, then the circuit in each mode, its current-carrying branches in colour. ▶ Change the values in the simulator

Three flyback examples: one in CCM with a resistive load, one in DCM, and one charging a fixed output at a fixed duty ratio.

Flyback example in CCM, ideal diode
SymbolValueHow it is obtained
VgV_g input voltage48 Vgiven
nn turns ratio, secondary/primary0.25given
DD duty ratio0.4given
fsf_s switching frequency100 kHzgiven
LML_M magnetizing inductance (primary)200 µHgiven
RR load resistance5 Ωgiven
VDV_D output-diode forward drop0 Vgiven
MM conversion ratio0.167Flyback conversion ratio, CCM
VV output voltage8 VOutput voltage from the conversion ratio
KK inductor parameter (CCM vs DCM)8Dimensionless inductor parameter K
KcritK_\mathrm{crit} K at the CCM/DCM boundary5.76Critical K of the flyback converter
VDSV_\mathrm{DS} switch voltage while off80 VFlyback switch voltage while off (without the leakage spike)
VRV_R diode reverse voltage20 VFlyback output-diode reverse voltage

Operating mode: CCM (K>KcritK > K_\mathrm{crit}: holds)

Flyback example in DCM, ideal diode
SymbolValueHow it is obtained
VgV_g input voltage48 Vgiven
nn turns ratio, secondary/primary0.25given
DD duty ratio0.3given
fsf_s switching frequency100 kHzgiven
LML_M magnetizing inductance (primary)50 µHgiven
RR load resistance20 Ωgiven
VDV_D output-diode forward drop0 Vgiven
LlkL_\mathrm{lk} leakage inductance (primary)1 µHgiven
KK inductor parameter (CCM vs DCM)0.5Dimensionless inductor parameter K
KcritK_\mathrm{crit} K at the CCM/DCM boundary7.84Critical K of the flyback converter
MM conversion ratio0.424Flyback conversion ratio, DCM
VV output voltage20.4 VOutput voltage from the conversion ratio
IpkI_\mathrm{pk} peak current2.88 AFlyback peak magnetizing current, DCM
VDSV_\mathrm{DS} switch voltage while off129 VFlyback switch voltage while off (without the leakage spike)
ElkE_\mathrm{lk} leakage energy per turn-off4.15 µJEnergy stored in the leakage inductance at turn-off
PlkP_\mathrm{lk} leakage energy times fs415 mWLeakage-energy power

Operating mode: DCM (K>KcritK > K_\mathrm{crit}: does not hold)

Example flyback charging a fixed output at a fixed duty ratio
SymbolValueHow it is obtained
VV output voltage12 Vgiven
VDV_D output-diode forward drop500 mVgiven
DD duty ratio0.3given
nn turns ratio, secondary/primary0.25given
Vg,critV_{g,\mathrm{crit}} input voltage at the CCM/DCM boundary117 VFlyback: input voltage at the CCM/DCM boundary (fixed D, fixed output)
VDSV_\mathrm{DS} switch voltage while off167 VFlyback switch voltage with the input pinned at the boundary

In the CCM example the reflected voltage adds to the input, so the switch blocks 80 V although the input is 48 V. In the DCM example the leakage inductance of 1 µH alone means that a dissipative clamp loses at least 415 mW.

▶ Open in the equation explorer: Flyback switch voltage while off (without the leakage spike)
Preset from the example flyback-ccm

▶ Open in the simulator: Flyback
Preset from the example flyback-dcm

Sweep the turns ratio nn: a smaller nn raises the reflected voltage and the switch stress. Then open the diode stress equation and sweep nn again to see the opposite trend.

On a low-power flyback evaluation board, watch the switch voltage while the switch is off. You should see a short spike at turn-off (the leakage energy being clamped), then a plateau at the input voltage plus the reflected output voltage, and, in DCM, ringing once the secondary current has reached zero. Measure the plateau and compare it with the switch-stress equation at the measured input and output voltages.

  • The leakage energy has to go somewhere. Without a clamp or snubber the turn-off spike rises until something breaks down. A dissipative clamp loses at least the leakage power above, and a clamp that recovers the energy must still be rated to process it [Erickson & Maksimović 2020, Ch. 4].
  • An open-loop flyback must not lose its load. In DCM the output rises as the load is removed (DCM ratio grows as KK falls), and with it the reflected voltage, until the clamp limits the switch voltage.
  • A fixed-duty-ratio flyback from a current-limited source pins its input. Once CCM begins, the input sits at the critical voltage above instead of rising further.
  • Book chapter Converter Circuits (Ch. 6) — R. W. Erickson, D. Maksimović · retrieved 2026-09-23
    How the basic topologies relate, and transformer-isolated versions including the flyback and forward converters.
  • Course Converter Circuits — University of Colorado Boulder (Coursera) · retrieved 2026-09-23
    DCM analysis and the isolated converter circuits, following the same textbook.
  • Lecture notes 6.334 Lecture Notes — D. Perreault, MIT OpenCourseWare · retrieved 2026-09-23
    Chapter-style notes on dc/dc converters, magnetics and isolated converters.
  • Video channel Sam Ben-Yaakov — power electronics videos — S. Ben-Yaakov · retrieved 2026-09-23
    Intuitive, equation-light explanations of converter behaviour.
  1. An ideal CCM flyback with turns ratio 1:n, n=0.5n = 0.5, runs at D=0.5D = 0.5 from 24 V24\,\mathrm{V}. What is its output voltage?

    1. 6 V6\,\mathrm{V}
    2. 12 V12\,\mathrm{V}
    3. 24 V24\,\mathrm{V}
    4. 48 V48\,\mathrm{V}
    Answer and explanation

    Correct answer: B The ratio is nD/(1−D)n D/(1 - D), the buck-boost ratio scaled by the turns ratio: 0.50.5 here, so the output is half the input.

  2. A flyback runs from 48 V48\,\mathrm{V} with n=0.25n = 0.25 and a 12 V12\,\mathrm{V} output (ideal diode). What does the switch block while off, without the leakage spike?

    1. 60 V60\,\mathrm{V}
    2. 96 V96\,\mathrm{V}
    3. 120 V120\,\mathrm{V}
    4. 144 V144\,\mathrm{V}
    Answer and explanation

    Correct answer: B The output voltage appears on the primary divided by nn, which is 48 V48\,\mathrm{V} here, and adds to the input voltage.

  3. In the same flyback, what reverse voltage does the output diode block while the switch is on?

    1. 12 V12\,\mathrm{V}
    2. 24 V24\,\mathrm{V}
    3. 48 V48\,\mathrm{V}
    4. 60 V60\,\mathrm{V}
    Answer and explanation

    Correct answer: B The secondary sees nVgn V_g, which is 12 V12\,\mathrm{V} here, and the diode blocks it on top of the output voltage.

  4. How does the DCM conversion ratio of a flyback depend on the turns ratio, with KK formed from LML_M and the actual load?

    1. It is proportional to nn
    2. It is proportional to 1/n1/n
    3. It does not depend on nn
    4. It is proportional to n2n^2
    Answer and explanation

    Correct answer: C In DCM the energy stored per period in LML_M is delivered to the load whatever the turns ratio, and the ratio is D/KD/\sqrt{K}.

  5. A flyback has 2 μH2\,\mu\mathrm{H} of leakage inductance and turns off 3 A3\,\mathrm{A} at 100 kHz100\,\mathrm{kHz}. At least how much power must a dissipative clamp dissipate?

    1. 0.09 W0.09\,\mathrm{W}
    2. 0.45 W0.45\,\mathrm{W}
    3. 0.9 W0.9\,\mathrm{W}
    4. 1.8 W1.8\,\mathrm{W}
    Answer and explanation

    Correct answer: C The leakage stores half of LlkL_\mathrm{lk} times the square of the current, 9 μJ9\,\mu\mathrm{J} per turn-off, and that happens once per period. A dissipative clamp turns all of it into heat.

  6. A fixed-duty-ratio flyback charges a battery from a current-limited source. The source voltage stops rising at one value. Why?

    1. The source reaches its current limit
    2. At that input voltage the flyback enters CCM, and CCM volt-second balance with a fixed output and duty ratio allows only that input voltage
    3. The clamp starts to conduct
    4. The transformer saturates
    Answer and explanation

    Correct answer: B Below the critical voltage the flyback is in DCM and behaves as a resistor. At the critical voltage CCM begins, and volt-second balance pins the input: the converter becomes a constant-voltage sink.

The numbers in the examples, presets and exercises on this site are synthetic: round teaching values, not data from any real design.