Flyback Transformer Design and Calculator Overview
The Flyback Transformer Design and Calculator helps estimate key parameters for a discontinuous conduction mode flyback converter. It can be used to calculate values such as input power, turns ratio, charge period, discharge period, dead time, primary inductance, primary turns, secondary turns, peak primary current, RMS winding current, wire diameter, and air gap.
This tool is useful during early flyback power supply design, especially when selecting transformer turns, checking current stress, and estimating the magnetic design before building a prototype. A flyback transformer is not a simple line-frequency transformer; it is a coupled inductor that stores energy during one part of the switching cycle and delivers that energy to the output during another part of the cycle.
Use this calculator as a first-pass design aid. Final transformer design should be verified with the controller datasheet, magnetic core data, insulation requirements, temperature rise, leakage inductance, winding losses, EMI behavior, and real hardware testing.

What Is a Flyback Transformer?
A flyback transformer is a gapped-core coupled inductor used in a flyback converter. During the switch on-time, current rises in the primary winding and energy is stored in the magnetic field of the core gap. During the switch off-time, the stored energy is transferred to the secondary winding and delivered to the output.
This is different from a forward converter. In a forward converter, energy is transferred from primary to secondary while the switch is on. In a flyback converter, the secondary winding normally delivers energy when the primary switch is off. The winding dot orientation in the schematic helps show this operating relationship.
What This Calculator Can Calculate
Input power, based on output power and estimated efficiency.
Primary-to-secondary turns ratio, used to set reflected voltage and output relationship.
Charge period, the switch on-time when the transformer stores energy.
Discharge period, the interval when stored energy is delivered to the secondary side.
Dead time, the remaining portion of the switching cycle.
Primary inductance, which determines magnetizing current rise and stored energy.
Primary and secondary turns, used for winding design.
Peak primary current, required for switch, transformer, and current-sense design.
RMS winding current, used for copper loss and wire-size estimates.
Wire diameter and air gap, used for practical magnetic construction.
Basic Flyback Operation
A flyback converter has two main energy states:
Switch on: the input voltage is applied to the primary winding, primary current rises, and energy is stored in the transformer core gap. The secondary diode is reverse-biased, so the output is supplied mainly by the output capacitor.
Switch off: the primary switch opens, the magnetic field collapses, winding polarity reverses, the secondary diode conducts, and stored energy is transferred to the output.
In discontinuous conduction mode, the magnetizing current returns to zero before the next switching cycle begins. This makes the design equations simpler, but peak current and RMS current can be higher than in continuous conduction mode.
Key Input Parameters
| Input | Meaning |
|---|---|
| Input voltage range | The minimum and maximum supply voltage that the converter must operate from. |
| Output voltage | The regulated voltage required at the secondary output. |
| Output current | The maximum load current required by the application. |
| Switching frequency | The operating frequency of the flyback controller. |
| Efficiency estimate | An estimated efficiency used to calculate input power and current stress. |
| Diode voltage drop | The forward voltage of the secondary rectifier, used in reflected voltage and duty-cycle calculations. |
| Maximum duty cycle | The largest allowed switch on-time ratio for the selected controller and design condition. |
| Core and winding data | Magnetic core area, window area, flux density limit, current density, and winding constraints used for practical transformer design. |
Important Output Parameters
| Output | Why It Matters |
|---|---|
| Turns ratio | Affects reflected voltage, duty cycle, MOSFET stress, and secondary diode stress. |
| Primary inductance | Controls how much energy is stored each cycle and how quickly current rises. |
| Peak primary current | Determines MOSFET current rating, sense resistor sizing, transformer saturation margin, and RMS loss. |
| Primary and secondary turns | Used to wind the transformer and maintain the required voltage transformation. |
| Wire gauge or diameter | Helps estimate copper loss, current density, and whether the winding fits in the available window area. |
| Air gap | Stores energy and prevents core saturation in the flyback transformer. |
Core Flyback Design Equations
For a basic isolated flyback design, output power is:
Pout = Vout * Iout
Input power can be estimated from efficiency:
Pin = Pout / Efficiency
In discontinuous conduction mode, the energy stored in the primary inductance during each switching cycle is:
E = 0.5 * Lp * Ipk2
The delivered power is related to stored energy and switching frequency:
Pin = E * fsw
Combining the two relationships gives a common first-pass expression for primary inductance:
Lp = 2 * Pin / (Ipk2 * fsw)
These formulas are simplified. Real designs must include losses, leakage inductance, snubber loss, rectifier loss, winding resistance, core loss, and controller-specific limits.
Duty Cycle and Turns Ratio
The turns ratio affects reflected voltage, duty cycle, and voltage stress on the primary switch. A simplified flyback relationship is:
D = (Nps * (Vout + Vd)) / (Vin + Nps * (Vout + Vd))
Where:
D = duty cycle
Nps = primary-to-secondary turns ratio
Vout = output voltage
Vd = secondary rectifier voltage drop
Vin = input voltage
A higher reflected voltage can reduce duty cycle but increase MOSFET voltage stress. A lower reflected voltage can reduce switch stress but may increase duty cycle and current stress. The best choice depends on the input range, controller limits, switch rating, diode rating, transformer design, and efficiency target.
Example Design Flow
Define the input voltage range, output voltage, output current, isolation requirement, and target efficiency.
Choose the switching frequency based on controller capability, transformer size, efficiency, and EMI constraints.
Select an initial reflected voltage and primary-to-secondary turns ratio.
Check duty cycle at minimum and maximum input voltage.
Estimate input power and peak primary current.
Calculate primary inductance for the selected DCM operating point.
Select a magnetic core that can store the required energy without saturation.
Calculate primary and secondary turns, then check flux density and winding window fill.
Estimate RMS currents and choose practical wire sizes.
Verify MOSFET voltage stress, diode reverse voltage, snubber requirements, and transformer temperature rise.
Flyback Transformer vs. Forward Transformer
| Feature | Flyback Transformer | Forward Transformer |
|---|---|---|
| Energy transfer | Stores energy during switch on-time and delivers it during switch off-time. | Transfers energy to the secondary while the switch is on. |
| Core gap | Requires a gap because the magnetic element stores energy. | Usually designed mainly for energy transfer, not bulk energy storage. |
| Output inductor | Often does not need a separate output inductor. | Usually requires an output filter inductor. |
| Complexity | Simple and cost-effective for many low- to medium-power isolated supplies. | Often better suited as power level increases. |
| Stress | Can have high peak and RMS currents, plus leakage-induced voltage spikes. | Can have lower ripple and different reset requirements. |
Applications of Flyback Transformers
Flyback transformers are widely used in isolated and non-isolated power supplies where compact size and flexible voltage conversion are important. Common applications include:
AC-DC adapters and auxiliary power supplies
DC-DC isolated converters
Battery chargers
LED lighting power supplies
Power over Ethernet supplies
Industrial and telecom auxiliary rails
Bias supplies for gate drivers and control circuits
Capacitor charging and high-voltage low-power supplies
Practical Design Notes
Choose the transformer core based on required energy storage, flux density limit, window area, thermal rise, and insulation requirements.
Keep the peak flux density below the core material limit across temperature and worst-case input conditions.
Check inductor saturation margin at maximum peak current.
Estimate copper loss from RMS winding currents, not only peak current.
Reduce leakage inductance through winding arrangement, but maintain required safety spacing and insulation.
Use a snubber or clamp to manage voltage spikes caused by leakage inductance.
Check diode reverse voltage and current ratings on every secondary output.
Verify transformer temperature rise under maximum load and worst-case ambient conditions.
Follow safety standards for creepage, clearance, insulation system, and isolation testing when the design connects to hazardous voltages.
Common Mistakes to Avoid
Treating a flyback transformer like a standard transformer instead of a coupled inductor.
Ignoring the air gap and core energy storage requirement.
Choosing turns ratio without checking MOSFET voltage stress and diode reverse voltage.
Using average current instead of RMS current for winding loss estimates.
Ignoring leakage inductance and forgetting the snubber or clamp design.
Choosing wire diameter without checking skin effect, proximity effect, winding fill, and temperature rise.
Assuming the calculator result is safe for mains operation without isolation and safety review.
Skipping prototype testing for load transients, EMI, thermal rise, and short-circuit behavior.
When This Calculator Is Not Enough
This calculator is best for first-pass DCM flyback transformer estimates. More detailed design work is required for offline AC input supplies, high-voltage outputs, multiple isolated outputs, strict regulation accuracy, very low standby power, high power density, safety-certified products, or converters that must pass EMI compliance.
For final design, use the controller manufacturer's design guide, transformer core datasheet, winding construction rules, safety standards, SPICE or power-stage simulation, thermal measurements, and oscilloscope verification of switch-node and winding waveforms.
Helpful Video Reference
The original page included a video reference for flyback converter operation and voltage equations. The old Flash embed has been replaced with a normal link:
Flyback Converter Operation and Voltage Equation
Frequently Asked Questions
Is a flyback transformer the same as a normal transformer?
No. A flyback transformer is a coupled inductor with a gapped core. It stores energy during part of the switching cycle and releases that energy during another part of the cycle.
Why does a flyback transformer need an air gap?
The air gap allows the magnetic structure to store energy without saturating too easily. In a flyback converter, much of the useful energy storage occurs in the gap.
What is discontinuous conduction mode?
Discontinuous conduction mode means the magnetizing current falls to zero before the next switching cycle begins. It simplifies some calculations but can increase peak and RMS current stress.
Why is leakage inductance important?
Leakage inductance stores energy that does not transfer cleanly to the output. It can create voltage spikes on the switch and may require a snubber or clamp circuit.
Can a flyback converter provide multiple outputs?
Yes. A flyback transformer can include multiple secondary windings. However, cross-regulation between outputs depends on winding arrangement, load balance, rectifier behavior, and feedback method.
Can I use this calculator for mains-powered designs?
The calculator can help with early estimates, but mains-powered designs require isolation, creepage, clearance, insulation, safety standards, EMI control, and qualified engineering review.


Product
Brand
Articles
Tools










