🔬 1. Introduction to Flyback Magnetics Design

Designing a custom flyback transformer is the most critical phase in building isolated switch-mode power supplies (SMPS). While standard voltage drops are calculated using our Ohm's Law Calculator or evaluated for continuous load currents with our LED Resistor Calculator, a flyback transformer must be custom-wound to store and release magnetic energy packets efficiently.

Unlike conventional AC transformers where power transfers instantaneously between primary and secondary windings, a flyback transformer acts as a gapped coupled energy storage inductor. During primary switch conduction, energy accumulates in the core air gap. When the primary MOSFET opens, dot polarity flips, transferring energy to secondary output filter capacitors.

Designing custom magnetics requires selecting proper core geometry (e.g., EE25, EFD20, or PQ26) while controlling primary peak current and flux density (ΔB). Designers evaluate DC power supply backup capacity using our Battery Runtime Calculator and regulate output feedback rails using our Adjustable Voltage Regulator Calculator. Precise turns calculations ensure stable converter operation.

⚙️ 2. Ferrite Core Selection & Area Product (WaAc)

Selecting the appropriate ferrite core size depends on power throughput, switching frequency (f_sw), and winding window area. The Area Product method (WaAc = Winding Window Area × Effective Core Area) determines the minimum core volume required to prevent thermal overheating.

Calculating wire gauge diameter prevents high-frequency AC skin effect losses from causing excessive primary copper dissipation. Engineers calculate conductor sizing using our Wire Size Calculator and verify line drop using our Electrical Wire & Cable Voltage Drop Calculator.

📐 3. Primary Turns (Np) & Flux Density (ΔB) Formulas

Primary turn count (Np) is calculated to enforce a safe working magnetic flux density swing (ΔB ≈ 0.20 to 0.25 Tesla):

PRIMARY TURNS (Np) FORMULA
Np = (Vin_min × Ton_max) / (ΔB × Ae)
Vin_min = Minimum DC Input Voltage | Ton_max = Max Switch ON-time (sec) | ΔB = Flux Density Swing (Tesla) | Ae = Core Area (m²)

Once primary turns Np are determined, secondary turns (Ns) are calculated using the required secondary-to-primary voltage ratio:

SECONDARY TURNS (Ns) FORMULA
Ns = Np × [ (Vout + Vdiode) × (1 - D_max) ] / [ Vin_min × D_max ]
Vdiode = Output Rectifier Diode Drop (~0.7V) | D_max = Maximum Duty Cycle (~0.45)

📊 4. Core Size Selection (EE, EF, PQ, EFD) Reference Table

The reference guide below shows standard manganese-zinc (MnZn) power ferrite core geometries suited for flyback power levels at 100 kHz:

Core Type & Size Effective Area Ae (mm²) Window Area Wa (mm²) Typical Power Rating @ 100 kHz Best Application
EE16 / EFD15 19.2 mm² 16.5 mm² 3W - 7W IoT sensors, standby auxiliary supplies
EE20 / EFD20 31.0 mm² 26.8 mm² 10W - 15W Mobile phone chargers, smart meters
EE25 / EF25 52.0 mm² 42.5 mm² 20W - 35W Set-top boxes, LED driver power supplies
PQ26/20 113.0 mm² 44.0 mm² 45W - 65W Laptop power adapters, industrial monitors
PQ32/30 161.0 mm² 102.0 mm² 75W - 120W High-power DIN-rail industrial supplies

⚡ 5. Physical Air Gap Calculation (lg) & Energy Storage

To store magnetic energy (E = 0.5 × L_pri × I_pri_peak²) without core saturation, a physical air gap length (lg, in mm) is ground into the center leg of the ferrite core:

Engineers evaluate thermal power dissipation during operation using our Heat Sink Thermal Resistance Calculator and decode package markings using our SMD Resistor Code Calculator.

⚡ Air Gap Energy Rule: Nearly 90% of total magnetic energy is stored within the physical air gap rather than the ferrite material! Without a center leg air gap, an EE core will saturate at a fraction of its intended peak current.

🔌 6. Secondary Turns (Ns) & Auxiliary Windings

In addition to primary (Np) and secondary (Ns) power windings, flyback transformers feature an auxiliary winding (N_aux) to supply 12V DC power to the primary PWM control IC once startup is complete.

✏️ 7. Compact Flyback Converter Schematic Diagram

Below is a custom schematic illustrating a flyback transformer power supply featuring input source Vs, primary winding Np with top dot polarity, ferrite core, MOSFET switch SW, secondary winding Ns with bottom dot polarity, diode D, output capacitor C, and output Vo:

Vs Np SW Ns D C Vo

📝 8. Step-by-Step Practical Design Example (EE25 Core)

Goal: Calculate primary turns Np and secondary turns Ns for a 20W flyback transformer (Vout = 12V DC, Iout = 1.67A) operating on EE25 core (Ae = 52 mm² = 52 × 10⁻⁶ m²) with Vin_min = 100V DC, f_sw = 100 kHz, Ton_max = 4.5 µs, and working ΔB = 0.22 Tesla.

  • Step 1: Calculate Primary Turns (Np)
    Np = (100V × 4.5×10⁻⁶s) / (0.22 T × 52×10⁻⁶ m²) = 450×10⁻⁶ / 11.44×10⁻⁶ = 39.33 Turns (Select Np = 40 Turns)
  • Step 2: Calculate Secondary Turns (Ns)
    Ns = Np × [ (Vout + Vdiode) × (1 - D) ] / [ Vin_min × D ] = 40 × [ (12 + 0.7) × 0.55 ] / [ 100 × 0.45 ] = 40 × 0.155 = 6.2 Turns (Select Ns = 6 Turns)
  • Step 3: Calculate Center Air Gap Length (lg)
    For L_primary = 360 μH: lg = (4π×10⁻⁷ × 40² × 52×10⁻⁶) / (360×10⁻⁶) = 0.289 mm Center Air Gap.

💻 9. Winding Window Area & Wire Gauge Sizing (CMA)

Selecting copper magnet wire wire gauges based on Circular Mil Area (CMA ≈ 500 CMA/Ampere) prevents copper I²R overheating. Engineers review microcontroller pinouts using our Arduino Board Pinout and our Raspberry Pi Pinout when driving PWM controllers.

Multi-Strand Parallel Windings

To overcome high-frequency skin effect at 100 kHz, use multiple parallel strands of thinner wire (e.g., 3 strands of 28 AWG instead of 1 thick 20 AWG strand).

Bobbin Fill Factor Verification

Ensure total copper winding area occupies less than 50% of the bobbin window area (Wa) to leave room for margin tape and inter-winding insulation layers.

🌡️ 10. Interleaved Windings & Leakage Inductance Reduction

Primary-to-secondary leakage inductance causes destructive MOSFET voltage spikes during switch OFF-time. Designers analyze PCB trace impedance using our Microstrip Impedance Calculator and verify line resistance with our PCB Trace Resistance Calculator.

💡 Interleaving Technique: Split the primary winding into two equal halves (Pri_half1 - Sec - Pri_half2). Sandwiching the secondary winding in the middle reduces primary leakage inductance by up to 50%, improving power supply efficiency!

❓ 11. Frequently Asked Questions (10 Detailed Answers)

1. How does a flyback transformer differ from an AC transformer? +
A flyback transformer is a gapped coupled energy storage inductor. It stores energy during primary switch ON-time and releases it to the load during switch OFF-time.
2. What is the primary turns (Np) formula? +
The primary turns formula is Np = (Vin_min × Ton_max) / (ΔB × Ae), where ΔB is working flux density swing and Ae is effective core area.
3. Why is an air gap physically required in a flyback core? +
An air gap lowers core permeability, storing nearly 90% of magnetic field energy (E = 0.5 L I²) in the air gap to prevent ferrite core saturation.
4. How is center leg air gap length (lg) calculated? +
Air gap length is lg = (μ_0 × Np² × Ae) / L_primary, where μ_0 is 4π × 10⁻⁷ H/m.
5. What is safe working flux density (ΔB) for ferrite cores? +
While power ferrites saturate around 0.35 Tesla, designers limit working flux density (ΔB) to 0.20 - 0.25 Tesla for thermal safety margins.
6. How is secondary turn count (Ns) determined? +
Secondary turns are calculated using Ns = Np × [ (Vout + Vdiode) × (1 - D_max) ] / [ Vin_min × D_max ].
7. What happens if an undersized ferrite core is chosen? +
An undersized core lacks sufficient winding window area (Wa) or core area (Ae), leading to bobbin wire overflow and severe thermal overheating.
8. Why is Litz wire used for high-frequency transformer windings? +
Litz wire uses individually insulated copper strands to minimize high-frequency AC skin depth losses above 100 kHz.
9. How does primary leakage inductance affect primary MOSFETs? +
Uncoupled primary leakage inductance creates high-voltage spikes during switch turn-off, requiring an RCD snubber clamp to protect the MOSFET.
10. What is interleaved transformer winding? +
Interleaving splits the primary winding into two halves with the secondary sandwiched in between, reducing leakage inductance by up to 50%.

🛠️ 13. Verified Engineering Calculators

Try The Interactive Flyback Transformer Design Tool

Calculate primary turns Np, secondary turns Ns, air gap length lg, and core size selections in real time.

Launch Flyback Transformer Design Calculator

Need another electronics calculation?

Explore CalcBoy's extensive suite of over 300+ free online engineering calculators, pinout guides, and circuit simulators.

Browse 300+ Engineering Calculators