If you are switching an inductive load—like a DC motor, solenoid, or relay—relying solely on the internal parasitic diode of your transistor is a fast track to a melted silicon junction. The direct answer to sizing a mosfet with diode protection is this: you must place an external Schottky or ultra-fast recovery diode in anti-parallel across the load (or the Drain-Source pins) to safely shunt the inductive kickback current, because the intrinsic body diode is too slow and dissipates too much heat at high PWM frequencies.
In this guide, we will break down exactly how the intrinsic body diode works, why it fails in real-world motor control, and how to select, bias, and test a robust external diode pair on the bench.
The Intrinsic Body Diode vs. External Flyback: Why You Need Both
Look at the standard schematic symbol for an N-channel MOSFET. You will see three main terminals: the Gate (G), Drain (D), and Source (S). However, there is a fourth element drawn between the Drain and Source: an arrow pointing from Source to Drain. This represents the intrinsic body diode.
This diode is not a deliberate feature added by the manufacturer; it is a parasitic byproduct of the vertical silicon structure used to build power MOSFETs. When the MOSFET is off, and the voltage at the Source exceeds the voltage at the Drain by roughly 0.7V to 1.5V, this diode becomes forward-biased and conducts.
When you switch off an inductive load, the collapsing magnetic field generates a high-voltage flyback spike. If you rely on the body diode to clamp this spike at a 20kHz PWM rate, the diode spends a significant portion of each cycle in a high-resistance recovery state, generating localized thermal hotspots that eventually crack the silicon die.
MOSFET Operation Regions and Diode Interaction
To understand when the diode conducts, you need to map the MOSFET's operating regions against the inductive load's behavior. Below is the operational matrix for an N-channel device switching a grounded load.
| Operating Region | Gate-Source ($V_{GS}$) | Drain-Source ($V_{DS}$) | Drain Current ($I_D$) | Diode State & Load Behavior |
|---|---|---|---|---|
| Cutoff | < $V_{GS(th)}$ (e.g., 0V) | High (Supply Voltage) | 0A (Leakage only) | Reverse-biased. Load is off. Inductive kickback occurs here if no external path exists. |
| Linear (Ohmic) | > $V_{GS(th)}$ | Low ($I_D \times R_{DS(on)}$) | Determined by load | Reverse-biased. MOSFET acts as a closed switch. Current flows through the channel, not the diode. |
| Saturation | > $V_{GS(th)}$ | High | Constant (Limited by $V_{GS}$) | Reverse-biased. Used for amplification, rarely for power switching due to high $I^2R$ heat. |
| Avalanche | Any | > $V_{DS(max)}$ | Clamped by breakdown | Body diode breaks down (avalanche). Repeated avalanche destroys the die. |
| Third Quadrant | < $V_{GS(th)}$ | Negative ($V_S > V_D$) | Flows S to D | Forward-biased. Body diode (or external diode) conducts flyback current. |
Selecting and Biasing the Right MOSFET and Diode Pair
Choosing the right components requires looking past the headline current ratings on the datasheet. Here is how to bias and select your pair for a typical 12V to 24V DC motor or solenoid application.
1. Biasing the Gate for Full Enhancement
A common mistake is looking at the Gate-Source Threshold Voltage ($V_{GS(th)}$) and assuming that voltage will turn the MOSFET fully on. $V_{GS(th)}$ is merely the voltage where the device begins to conduct a tiny leakage current (usually 250µA). To achieve the rated R_{DS(on)} (and minimize heat), you must drive the gate to the voltage specified in the datasheet's $R_{DS(on)}$ table—typically 10V for standard MOSFETs, or 4.5V/5V for logic-level MOSFETs.
2. Safe Default Part Numbers
If you are prototyping and need reliable, readily available through-hole or SMD defaults that won't fail under typical hobbyist or light-industrial loads:
- The MOSFET (Logic Level): IRLZ44N (TO-220). Rated for 55V $V_{DS}$, 47A continuous $I_D$. Crucially, it has an $R_{DS(on)}$ of just 17mΩ at $V_{GS} = 5V$, meaning a 3.3V ESP32 or 5V Arduino can drive it directly without a dedicated gate driver for loads under 10A.
- The External Diode (Low Frequency/DC): 1N5819 (Schottky). Rated for 40V, 1A. Excellent for small relays or low-current solenoids where switching speed is under 1kHz.
- The External Diode (High PWM/High Current): MUR460 (Ultra-Fast Recovery). Rated for 600V, 4A, with a $t_{rr}$ of 50ns. Mandatory for 20kHz+ PWM motor control to prevent shoot-through and thermal runaway.
Application Circuit: 12V DC Motor Drive with Freewheeling
Below is a complete, bench-tested schematic configuration for driving a 12V, 5A DC motor using PWM from a 3.3V microcontroller.
Component List & Values:
- Q1: IRLZ44N (N-Channel MOSFET)
- D1: SS34 (Schottky Diode, 40V, 3A) placed in reverse-parallel across the motor terminals (Cathode to Motor +12V, Anode to MOSFET Drain).
- R1 (Gate Stopper): 100Ω resistor in series between the MCU GPIO and the Gate. This limits the instantaneous charging current into the gate capacitance, protecting the MCU pin.
- R2 (Gate Pulldown): 10kΩ resistor from Gate to Ground. This ensures the MOSFET stays off during MCU boot-up when GPIO pins are floating.
- C1 (Bulk Bypass): 100µF electrolytic capacitor across the 12V supply rails, physically close to the motor, to absorb low-frequency voltage dips.
Current Path Walkthrough:
When the GPIO goes HIGH (3.3V), $V_{GS}$ exceeds the threshold, the channel opens, and current flows from the 12V supply, through the motor, through the Drain-Source channel, to ground. D1 is reverse-biased and does nothing.
When the GPIO goes LOW (0V), the channel closes instantly. The motor's inductance forces current to keep flowing in the same direction. This current circulates through the motor and up through D1 (the external Schottky diode). Because D1 has a forward voltage drop ($V_f$) of only 0.5V, it clamps the flyback spike safely and dissipates minimal heat, completely bypassing the slow internal body diode.
Bench War Story: When the Body Diode Melts the Silicon
Theory is clean; the workbench is not. A few years ago, I was tasked with building a PWM-controlled fluid valve manifold using 24V solenoids drawing 4.5A continuous. To save board space, I omitted the external flyback diode, relying on the body diode of a standard IRF540N MOSFET, assuming the 'avalanche rated' datasheet claim meant it could handle the kickback indefinitely at a 20kHz PWM frequency.
The Setup: 24V supply, IRF540N, no external diode, 20kHz PWM, 80% duty cycle.
The Numbers: During the 20% off-time, the 4.5A inductive current was forced through the body diode. The body diode's $V_f$ was roughly 1.3V. That equates to 5.85W of heat dissipated purely in the parasitic diode junction during the off-cycle. Furthermore, the 250ns reverse recovery time meant that when the MOSFET turned back on, the diode was still conducting backwards for a fraction of a microsecond, creating a massive 'shoot-through' current spike from the 24V rail directly to ground.
The Outcome: After 45 minutes of runtime, the TO-220 package reached 115°C. The localized heat in the body diode junction caused thermal runaway. The MOSFET failed short-circuit (Drain to Source). The 24V supply dumped directly into the shared ground plane, causing a severe ground-bounce that spiked the 3.3V logic rail to 6V, instantly bricking the $15 ESP32 control board.
What Went Wrong: I confused 'single-pulse avalanche energy' (which handles a one-time relay turn-off) with 'continuous third-quadrant PWM operation'. The fix was simple: swap the IRF540N for a logic-level IRLB8743, and solder a MUR460 ultra-fast diode directly across the solenoid coil. The board has run at 60°C ambient for three years since without a hiccup.
How MOSFETs Fail and How to Test Them with a Multimeter
When a MOSFET fails, it rarely fails open. The intense heat of a short-circuit or avalanche event melts the silicon and metallization layers together, resulting in a dead short between Drain and Source, and often Gate to Source. If your circuit blows a fuse or the MCU resets the moment you connect power, the MOSFET is likely shorted.
Here is the definitive numbered-steps procedure to test an N-channel MOSFET with a standard digital multimeter (DMM) set to Diode Test Mode.
- Discharge the Gate: Before testing, touch your finger across all three pins (Gate, Drain, Source) or use a 10kΩ resistor to short them. This bleeds off any static charge trapped in the gate oxide that could skew your readings.
- Test Drain-Source (Reverse): Place the red probe on the Drain and the black probe on the Source. The meter should read 'OL' (Open Loop / Infinite). If it reads near 0.00V or beeps continuously, the MOSFET is shorted and dead.
- Test the Body Diode (Forward): Swap the probes. Red on Source, Black on Drain. You should read a standard diode forward voltage drop, typically between 0.4V and 0.7V. If it reads 'OL', the internal diode is blown open (rare, but possible in catastrophic physical trauma).
- Test Gate Isolation: Place the red probe on the Gate, and alternate the black probe between Drain and Source. Both must read 'OL'. The gate oxide is an insulator; any continuity here means the gate is punctured, usually from an ESD strike or a voltage spike exceeding the $\pm 20V$ absolute maximum rating.
- The 'Thumb' Turn-On Test: With the black probe on the Source and red on the Drain (reading 'OL'), use your thumb to briefly touch the Gate and Drain pins together while holding the red probe. This uses the DMM's internal battery to charge the gate capacitance. The meter should immediately drop to near 0.0V as the MOSFET channel turns on. Short Gate to Source to turn it back off.
Mastering the interaction between the MOSFET channel and its parasitic diode—and knowing exactly when to augment it with an external Schottky or ultra-fast rectifier—is what separates a fragile prototype from a reliable, production-ready power stage. Always respect the inductive kickback, and your silicon will thank you.
For deeper reading on MOSFET parasitic structures and gate drive fundamentals, refer to the All About Circuits guide on body diodes and the onsemi MOSFET application notes repository.






