A metal oxide semiconductor field effect transistor (MOSFET) is the undisputed workhorse of modern power electronics. Unlike bipolar junction transistors (BJTs) that require continuous base current to stay on, a MOSFET is a voltage-controlled device. Once you charge the gate capacitance, it draws virtually zero steady-state current to remain fully enhanced. To use an N-channel MOSFET as a low-side switch, you simply apply a Gate-to-Source voltage ($V_{GS}$) higher than its threshold—typically 10V for standard parts or 4.5V for logic-level variants.
But picking the right part from a distributor like Mouser or Digi-Key involves more than just matching the voltage rating. In this guide, we will cover the physical pinouts, operational regions, safe default part numbers, and exactly how to verify a suspect component on your bench using a digital multimeter.
Anatomy and Pinout: Gate, Drain, and Source
Before wiring anything, you must understand the physical package and the internal parasitic components. The most common through-hole package for hobbyist and bench power supplies is the TO-220. When you hold a TO-220 MOSFET with the text facing you and the pins pointing down, the pinout from left to right is:
- Gate (G): The control terminal. It is capacitively coupled to the channel. High impedance; easily destroyed by electrostatic discharge (ESD) or overvoltage.
- Drain (D): The terminal where current enters the channel (for N-channel). The metal mounting tab on the back of the TO-220 package is internally connected to the Drain.
- Source (S): The terminal where current exits the channel. This is your reference point for the Gate voltage ($V_{GS}$).
Every power MOSFET also contains an intrinsic body diode connected between the Source and Drain (cathode to Drain for N-channel). This diode allows current to flow in reverse even when the MOSFET is turned off, which is critical to remember when switching inductive loads or designing H-bridges.
Operation Regions and Typical Thresholds
Textbooks often use physics terminology that confuses power engineers. In power electronics, we care about the device acting as a switch. Here is how the operational regions map to real-world switching behavior for a standard N-channel enhancement MOSFET.
| Region Name | Physics / Textbook Term | Gate-Source Voltage ($V_{GS}$) | Drain-Source Voltage ($V_{DS}$) | Behavior & Application |
|---|---|---|---|---|
| Cutoff | Subthreshold | $< V_{GS(th)}$ (e.g., < 2.0V) | Any (up to $V_{DS(max)}$) | Switch is OPEN. Only nanoamps of leakage current flow. |
| Linear / Ohmic | Triode / Ohmic | $> V_{GS(th)}$ (e.g., 10V) | $< V_{GS} - V_{th}$ (Very low) | Switch is CLOSED. Acts as a low-value resistor ($R_{DS(on)}$). Used for PWM switching. |
| Saturation | Active / Saturation | $> V_{GS(th)}$ | $> V_{GS} - V_{th}$ | Constant current source. Used for analog amplifiers or linear regulators, NOT for power switching. |
Note: In BJT terminology, "saturation" means fully ON. In MOSFET physics, "saturation" means the active/constant-current region. When using a MOSFET as a switch, you want to drive it hard into the Linear/Ohmic region to minimize $R_{DS(on)}$ and heat.
Selecting, Biasing, and Safe Default Part Numbers
When selecting a metal oxide semiconductor field effect transistor for a project, you must evaluate four key datasheet parameters: Maximum Drain-Source Voltage ($V_{DS}$), Continuous Drain Current ($I_D$), On-Resistance ($R_{DS(on)}$), and Gate Charge ($Q_g$).
A common mistake is driving a standard MOSFET directly from a 5V Arduino or 3.3V ESP32. Standard MOSFETs might have a threshold voltage ($V_{GS(th)}$) of 2V to 4V, meaning they begin to turn on at 3.3V, but they will not achieve their rated low $R_{DS(on)}$ until $V_{GS}$ reaches 10V. Driving them at 3.3V leaves them in the high-resistance linear region, causing them to overheat and fail.
Safe Default Part Numbers for the Bench
Keep these three verified workhorses in your component bins. They cover 95% of DIY and prototyping needs:
- IRLZ44N (Logic-Level, TO-220): 55V $V_{DS}$, 47A $I_D$, 22mΩ $R_{DS(on)}$ at $V_{GS}$ = 5V. The absolute best default for 5V/3.3V microcontrollers switching 12V/24V loads up to 15A without a heatsink.
- IRF540N (Standard, TO-220): 100V $V_{DS}$, 33A $I_D$, 44mΩ $R_{DS(on)}$ at $V_{GS}$ = 10V. Excellent for 12V/24V automotive or higher voltage bench power supplies where you have a dedicated 12V gate driver.
- AO3400 (Logic-Level, SOT-23 SMD): 30V $V_{DS}$, 5.7A $I_D$, 35mΩ $R_{DS(on)}$ at $V_{GS}$ = 4.5V. The go-to surface-mount part for low-power 3.3V ESP32/STM32 GPIO switching (e.g., driving small relays or LEDs).
Proper Biasing Network
Never leave a MOSFET gate floating. A floating gate acts as an antenna, picking up stray EMI and partially turning the device on, leading to thermal destruction. Always use:
- Gate Pull-Down Resistor (10kΩ): Connected between Gate and Source. Ensures the MOSFET turns off if the microcontroller resets or the control wire is disconnected.
- Gate Series Resistor (10Ω to 100Ω): Placed between the microcontroller GPIO and the Gate. Limits the inrush current required to charge the gate capacitance ($Q_g$), protecting the microcontroller's GPIO pin from overcurrent damage.
Failure Modes and Multimeter Diode Testing
MOSFETs typically fail in three ways: Avalanche breakdown (exceeding $V_{DS(max)}$ with inductive kickback), Thermal runaway (exceeding current limits or poor heatsinking causing $R_{DS(on)}$ to increase with temperature), and Gate oxide puncture (ESD or exceeding $V_{GS(max)}$, usually ±20V).
When a MOSFET fails catastrophically, it almost always fails as a dead short between all three pins. Here is how to test an N-channel MOSFET using a digital multimeter (like a Fluke 87V or Brymen BM235) set to Diode Test mode.
- Discharge the Gate: Touch your meter probes across the Gate and Source pins simultaneously, or short them with a screwdriver. This bleeds off any stored gate charge.
- Test the Body Diode: Place the Red probe on the Source and the Black probe on the Drain. You should read a standard silicon diode drop (typically 0.4V to 0.6V).
- Test Reverse Blocking: Swap the probes (Red on Drain, Black on Source). The meter should read "OL" (Open Loop / Over Limit), indicating the diode is blocking.
- Check for Drain-Source Short: If step 3 reads 0.0V or a dead short (beep in continuity mode), the MOSFET is blown and must be replaced.
For a deeper dive into semiconductor physics and failure analysis, the All About Circuits semiconductor textbook provides excellent foundational theory on channel formation and breakdown mechanisms.
Application Circuit: 12V DC Motor PWM Driver
Let us put this into practice. Below is a complete, bench-tested circuit for driving a 12V DC motor using an ESP32 (3.3V logic) and an IRLZ44N logic-level MOSFET. This circuit handles up to 10A continuous without a heatsink.
Bill of Materials
- Q1: IRLZ44N N-Channel Logic-Level MOSFET
- D1: 1N4007 or Schottky (e.g., 1N5819) Flyback Diode
- R1: 100Ω 1/4W Resistor (Gate series)
- R2: 10kΩ 1/4W Resistor (Gate pull-down)
- U1: ESP32 DevKit V1 (or any 3.3V/5V microcontroller)
Wiring Steps
- Connect the ESP32 GND pin to the common ground rail.
- Connect the Source (S) pin of the IRLZ44N to the common ground rail.
- Connect R2 (10kΩ) between the Gate (G) and Source (S) pins.
- Connect R1 (100Ω) between the ESP32 PWM GPIO pin (e.g., GPIO 25) and the Gate (G) pin.
- Connect the Motor's negative terminal to the Drain (D) pin of the MOSFET.
- Connect the Motor's positive terminal to the +12V power supply.
- Critical: Connect the Flyback Diode (D1) in reverse bias across the motor. The cathode (stripe) goes to the +12V side, and the anode goes to the Drain (D) pin. This clamps the inductive voltage spike when the MOSFET turns off, preventing avalanche breakdown.
- Connect the +12V power supply ground to the common ground rail.
For further component selection and thermal design guidelines, refer to the Vishay Siliconix MOSFET application notes, which detail how to calculate junction temperatures based on ambient conditions and PCB copper area.
Frequently Asked Questions
What is the difference between a logic-level and standard metal oxide semiconductor field effect transistor?
The difference lies in the Gate-to-Source voltage ($V_{GS}$) required to fully enhance the channel and achieve the lowest possible On-Resistance ($R_{DS(on)}$). A standard MOSFET (like the IRF520) requires $V_{GS} = 10V$ to reach its rated $R_{DS(on)}$. If you drive it with 5V from an Arduino, it will only partially turn on, acting as a high-value resistor and generating massive heat. A logic-level MOSFET (like the IRLZ44N, denoted by the "L" in the part number) is engineered with a thinner gate oxide layer, allowing it to achieve its rated low $R_{DS(on)}$ at $V_{GS} = 4.5V$ or even 2.5V, making it safe for direct microcontroller interfacing.
Why does my MOSFET get hot even when the load is under its rated current?
Datasheet current ratings (e.g., "47A") are tested under ideal laboratory conditions: an infinite heatsink holding the case at exactly 25°C. In reality, a bare TO-220 package in free air can only dissipate about 1W to 2W before the junction temperature exceeds safe limits. If your load draws 10A and your $R_{DS(on)}$ is 22mΩ, the power dissipated is $I^2R$ ($10^2 \times 0.022 = 2.2W$). Without a heatsink, the silicon junction will quickly exceed 150°C and trigger thermal shutdown or fail. Always calculate $I^2R$ losses and check the thermal resistance ($R_{\theta JA}$) spec in the datasheet.
Can I wire two MOSFETs in parallel to double the current capacity?
Yes, but with caveats. Unlike BJTs, which suffer from thermal runaway when paralleled due to their negative temperature coefficient, MOSFETs have a positive temperature coefficient for $R_{DS(on)}$. As one MOSFET gets hotter, its resistance increases, naturally shifting current to the cooler device. However, to ensure they switch simultaneously and share the load evenly, you must use a separate gate resistor for each MOSFET (e.g., two 100Ω resistors, one for each gate) rather than a single resistor before the gates split. This prevents high-frequency parasitic oscillation between the gate capacitances.
How do I protect the gate from voltage spikes when using an ESP32?
The absolute maximum $V_{GS}$ for most power MOSFETs is ±20V. If you are switching high-voltage inductive loads, ground bounce or Miller capacitance coupling ($C_{gd}$) can induce voltage spikes on the gate that exceed this limit, puncturing the thin silicon dioxide layer and permanently destroying the part. To protect the gate, place a 12V or 15V Zener diode (like the 1N4742A) between the Gate and Source pins, with the Zener cathode facing the Gate. This clamps any transient spikes safely below the 20V destruction threshold.






