Using a MOSFET as switch means operating the transistor strictly in two states: fully off (cutoff) and fully on (linear/ohmic). Unlike bipolar junction transistors (BJTs) which are current-controlled, a Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET) is voltage-controlled. You apply a voltage to the Gate relative to the Source to open a channel between the Drain and Source. The primary goal in switching applications is to transition through the active (saturation) region as fast as possible to minimize power dissipation and heat generation.
The Direct Answer: Safe Default MOSFETs for Switching
If you are building a DC switching circuit for a microcontroller project or a 12V/24V home automation load, do not waste time guessing which component to buy. Below are the benchmark part numbers that offer the best balance of low on-resistance (Rds(on)), logic-level gate thresholds, and wide availability. These are the safe defaults you should keep in your bench inventory.
| Part Number | Type | Vds (Max) | Id (Max) | Rds(on) @ Vgs | Vgs(th) | Package | Approx. Cost |
|---|---|---|---|---|---|---|---|
| IRLZ44N | Logic-Level | 55V | 47A | 22mΩ @ 5V | 1.0 - 2.0V | TO-220 | $1.20 |
| IRLB8721 | Logic-Level | 30V | 62A | 7.8mΩ @ 4.5V | 1.35 - 1.95V | TO-220 | $1.50 |
| AO3400A | Logic-Level | 30V | 5.7A | 33mΩ @ 4.5V | 0.7 - 1.4V | SOT-23 | $0.15 |
| IRF520 | Standard | 100V | 9.2A | 270mΩ @ 10V | 2.0 - 4.0V | TO-220 | $0.80 |
Pinout, Symbol, and Operation Regions
To use a MOSFET correctly, you must understand its physical layout and its operating regions. The standard schematic symbol for an N-channel enhancement MOSFET features three main terminals: Gate (G), Drain (D), and Source (S). The symbol also includes an arrow on the Source pointing inward (for N-channel), and a parallel line representing the intrinsic body diode pointing from Source to Drain. This body diode means current can always flow backward through the device if the Drain voltage drops below the Source voltage, which is critical to remember when designing H-bridges or reverse-polarity protection.
For a standard TO-220 through-hole package (like the IRLZ44N), hold the component with the text facing you and the pins pointing down. From left to right, the pins are: 1. Gate, 2. Drain, 3. Source. The large metal tab on the back is internally connected to the Drain.
When analyzing the device mathematically, it operates in three distinct regions. For switching, you only want to use the first two.
| Region | Bias Condition | Drain Current (Id) | Function in Circuit | Power Dissipation |
|---|---|---|---|---|
| Cutoff | Vgs < Vgs(th) | 0A (Negligible leakage) | Switch OPEN (Off) | Near Zero |
| Linear (Ohmic) | Vgs > Vgs(th) AND Vds < (Vgs - Vgs(th)) | Proportional to Vds / Rds(on) | Switch CLOSED (On) | Low (I² × Rds(on)) |
| Saturation (Active) | Vgs > Vgs(th) AND Vds > (Vgs - Vgs(th)) | Constant (Controlled by Vgs) | Amplifier / Current Source | Very High (Vds × Id) |
According to Electronics Tutorials, the most common beginner mistake is biasing the MOSFET in the saturation region by under-driving the gate. If you apply 3V to a gate that requires 5V to fully enhance, the MOSFET acts as a variable resistor rather than a closed switch, dropping voltage across the channel and converting your battery's energy into waste heat.
How to Bias and Select a MOSFET for the Job
Selecting and biasing a MOSFET requires checking three absolute maximum ratings against your circuit parameters, plus calculating the gate drive network. Follow this selection framework:
- Drain-Source Voltage (Vds): Must be at least 20% higher than your maximum supply voltage. For a 12V nominal system (which can see 14.4V from an alternator), choose a 20V or 30V minimum Vds.
- Continuous Drain Current (Id): Must exceed your maximum load current. Check the datasheet's Id rating at your specific ambient temperature, as it derates heavily above 25°C.
- Gate-Source Threshold (Vgs(th)): This is the voltage where the MOSFET just begins to conduct (usually 250µA). To use it as a fully closed switch, your logic voltage must be significantly higher than Vgs(th). Look for the Rds(on) specification in the datasheet; if it is tested at Vgs = 4.5V or 2.5V, it is safe for 5V or 3.3V logic, respectively.
Application Circuit: ESP32 Driving a 12V Inductive Load
Let's build a complete, robust circuit to switch a 12V, 2A DC water pump using an ESP32 (3.3V logic). The pump is an inductive load, meaning it will generate a high-voltage flyback spike when turned off. We will use the IRLZ44N logic-level MOSFET.
Bill of Materials & Component Values:
- Q1: IRLZ44N N-Channel MOSFET
- R1 (Gate Series): 100Ω (1/4W) resistor
- R2 (Gate Pulldown): 10kΩ (1/4W) resistor
- D1 (Flyback): 1N4007 or 1N5819 Schottky diode
- Load: 12V DC Water Pump
Wiring Procedure:
- Connect the ESP32 GPIO pin to one side of the 100Ω series resistor (R1). Connect the other side of R1 to the Gate of the IRLZ44N. Why 100Ω? A MOSFET gate behaves like a small capacitor (Ciss). When the GPIO goes high, it will try to source infinite inrush current to charge this capacitor. The 100Ω resistor limits this spike to ~33mA, protecting the ESP32's fragile GPIO traces while still allowing the MOSFET to switch in microseconds.
- Connect the 10kΩ pulldown resistor (R2) between the Gate and Ground (Source). Why 10kΩ? During ESP32 boot-up, GPIO pins are high-impedance (floating). Without a pulldown, ambient EMI can charge the gate capacitance and accidentally turn on your pump. The 10kΩ resistor safely bleeds off any stray charge.
- Connect the MOSFET Source pin directly to the common system Ground.
- Connect the MOSFET Drain pin to the negative terminal of the water pump.
- Connect the positive terminal of the water pump to the +12V power supply.
- Connect the 1N4007 flyback diode (D1) in reverse bias across the pump terminals: the cathode (stripe) to +12V, and the anode to the Drain. When the MOSFET turns off, the pump's collapsing magnetic field pushes current backward; the diode provides a safe recirculation path, preventing a 100V+ spike from punching through the MOSFET's Drain-Source oxide layer.
Failure Modes and Multimeter Testing
Despite their robustness, MOSFETs fail in predictable ways on the workbench. Understanding these failure modes helps you diagnose a blown board without immediately replacing parts. As noted in All About Circuits, the gate oxide layer is incredibly thin and vulnerable.
- Gate Oxide Puncture: The gate is insulated by a microscopic layer of silicon dioxide. If Vgs exceeds ±20V (or even lower via ESD), the oxide punctures. The Gate shorts to the Source or Drain. The MOSFET will either stick permanently ON or permanently OFF.
- Avalanche Breakdown: If the Drain-Source voltage exceeds the Vds rating (often caused by missing a flyback diode on an inductive load), the silicon lattice breaks down, creating a dead short between Drain and Source. The device usually melts or cracks.
- Thermal Runaway: Unlike BJTs, a MOSFET's Rds(on) has a positive temperature coefficient. As it gets hot, its resistance increases, which causes it to drop more voltage and generate more heat. If the heatsink is undersized, this feedback loop ends in a melted TO-220 package.
How to Test an N-Channel MOSFET with a Digital Multimeter
You do not need a specialized transistor tester to verify a MOSFET. A standard digital multimeter (DMM) in Diode Test Mode can check the body diode and the gate's ability to hold a charge. Follow these exact bench steps for an N-channel device:
- Discharge the Gate: Touch your finger across all three pins (Gate, Drain, Source) simultaneously, or use a jumper wire to short them. This bleeds off any stored gate capacitance.
- Test the Body Diode (Forward): Place the Red probe on the Source and the Black probe on the Drain. The meter should read a standard diode forward voltage drop, typically between 0.4V and 0.6V.
- Test the Body Diode (Reverse): Swap the probes: Red on Drain, Black on Source. The meter should read OL (Open Loop / Over Limit).
- Charge the Gate: Keep the Black probe on the Source. Briefly touch the Red probe to the Gate. This applies the multimeter's internal ~3V battery to the gate, turning the MOSFET channel ON.
- Verify Channel Conduction: Move the Red probe back to the Drain (keeping Black on Source). The meter should now read a very low voltage drop (often 0.0V to 0.1V) or beep if your meter has a continuity setting. This proves the channel has enhanced and current is flowing from Drain to Source.
- Discharge and Verify Cutoff: Touch the Black probe to the Gate to discharge it. Then, place Red on Drain and Black on Source. The reading must return to OL. If it still reads a short, the MOSFET is internally damaged and must be discarded.
By sticking to logic-level part numbers like the IRLZ44N, respecting the gate capacitance with proper series and pulldown resistors, and always protecting inductive loads with flyback diodes, you will eliminate 95% of the common switching failures encountered in DIY electronics and home automation wiring. For deeper theoretical modeling of gate charge dynamics, refer to the SparkFun Transistor Tutorial and manufacturer datasheets.






