Flyback Diodes: Taming the Inductive Kick

2026-05-26

When you switch off current through an inductor — a relay coil, solenoid, motor winding, or transformer primary — the magnetic field collapses and induces a voltage spike that can be hundreds of volts higher than your supply. That spike will arc across relay contacts, punch through transistor junctions, and reset microcontrollers from across the board. A flyback diode (also called a freewheeling, snubber, or kickback diode) gives that energy a safe path to dissipate.

The physics: An inductor opposes changes in current (V = L·di/dt). If you abruptly open a switch, di/dt approaches infinity, so V does too — limited only by parasitic capacitance and whatever breaks down first.

The fix: Place a diode in parallel with the inductive load, reverse-biased during normal operation (cathode to +V, anode to the switched side). When the switch opens, the collapsing field forward-biases the diode and current circulates harmlessly through the loop, decaying as I·R losses dissipate the stored energy ½LI².

Concrete example — driving a 12V relay with an NPN transistor:

Selection rules of thumb:

The tradeoff nobody mentions: A plain flyback diode makes relays release more slowly because the current decays gently instead of being chopped. For fast release (and faster PWM response), add a Zener or TVS in series with the diode — the higher reverse voltage forces faster current decay at the cost of a controlled spike. Common in automotive solenoid drivers where you need 5ms release, not 50ms.

Where engineers forget this: Brushed DC motors switched by H-bridges (the bridge MOSFETs' body diodes usually handle it, but verify), automotive solenoids on long wire runs, and stepper motor coils when changing direction. If you see unexplained microcontroller resets or scorched transistors on inductive loads — you found your missing diode.

See it in action: Check out Suppressing unwanted oscillations with a resistor [Pt.1] by KainkaLabs to see this theory applied.
Key Takeaway: Every time you switch an inductive load, place a reverse-biased diode across the coil — it converts a destructive voltage spike into a harmless circulating current that decays through the diode loop.

All newsletters