This website requires JavaScript.
Coupons
Ship to
Blog

How to Connect and Choose a Flyback Diode for a Relay

Published Nov 05, 2026, updated Nov 05, 2026

9 min

Table of Contents
  • What Is a Flyback Diode for a Relay?
  • How to Connect a Flyback Diode Across a Relay Coil
  • Why a Relay Needs a Flyback Diode: Inductive Kickback at Switch-Off
  • How to Choose a Flyback Diode for a Relay
  • Flyback Diode vs. Zener Clamp for Faster Relay Release
  • Conclusion
  • FAQs About Flyback Diodes for Relays

Key Takeaways

  • Diode Placement: Connect the flyback diode across the relay coil, with its cathode connected to the positive side and its anode to the negative side.
  • Why It Matters: When the relay switches off, the diode provides a safe path for the remaining coil current, preventing a high-voltage spike that could damage the transistor.
  • Choosing the Right Diode: Select a diode with a reverse-voltage rating above the coil supply voltage and a forward-current rating suitable for the coil current. Common options include the 1N4148W, M7, and SS14, depending on the relay's requirements.
  • Faster Relay Release: A standard flyback diode protects the transistor but slows the relay release. Adding a Zener diode in series allows faster release while keeping the voltage within the transistor's safe limits.

A flyback diode for relay coils protects the relay driver when the coil switches off. Without the diode, the coil can generate a high-voltage spike that may damage the transistor. However, diode polarity is critical: installing it backward creates a near short circuit across the power supply when the transistor turns on.

In this guide, you will learn:

  • Which way does a flyback diode connect across a relay coil
  • What the coil voltage does at switch-off, with and without the diode
  • How to choose the diode's reverse-voltage and current ratings
  • When a Zener-plus-diode clamp gives a faster relay release

flyback diode for relay in low side and high side driver

Figure: Flyback diode for relay coils on a low-side NPN switch and a high-side PNP switch

What Is a Flyback Diode for a Relay?

A flyback diode for a relay is a diode connected in parallel with the relay coil that carries the coil current after the drive switch turns off. While the coil is energized, the diode is reverse-biased and conducts no significant current. It is also called a freewheeling diode, a suppression diode, or a catch diode.

On a schematic, the diode sits across the relay coil symbol, with the cathode bar of the diode symbol toward the positive supply. Most relay coils are not polarized, but with the diode fitted, the coil has a fixed polarity.

How to Connect a Flyback Diode Across a Relay Coil

Connect the cathode to the coil terminal that is positive while the relay is energized, and the anode to the other coil terminal. The diode then stays reverse-biased while the relay is on and conducts at switch-off.

For a low-side NPN switch, the steps are:

  1. Identify the coil ends: Find the coil terminal wired to +V and the one wired to the collector, as in this relay wiring diagram guide.
  2. Connect the cathode to +V: The cathode is the banded end, as the SMD diode polarity guide shows.
  3. Connect the anode to the collector: The anode, the coil terminal, and the NPN transistor's collector share a common node.
  4. Place the diode at the coil: Short traces to the coil pins keep the switch-off current loop small and limit radiated noise.

High-side switching: With a PNP transistor between +V and the coil, the cathode goes to the transistor side of the coil and the anode to ground.

Note

A reversed flyback diode is forward-biased whenever the transistor turns on. It draws high current through the transistor, so the relay does not energize, and the diode or transistor can overheat.

Why a Relay Needs a Flyback Diode: Inductive Kickback at Switch-Off

A relay coil is an inductor, so its current cannot stop instantly when the transistor turns off. The coil voltage reverses to keep that current flowing (V = L·di/dt), and without a current path, the voltage appears across the transistor.

The peak depends on the coil inductance, switching speed, and stray capacitance, so it varies across circuits. It can exceed the transistor's VCEO rating, driving it into breakdown.

switch off current path of a relay flyback diode

Figure: Switch-off current path of a relay flyback diode, with the coil current circulating through the coil and diode while it decays.

With the diode fitted, the coil current circulates through the coil and diode at switch-off. The collector is held near the supply voltage plus one diode drop, while the coil resistance and diode dissipate the stored energy.

collector voltage at relay switch off without flyback diode

Figure: Collector voltage at relay switch-off without a flyback diode

ConditionCollector Voltage at Switch-OffWhere the Coil Energy GoesRisk to the Driver
Without a flyback diodeA spike, set by the coil and circuitThe transistor is in breakdown, and stray capacitanceTransistor overstress or failure, EMI
With a flyback diodeAbout supply + 0.7 V (silicon diode)Coil resistance and diodeLow, with a correctly rated diode

How to Choose a Flyback Diode for a Relay

Choose a diode whose reverse-voltage rating is above the coil supply with a margin, and whose forward-current rating is at least the coil current. Because relays switch at low frequency, a standard rectifier is usually fast enough.

  • Reverse voltage: Above the coil supply, with margin for supply transients.
  • Forward current: At least the coil current, which is the diode's peak current at switch-off.
  • Forward voltage: A Schottky diode clamps slightly lower than a silicon diode.

Worked example: A Songle SRD-05VDC-SL-C relay has a 5 V, 70 Ω coil, so the coil current is 5 V / 70 Ω = 71.4 mA. A 75 V, 150 mA diode covers this relay.

The diode types guide explains how switching, rectifier, and Schottky diodes differ. The 1N4148W, M7, and SS14 are all basic parts in the JLCPCB Parts Library:

DiodeJLCPCB PartType and PackageReverse VoltageForward CurrentTypical Fit
1N4148WC81598Switching, SOD-12375 V150 mASmall relays with coil current well below 150 mA
M7 (1N4007 equivalent)C95872Rectifier, SMA1000 V1 AGeneral-purpose choice for most relay coils
SS14C2480Schottky, SMA40 V1 ACoils up to 24 V, with a lower clamp voltage

Flyback Diode vs. Zener Clamp for Faster Relay Release

A plain flyback diode protects the transistor but slows the relay's release because the low clamp voltage allows the coil current to decay more slowly. A Zener diode in series raises the clamp voltage, so the current and magnetic field collapse faster.

TE Connectivity's white paper, Coil Suppression Can Reduce Relay Life, reports that slow flux decay reduces the force available to open the armature, so a stuck contact can stay welded closed, and that a diode with a series Zener gives a decay rate close to that of an unsuppressed coil. The trade-off is a higher transistor voltage at switch-off: the supply plus the Zener voltage plus one diode drop.

diode only and diode plus zener relay coil suppression

Figure: Diode-only and diode-plus-Zener relay coil suppression, and comparing their clamp voltages.

Worked check: With a 5 V coil, a BZT52C12 12 V Zener (C19077410), and a silicon diode, the collector reaches about 5 + 12 + 0.7 ≈ 17.7 V, or about 18.3 V at the Zener's 12.6 V upper tolerance. These estimates are below the listed 25 V VCEO of C2146, but do not establish worst-case clearance.

Check the selected Zener's maximum voltage at the initial coil current and temperature, the maximum supply, the diode drop, and the switching overshoot before choosing the transistor. If the sum exceeds the transistor's VCEO, choose a lower Zener voltage. The Zener absorbs most of the coil energy, so check its single-pulse thermal/energy capability and its average dissipation at the intended repetition rate.

Suppression MethodTransistor Voltage at Switch-OffRelease SpeedCoil Type
Diode onlySupply + 0.7 VSlowestDC
Diode + resistorSupply + coil current × R + 0.7 VFasterDC
Diode + ZenerSupply + Zener voltage + 0.7 VClose to unsuppressedDC
Bidirectional TVSSupply + TVS clamping voltageFastDC or AC
RC snubberSet by R, C, and the coil currentModerateAC or DC

A flyback diode works on a DC coil only. On an AC coil, it is forward-biased during every half-cycle of one polarity and shorts the supply, so AC coils use an RC snubber, a varistor, or a bidirectional TVS instead.

jlcpcb pcb assembly service banner 1
Ready to Build Your Relay Driver PCB?
Get a PCB Quote
  • Once your relay driver circuit is designed and verified, the next step is bringing it to the PCB stage.

  • Upload your Gerber files to JLCPCB to get an instant manufacturing quote and turn your circuit design into a physical board.

Conclusion

A flyback diode is a simple but essential part of protecting a transistor-driven DC relay. It provides a safe path for the coil current when the relay switches off, preventing damaging voltage spikes.

For reliable protection, connect the diode's cathode to the coil's positive side and choose a diode with appropriate voltage and current ratings. If faster relay release is needed, consider a series Zener diode to balance switching speed and transistor protection.

FAQs About Flyback Diodes for Relays

Do I Need a Flyback Diode for a Relay?

Yes, whenever a transistor, MOSFET, or driver IC switches a DC relay coil. Without one, the switch-off spike can exceed the driver's voltage rating. Many relay modules already include the diode.

What Happens If a Flyback Diode Is Installed Backwards?

The relay does not energize, and the diode or transistor can overheat. The reverse-biased diode conducts as soon as the transistor turns on, drawing high current through the transistor rather than the coil.

Can I Use a 1N4148 as a Relay Flyback Diode?

Yes, for small relays whose coil current is well below the diode's rated forward current, such as a 5 V coil drawing about 71 mA. For larger coils, use a 1 A rectifier such as the 1N4007.

Does a Flyback Diode Slow Down a Relay?

Yes. The diode holds the coil voltage low at switch-off, so the coil current decays slowly and the contacts open later. A Zener in series with the diode shortens the release time.

Can I Use a Schottky Diode as a Relay Flyback Diode?

Yes, when its reverse-voltage rating exceeds the coil supply voltage with a margin. A Schottky, such as the SS14, clamps slightly lower than a silicon diode and is suitable for coils up to 24 V.

Keep Learning