Flyback Transformer Design and Calculator

Flyback Tranformer Design and Calculator, namely Flyback Switch Mode Regulator Calculator, is a online calculator for electrical designers. With this Online Calculation tool, you are able to compute several parameters so as to design the flyback tranformer circuit, such as flyback turns ratio, charge/discharge period, primary inductance, etc.

Power Supply Specification:

Frequency, F:

KHz

T:

uS
Diode Voltage Drop, Vd: V
Transistor Voltage Drop, Vtran: V
Efficiency: %
Max Transistor Voltage, VDSMAX: V
AL=L/N2: uH/Turns^2
Voltage Primary, Vin: V

Voltage Out 1, Vo1:

(Note that this must be positive, and feed back is derived from this winding)

V

Current Out 1, Io1

A

P1:

W
Optional Secondary Windings:
Voltage Out 2, Vo2: V

Current Out 2, Io2:

A

P2:

W
Voltage Out 3, Vo3: V

Current Out 3, Io3:

A

P3:

W
Voltage Out 4, Vo4: V

Current Out 4, Io4:

A

P4:

W
Transformer Result:
Power In,Pin: W
Turns Ratio Primary to Secondary Winding 1, Nps1:
Charge Period, Tch: uS
Discharge Period, Tdis: uS
Dead Time Period, Tdt: uS
Primary Inductance, L: uH
Turns Primary, Np: Turns
Turns Secondary 1, Ns1: Turns
Turns Secondary 2, Ns2: Turns
Turns Secondary 3, Ns3: Turns
Turns Secondary 4, Ns4: Turns
Peak Primary Current, Ip: A
Primary RMS Current , Ipri(rms): A
Primary Wire Diameter, Dp: mils
Primary Wire Gauge, AWGp: AWG
Introduction

in this video i explained the calculation procedure of a discontinuous flyback transformer design, it is a chain of videos to design the DCM flyback smps discontinuous current mode switch mode power supply. in this video we will learn:- 1. how to select ferrite core for dcm high frequency transformer 2. how to select ferrite core material 3. how to calculate current density 4. how to calculate wire bare area 5. how to calculate / select proper wire gauge size for transformer winding  6. how to calculate wire diameter 7. how to calculate transformer primary secondary turns 8. what is core geometry 9. core selection using core geometry approach 10. how to calculate core losses, copper losses 11. temperature rise in ferrite core 12. peak & rms current in transformer winding 13. calculate gap length in ungapped ferrite core 14. calculate maximum flux density, operating flux density 15. calculate fringing flux factor  16. calculate energy handling capability of ferrite core 17. calculate window fill factor 18 how to calculate bulk capcitor 19 how to calculate inductance inductor value in winding

Flyback Transformer Design Calculation | High Frequency SMPS Transformer Design

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.

Flyback transformer design and calculation guide

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

InputMeaning
Input voltage rangeThe minimum and maximum supply voltage that the converter must operate from.
Output voltageThe regulated voltage required at the secondary output.
Output currentThe maximum load current required by the application.
Switching frequencyThe operating frequency of the flyback controller.
Efficiency estimateAn estimated efficiency used to calculate input power and current stress.
Diode voltage dropThe forward voltage of the secondary rectifier, used in reflected voltage and duty-cycle calculations.
Maximum duty cycleThe largest allowed switch on-time ratio for the selected controller and design condition.
Core and winding dataMagnetic core area, window area, flux density limit, current density, and winding constraints used for practical transformer design.

Important Output Parameters

OutputWhy It Matters
Turns ratioAffects reflected voltage, duty cycle, MOSFET stress, and secondary diode stress.
Primary inductanceControls how much energy is stored each cycle and how quickly current rises.
Peak primary currentDetermines MOSFET current rating, sense resistor sizing, transformer saturation margin, and RMS loss.
Primary and secondary turnsUsed to wind the transformer and maintain the required voltage transformation.
Wire gauge or diameterHelps estimate copper loss, current density, and whether the winding fits in the available window area.
Air gapStores 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

  1. Define the input voltage range, output voltage, output current, isolation requirement, and target efficiency.

  2. Choose the switching frequency based on controller capability, transformer size, efficiency, and EMI constraints.

  3. Select an initial reflected voltage and primary-to-secondary turns ratio.

  4. Check duty cycle at minimum and maximum input voltage.

  5. Estimate input power and peak primary current.

  6. Calculate primary inductance for the selected DCM operating point.

  7. Select a magnetic core that can store the required energy without saturation.

  8. Calculate primary and secondary turns, then check flux density and winding window fill.

  9. Estimate RMS currents and choose practical wire sizes.

  10. Verify MOSFET voltage stress, diode reverse voltage, snubber requirements, and transformer temperature rise.

Flyback Transformer vs. Forward Transformer

FeatureFlyback TransformerForward Transformer
Energy transferStores energy during switch on-time and delivers it during switch off-time.Transfers energy to the secondary while the switch is on.
Core gapRequires a gap because the magnetic element stores energy.Usually designed mainly for energy transfer, not bulk energy storage.
Output inductorOften does not need a separate output inductor.Usually requires an output filter inductor.
ComplexitySimple and cost-effective for many low- to medium-power isolated supplies.Often better suited as power level increases.
StressCan 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.

Related Online Calculation Tools

Frequently Asked Questions

What parameters can be calculated using a flyback transformer design tool?

The tool computes key parameters like turns ratio (Nps1), primary inductance (L), charge/discharge periods (Tch/Tdis), dead time (Tdt), peak/RMS currents, wire gauge (AWG), and transformer turns (Np, Ns1-4) based on input specifications such as input/output voltages, currents, frequency, and efficiency .

How is the duty cycle calculated in a flyback converter?

The duty cycle (D) depends on the input/output voltages and the transformer’s turns ratio (N). For discontinuous mode (DCM), it follows: D = \frac{(V_{out} + V_{rect}) \cdot N}{(V_{out} + V_{rect}) \cdot N + V_{in}}} \cdot N where  V r e c t V  rect ​   is the diode voltage drop. This ensures energy transfer during the switching cycle .

Why use an online flyback transformer design tool?

These tools automate complex calculations (e.g., inductance, peak currents, wire sizing) and optimize parameters like core selection and efficiency. They reduce manual errors and accelerate prototyping, especially for DCM/CCM designs and multi-output configurations .
Hot products

ImagePart NumberManufacturerCategoryPackage/CaseDescriptionPriceQuantityBuy/Quote
BLM18PG121SN1DBLM18PG121SN1DMurata ElectronicsFerrite Beads and Chips0603 (1608 Metric)MURATA - BLM18PG121SN1D - Ferrite Bead, 0603 [1608 Metric], 120 ohm, 2 A, BLM18P Series, 0.05 ohm, ± 25%-

In stock : 355131

Minimum: 1

AD9364BBCZAD9364BBCZAnalog Devices Inc.RF Transceiver ICs144-LFBGA, CSPBGARF Transceiver 1.3V 144-Pin CSP-BGA Tray-

In stock

Minimum: 1

CY62256LL-70SNXCCY62256LL-70SNXCCypress Semiconductor CorpMemory28-SOIC (0.295, 7.50mm Width)IC SRAM 256K PARALLEL 28SOIC-

In stock : 305

Minimum: 1

M24C16-MN6M24C16-MN6STMicroelectronicsMemory8-SOIC (0.154, 3.90mm Width)IC EEPROM 16K I2C 400KHZ 8SO-

In stock : 98

Minimum: 1

MPZ2012S102AT000MPZ2012S102AT000TDK CorporationFerrite Beads and Chips0805 (2012 Metric)TDK - MPZ2012S102AT000 - FERRITE BEAD, 0.15OHM, 1.5A, 0805
  • 1:$0.125847
  • 10:$0.118724
  • 100:$0.112004
  • 500:$0.105664

In stock : 93850

Minimum: 1

SE2537L-RSE2537L-RSkyworks Solutions Inc.RF Amplifiers16-VFQFN Exposed PadRF Amplifier 5GHz Gain 30 dB 3.3Volt -10C 85C-

In stock : 10000

Minimum: 1

CYBL10162-56LQXICYBL10162-56LQXICypress Semiconductor CorpRF Transceiver ICs56-UFQFN Exposed PadMCU 32-Bit CYBL10X6X ARM Cortex M0 RISC 128KB Flash 1.8V/2.5V/3.3V/5V 56-Pin QFN EP Tray-

In stock : 48

Minimum: 1

SKY81294-14-001SKY81294-14-001Skyworks Solutions Inc.PMIC - LED Drivers9-BGA, WLCSPIC LED FLASH DVR 1.2V 9CSP
  • 1:$0.465667
  • 10:$0.439309
  • 100:$0.414442
  • 500:$0.390983

In stock : 22794

Minimum: 1

HSMS-282P-TR1GHSMS-282P-TR1GBroadcom LimitedDiodes - RF6-TSSOP, SC-88, SOT-363Diode Schottky 15V 6-Pin SOT-363 T/R-

In stock

Minimum: 1

IS61LV12816L-8TLIS61LV12816L-8TLISSI, Integrated Silicon Solution IncMemory44-TSOP (0.400, 10.16mm Width)SRAM Chip Async Single 3.3V 2M-bit 128K x 16 8ns 44-Pin TSOP-II-

In stock : 15

Minimum: 1

AT25DF161-SH-TAT25DF161-SH-TAdesto TechnologiesMemory8-SOIC (0.209, 5.30mm Width)Flash Memory 16M, 2.7V, 100Mhz Serial Flash-

In stock

Minimum: 1

80HCPS1432CRM80HCPS1432CRMRenesas Electronics America Inc.Specialized ICs576-BBGA, FCBGAIC SER RAPIDIO SWITCH 576FCBGA-

In stock

Minimum: 1

SZNUP3105LT1GSZNUP3105LT1GON SemiconductorTVS - DiodesTO-236-3, SC-59, SOT-23-3TVS DIODE 32V 66V SOT23-3-

In stock : 1000

Minimum: 1

DS1230AB-200INDDS1230AB-200INDMaxim IntegratedMemory28-DIP Module (0.600, 15.24mm)IC NVSRAM 256K PARALLEL 28EDIP-

In stock

Minimum: 1

STK17TA8-RF45ISTK17TA8-RF45ICypress Semiconductor CorpMemory48-BSSOP (0.295, 7.50mm Width)IC NVSRAM 1M PARALLEL 48SSOP-

In stock

Minimum: 1

ALT6702RM45Q7ALT6702RM45Q7Skyworks Solutions Inc.RF Amplifiers-IC RF AMP CELLULAR SMD-

In stock

Minimum: 1

SI8261BBD-C-ISSI8261BBD-C-ISSilicon LabsIsolators - Gate Drivers6-SOIC (0.295, 7.50mm Width)4A Gate Driver Capacitive Coupling 5000Vrms 1 Channel 6-SDIP
  • 1:$7.591286
  • 10:$7.161591
  • 100:$6.756218
  • 500:$6.373790

In stock : 2191

Minimum: 1

SI8261BAD-C-ISSI8261BAD-C-ISSilicon LabsIsolators - Gate Drivers6-SOIC (0.295, 7.50mm Width)Gate Drivers 5kV Opto input Sgl channel 4.0A driver
  • 1:$4.576037
  • 10:$4.317016
  • 100:$4.072657
  • 500:$3.842129

In stock : 23

Minimum: 1

CSR8510A06-ICXR-RCSR8510A06-ICXR-RQualcommRF Transceiver ICs6-XFBGAIC RF TXRX BLUETOOTH 6XFBGA-

In stock

Minimum: 1

SZNUP4114UCLW1T2GSZNUP4114UCLW1T2GON SemiconductorTVS - Diodes6-TSSOP, SC-88, SOT-363TVS DIODE 5.5V 10V SC88
  • 1:$0.624585
  • 10:$0.589231
  • 100:$0.555878
  • 500:$0.524414

In stock : 155000

Minimum: 1