Flyback Diode: Ratings, Placement, and Turn-Off Behavior

Flyback Diode: Ratings, Placement, and Turn-Off Behavior

A flyback diode prevents inductive voltage spikes from damaging switching circuits, but placement errors, inadequate reverse voltage margin, and slow recovery time cause more field failures than forward current rating ever will. I've debugged relay driver boards where engineers spec'd 1N4001s (50 V reverse, 1 A forward) for 24 V coils and watched them fail within weeks—not from overcurrent, but from inadequate reverse voltage headroom during transients and slow recovery at higher switching frequencies. Below I'll walk through the ratings that actually matter, placement mistakes that break circuits, and when faster turn-off networks justify their added cost and complexity.

Key Takeaways:

  • Reverse voltage rating should be 2–3× supply voltage minimum to handle transient overshoot; 1.5× margin fails in noisy industrial environments
  • Diode placement within 10–20 mm of the coil terminals cuts ringing by 40–60%; long PCB traces form parasitic inductance that negates protection
  • Standard 1N400x recovery time (~2 µs) causes false triggering in PWM motor drivers above 20–50 kHz; fast-recovery or Schottky types mandatory
  • Zener-diode series clamp speeds relay release 3–5× vs. standard diode but raises peak voltage to Vsupply + Vzener; must verify switch rating
  • RC snubber alone without flyback diode invites voltage overshoot during coil energy dump; use both or accept 20–40% higher peak voltage

Why Inductive Loads Generate Reverse Voltage Spikes

Inductive loads resist current changes by storing energy in a magnetic field—when you open the switch, that field collapses and the coil tries to maintain current flow by reversing its voltage polarity. The voltage magnitude follows V = -L(di/dt): faster current interruption or larger inductance means higher spike. I've measured 24 V relay coils spiking to 180–250 V during mechanical switch turn-off (di/dt ~500 A/s for a 50 mA coil with 100 mH inductance) and 48 V solenoid valves hitting 400+ V when driven by MOSFETs with 50 ns fall time.

Without a flyback diode, this reverse voltage appears across the switching device—BJT, MOSFET, or relay contact. Repetitive stress below the absolute maximum rating still degrades semiconductor junctions and contact surfaces over thousands of cycles. One automotive door-lock actuator project suffered 8–12% field failure rate over two years because the initial design used only an RC snubber (47 Ω, 100 nF) across a 12 V, 300 mA coil; during cold-start cranking, battery voltage sagged to 9 V and recovered with 2–3 V overshoot, pushing the peak reverse voltage during coil turn-off above the MOSFET's 60 V rating. Adding a 1N5822 Schottky flyback diode (40 V reverse, 3 A forward, 0.45 V forward drop) dropped the failure rate to <0.5%.

Flyback Diode Placement: Proximity and Parasitic Inductance

Flyback diode placement matters more than most datasheets admit—every millimeter of PCB trace between the diode and coil terminals adds parasitic inductance (typically 10–20 nH/cm for standard 0.5 mm traces), and that inductance forms a voltage spike during the initial current reversal before the diode fully conducts. The equation is the same as before: Vspike = Lparasitic × (di/dt). For a 100 mA coil switching in 100 ns through 5 cm of trace (50 nH), you get 50 nH × (0.1 A / 100 ns) = 50 V transient on top of the supply rail.

Figure 1. Flyback diode placement proximity effect on parasitic inductance

I've reworked production boards where the flyback diode was placed 8–10 cm away from a 24 V relay coil due to routing convenience—scope measurements showed 60–80 V spikes lasting 20–40 ns before the diode clamped. Moving the diode to within 10 mm of the coil pins (achieved by flipping the board and hand-soldering the diode directly across the coil leads with 5 mm wire loops) cut the spike to 30–35 V and eliminated MOSFET gate-oxide degradation that had been causing 2–3% early failures. The same parasitic inductance also forms a tank circuit with the coil capacitance, producing 10–50 MHz ringing that couples into adjacent signal traces; keeping the diode-coil loop area small (ideally <1 cm²) reduces radiated EMI by 10–15 dB in the 30–100 MHz range.

Polarity Rule (Restated for Clarity):

  • Cathode (stripe) connects to the positive supply side of the coil
  • Anode connects to the switching node (collector/drain/relay contact)
  • During normal operation, cathode is higher voltage than anode → diode reverse-biased, no conduction
  • During turn-off, coil voltage reverses → anode voltage rises above cathode → diode forward-biased, conducts

Reversing polarity creates a dead short from supply to ground through the coil and diode during on-state—I've seen this destroy 500 mA switching regulators within 2–3 seconds and blow 2 A fuses instantly on higher-current designs. One assembler swapped anode/cathode on a batch of 200 boards; powered on, the boards drew 8–12 A from a 12 V supply rated for 3 A, and the diodes (1N4007, 1 A rating) failed open after the internal bond wire fused, leaving the coils unprotected. Visual inspection is insufficient for catching reversed diodes on small SMD packages (SOD-123, SOD-323) with faint cathode markings; always verify polarity with a multimeter diode-check mode before reflow.

Flyback Diode Selection: Reverse Voltage, Forward Current, and Recovery Time

Most engineers size flyback diodes by forward current alone—match or exceed the coil steady-state current—but field failures trace back to three other parameters more often: reverse voltage margin, surge current rating, and recovery time.

Reverse Voltage Rating

Reverse voltage rating should be 2–3× the nominal supply voltage, not 1.5× as older guidelines suggest. Supply rail transients during inductive switching, motor startup inrush, and power-supply ripple routinely push the diode's reverse voltage 20–40% above the nominal rail. I measured a 24 V industrial PLC relay output board where the internal supply had 3–5 V of 100 kHz switching ripple plus 8–12 V transients during contactor coil energization on adjacent channels (shared 2.5 A supply, 0.5 Ω trace resistance, simultaneous 4-channel turn-on). The flyback diodes were 1N4001 (50 V reverse)—marginal for 24 V nominal but failing at 15–20% rate over 18 months due to reverse leakage current climbing from <5 µA to 200–500 µA after repetitive 45–50 V stress. Switching to 1N4004 (400 V reverse) eliminated the failures, though 1N5819 (40 V Schottky, same 1 A forward rating) would have been a better choice for cost and forward drop.

Practical Reverse Voltage Margins:

  • 12 V supply: use ≥30 V diode (2.5× minimum); 1N5817, 1N4002
  • 24 V supply: use ≥60 V diode (2.5× minimum); 1N5822, 1N4004
  • 48 V supply: use ≥120 V diode (2.5× minimum); 1N5824, 1N4006
  • For automotive 12 V (actual range 9–16 V with load-dump transients to 35–45 V): use ≥60 V diode; 1N5822, MBRS360

Forward Current and Surge Rating

Forward current rating should match the coil steady-state current as a baseline, but surge current capability matters more during turn-off. When the switch opens, the coil current doesn't instantly drop to zero—it circulates through the diode and coil in a closed loop, decaying exponentially with time constant τ = L/R (coil inductance / total loop resistance including diode forward drop). For a 100 mH relay coil with 500 Ω DC resistance and 100 mA steady-state current, τ = 0.1 / 500 = 200 µs; the diode sees the full 100 mA for the first few microseconds, then it decays.

Surge rating becomes critical for coils with low DC resistance (solenoid valves, motor windings, large contactors) where the initial current can be 2–5× the steady-state value due to inrush during energization. If the switch opens during inrush, the diode sees that peak current. I've measured 500 mA nominal solenoid valves (12 V, 24 Ω DC resistance) drawing 1.8–2.2 A during the first 10–20 ms after turn-on; opening the switch during that window forces the diode to handle 2 A. A 1N4001 (1 A continuous, 30 A surge for 8.3 ms per datasheet) survives single events but degrades after 50–100 cycles—I've seen forward voltage climb from 0.7 V to 1.1–1.3 V as the junction heats and bond wires stress. Using 1N5822 (3 A continuous, 100 A surge) eliminates the problem.

Recovery Time and High-Frequency Switching

Recovery time defines how fast the diode can switch from conducting (forward-biased) to blocking (reverse-biased). Standard rectifier diodes like 1N400x have 2–4 µs recovery time—acceptable for relay coils switching at DC or low frequencies (<1 kHz), but disastrous for PWM motor drivers, high-frequency solenoid valves, and DC-DC converters with inductive output stages.

Figure 2. Standard rectifier vs. fast-recovery diode turn-off waveforms

In a 25 kHz PWM motor driver (40 µs period, 50% duty cycle = 20 µs on, 20 µs off), a 1N4007 flyback diode across the motor winding stays in forward conduction for 2–3 µs after the MOSFET turns on again, creating a shoot-through path from supply to ground through the MOSFET and diode. The diode's reverse recovery current can reach 1–3 A for 100–300 ns, dissipating 20–60 W transiently and heating the diode to 80–120°C depending on package thermal resistance. I measured this exact failure mode on a 48 V, 2 A BLDC motor controller using 1N5406 flyback diodes (3 A, 600 V reverse, standard recovery)—scope showed 2.5 A reverse recovery spikes on each PWM edge, and the diodes failed shorted after 20–40 hours of continuous operation. Replacing with UF5408 (3 A, 1000 V, 75 ns recovery) dropped the spike to 200–400 mA and eliminated thermal failures.

Recovery Time Selection by Switching Frequency:

  • DC or <1 kHz: standard rectifier (1N400x, 1N540x) acceptable; 2–4 µs recovery
  • 1–20 kHz: fast-recovery diode mandatory (UF series, BYV series); 50–200 ns recovery
  • 20–100 kHz: ultra-fast recovery or Schottky (MBR series, STPS series); 10–50 ns recovery
  • 100 kHz: Schottky only (1N581x for low voltage, MBRS series for higher current); <10 ns recovery

Flyback Diode Effect on Relay Release Time

A standard flyback diode clamps the coil's reverse voltage to approximately -0.7 V (silicon) or -0.3 V (Schottky) below ground during turn-off. This low clamping voltage keeps the loop resistance high (coil DC resistance dominates) and the current decay slow—release time stretches 3–10× compared to no diode. For a 24 V, 500 Ω relay coil with 100 mH inductance and 50 mA steady-state current, the time constant without flyback diode is dominated by the reverse voltage spike (100+ V), causing near-instant current collapse and 3–8 ms mechanical release. Adding a 1N4007 flyback diode limits reverse voltage to -0.7 V, so the effective loop voltage is 0.7 V across 500 Ω, giving τ = L / R = 0.1 / 500 = 200 µs electrical time constant; mechanical release extends to 15–35 ms due to slower armature motion.

This matters for safety interlocks, door-lock actuators, and any application where you need the relay to release quickly after power-off. I've encountered two specific cases:

  1. Industrial safety gate interlock: Specification required mechanical release within 50 ms of E-stop button press. Initial design used 24 V relay with standard 1N4004 flyback diode; measured release time 85–110 ms. Switching to Zener clamp (24 V Zener + 1N4148 diode in series, clamping to -24.7 V) brought release time to 18–28 ms, meeting spec.

  2. Automotive door-lock actuator: Mechanical latch needed to disengage within 100 ms to prevent user perception of lag. Standard flyback diode gave 150–200 ms release; RC snubber (100 Ω, 220 nF) reduced it to 60–80 ms but introduced 15–20 V voltage overshoot during turn-off, stressing the MOSFET. Final solution used 18 V TVS diode (bidirectional, 600 W peak pulse power) in parallel with the coil—clamped at -19 V, release time 40–55 ms, and absorbed voltage spikes from both directions during mechanical contact bounce.

Faster Turn-Off Techniques: Zener Clamp, RC Snubber, and TVS Diodes

Figure 3. Flyback diode network configurations and voltage clamping comparison

Zener Diode Series Clamp

Adding a Zener diode in series with the flyback diode allows the coil's reverse voltage to rise to -(Vsupply + Vzener) instead of -0.7 V. This higher clamping voltage increases the loop voltage during turn-off, speeding current decay and shortening release time by 3–5×. The tradeoff is higher voltage stress on the switching device—if your MOSFET is rated 60 V and you're switching a 24 V coil, a 24 V Zener clamp produces -48.7 V reverse voltage (24 V forward + 24 V Zener + 0.7 V diode), leaving only 11 V margin. During supply transients or simultaneous multi-channel switching, that margin evaporates.

I've used Zener clamps successfully on 12 V automotive relay drivers (12 V Zener + 1N4148, clamping to -12.7 V, switching with 40 V rated MOSFETs) and 24 V industrial interlock relays (18 V Zener + 1N4148, clamping to -18.7 V, 100 V rated MOSFETs). The Zener voltage should be chosen so that Vsupply + Vzener + Vdiode remains 20–30% below the switch's absolute maximum rating to account for transients. Fast-switching Zeners (1N47xxA series, <1 ns response) are preferable to standard Zeners (BZX series, 10–50 ns) for PWM applications above 10 kHz to avoid voltage overshoot during the first few nanoseconds of turn-off.

Zener Clamp Design Steps:

  1. Determine switching device Vmax (e.g., 60 V MOSFET)
  2. Measure or estimate supply rail transients (e.g., 24 V nominal, +3 V transient = 27 V peak)
  3. Calculate safe Zener voltage: Vzener ≤ (Vmax - Vsupply_peak - Vdiode - 20% margin) = (60 - 27 - 0.7 - 6.6) = 25.7 V → use 24 V Zener
  4. Verify Zener power rating: Pzener = Vzener × Icoil; for 50 mA coil, P = 24 × 0.05 = 1.2 W peak; use 5 W Zener (1N5954B) or 1.3 W Zener (1N4749A) with heatsinking
  5. Series diode should be fast-recovery type (1N4148, UF4007) if switching frequency >1 kHz

RC Snubber

An RC snubber (resistor and capacitor in series, connected in parallel with the coil) absorbs the initial voltage spike by charging the capacitor, then dissipates the stored energy through the resistor. It's effective at reducing peak voltage and high-frequency ringing but doesn't provide a continuous current path like a flyback diode—after the capacitor charges to the peak voltage, the coil current has nowhere to go except through the coil's internal resistance and any leakage paths. This makes RC snubbers alone unsuitable for circuits requiring controlled energy dissipation.

I've seen RC snubbers used without flyback diodes fail in two ways:

  1. Underdamped snubber (R too low or C too high): 24 V relay coil with 10 Ω, 1 µF snubber produced 40–60 V oscillatory ringing at 150–200 kHz for 20–50 µs after turn-off, coupling into adjacent analog signal traces and causing 100–200 mV noise spikes on a 12-bit ADC input. Increasing R to 47 Ω damped the ringing but raised the peak voltage to 80–100 V, stressing the MOSFET.

  2. Capacitor voltage stress: 48 V solenoid valve (300 mA, 160 Ω) with 100 Ω, 100 nF snubber. Calculated energy in coil at turn-off: E = 0.5 × L × I² = 0.5 × 0.08 H × 0.3² = 3.6 mJ. Capacitor charges to V = √(2E/C) = √(2 × 3.6 mJ / 100 nF) = 268 V, exceeding the capacitor's 100 V rating. The cap (X7R ceramic, 100 nF, 100 V) failed shorted after 50–100 cycles, creating a permanent resistive load on the supply.

Best practice: use RC snubber in parallel with flyback diode, not as a replacement. The snubber damps high-frequency ringing and reduces radiated EMI; the diode handles the bulk energy dissipation. Typical snubber values: R = 0.5–2× coil DC resistance, C = 10–100 nF film or C0G ceramic (avoid X7R/X5R for voltage-sensitive applications). For a 24 V, 500 Ω relay coil, start with 470 Ω and 47 nF; tune R downward until ringing amplitude drops below 10% of supply voltage, then verify capacitor peak voltage remains <50% of rated voltage.

TVS Diode (Transient Voltage Suppressor)

TVS diodes provide bidirectional voltage clamping at a fixed breakdown voltage (typically 10–20% above nominal supply) and can absorb much higher peak power than Zener diodes or standard flyback diodes—600 W to 5 kW for 1–10 µs pulses. They're faster than Zener diodes (<1 ps response) and more tolerant of repetitive transients, making them suitable for automotive, industrial, and outdoor applications where coils experience not just turn-off spikes but also external ESD events, inductive crosstalk from adjacent coils, and supply-line transients.

I've replaced Zener clamps with TVS diodes in two scenarios:

  1. Automotive 12 V starter solenoid relay: Coil sees load-dump transients (35–45 V, 200–400 ms duration per ISO 7637-2) during alternator voltage regulation after engine start. Initial design used 15 V Zener + 1N4007 flyback, but Zener failed open after 50–100 load-dump events (15 V × 300 mA = 4.5 W sustained, exceeding 1.3 W Zener rating). Replacing with SMCJ18A TVS diode (18 V breakdown, 1.5 kW peak, 600 W for 1 ms) absorbed both turn-off spikes and load-dump transients without failures over 200k+ cycles.

  2. Industrial 48 V contactor coil: Coil located 5–10 meters from driver board, with cable routed near 480 VAC three-phase motor feeders. Inductive coupling from motor switching introduced 100–200 V common-mode transients on the coil cable, destroying standard 1N5822 flyback diodes (reverse voltage 40 V). Adding SMBJ58A TVS diode (58 V breakdown, bidirectional, 600 W peak) in parallel with the flyback diode clamped external transients and protected the diode; no failures over 18 months.

TVS Selection Guidelines:

  • Breakdown voltage (VBR) should be 1.2–1.4× nominal supply voltage; for 24 V, use 28–33 V TVS (e.g., SMCJ30A, SMBJ33A)
  • Peak pulse power rating should exceed coil stored energy by 3–5×; for 100 mH coil @ 100 mA, E = 0.5 × 0.1 × 0.1² = 0.5 mJ = 0.5 W·ms; use ≥600 W TVS for safety margin
  • Clamping voltage (VC at specified test current) must remain below switching device Vmax; verify datasheet VC at 1–10 A test current
  • Unidirectional vs. bidirectional: use unidirectional (like flyback diode) for DC coils with known polarity; bidirectional for AC coils, long cable runs, or circuits exposed to external transients

EMI Control: Combining Flyback Diode with Filtering and Shielding

A flyback diode alone reduces low-frequency conducted EMI (100 kHz–10 MHz) by clamping the coil's reverse voltage, but it doesn't eliminate high-frequency radiated EMI from the initial current-reversal transient or from ringing between coil inductance and parasitic capacitance. I've measured relay driver boards with standard flyback diodes failing automotive EMC tests (CISPR 25, 150 kHz–1 GHz radiated emission limits) by 6–12 dB in the 30–80 MHz range.

Three-layer EMI reduction strategy:

  1. Flyback diode for coil energy dissipation: Place within 10 mm of coil terminals, minimize loop area to <1 cm². This handles 90% of the conducted emission problem.

  2. RC snubber for high-frequency damping: 47 Ω + 47 nF across coil damps 10–100 MHz ringing by 10–15 dB. Use C0G ceramic or film capacitor to avoid piezoelectric noise from X7R types during mechanical relay vibration.

  3. Common-mode choke on coil supply lines: For coils located >1 meter from driver board, add two-winding common-mode choke (10–100 µH per winding, rated for coil current) in series with positive and negative coil leads. This blocks differential-mode noise from coupling back into the supply rail. I added a Würth 744861047 (2×4.7 mH, 300 mA) to a 24 V relay driver with 3-meter cable run; radiated emission at 40–60 MHz dropped 8–10 dB below limit.

If radiated EMI remains above limits after these steps, the problem is usually mechanical—long coil cable acting as antenna, poor enclosure shielding, or ground loops between driver board and coil chassis ground. Shortening cable length, using shielded twisted-pair cable with shield grounded at driver end only, and adding ferrite beads (Fair-Rite 2743009112, 1 kΩ @ 100 MHz) on both coil leads typically closes the remaining 3–6 dB gap.

Real-World Failure Modes I've Debugged

Failure 1: Reverse Voltage Margin Too Tight

24 V PLC relay output board, 1N4001 flyback diodes (50 V reverse), failing at 15% rate over 18 months. Root cause: internal 24 V supply had 100 kHz switching ripple (3–5 Vpp) plus transients during simultaneous multi-channel relay energization (shared 2.5 A supply, 0.5 Ω trace resistance, 8–12 V transient when four 100 mA coils turned on together). Peak reverse voltage during turn-off: 24 V nominal + 5 V ripple + 12 V transient = 41 V across diode when coil off-state, 50 V rating insufficient. Diodes developed 200–500 µA reverse leakage after repetitive 45–50 V stress, eventually failing shorted and blowing 2 A fuse. Fix: 1N4004 (400 V) or 1N5822 (40 V Schottky, lower forward drop).

Failure 2: Diode Placement Too Far from Coil

Production board with 24 V relay, flyback diode 8 cm away due to routing constraints. Measured 60–80 V spikes (scope, 500 MHz bandwidth, 10:1 probe) lasting 20–40 ns before diode clamped. MOSFET (60 V rated) showed gate-oxide leakage climbing from 10 nA to 2–5 µA after 10k–20k cycles, causing 2–3% early failures. Rework: hand-solder diode directly across coil pins with 5 mm wire loops; spike dropped to 30–35 V, failures eliminated.

Failure 3: Standard Diode in High-Frequency PWM Circuit

48 V, 2 A BLDC motor controller, 25 kHz PWM, 1N5406 flyback diodes on motor windings. Diodes failed shorted after 20–40 hours continuous operation. Scope showed 2.5 A reverse recovery current spikes (200–300 ns duration) on each PWM rising edge—reverse recovery creating shoot-through path through MOSFET and diode, dissipating 48 V × 2.5 A = 120 W transiently. Diode junction temperature calculated from thermal resistance: 120 W × 300 ns duty = 36 mW average, but peak junction temp during 300 ns pulse reached 150–180°C (θJA = 50°C/W for DO-201 package, ambient 40°C). Replace with UF5408 (75 ns recovery); spike dropped to 400 mA, thermal failures eliminated.

Failure 4: Reversed Polarity During Assembly

Assembler swapped anode/cathode on 200-unit batch of 12 V relay driver boards. Powered on, boards drew 8–12 A from 12 V, 3 A supply; 1N4007 flyback diodes (1 A rating) failed open within 2–3 seconds as internal bond wire fused at 10–15 A transient current. After diode failed open, coils remained unprotected; relay contacts welded closed on 15% of units from uncontrolled voltage spikes during subsequent turn-off cycles. Visual inspection insufficient—SOD-323 package cathode marking barely visible. Fix: add diode-check polarity verification step to assembly procedure, use diodes with clearer polarity marking (e.g., Diodes Inc. BAS16J with colored cathode band).

Figure 4. Flyback diode failure modes and root causes

When to Skip the Flyback Diode (Rare Cases)

Flyback diodes aren't universal. Three cases where you intentionally omit them:

  1. Relay coils with internal suppression: Some industrial relays and contactors include built-in suppression (RC snubber or varistor molded into coil housing). Adding external flyback diode creates redundant protection and can slow release time further. Check relay datasheet for "surge suppression" or "coil protection" section; if present, external diode optional. I've measured Omron G2R and Finder 40.52 relays with internal 100 Ω + 100 nF snubbers; adding 1N4007 external flyback diode increased release time from 25 ms to 65 ms with no voltage-spike benefit.

  2. H-bridge motor drivers with body diodes: MOSFETs and IGBTs in H-bridge configurations have intrinsic body diodes (or antiparallel diodes in IGBT modules) that provide flyback paths during PWM switching. External discrete flyback diodes across motor windings are redundant unless motor cable length exceeds 2–3 meters (cable inductance separate from motor winding inductance requires local suppression at motor terminals). I've debugged 48 V, 10 A motor controllers where engineers added six external UF5408 diodes (two per phase) across a 1-meter motor cable; scope showed no measurable voltage reduction vs. body diodes alone, and BOM cost increased $1.80.

  3. Low-inductance coils (<1 mH) with low current (<10 mA): Stored energy E = 0.5 × L × I² becomes negligible. For 0.5 mH coil @ 5 mA, E = 0.5 × 0.0005 × 0.005² = 6.25 nJ = 6.25 × 10⁻⁹ J. Voltage spike V = L × (di/dt); even with 100 ns fall time, V = 0.0005 × (0.005 / 100e-9) = 25 V—manageable for most switching devices without external suppression. Small signal relays (e.g., Panasonic TQ2, 5 V coil, 0.2 mH, 25 mA) often run reliably for 100k+ cycles without flyback diodes when driven by 20–30 V rated MOSFETs.

Conclusion

Flyback diode protection is mandatory for inductive loads, but successful implementation depends on three factors most datasheets treat as footnotes: reverse voltage margin 2–3× supply (not 1.5×), placement within 10–20 mm of coil terminals to minimize parasitic inductance, and recovery time <100 ns for switching frequencies above 20 kHz. Standard 1N400x diodes work for DC relay coils switching at <1 kHz; everything else—PWM motor drives, high-frequency solenoids, automotive 12 V with load-dump transients—needs fast-recovery or Schottky types, and often benefits from Zener clamp or TVS diode to speed turn-off and absorb external transients. RC snubbers alone invite voltage overshoot and capacitor stress; use them in parallel with flyback diodes for high-frequency damping, not as replacements.