How to Connect and Choose a Flyback Diode for a Relay
9 min
- 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

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:
- 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.
- Connect the cathode to +V: The cathode is the banded end, as the SMD diode polarity guide shows.
- Connect the anode to the collector: The anode, the coil terminal, and the NPN transistor's collector share a common node.
- 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.

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.

Figure: Collector voltage at relay switch-off without a flyback diode
| Condition | Collector Voltage at Switch-Off | Where the Coil Energy Goes | Risk to the Driver |
|---|---|---|---|
| Without a flyback diode | A spike, set by the coil and circuit | The transistor is in breakdown, and stray capacitance | Transistor overstress or failure, EMI |
| With a flyback diode | About supply + 0.7 V (silicon diode) | Coil resistance and diode | Low, 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:
| Diode | JLCPCB Part | Type and Package | Reverse Voltage | Forward Current | Typical Fit |
|---|---|---|---|---|---|
| 1N4148W | C81598 | Switching, SOD-123 | 75 V | 150 mA | Small relays with coil current well below 150 mA |
| M7 (1N4007 equivalent) | C95872 | Rectifier, SMA | 1000 V | 1 A | General-purpose choice for most relay coils |
| SS14 | C2480 | Schottky, SMA | 40 V | 1 A | Coils 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.

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 Method | Transistor Voltage at Switch-Off | Release Speed | Coil Type |
|---|---|---|---|
| Diode only | Supply + 0.7 V | Slowest | DC |
| Diode + resistor | Supply + coil current × R + 0.7 V | Faster | DC |
| Diode + Zener | Supply + Zener voltage + 0.7 V | Close to unsuppressed | DC |
| Bidirectional TVS | Supply + TVS clamping voltage | Fast | DC or AC |
| RC snubber | Set by R, C, and the coil current | Moderate | AC 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.
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.
Popular Articles
• The Comprehensive Guide to Circuit Symbols: Key to Understanding Electrical and Electronic Diagrams
• Understanding Electrical Schematics: A Comprehensive Guide
• PCB Board Design: A Step-by-Step Guide for Beginners
• Design Guidelines for PCB Using FR4 Substrates
• Choosing the Best PCB Color-Enhancing Aesthetics and Functionality
Keep Learning
Arduino Uno Pinout Guide: Complete Pin Diagram, Lookup Table & Electrical Limits
The Arduino Uno pinout is all printed on the board, but it still catches people out. A pin you might think was free might turn out to be the SPI clock, or the I2C bus, or just the line your sketch uploads through. This arduino pinout guide covers the Arduino Uno R3 and Arduino Uno R4 only. Every spec says which revision it applies to, because the two boards share a footprint but not their electrical limits. The Arduino PWM pins and interrupt lines sit differently on the Mega, the Leonardo and ESP32 bo......
The Comprehensive Guide to Circuit Symbols: Key to Understanding Electrical and Electronic Diagrams
Note Need a quick reference while reading schematics? Download our free, printable Circuit Symbols Cheat Sheet (PDF), featuring the most common IEC and ANSI symbols organized by category. Keep it on your desktop or print it for easy reference at your workbench. ⬇ Download the Free Circuit Symbols Cheat Sheet (PDF) Every electronic diagram is written in a visual language, and circuit symbols are its alphabet. From your first electrical schematic to a multi-layer board, knowing circuit symbols can make ......
Understanding Electrical Schematics: A Comprehensive Guide
Key Takeaways Core Definition: An electrical schematic maps exact components and connections using standardized symbols (IEC 60617 / IEEE 315) and reference designators. Schematics vs. Block Diagrams: Schematics detail exact components and pin-level connections for PCB layout, whereas block diagrams only show high-level functional blocks. Clean Layout & Flow: Read schematics left to right, using modular blocks and net labels (VIN, GND) to eliminate visual clutter. Mark Polarity: Clearly marking compon......
How to Read and Design Effective Schematics
Design schematics with hands are a bit outdated nowadays; everyone is using EDA software to do so. There are a lot of tools available nowadays, but a simpler and easier-to-use one is EasyEDA. Mastering schematics makes working with circuits simpler or safer, and more efficient for turning complex designs into understandable diagrams. Here we are taking an example of an Arduino circuit and a power supply regulation circuit. The schematics for them are completed and read step-wise. This unlocks the pote......
PCB Board Design: A Step-by-Step Guide for Beginners
Key Takeaways 10-Step Beginner Guide: Covers EasyEDA schematic capture, DRC checks, and Gerber export for a 3A IP2312 charger. 3A High-Current Routing: Upgrades the 1A TP4056 design with 1.3–1.8 mm traces (1 oz copper) and stitched ground planes. Thermal & DFM Ready: Applies ESOP-8 thermal vias and JLCPCB 2-layer standard rules for reliable prototyping. Printed Circuit Boards (PCBs) form the backbone of most modern electronic devices, providing a platform to connect electronic components. For beginner......
Design Guidelines for PCB Using FR4 Substrates
Material substrate concerns are necessary while designing electrical circuit boards. This is due to the fact that printed circuit boards cannot be manufactured without the appropriate PCB materials. When developing and producing circuit boards, the substrate material must be taken into account just as much as the copper layers, silkscreen, and surface polish. Generally speaking, non-conductive materials like porcelain, Marlon, FR4, and the like must be used for PCB substrates. Depending on its intende......