Designing a flyback converter means dealing with several variables at once: duty cycle, turns ratio, peak current, and component stress. If you get any one of them wrong, the result is usually core saturation, MOSFET failure, or poor efficiency. The Flyback Converter Calculator helps you work out duty cycle, turns ratio, peak primary current, magnetizing inductance, switch voltage stress, and efficiency using your actual input parameters—input and output voltages, switching frequency, and so on. This is directly relevant to any isolated DC-DC design you'll see in power supplies, industrial gear, LED drivers, and medical devices. Below you’ll find the main design equations, a practical example, a section on theory (especially CCM vs. DCM), and a FAQ focused on transformer and component selection.
What is a Flyback Converter?
A flyback converter is a type of isolated DC-DC converter. It stores energy in a transformer while the switch is on, then dumps that energy to the output when the switch turns off. The result: you get a DC output voltage that’s electrically isolated from the input. You’ll see this approach in everything from phone chargers to industrial supplies and medical gear.
Simple Explanation
It’s a lot like filling a bucket from a tap (charging energy into the transformer) and then pouring that bucket into another (the output side). The buckets never touch—so you get real isolation. The switch is just a timer controlling how long you fill up each cycle, and the turns ratio is what lets you shift voltages between input and output. When both are set correctly, you get a predictable, isolated output voltage from just about any input.
📐 Browse all 1000+ Interactive Calculators
Quick Navigation
Flyback Converter Circuit Diagram
Flyback Converter Calculator
How to Use This Calculator
This calculator is intended for education, concept evaluation, and preliminary design. Results are based on the equations and assumptions described on this page, but cannot account for every real-world load case, tolerance, material property, environmental condition, installation detail, safety factor, code, or regulatory requirement. Verify all inputs, assumptions, units, and results independently before selecting components or using the result in a real application. Safety-critical, structural, medical, lifting, transportation, or regulated applications must be reviewed by a qualified engineer.
- Pick what you want to calculate—duty cycle, peak current, output voltage, and so on—from the dropdown menu.
- Fill in the required values. The calculator will only show fields you need for your current calculation.
- Use “Try Example” to see how a 48V to 12V flyback works, or just enter your own values.
- Hit Calculate for your result.
Flyback Converter Interactive Visualizer
You can see how duty cycle, turns ratio, and switching frequency directly affect the way energy moves in a flyback: how fast current builds up, how it’s released, and what the switch voltage looks like. The scope traces are representative—good for intuition before you start calculations.
DUTY CYCLE
20.7%
TURNS RATIO
0.25
SWITCH STRESS
96V
PEAK CURRENT
2.32A
MAGNETIZING L
427μH
EFFICIENCY
87%
FIRGELLI Automations — Interactive Engineering Calculators
Flyback Converter Design Equations
Simple Example
Converting 48V input to 12V output with a 0.5V Schottky diode:
- Turns ratio N = 12 / 48 = 0.25
- Duty cycle D = (12 + 0.5) / (48 + 12 + 0.5) = 20.7%
- Switch voltage stress = 48 + 12 / 0.25 = 96V → use a 150V MOSFET minimum
Use the formula below to calculate duty cycle and voltage conversion.
Duty Cycle & Voltage Conversion
D = (Vout + Vf) / (Vin + Vout + Vf)
Vout = (N × Vin × D) / (1 − D) − Vf
D = duty cycle (fraction of switching period)
Vout = output voltage (V)
Vin = input voltage (V)
Vf = output diode forward voltage drop (V)
N = turns ratio Ns/Np (secondary/primary)
Use the formula below to calculate peak primary current.
Peak Primary Current
Ipk = (2 × Pout) / (η × Vin × D)
Irms = Ipk × √(D / 3)
Ipk = peak primary current (A)
Irms = RMS primary current (A)
Pout = output power (W)
η = converter efficiency (decimal)
Use the formula below to calculate magnetizing inductance.
Magnetizing Inductance
Lm = (Vin × ton) / Ipk = (Vin × D) / (Ipk × fsw)
E = (1/2) × Lm × Ipk2
Lm = magnetizing inductance (H)
ton = switch on-time (s)
fsw = switching frequency (Hz)
E = energy stored per cycle (J)
Use the formula below to calculate switch voltage stress.
Switch Voltage Stress
Vswitch = Vin + Vout/N
Vswitch = maximum voltage across switch (V)
This represents the input voltage plus the reflected output voltage during switch-off
Flyback Converter Theory & Practical Applications
Energy Transfer Mechanism and Operating Principles
Flyback converters are based on the buck-boost topology, but instead of a basic inductor, you use a transformer wound for energy storage. During the ON phase, current ramps up on the primary and energy builds in the magnetizing inductance—meanwhile, the output diode is off. When the switch turns OFF, the core field collapses, the diode becomes forward biased, and stored energy flows to the output. This two-stage process—first storing, then delivering energy—lets you power multiple isolated outputs with minimal extra hardware, which is why the flyback is a go-to for universal supplies.
It’s worth noting that flyback “transformers” are really coupled inductors: they store a lot of energy in magnetizing inductance (Lm). That energy, ½LmIpk2 per cycle, must be fully (DCM) or partially (CCM) cleared out every cycle. To separate CCM from DCM, use Lcrit = (VinD)2 / (2fswPout). Designs that operate well below Lcrit (i.e., in DCM) are easier to stabilize and don’t need oversized output capacitors, but expect higher peak currents and corresponding loss.
Duty Cycle Constraints and Turns Ratio Selection
Most flybacks run at duty cycles below 50%, mainly to prevent transformer saturation. Some newer designs push to 60%, but only with active clamp or careful volt-second balancing. The core duty cycle formula D = (Vout + Vf)/(Vin + Vout + Vf) shows duty cycle shrinks as input voltage rises or as your target output voltage falls. With wide input designs (say, 90-265VAC, 127-375VDC after rectification), duty cycle at low line sets the turns ratio. Go too low on the turns ratio and switch voltage stress ramps up at high line, which might force a bigger, more expensive MOSFET, or a clamp circuit to tame voltage spikes.
The turns ratio you pick impacts both switch voltage stress (Vswitch = Vin + Vout/N) and what the output diode sees. Lower N (like below 0.2) simplifies winding and cuts copper losses, but it reflects much more voltage to the switch. Higher N (say, above 0.5) helps the voltage rating but means thicker windings and more Cu loss. For 48V-in, 12V-out, landing around N = 0.25 gives you Vswitch ≈ 96V, leaving good safety margin when using a 150V FET.
Transformer Design and Core Selection
Start by working out the primary inductance you need: Lm = (Vin × D)/(Ipk × fsw). Then pick a core that can both fit the windings and store the required energy. Core volume goes up with the square root of output power, so above 150–200W the transformer tends to get unwieldy—and a forward or half-bridge converter may be a better approach. Ferrite ETD, EE, or PQ types are common. Don’t push operating flux density above 0.25–0.3T, especially at high temp or with cheap cores; otherwise you’re risking saturation.
Adding an air gap lets you set the inductance directly: core properties hardly matter, since the gap dominates. Lm = (μ₀ × Np2 × Ae)/lg. But be careful—gaps produce fringing flux, and that can heat up nearby windings and raise EMI. Practical windings try to interleave primary/secondary to keep leakage low (aim for 1-3% of Lm), but always maintain safe insulation distances.
Continuous vs. Discontinuous Conduction Mode Trade-offs
In DCM (discontinuous mode), the inductor current hits zero every cycle. This avoids a right-half-plane zero in the control loop, making stabilization much more straightforward—one reason flybacks for wide-range universal supplies often run DCM. But DCM costs you in peak current, typically raising RMS losses. CCM (continuous mode) comes into play when output power is higher—average and peak current are closer, so losses are manageable. However, the control gets tricky due to the right-half-plane zero, which limits your bandwidth and response. Some modern controllers switch between DCM and CCM as needed to balance efficiency and control.
Parasitic Effects and Real-World Performance Limitations
Leakage inductance—caused by imperfect coupling—stores energy that won’t make it to the load. Instead, you get voltage spikes on switch-off, which heat the FET or get burned off in a snubber. For example, 2μH leakage and 3.8A peak current is about 1.4μJ per cycle; at 100kHz that’s 1.44W wasted, dropping efficiency a couple percent. Tighter winding (interleaving, careful layout) helps keep this under control and limits voltage spikes.
Output diode choice matters most when the diode drop is a big chunk of Vout. For 5V outputs, a 1V drop means 20% of your power is wasted in the diode. Using a Schottky cuts that in half, and synchronous MOSFETs can get it even lower—but at the cost of extra complexity. For Vout above 12V, standard ultra-fast diodes can be good enough for the money.
Industrial Applications and Design Examples
Flyback converters are a staple for isolated power needs up to around 150W. If you want multiple voltages from a single transformer—say, +5V, ±12V, and 3.3V in some older controls—flyback is usually easier and cheaper than building multiple supplies. The main output is directly regulated; other outputs track by the turns ratio and usually stay within about ±5% unless you load them heavily, in which case you’ll probably want post-regulators.
For instance: say you need to go from 48V DC in to an isolated 12V at 2.5A for a medical instrument—30W out, 85% minimum, 100kHz DCM, and use a Schottky for Vf = 0.5V. Duty cycle: D = (12 + 0.5)/(48 + 12 + 0.5) = 0.207 (20.7%). Peak primary current: Ipk = (2 × 30W)/(0.85 × 48V × 0.207) = 7.09A. Set Lm = (48V × 0.207)/(7.09A × 100kHz) = 14.0μH. Turns ratio: N = 0.25, so maybe 35 turns primary and 9 secondary on something like an ETD29 core with 2.5mm air gap. Vswitch = 48 + 12 / 0.25 = 96V, so 150V FET minimum. Make sure the FET RDS(on) and copper losses add up to less than your loss budget.
It always pays to check RMS current on your windings and diodes. In this example: primary Irms = 7.09A × √(0.207/3) = 1.86A (20AWG or Litz recommended); secondary Isec,rms ≈ 3.54A (18AWG works). Capacitor ESR should be under 50mΩ for low ripple. Run a loss estimate—MOSFET, diode, winding, core, and cap losses all add up. You should see efficiency close to target if you’re honest with each step.
Advanced Control Techniques and Modern Implementations
Primary-side regulation (PSR) skips the optocoupler and cuts part count; it senses output voltage via the auxiliary winding or the reflected voltage on the primary. It's accurate enough for things like chargers or LED drivers (within 5%), but don’t expect tight regulation for precision rails.
Quasi-resonant (QR) controllers time switch-on to hit the lowest possible switch voltage, saving you turn-on loss. For example, a 65W supply switching at the voltage valley, instead of at the Coss peak, can save a fraction of a watt—small but useful when you're chasing new efficiency standards. QR controllers also often run variable frequency, dropping down to 30kHz at heavy load to minimize losses and speeding up to 200kHz at light load for noise and DCM operation.
If you want to see more about other DC-DC topologies or dig into transformer design, check the engineering calculator hub—you’ll find boost converters, buck regulators, and transformer resources.
Frequently Asked Questions
Free Engineering Calculators
Explore our complete library of free engineering and physics calculators.
Browse All Calculators →🔗 Explore More Free Engineering Calculators
About the Author
Robbie Dickson — Chief Engineer & Founder, FIRGELLI Automations
Robbie Dickson brings over two decades of engineering expertise to FIRGELLI Automations. With a distinguished career at Rolls-Royce, BMW, and Ford, he has deep expertise in mechanical systems, actuator technology, and precision engineering.
Video Walkthrough - How to Use This Calculator
Need to implement these calculations?
Explore the precision-engineered motion control solutions used by top engineers.
