Skip to main content

Industry News

Flyback Diode for Relay Coils: Orientation, Release Time and Alternatives

Published Updated Author Cunjian Zhu Source Wenzhou Jinhong Electrical Appliance Co., Ltd.

Flyback Diode for Relay Coils: Orientation, Release Time and Alternatives

Why DC relay coils need suppression, how to orient a flyback diode, its effect on release time, the Zener, varistor and RC alternatives, and the ZJWZJH (JINHONG) relays and sockets that offer them built in.

A flyback diode is a diode connected across a DC relay coil, cathode to the positive terminal and anode to the negative, so that it does nothing while the coil is energised. When the coil is switched off, it gives the coil current a path to decay through, which stops the coil’s inductance from producing a high voltage spike.

The cost is a slower release of the relay. This applies to DC coils only; AC coils need an RC network or a varistor instead.

Why a DC relay coil needs suppression.

A relay coil is an inductor. While it is energised, it stores energy in its magnetic field, and an inductor resists any sudden change in its current. When a transistor, PLC output or switch contact interrupts the coil current, the coil drives its voltage up, in the reverse direction, as far as needed to keep the current flowing. Without a path, that voltage can reach many times the supply voltage for a short time.

The spike lands on whatever opened the circuit. A transistor output can be damaged by repeated overvoltage, a push-button or another relay contact arcs and wears faster, and the fast edge couples interference into nearby wiring. Some PLC transistor outputs include their own suppression, but the amount varies, so check the output data before relying on it.

How a flyback diode works.

In normal operation the diode is reverse-biased by the coil supply and carries no current. When the coil is switched off, the coil voltage reverses, the diode becomes forward-biased, and the coil current circulates through the diode until the stored energy is dissipated in the coil’s resistance and the diode. The coil voltage is clamped to about one diode forward voltage (roughly 0.7 V for a silicon diode) beyond zero, instead of a large spike. The device that switched the coil off then sees little more than the supply voltage.

The diode is also called a freewheeling, snubber or suppression diode; the terms describe the same connection.

Simplified demonstration

Switch-off voltage across a transistor output driving a relay coil, with and without a flyback diodeA 24 V DC relay coil is switched on its negative side by an output. Without a diode, the voltage across the output spikes to many times the supply at switch-off. With a diode across the coil, cathode to positive, the voltage is clamped at about 0.7 V above the supply while the coil current decays, and the relay releases later.+24 VCoilOutput0 VCathode (band) to +Anode to coil −No suppressionVoltage across theoutput, plotted below24 V0 VOutput onOutput off →Spike: many times the supplyFast releaseClamped at about 24.7 VCurrent decays through the diode:the relay releases later
Figure 1. Simplified demonstration of the switch-off transient on a 24 V DC coil. Waveforms are qualitative, not to scale. Schematic for illustration, not the terminal layout of a specific model.

Flyback diode orientation for a relay coil.

Flyback diode orientation
Diode terminalConnect toWhy
Cathode (end with the band)Coil positive terminal (the side connected to + supply)Diode is reverse-biased while the coil is on
AnodeCoil negative terminal (the side connected to 0 V)Diode conducts only when the coil voltage reverses at switch-off

Reversed, the diode is forward-biased the moment the coil is energised. It short-circuits the coil supply: the relay does not operate, and the diode, the fuse or the driving output can fail. This is why a relay with a built-in diode is polarity-sensitive and why its drawing marks the positive terminal.

When fitting an external diode, connect it directly at the coil or socket terminals so the clamp loop is short. Choose a diode whose reverse voltage rating is comfortably above the coil supply and whose current rating covers the coil current. A general-purpose silicon rectifier from the 1N400x family is widely used for this at typical control voltages; check the rating against your own circuit.

Correct and reversed flyback diode orientation on a DC relay coilLeft: the diode band (cathode) connects to the positive coil terminal, so the diode is reverse-biased while the coil is on. Right: the diode is reversed, band to 0 V, so it conducts straight across the supply when the coil is switched on.+24 VCoil0 VbandCorrect: band to +Blocks while the coil is on,conducts at switch-off+24 VCoil0 VbandReversed: band to 0 VShorts the supply as soonas the coil is switched on
Figure 2. Flyback diode orientation. Schematic for illustration, not the terminal layout of a specific model; on relays with a built-in diode, follow the polarity marking for the exact part number.

Effect on release time.

The diode keeps the coil current flowing after switch-off, so the magnetic field collapses more slowly and the armature lets go later. The contacts also open more slowly, which can lengthen the arc on a DC load and increase contact wear. How much slower depends on the coil and the diode; published release times are for the relay itself, so confirm whether the datasheet value applies with suppression fitted if timing matters. For reference, the ZJ157F lists a release time of ≤10 ms, the ZJ10F ≤20 ms and the ZJ41F ≤4 ms.

When a faster release is needed, the coil voltage must be allowed to rise higher before it is clamped. That is what the alternatives below do.

Alternatives to a plain flyback diode.

Relay coil suppression methods compared
MethodCoil typeClamp levelRelease timePolarity-sensitive
DiodeDCAbout 0.7 V beyond zeroLongest delayYes
Diode + Zener diode in seriesDCZener voltage plus about 0.7 VShort; close to unsuppressedYes
Diode + resistor in seriesDCCoil current × resistance, plus about 0.7 VBetween the two aboveYes
Varistor (MOV)AC or DCVaristor clamping voltageShortNo
RC networkAC or DCDepends on R and C valuesShort to moderateNo

Whichever clamp you choose, the switching device must withstand the supply voltage plus the clamp level. A Zener or varistor clamp of tens of volts suits a transistor output rated well above that; a plain diode is the safest choice when the output’s voltage margin is small and the extra release time is acceptable.

Suppression on AC relay coils.

A diode cannot be used across an AC coil: it would conduct on every half-cycle of one polarity and short the supply. AC coils are suppressed with a varistor or an RC network across the coil. Fit the RC network across the coil, not across the contact that switches it: across an open contact, the capacitor passes enough AC to hold in, or fail to release, a sensitive relay.

ZJWZJH (JINHONG) relays and sockets with diode, LED or varistor options.

The options below are listed on the product pages. Their exact circuit and polarity are given on the drawing for each part number.

Suppression and indicator options in the ZJWZJH range
ProductOption listedWhat to check
ZJ157F-LBuilt-in LED; optional line-protection diode D (1−, 5+ / 1−, 8+) or D1 (1+, 5− / 1+, 8−)Choose D or D1 to match the polarity of your control wiring
ZJ10FL = LED indicator, D = rectifier diodeOn the LED version of the 8-pin relay, pin 7 is positive; see the octal pinout
ZJ18FL = LED (AC red / DC green), D = rectifier diode, C = varistor, R = reversed coil polarityC (varistor) is the non-polarised option; R changes which coil terminal is positive
A4-4Z-C2 and A6-6Z-C2 socketsBuilt-in LED with protection diode (non-LED version available); coil voltage 6–24 V DCFor A4 / A6 force-guided relays such as the ZJA4; observe coil polarity
41F-1Z-C2 and other 41F socketsProtection and indication circuit built into the socket; ordered with an input-voltage code (-1 to -5)Order the code that matches your control voltage

Two things in the range are easy to confuse with coil suppression. The 14F/18F plug-in LED module is described as an LED status module (6–240 V AC/DC versions); its data does not mention a diode, so check its drawing before relying on it for suppression. The ZJ41S solid-state relay has a built-in RC snubber on its output; its input is not a relay coil and needs no flyback diode.

Figure 3. ZJWZJH relays and a socket with diode, LED or varistor options listed: ZJ157F-L, ZJ18F, ZJ10F and the A4-4Z-C2 force-guided relay socket.

How to add and check a flyback diode.

  1. Confirm the coil is DC and note its rated voltage from the part number.
  2. Check whether the relay or socket already has a diode, LED or protection circuit. If it does, do not add a second component without checking the drawing.
  3. Identify the coil terminal that is connected to the positive supply in your circuit (for a sinking PLC output, that is the terminal wired to +24 V).
  4. With the circuit isolated, connect the cathode to that terminal and the anode to the other coil terminal, at the socket.
  5. Energise the coil from a current-limited supply first. If the supply goes into current limit and the relay does not operate, the diode is reversed.
  6. Check that the relay releases fast enough for the application.

Common mistakes.

Flyback diode mistakes
MistakeResultFix
Diode reversedSupply shorted; relay does not operate; diode or output failsCathode to the positive coil terminal
Diode across an AC coilSupply shorted every half-cycleUse a varistor or RC network
Wrong polarity on a relay with a built-in diodeSame as a reversed diodeFollow the marked + terminal, or order the reversed-polarity version
Diode on a relay whose release time is criticalRelease is slower than expectedDiode + Zener, or a varistor
Diode fitted far from the coilLong loop still radiates interferenceFit it at the coil or socket terminals

Next step.

If you need a relay with suppression already fitted, send us the coil voltage, the control source (sourcing or sinking output, or a contact), whether release time is critical, and the load on each contact. Browse the relay range and relay sockets.

Continue reading

FAQ

Does every DC relay need a flyback diode?

Every DC coil produces a spike at switch-off, so it needs some form of suppression unless the driving device is rated to absorb it. A diode is the simplest. If the relay, socket or PLC output already provides suppression, check that before adding more.

Can I use a flyback diode with a PLC relay module?

Check the module’s drawing first. Modules may already include coil suppression, and adding a second diode in the wrong direction would short the output. If the drawing shows no suppression, fit the diode at the coil or socket terminals with the cathode on the positive side.

Does the flyback diode protect the relay contacts?

No. It protects whatever switches the coil. Contacts switching an inductive load such as a solenoid or contactor coil need their own suppression across that load; see why relay contacts weld for load-side problems.

Which way round does a flyback diode go on a relay coil?

The cathode, the end marked with a band, goes to the coil terminal connected to the positive supply, and the anode to the other terminal. Fitted the wrong way, the diode conducts as soon as the coil is energised, shorts the supply, and the relay does not operate.

Need help choosing industrial control components?

Send the model or application, panel dimensions, circuit requirements and quantity. Our team can help you find the relevant product information.

Contact ZJWZJH (JINHONG)