A MOSFET (Metal-Oxide-Semiconductor Field-Effect Transistor) works by using a voltage applied to its Gate pin to create an electric field that controls current flow between the Drain and Source pins. Unlike Bipolar Junction Transistors (BJTs) that require a continuous base current to stay on, MOSFETs are voltage-controlled devices. Once the Gate capacitance is charged, they draw near-zero steady-state current, making them the undisputed standard for high-efficiency switching in modern power electronics, motor control, and microcontroller interfacing.

The Anatomy and Symbol: Understanding MOSFET Pins

To use a MOSFET effectively, you must understand its three primary terminals and the hidden fourth component built into its silicon:

  • Gate (G): The control terminal. It is electrically isolated from the rest of the device by a thin layer of silicon dioxide (the 'oxide' in MOSFET). Because it acts like a capacitor, it draws current only during the split-second it is charging or discharging.
  • Drain (D): The terminal where current enters the channel (in an N-channel device). It is typically connected to the positive supply or the load.
  • Source (S): The terminal where current exits the channel. It is typically connected to ground (N-channel) or the positive supply (P-channel).
  • The Intrinsic Body Diode: Due to the physical construction of the silicon substrate, a parasitic diode exists between the Drain and Source. In an N-channel MOSFET, the cathode is at the Drain and the anode is at the Source. This diode will conduct if the Drain voltage drops below the Source voltage, which is a critical factor when switching inductive loads like motors or relays.

For a deeper look at the semiconductor physics behind the P-N junctions that form this body diode, the All About Circuits semiconductor textbook provides excellent cross-sectional diagrams.

Operation Regions: How a MOSFET Actually Switches

When biasing a MOSFET, you are moving it through distinct operating regions based on the Gate-to-Source voltage ($V_{GS}$) and the Drain-to-Source voltage ($V_{DS}$). Here is how an N-channel enhancement MOSFET behaves:

Operation Region Bias Condition Behavior & Typical Use Example State (Vth = 2V)
Cutoff $V_{GS} < V_{th}$ Device is OFF. Only nanoamps of leakage current flow. Used for the 'open switch' state. $V_{GS} = 0V$, $I_D = 0A$
Linear (Ohmic) $V_{GS} > V_{th}$ AND $V_{DS} < (V_{GS} - V_{th})$ Device is fully ON. Acts as a low-value resistor ($R_{DS(on)}$). Used for power switching. $V_{GS} = 5V$, $V_{DS} = 0.1V$
Saturation (Active) $V_{GS} > V_{th}$ AND $V_{DS} \ge (V_{GS} - V_{th})$ Device acts as a constant current source. Current is limited by $V_{GS}$. Used for amplifiers. $V_{GS} = 3V$, $V_{DS} = 5V$
The Terminology Trap: If you are coming from BJT transistors, pay close attention. In a BJT, 'Saturation' means the switch is fully ON. In a MOSFET, 'Saturation' means it is acting as an amplifier (constant current). When you want a MOSFET to act as a closed switch with minimal heat, you want it in the Linear (or Ohmic) region. Datasheets specify $R_{DS(on)}$ in this region.

Designing a Real Circuit: 12V Motor Control with an N-Channel MOSFET

Let us move from theory to the workbench. We will drive a 12V, 2A DC motor using a 5V PWM signal from an Arduino Uno. We will use the IRLZ44N logic-level MOSFET.

Component List and Values

  • Q1: IRLZ44N (N-Channel Logic-Level MOSFET)
  • R1 (Gate Stopper): 100Ω resistor (limits inrush current to the GPIO pin and prevents high-frequency ringing)
  • R2 (Pull-down): 10kΩ resistor (ensures the Gate is pulled to 0V if the microcontroller resets or pins float)
  • D1 (Flyback): 1N4007 diode (protects the MOSFET from inductive voltage spikes when the motor turns off)

Wiring Steps

  1. Establish the Ground Reference: Connect the Arduino GND to the breadboard ground rail. Connect the 12V power supply ground to the same rail. Common ground is mandatory for the 5V Gate signal to be referenced correctly against the Source.
  2. Wire the Gate Network: Connect the 10kΩ pull-down resistor (R2) between the MOSFET Gate pin and ground. Connect the 100Ω gate stopper (R1) in series between Arduino Pin 9 (PWM) and the Gate pin.
  3. Wire the Source: Connect the MOSFET Source pin directly to the common ground rail.
  4. Wire the Load and Flyback: Connect the motor's positive terminal to the 12V supply. Connect the motor's negative terminal to the MOSFET Drain pin. Place the 1N4007 diode in parallel with the motor, with the diode's cathode (stripe) pointing toward the 12V supply and the anode pointing toward the Drain.
  5. Verify and Test: Before applying 12V, use a multimeter in continuity mode to ensure the Drain is not shorted to ground. Apply power and output a 50% duty cycle PWM signal from the Arduino. The motor should run at half speed.

Selecting the Right Part and Safe Defaults for 2026 Builds

Walking into a parts bin or browsing Infineon's MOSFET portfolio can be overwhelming. Here are the safe, battle-tested defaults for hobbyist and prosumer bench builds, complete with the ratings that actually matter.

Part Number Max $V_{DS}$ / $I_D$ $R_{DS(on)}$ @ $V_{GS}$ Best Use Case Approx. Cost
IRLZ44N 55V / 47A 22mΩ @ 5V 5V Arduino logic, general 12V/24V loads up to 10A without a heatsink. $1.20 - $1.80
IRLB8721 30V / 62A 4.5mΩ @ 4.5V 3.3V ESP32/Raspberry Pi logic. Exceptionally low gate threshold and on-resistance. $1.80 - $2.50
IRF520 100V / 9A 270mΩ @ 10V AVOID for 5V/3.3V logic. Requires 10V+ to fully enhance. Will overheat at 5V Gate drive. $0.60 - $0.90
IRF3205 55V / 110A 8mΩ @ 10V High-current 12V/24V systems (e.g., e-bikes, solar dump loads) driven by a dedicated 12V gate driver. $1.50 - $2.20

How to select for your job: Never look only at the absolute maximum $I_D$ rating. A '47A' MOSFET will melt at 47A in free air. Look at the $R_{DS(on)}$ value at your specific Gate voltage, calculate your power dissipation ($P = I^2 \times R_{DS(on)}$), and ensure it stays below 1W to 2W if you are not using a heatsink. For the IRLZ44N at 5A, $P = 25 \times 0.022 = 0.55W$, which is perfectly safe in a TO-220 package without cooling.

Failure Modes and Multimeter Testing

MOSFETs do not usually fail gracefully; they fail short. Understanding why they die prevents you from replacing a blown part only to watch the replacement pop immediately.

  • Avalanche Breakdown (Overvoltage): If an inductive spike exceeds the $V_{DS}$ rating, the silicon breaks down. Fix: Always use a flyback diode or TVS diode.
  • Thermal Runaway (Overcurrent): As silicon heats up, its $R_{DS(on)}$ increases, which generates more heat, leading to a destructive loop. Fix: Calculate real-world $I^2R$ losses and add a heatsink.
  • $dV/dt$ Turn-on: Fast voltage transients on the Drain can couple through the Miller capacitance ($C_{GD}$) and artificially spike the Gate voltage, turning the MOSFET on unintentionally. Fix: Use a low-impedance gate driver and keep Gate traces short.

How to Test a MOSFET with a Multimeter

You can verify an N-channel MOSFET's health on the bench using the diode-test mode on a standard digital multimeter.

  1. Discharge the Gate: Touch the Gate and Source pins together with a piece of wire or your finger to bleed off any trapped charge.
  2. Test the Body Diode: Place the red probe on the Source and the black probe on the Drain. You should read a forward voltage drop of roughly 0.4V to 0.6V. Reverse the probes (red on Drain, black on Source); it should read 'OL' (open loop).
  3. Check for Gate Shorts: Place probes between Gate and Source, then Gate and Drain. Both must read 'OL'. Any reading below 'OL' means the gate oxide is punctured and the part is trash.
  4. Test Switching (Optional): While keeping the black probe on the Source, touch the red probe to the Gate to charge it via the meter's internal battery. Move the red probe back to the Drain. The meter should now read near 0V (or beep in continuity mode) because you have turned the channel on.

Frequently Asked Questions

How does a MOSFET transistor work with 3.3V logic like the ESP32?

When driving a MOSFET from a 3.3V GPIO pin, you must use a 'logic-level' MOSFET specifically rated to achieve its low $R_{DS(on)}$ at $V_{GS} = 2.5V$ or $3.3V$. Standard MOSFETs like the IRF520 require 10V to fully turn on; at 3.3V, they remain partially in the saturation (active) region, acting as a high-value resistor that will rapidly overheat and destroy the ESP32 GPIO pin via thermal feedback. The IRLB8721 or SiR344DP are excellent 3.3V-safe defaults.

Why does my MOSFET get hot when switching PWM?

If your MOSFET is cool at 100% duty cycle but burns your finger at 50% PWM, you are experiencing switching losses. Every time the MOSFET turns on or off, it passes through the linear region where both voltage and current are high simultaneously. If your microcontroller GPIO cannot charge the Gate capacitance fast enough (due to the Miller plateau effect), the MOSFET spends too much time in this high-dissipation transition zone. The fix is to use a dedicated MOSFET Gate Driver IC (like the TC4427 or IR2110) which can source amps of peak current to snap the Gate on and off in nanoseconds.

What is the difference between a MOSFET and a BJT transistor?

The fundamental difference is the control mechanism. A BJT (Bipolar Junction Transistor, like the 2N2222) is current-controlled; it requires a continuous flow of base current to maintain collector current, wasting power and requiring base resistors calculated via $h_{FE}$. A MOSFET is voltage-controlled; it only requires current to charge the Gate capacitance during transitions, drawing virtually zero steady-state current. For power switching above 1A, MOSFETs are vastly superior due to lower conduction losses and simpler drive requirements.