A MOSFET (Metal-Oxide-Semiconductor Field-Effect Transistor) is a voltage-controlled semiconductor device used to switch or amplify electrical signals. Unlike Bipolar Junction Transistors (BJTs) that require continuous base current to stay on, a MOSFET requires almost zero continuous gate current. You simply apply a voltage to the gate relative to the source, and the channel opens. This near-infinite input impedance makes it the undisputed default choice for microcontroller-driven high-power loads, from 5A LED strips to 40A 3D printer heated beds.

If you are looking for safe default part numbers to keep in your bench bin: the IRLZ44N (N-channel, 55V, 47A, logic-level) is the workhorse for 5V/3.3V Arduino and ESP32 projects. For legacy 12V gate-drive circuits, the IRF520 (100V, 9A) is common but requires 10V to fully turn on. For low-power surface-mount signal switching, the AO3400 (30V, 5.7A, SOT-23) and BSS138 (50V, 200mA) are industry standards.

MOSFET Pinout, Symbol, and Operating Regions

Before wiring anything, you need to understand the physical layout and the schematic representation. A standard MOSFET has three terminals: Gate (G), Drain (D), and Source (S).

For the ubiquitous TO-220 through-hole package, if you hold the component facing you with the metal tab in the back and the legs pointing down, the pins from left to right are Gate, Drain, Source. The metal tab on the back is internally connected to the Drain, which is why you must use insulating mica or silicone pads when mounting multiple MOSFETs to a shared heatsink. On a schematic, the N-channel symbol features a vertical line representing the channel, with the Gate separated by a small gap (representing the metal-oxide insulation). The arrow on the Source leg points inward for N-channel and outward for P-channel. Crucially, the symbol also includes a body diode pointing from Source to Drain, an inherent parasitic component that conducts if you reverse-bias the Drain and Source.

Understanding how a MOSFET transitions between states is critical. Note that MOSFET terminology is notoriously confusing because the word "saturation" means the exact opposite of what it means for a BJT.

Operating Region Gate-Source Voltage ($V_{GS}$) Drain-Source Voltage ($V_{DS}$) Behavior Typical Use
Cutoff $V_{GS} < V_{GS(th)}$ Any Channel is closed. Only nanoamps of leakage current flow. Switch OFF state.
Linear (Ohmic) $V_{GS} > V_{GS(th)}$ $V_{DS} < V_{GS} - V_{GS(th)}$ Channel is fully open. Acts like a low-value resistor ($R_{DS(on)}$). Current is limited by the load. Switch ON state (PWM, power delivery).
Saturation (Active) $V_{GS} > V_{GS(th)}$ $V_{DS} > V_{GS} - V_{GS(th)}$ Channel is pinched off near the drain. Acts as a constant-current source. Dissipates massive heat. Linear amplifiers, electronic loads (avoid for switching).

How to Select and Bias a MOSFET for Your Circuit

Selecting the right MOSFET requires checking four datasheet parameters against your circuit realities. First, check $V_{DS(max)}$; it must exceed your supply voltage by at least 20% to handle inductive ringing. Second, check $I_{D(max)}$, but ignore the headline number on the first page of the datasheet. That number assumes an infinite heatsink at 25°C. Look at the $I_D$ vs. Temperature graph; a 47A MOSFET might only safely handle 20A at 100°C. Third, evaluate $R_{DS(on)}$, the on-state resistance. This dictates your conduction losses ($P = I^2 \times R_{DS(on)}$). Finally, check $V_{GS(th)}$ (Gate Threshold Voltage). This is the voltage where the MOSFET just barely starts to turn on (usually at 250µA). To fully turn it on and achieve the rated $R_{DS(on)}$, you must drive the gate to the $V_{GS}$ value specified in the $R_{DS(on)}$ test conditions—usually 4.5V or 10V.

Callout Tip: Logic-Level vs. Standard MOSFETs
If you are driving the gate directly from a 5V Arduino or 3.3V ESP32, you must use a "Logic-Level" MOSFET (usually denoted by an 'L' in the part number, like IRLZ44N). Standard MOSFETs like the IRF520 have a $V_{GS(th)}$ of 2V-4V, meaning a 3.3V GPIO pin will leave it stuck in the high-resistance Saturation region, causing it to overheat and melt under heavy loads.

Complete Application Circuit: ESP32 Switching a 12V 5A DC Motor

Here is a robust, real-world circuit to drive an inductive load using an ESP32 (3.3V logic) and an IRLZ44N.

  • Q1: IRLZ44N (N-Channel, 55V, 47A, $R_{DS(on)}$ = 22mΩ at 5V $V_{GS}$).
  • R1 (Gate Resistor): 100Ω. Placed between the ESP32 GPIO and the Gate. This limits the inrush current into the MOSFET's internal gate capacitance, protecting the microcontroller's GPIO trace from burning out.
  • R2 (Pull-down Resistor): 10kΩ. Placed between Gate and Source (GND). This ensures the gate is pulled low during ESP32 boot-up when GPIO pins are floating, preventing the motor from spinning out of control.
  • D1 (Flyback Diode): 1N5819 Schottky. Placed in reverse bias across the motor terminals (Cathode to 12V, Anode to Drain). When the MOSFET turns off, the motor's collapsing magnetic field generates a massive voltage spike. The diode safely recirculates this current.
  • Wiring: Source to system GND. Drain to Motor (-). Motor (+) to 12V PSU. ESP32 GND must be tied to the 12V PSU GND to establish a common reference.

Failure Modes and How to Test a MOSFET with a Multimeter

MOSFETs generally fail in three ways on the bench. Thermal runaway occurs when $R_{DS(on)}$ is too high for the current, generating heat, which in turn increases $R_{DS(on)}$ further until the silicon melts (often shorting Drain to Source). Gate oxide puncture happens when electrostatic discharge (ESD) or a voltage spike exceeding ±20V breaches the microscopic insulating layer under the gate, permanently shorting Gate to Source. Avalanche breakdown occurs when an inductive spike exceeds $V_{DS(max)}$, punching through the channel.

You can diagnose a suspected dead MOSFET using a standard digital multimeter (DMM) in Diode Test mode. This test leverages the DMM's internal ~3V battery to charge the gate and the internal body diode to verify the junction.

  1. Discharge the Gate: Touch your multimeter probes across the Gate and Source pins simultaneously to short them. This bleeds off any stored charge in the gate capacitor.
  2. Test the Body Diode: Place the Red probe on the Source and the Black probe on the Drain. You should read a standard diode drop, typically between 0.4V and 0.6V. Reverse the probes (Red on Drain, Black on Source); the meter should read "OL" (Open Loop).
  3. Charge the Gate: Move the Red probe to the Gate while keeping the Black probe on the Source. The DMM's internal voltage will charge the gate capacitance, turning the MOSFET on. (Note: This only works reliably for logic-level MOSFETs; standard 10V-gate MOSFETs won't fully turn on from a DMM).
  4. Test the Channel: Move the Red probe back to the Source, keeping Black on the Drain. Because the channel is now open, the meter should read near 0.000V (or a very low voltage drop), indicating the MOSFET is conducting.
  5. Verify Turn-Off: Short the Gate to Source again with your finger or a probe. Repeat Step 2. The reading must return to the 0.4V - 0.6V diode drop. If it stays near 0.000V, the MOSFET is internally shorted and must be replaced.

Frequently Asked Questions About MOSFETs

What is the difference between N-channel and P-channel MOSFETs?

N-channel MOSFETs are placed on the low side of a load (between the load and ground). They are turned on by applying a positive voltage to the gate relative to the source. They are cheaper, have lower $R_{DS(on)}$, and handle higher currents due to the higher mobility of electrons. P-channel MOSFETs are placed on the high side (between the power supply and the load) and are turned on by pulling the gate lower than the source. While high-side switching is useful for preventing a load from having a constant ground path, P-channel MOSFETs are more expensive and less efficient. For high-side switching in modern designs, engineers typically use an N-channel MOSFET paired with a dedicated gate driver IC or a charge pump circuit.

Why do I need a pull-down resistor on the MOSFET gate?

The gate of a MOSFET acts like a tiny capacitor. When a microcontroller boots up (like an ESP32 or Arduino), its GPIO pins temporarily enter a high-impedance "floating" state before the firmware initializes them. During this window, ambient electromagnetic noise can couple into the gate trace, charging the capacitor and partially turning the MOSFET on. If a high-current load is connected, the MOSFET will operate in the high-heat saturation region and likely burn out before your code even starts running. A 10kΩ pull-down resistor provides a safe discharge path to ground, keeping the MOSFET firmly off until the microcontroller actively drives the pin high.

Can I use a MOSFET instead of a relay for switching AC loads?

Not directly, and attempting to do so is a severe shock and fire hazard. A single standard MOSFET is a unidirectional DC device; it has a parasitic body diode that will conduct during the negative half-cycle of an AC waveform, effectively acting as a short circuit. Furthermore, MOSFETs do not provide the galvanic isolation that a mechanical relay or solid-state relay (SSR) offers. If you need to switch mains AC voltage (120V/230V), use an electromechanical relay or a purpose-built AC Solid State Relay (which contains back-to-back SCRs or triacs and an optocoupler for isolation). For more on safe AC switching topologies, refer to the All About Circuits MOSFET guide.

What is the safe default MOSFET for 3.3V microcontrollers in 2026?

For 3.3V logic environments like the Raspberry Pi Pico, ESP32, or STM32, the IRLZ44N remains the undisputed king for through-hole high-power switching. Its $V_{GS(th)}$ is low enough (1-2V) to begin conducting at 3.3V, and its $R_{DS(on)}$ is fully specified at 5V, meaning it runs very cool even when driven directly from a 3.3V pin through a gate driver. For surface-mount designs where space is at a premium, the CSD17571Q5A (Texas Instruments, 30V, 100A, SON 5x6 package) offers incredibly low on-resistance for high-current battery and motor applications. Always verify the $R_{DS(on)}$ test conditions in the manufacturer datasheets, such as those provided in the Infineon MOSFET Selection Guide, rather than relying solely on the front-page summary.