Skip to content
Omnikalc

Flyback converter calculator

Enter the input and output voltage, the output current, the frequency and the turns ratio to size a continuous-mode flyback converter.

Updated on
Your inputs
V

Value out of range

V

Value out of range

A

Value out of range

kHz

Value out of range

Value out of range

Value out of range

%

Value out of range

Results

Primary magnetizing inductance

304 µH

Duty cycle
50.0 %
Primary peak current
1.78 A
Secondary peak current
5.33 A
Switch voltage stress without spike
72 V
Rectifier reverse voltage
24 V

The flyback converter calculator gives the duty cycle, the primary magnetizing inductance, the peak currents, the switch voltage stress and the rectifier reverse voltage of a continuous-mode flyback.

How the calculation works

  • Enter the minimum input voltage, the output voltage and the output current.
  • Enter the switching frequency, the turns ratio Np / Ns, the current ripple ratio and the efficiency.
  • The calculator finds the duty cycle, then the inductance that gives the ripple you chose, then the currents and the voltages the parts must withstand.

Example

A flyback that converts 36 V to 12 V at 2 A, switching at 100 kHz with a turns ratio of 3, runs at a duty cycle of 50.0 %. A ripple of 40 % calls for a primary inductance of 304 µH, a primary peak current of 1.78 A and a secondary peak of 5.33 A. The switch sees 72 V before any spike and the rectifier 24 V.

Why it matters

The calculator helps power supply designers, students and makers who build isolated supplies for 5 to 48 V rails, battery chargers and auxiliary supplies, and who want a first set of values before choosing the transformer core, the controller and the switch.

Good to know

A flyback stores energy in the transformer during the on-time and releases it to the output during the off-time, so the transformer is also the energy storage inductor. That is why the design depends on the air gap and the saturation of the core. Leakage inductance adds a voltage spike that needs a clamp, and a diode or synchronous rectifier drops some voltage that raises the duty cycle a little. Above about 100 W the peak currents become large and a forward or a half-bridge converter is usually a better choice. Always check the temperature of the core and of the switch with a prototype.

The boost converter and the buck converter calculators size the two non-isolated topologies, the MOSFET power loss calculator gives the heat in the switch and the transformer calculator gives the voltage and the current ratios of a transformer.

Frequently asked questions

How is the duty cycle of a flyback found?

In continuous conduction the ideal output voltage is Vo = Vin × D / ((1 − D) × n), where n is the turns ratio Np / Ns. Solving for the duty cycle gives D = n × Vo / (Vin + n × Vo). The calculator uses the lowest input voltage, because that is where the duty cycle and the peak current are highest.

How is the primary inductance chosen?

The magnetizing inductance sets the current ripple. With a ripple of 40 % of the average current during the on-time, the inductance is L = Vin × D / (f × ΔI). A larger inductance lowers the ripple and the peak current but needs a bigger core. A smaller one moves the converter toward discontinuous mode, which changes the equations.

Why does the switch see more than Vin + n × Vo?

The leakage inductance of the transformer is not coupled to the secondary. When the switch turns off, its energy rings with the drain capacitance and adds a spike above Vin + n × Vo. A snubber or a clamp limits the spike, and the switch rating needs a margin of 20 to 30 % above the clamp level.

When does this calculator not apply?

It covers the continuous conduction mode with an ideal transformer and no leakage. It does not size the core, the air gap, the number of turns, the output capacitor or the control loop, and it does not cover discontinuous or quasi-resonant operation. Use it for a first estimate and finish the design with the data sheets and a simulation.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.