Flyback converter
Intent
Section titled “Intent”- 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.
Theory
Section titled “Theory”From buck-boost to flyback
Section titled “From buck-boost to flyback”The flyback converter replaces the buck-boost’s inductor by two coupled windings on one core, with turns ratio 1:n, where is the secondary turns divided by the primary turns. The magnetizing inductance , 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]:
- conversion ratio
- duty ratio
- turns ratio, secondary/primary
Assumptions, convention and source
- Assumptions
- ideal (lossless) switches and passive components
- continuous conduction mode (CCM)
- periodic steady state
- small-ripple approximation
- Convention
- ; 1:n transformer with
- Source
- Erickson & Maksimović 2020, Ch. 6 (Converter Circuits)
- Derivation
- step-by-step sympy derivation
- Equation id
flyback.ccm.M· equations.yaml entry
is formed with 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]:
- conversion ratio
- duty ratio
- inductor parameter (CCM vs DCM)
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, ; uses (primary-referred) and the actual load
- Notes
- independent of : the turns ratio only enters 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
CCM currents and ripple
Section titled “CCM currents and ripple”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 , so charge balance on the output capacitor gives the average magnetizing current [Erickson & Maksimović 2020, Ch. 6]:
- dc magnetizing current
- duty ratio
- load resistance
- output voltage
- turns ratio, secondary/primary
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, ; the secondary carries while the diode conducts
- Notes
- with 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, across sets the magnetizing-current ripple, and the output capacitor alone feeds the load, which sets the output ripple:
- magnetizing ripple, half peak-to-peak
- duty ratio
- magnetizing inductance (primary)
- switching period
- input voltage
Assumptions, convention and source
- Assumptions
- ideal (lossless) switches and passive components
- continuous conduction mode (CCM)
- periodic steady state
- Convention
- 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
- output ripple, half peak-to-peak
- capacitance (output capacitor)
- duty ratio
- load resistance
- switching period
- output voltage
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
- 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 and .
Switch and diode stress
Section titled “Switch and diode stress”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 . The switch therefore blocks the input voltage plus this reflected voltage [Erickson & Maksimović 2020, Ch. 6]:
- switch voltage while off
- output voltage
- output-diode forward drop
- input voltage
- turns ratio, secondary/primary
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
- 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 , and the diode blocks it on top of the output voltage:
- diode reverse voltage
- output voltage
- input voltage
- turns ratio, secondary/primary
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 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 [Erickson & Maksimović 2020, Ch. 5]:
- peak current
- duty ratio
- magnetizing inductance (primary)
- input voltage
- switching frequency
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).
Leakage inductance
Section titled “Leakage inductance”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]:
- leakage energy per turn-off
- peak current
- leakage inductance (primary)
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:
- leakage energy times fs
- leakage energy per turn-off
- switching frequency
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.
Fixed duty ratio into a fixed output
Section titled “Fixed duty ratio into a fixed output”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:
- input voltage at the CCM/DCM boundary
- duty ratio
- output voltage
- output-diode forward drop
- turns ratio, secondary/primary
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 the converter is in DCM; a source-driven bus that rises to 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
- switch voltage while off
- duty ratio
- output voltage
- output-diode forward drop
- turns ratio, secondary/primary
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
- Source
- Erickson & Maksimović 2020, Ch. 6 (Converter Circuits); derived here
- Derivation
- step-by-step sympy derivation
- Equation id
flyback.Vds_clamped· equations.yaml entry
Operating modes
Section titled “Operating modes”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].
carries current no current
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.
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.
flyback-ccm, from the site's simulator: the key waveforms with the modes' boundaries , then the circuit in each mode, its current-carrying branches in colour. ▶ Change the values in the simulatorIn 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]:
carries current no current
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.
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.
The magnetizing current is zero (DCM): S and D are both off. LM carries no current. C discharges. The input supplies nothing.
flyback-dcm, from the site's simulator: the key waveforms with the modes' boundaries , then the circuit in each mode, its current-carrying branches in colour. ▶ Change the values in the simulatorWorked example
Section titled “Worked example”Three flyback examples: one in CCM with a resistive load, one in DCM, and one charging a fixed output at a fixed duty ratio.
| Symbol | Value | How it is obtained |
|---|---|---|
| input voltage | 48 V | given |
| turns ratio, secondary/primary | 0.25 | given |
| duty ratio | 0.4 | given |
| switching frequency | 100 kHz | given |
| magnetizing inductance (primary) | 200 µH | given |
| load resistance | 5 Ω | given |
| output-diode forward drop | 0 V | given |
| conversion ratio | 0.167 | Flyback conversion ratio, CCM |
| output voltage | 8 V | Output voltage from the conversion ratio |
| inductor parameter (CCM vs DCM) | 8 | Dimensionless inductor parameter K |
| K at the CCM/DCM boundary | 5.76 | Critical K of the flyback converter |
| switch voltage while off | 80 V | Flyback switch voltage while off (without the leakage spike) |
| diode reverse voltage | 20 V | Flyback output-diode reverse voltage |
Operating mode: CCM (: holds)
| Symbol | Value | How it is obtained |
|---|---|---|
| input voltage | 48 V | given |
| turns ratio, secondary/primary | 0.25 | given |
| duty ratio | 0.3 | given |
| switching frequency | 100 kHz | given |
| magnetizing inductance (primary) | 50 µH | given |
| load resistance | 20 Ω | given |
| output-diode forward drop | 0 V | given |
| leakage inductance (primary) | 1 µH | given |
| inductor parameter (CCM vs DCM) | 0.5 | Dimensionless inductor parameter K |
| K at the CCM/DCM boundary | 7.84 | Critical K of the flyback converter |
| conversion ratio | 0.424 | Flyback conversion ratio, DCM |
| output voltage | 20.4 V | Output voltage from the conversion ratio |
| peak current | 2.88 A | Flyback peak magnetizing current, DCM |
| switch voltage while off | 129 V | Flyback switch voltage while off (without the leakage spike) |
| leakage energy per turn-off | 4.15 µJ | Energy stored in the leakage inductance at turn-off |
| leakage energy times fs | 415 mW | Leakage-energy power |
Operating mode: DCM (: does not hold)
| Symbol | Value | How it is obtained |
|---|---|---|
| output voltage | 12 V | given |
| output-diode forward drop | 500 mV | given |
| duty ratio | 0.3 | given |
| turns ratio, secondary/primary | 0.25 | given |
| input voltage at the CCM/DCM boundary | 117 V | Flyback: input voltage at the CCM/DCM boundary (fixed D, fixed output) |
| switch voltage while off | 167 V | Flyback 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.
Try it
Section titled “Try it”▶ 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 : a smaller raises the reflected voltage and the switch stress. Then open the diode stress equation and sweep again to see the opposite trend.
Bench exercise
Section titled “Bench exercise”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.
Gotchas
Section titled “Gotchas”- 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 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.
Go deeper
Section titled “Go deeper”- Book chapter Converter Circuits (Ch. 6)
How the basic topologies relate, and transformer-isolated versions including the flyback and forward converters. - Course Converter Circuits
DCM analysis and the isolated converter circuits, following the same textbook. - Lecture notes 6.334 Lecture Notes
Chapter-style notes on dc/dc converters, magnetics and isolated converters. - Video channel Sam Ben-Yaakov — power electronics videos
Intuitive, equation-light explanations of converter behaviour.
An ideal CCM flyback with turns ratio 1:n, , runs at from . What is its output voltage?
Answer and explanation
Correct answer: B The ratio is , the buck-boost ratio scaled by the turns ratio: here, so the output is half the input.
A flyback runs from with and a output (ideal diode). What does the switch block while off, without the leakage spike?
Answer and explanation
Correct answer: B The output voltage appears on the primary divided by , which is here, and adds to the input voltage.
In the same flyback, what reverse voltage does the output diode block while the switch is on?
Answer and explanation
Correct answer: B The secondary sees , which is here, and the diode blocks it on top of the output voltage.
How does the DCM conversion ratio of a flyback depend on the turns ratio, with formed from and the actual load?
Answer and explanation
Correct answer: C In DCM the energy stored per period in is delivered to the load whatever the turns ratio, and the ratio is .
A flyback has of leakage inductance and turns off at . At least how much power must a dissipative clamp dissipate?
Answer and explanation
Correct answer: C The leakage stores half of times the square of the current, per turn-off, and that happens once per period. A dissipative clamp turns all of it into heat.
A fixed-duty-ratio flyback charges a battery from a current-limited source. The source voltage stops rising at one value. Why?
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.