Worked example
Example: Illustrative 36 W off-line flyback. The inputs, in the units selected above:
| Input | Value |
|---|---|
| Lowest input voltage | 100.00 V |
| Highest input voltage | 375.00 V |
| Output voltage | 12.000 V |
| Output diode forward drop | 0.50000 V |
| Turns ratio N_p/N_s | 8.0000 - |
| Output power | 0.036000 kW |
| Switching frequency | 100.00 kHz |
| Efficiency | 85.000 % |
Applying the formula below gives:
| Result | Value |
|---|---|
| Duty cycle at the lowest input | 50.000 % |
| Primary inductance for boundary conduction at full load | 295.14 µH |
| Peak primary current | 1.6941 A |
| Switch voltage at the highest input (before leakage spike) | 475.00 V |
| Reflected output voltage | 100.00 V |
Open this example in the calculator and change any input.
Formula
\(V_R = n(V_o + V_F), \quad D = \frac{V_R}{V_{in} + V_R}, \quad I_{pk} = \frac{2P_{in}}{V_{in}D}, \quad L_p = \frac{V_{in}D}{I_{pk}f_s}\)
Variables
| Symbol | Meaning | SI unit |
|---|---|---|
| \(V_{in,min}\) | Lowest input voltage | V |
| \(V_{in,max}\) | Highest input voltage | V |
| \(V_o\) | Output voltage | V |
| \(V_F\) | Output diode forward drop | V |
| \(n\) | Turns ratio N_p/N_s | - |
| \(P_o\) | Output power | W |
| \(f_s\) | Switching frequency | 1/s |
| \(\eta\) | Efficiency | - |
| \(D\) | Duty cycle at the lowest input | - |
| \(L_p\) | Primary inductance for boundary conduction at full load | H |
| \(I_{pk}\) | Peak primary current | A |
| \(V_{DS}\) | Switch voltage at the highest input (before leakage spike) | V |
| \(V_R\) | Reflected output voltage | V |
Method and standards
Flyback converter.
Where it is used
- Off-line chargers and auxiliary supplies.
- Isolated low-power supplies.
Common mistakes
- Forgetting the diode drop in the reflected voltage.
- Ignoring the leakage spike on the switch.
Assumptions and limits
- Boundary conduction at the lowest input and full load; ideal transformer.
References
- Flyback converter at the conduction boundary
Questions and answers
How do I choose the turns ratio?
So that V_in,max + V_R plus about 30 % spike margin stays below the MOSFET rating, and D at minimum input stays below about 0.5.
Why is the transformer gapped?
A flyback stores energy in the core each cycle; the gap holds the energy without saturating it.
What do the defaults represent?
An illustrative 36 W, 12 V off-line flyback with 100–375 V DC input, 8:1 turns at 100 kHz.
Method and article reviewed by FireCAD engineering on 17 November 2026. Every result is checked against an independent calculation on each release: how we verify our calculators.
Sources
Mohan, Undeland and Robbins, Power Electronics, 3rd ed. (Wiley, 2003)