I have already looked at this question which looked like it would provide the answer:

How to choose a flyback diode for a relay?

But it didn't, so I also checked out these:

Which didn't either. So my question is:

When selecting a flyback diode for a relay, how can I determine whether the speed of the diode is adequate for the application?

I am not looking for diode suggestions, but rather:

  1. What specifications in the datasheet for a diode I would need to look at
  2. How I can calculate the required values from 1. , given whatever information is needed about the circuit that controls the relay coil, and the specs of the relay.

I presume it has to do with capacitances in the diode's datasheet among other things.


Edit: to clarify, I don't mind if the relay takes some time to turn off. What I am concerned with is ensuring protection of the controlling circuitry from the spike the coil generates when current to it from the controlling circuitry ceases.


3 Answers 3


This has nothing to do with a relay, other than its coil acts like a inductor. What you are really asking is how to chose the flyback diode across a inductor.

There are three main parameters to look at:

  1. Voltage rating. This is the maximum voltage the diode can take across it backwards, and still block current and not get damaged. This must be at least the maximum voltage applied to the coil.

  2. Current rating. The maximum current thru the diode will be the same current that is going thru the coil when the coil drive is shut off abruptly. The maximum coil current must already be known to design the coil driver. Ideally the diode should be rated for at least this current.

    However, many diodes allow significantly higher currents for short times than the maximum allowed continuous current. This can be relevant in the case of a flyback diode. Flyback current will decay on its own, so if the coil is shut off only occasionally, it can be valid to consider the pulse current spec instead of the continuous current spec. If you are not sure how to calculate all this, use the continuous current rating.

  3. Reverse recovery time. This is how long it takes the diode to switch from conducting to non-conducting mode. If forward current is going thru a diode and you instantaneously change the voltage so that the diode is reverse biased, the diode will actually conduct in the reverse direction for a little while before it shuts off.

    Now think of when this situation occurs when driving a coil. If the coil was recently turned off and the flyback current is still flowing thru the diode and the coil driver is switched on again, then there is a short from the power supply thru the diode thru the coil driver until the diode catches up and stops conducting.

    If you are driving something slow like a relay, this probably doesn't matter since the time from off to on is always long enough that the flyback current has died down. However, in something like a switching power supply or a solenoid or motor being controlled by PWM, the off to on time can be a small fraction of the flyback current decay time. In that case, you have to consider this carefully.

    Big fat power diodes meant to rectify line frequency (50 or 60 Hz) can often have substantial reverse recovery times. Sometimes the datasheet doesn't list this spec at all, since if it matters, you shouldn't be using that diode. Try finding the reverse recovery time of a 1N4004, for example. I just checked the On Semi datasheet, and it's not mentioned. It even calls these "standard recovery" diodes, which is marketing speak for "These diode are slow, so slow that we're too embarrassed to even tell you. But instead of being up front and calling them "slow", we'll call them "standard" and then everything else we sell will be "fast" or "ultra-fast" or "super-fast" or "turbo" or whatever other terms our interns can dream up because we think you're dumb enough so that giving something a cutesy name will make you buy more of them.".

    There are rectifier diodes where reverse recovery has been taken into account, sometimes with terms like "fast" or "ultra fast" in their names. Don't use the names to guess speed, but at least the actual speed will be listed in their datasheets. For small currents, you can use small signal diodes, like the 1N4148, that have reverse recovery time of only a few nanoseconds. Schottky diodes are usually so fast as to be effectively instantaneous to most circuits.

  • \$\begingroup\$ +1 for #3, especially the last paragraph. BTW you missed a c in Schottky. \$\endgroup\$
    – jippie
    Commented Jun 14, 2015 at 12:05

Diode speed only becomes important at high switching frequencies, such as DC-DC converters and high-frequency PWM of motors. Since you are protecting a relay, your switching frequencies are far too low for diode switching losses to be noticeable, let alone important.

As a result, pretty much any diode with a DC current rating greater than your relay coil current, and a voltage greater than your coil voltage will do.


Speed of a diode and relay don't really go together because a diode actually slows turning the relay off. So in that case, why would speed matter ?

The only parameter you would really need is the current through diode. It should be able to handle the relay's current.

If you want speed, a typical diode is not what you want.

  • \$\begingroup\$ I am not worried about how fast the relay turns off. Rather, how to give the best protection to the circuit that powers the relay coil; without going overboard on the diode. When the circuit controlling the relay turns off, I'm worried the diode will not suppress the voltage spike fast enough initially, thereby damaging the controlling circuitry. \$\endgroup\$
    – Jodes
    Commented Jun 14, 2015 at 12:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.