SchematicsHub.com

Engineering reference hub for SMPS, magnetics and high-voltage design.

Flyback Transformer Design Guide

Imagine a single component that stores energy, switches it on and off, and outputs a high-voltage pulse — all while fitting on a PCB. That component is the flyback transformer, the silent powerhouse behind CRTs, modern LED drivers and many offline/isolated power supplies.

Whether you are a seasoned power-supply engineer or a hobbyist building high-voltage LED drivers, mastering flyback transformer design is essential. This guide walks through the critical steps — from core selection and turns calculation to insulation, thermal management and testing — so you can build efficient, reliable and safe flyback converters.

Flyback transformers and ferrite cores

1. Fundamentals of Flyback Transformers

A flyback transformer is actually more like a coupled inductor: it stores energy in its magnetic core during the switch on-time and transfers that energy to the output during the off-time.

  • Energy storage: takes place in the magnetic field of the core, not in the copper.
  • Switching mode: the primary is driven by a transistor; the secondary delivers energy only when the primary switch is off.
  • Applications: CRT tube supplies, TV/monitor PSUs, LED drivers, offline chargers and general DC-DC converters with isolation.

Deepen your magnetics knowledge (Amazon)

2. Core Selection

Core selection is the first decisive design step. It defines how much energy can be stored, what losses you get at a given frequency and how big the transformer will be.

Core type Typical use Pros Cons
Ferrite (MnZn) 10 kHz – 1 MHz Low core loss, high μ Saturates at relatively low B (≈ 0.3–0.4 T)
Ferrite (NiZn) > 1 MHz Higher usable frequency More expensive, often smaller catalog choice
E-core / EE, EF Offline flyback, LED drivers Easy bobbin winding, good isolation distances More leakage than toroids
Toroid Low-EMI designs Low leakage, compact Harder to wind, tricky isolation

Key core parameters:

  • Saturation flux density Bsat: sets the limit for peak flux and stored energy.
  • Core loss Pcore: must be kept within thermal budget at chosen frequency and flux swing.
  • Effective cross-section Ae and volume: determine number of turns and how much copper fits.

3. Winding Design

3.1 Primary and secondary turns

The turns ratio directly sets the relationship between primary and secondary voltages. In flyback converters, the exact effective ratio also depends on duty cycle and leakage, but the basic rule still applies:

Vout ≈ (Ns / Np) · (Vin · D / (1 − D))

Typical starting points:

  • Primary turns: often 10–30 turns for high-frequency flyback (depending on core size and Vin).
  • Secondary turns: set based on desired Vout plus headroom for rectifier and leakage spikes.

3.2 Wire gauge and insulation

Wire diameter is chosen from RMS current and allowable temperature rise. Use datasheet tables or conservative current density guidelines (e.g., 3–6 A/mm² for continuous operation).

  • Primary: sized for input current at full power and worst-case line.
  • Secondary: sized for output current plus ripple.
  • Insulation: Class B (130 °C) or Class F/H (155–180 °C) for high-power designs.
  • Turn spacing: 0.1–0.3 mm; enough to avoid shorts but not waste core window area.

3.3 Air gap

Flyback transformers require a deliberate air gap to store energy and prevent saturation. The gap increases magnetic reluctance and flattens the B-H curve.

  • Typical gaps: 0.1–0.5 mm for small low-power designs; larger for higher energy storage.
  • Gap can be in the center leg or distributed (multiple small gaps).
  • Always re-calculate inductance L after gapping and confirm with measurement.

Tools for winding and prototyping

4. Turns Ratio and Voltage Calculations

As a starting approximation, primary turns Np can be estimated from max primary voltage Vp, allowed flux swing ΔB and core cross-section Ae:

Np ≈ Vp / (4.44 · f · ΔB · Ae)

where:

  • Vp — peak primary voltage
  • f — switching frequency
  • ΔB — usable flux swing (below Bsat)
  • Ae — effective core cross-section

The basic turns ratio:

Ns / Np ≈ Vs / Vp

For flyback, the effective output voltage is also a function of duty cycle D:

Vs ≈ Vp · D · (Ns / Np) / (1 − D)

Use this to iterate D, Np and Ns until you hit the desired Vout, ripple and duty-cycle range across line/load conditions.

5. Insulation and Safety

Flyback transformers in offline or high-voltage designs must meet safety standards (e.g. IEC, UL). Pay attention to:

  • Insulation system: basic vs. reinforced, tape type, triple-insulated wire for high-side windings.
  • Creepage and clearance: follow IPC-2221 and safety standards for required distances between primary and secondary.
  • Layering: use margins, tape and split bobbins to maintain separation.
  • Over-voltage protection: snubber networks, clamp diodes or RCD clamps to limit spikes.

As a rule of thumb, include at least 20–30 % safety margin in dielectric strength and creepage/clearance compared to minimum required values.

📦 Kapton tape, margin tape and triple-insulated wire for safety-compliant flyback transformers →

6. Thermal Management

Total transformer losses are the sum of core loss and copper loss:

  • Core loss Pcore: taken from manufacturer loss curves vs. frequency and flux.
  • Copper loss Pcu: I²R loss in each winding, including skin/proximity effects at high frequency.
Loss type Calculation Mitigation
Core loss Pcore From core datasheet charts (P vs. f and ΔB) Lower ΔB, lower f, choose better material, add heatsink
Copper loss Pcu P = I_RMS² · R for each winding Thicker wire, parallel strands, litz wire, shorter path
Conduction / contacts Connector and lead resistance Use low-resistance terminals, solid solder joints

Cooling options:

  • Heatsink attached to core or clamp frame
  • Thermal vias and copper pours under transformer pads
  • Forced airflow or smart venting of enclosure

7. Testing and Troubleshooting

Typical symptoms and what they mean:

Symptom Likely cause Diagnostic tool Fix
Output voltage too low Core saturation, wrong turns ratio, excessive leakage Oscilloscope, multimeter Adjust air gap, re-calculate turns, improve winding
Excessive ripple Low duty cycle, insufficient output capacitance, poor snubber Oscilloscope Increase duty cycle margin, add/upgrade snubber and capacitors
High transformer temperature High copper loss, core loss or both IR thermometer, thermal camera Thicker wire, fewer turns, better core, improved cooling
Audible noise Magnetostriction, mechanical looseness Stethoscope / ear 🙂 Impregnation, varnish, tighter winding, different frequency
EMI issues Leakage inductance, poor layout, fast edges Spectrum analyzer, LISN, near-field probes Better snubbers, shielding, layout optimization

Pro tip: monitor primary current waveform. Excessive peak or “flattened” tops are a strong sign of nearing core saturation.

📈 Oscilloscopes, current probes and LISN kits to debug flyback behavior and EMI →

8. Example Design Walk-Through

Objective: design a flyback transformer for a 12 V input to 24 V output DC-DC converter, 100 W.

  • Input: 12 V DC
  • Output: 24 V / ≈4.2 A
  • Power: 100 W
  • Frequency: 250 kHz
  • Core: MnZn ferrite, Ae ≈ 20 mm², Bsat ≈ 0.4 T

8.1 Primary turns

Using the simplified formula with a safe ΔB below Bsat:

Np ≈ Vp / (4.44 · f · ΔB · Ae)

For Vp ≈ 12 V, f = 250 kHz, ΔB ≈ 0.2 T, Ae = 20 mm²:

Np ≈ 12 / (4.44 · 250e3 · 0.2 · 20e-6) ≈ 12 turns

8.2 Secondary turns

For 12 V to 24 V with a reasonable duty cycle, a turns ratio of about 2:1 can be a starting point:

Ns ≈ 2 · Np ≈ 24 turns

8.3 Wire gauge

  • Primary: Ip ≈ 2 A → AWG 32 or thicker (or multiple strands).
  • Secondary: Is ≈ 4 A → AWG 28 or equivalent litz bundle.

8.4 Air gap

Introduce an initial air gap of ≈0.2 mm, then measure inductance and tweak gap length to get the desired primary inductance and peak current limit.

8.5 Layout and thermal

  • Wind primary and secondary in layered fashion with 0.15 mm insulation between layers.
  • Add a small aluminum heatsink clamp around core if temperature rise is too high.
  • Ensure good copper area under transformer pads with thermal vias to inner planes.

After testing at full load and worst-case ambient, you might achieve ≈95 % efficiency and ≈25 °C temperature rise above ambient with a carefully optimized design.

9. Resources & Further Reading

  • Core manufacturers: TDK, Ferroxcube, Magnetics, EPCOS.
  • Safety standards: IEC 60950, IEC 62368, IEC 60601-1 (medical), national deviations.
  • Simulation tools: LTspice, PSpice, vendor-specific tools from TI, Analog Devices, etc.
  • Communities: EEVblog forum, All About Circuits, DIYAudio for high-voltage discussions.
🌐 Build your own engineering knowledge hub like SchematicsHub — fast SSD hosting, WordPress and HTTPS in minutes →

10. SEO Keywords (for your notes)

flyback transformer design, flyback transformer guide, flyback transformer core selection, flyback transformer winding, flyback transformer layout, flyback transformer efficiency, flyback transformer troubleshooting.