The Short Answer: How a MOSFET Transistor Works in Practice
A Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET) is a voltage-controlled switch. Unlike a Bipolar Junction Transistor (BJT) that requires continuous base current to stay on, a MOSFET requires almost zero steady-state current at its Gate pin. You apply a voltage to the Gate, an electric field forms across an insulating oxide layer, and a conductive channel opens between the Drain and Source pins.
Every standard power MOSFET has three main terminals:
- Gate (G): The control pin. Voltage here relative to the Source ($V_{GS}$) dictates the channel state.
- Drain (D): The terminal where current enters the channel (in an N-channel device).
- Source (S): The terminal where current exits to ground.
The symbol for an N-channel MOSFET features an arrow on the Source pin pointing inward toward the channel, while a P-channel symbol has the arrow pointing outward. For 95% of DIY and low-voltage switching applications, you will use N-channel MOSFETs on the low-side (between the load and ground) because they are cheaper, have lower on-resistance ($R_{DS(on)}$), and are easier to drive.
Operation Regions: The BJT vs. MOSFET Naming Trap
If you are coming from BJT transistors, MOSFET terminology will actively trick you. In a BJT, 'saturation' means the switch is fully ON. In a MOSFET, saturation means the device is acting as a constant-current amplifier, and the linear (ohmic) region means the switch is fully ON. Memorize this table before designing your next circuit.
| Region | Gate-Source Voltage ($V_{GS}$) | Drain-Source Voltage ($V_{DS}$) | Behavior & Typical Use |
|---|---|---|---|
| Cutoff | $V_{GS} < V_{th}$ (e.g., < 2.0V) | Any | Switch is OFF. Only nanoamps of leakage current flow. |
| Linear (Ohmic) | $V_{GS} > V_{th}$ (e.g., > 4.5V) | $V_{DS} < (V_{GS} - V_{th})$ | Switch is fully ON. Acts as a low-value resistor ($R_{DS(on)}$). Use this for digital switching. |
| Saturation | $V_{GS} > V_{th}$ | $V_{DS} \ge (V_{GS} - V_{th})$ | Channel is pinched off. Current is constant regardless of $V_{DS}$. Use this for analog amplifiers. |
When you want to turn on a 12V motor with a 5V microcontroller, your goal is to push the MOSFET deep into the Linear (Ohmic) region so $R_{DS(on)}$ drops to a few milliohms, minimizing heat.
A Complete 12V Inductive Load Switching Circuit
Let us build a reliable low-side switch to control a 12V, 3A DC water pump using a 3.3V ESP32 GPIO pin. We will use an IRLZ44N logic-level N-channel MOSFET.
Component List & Values
- Q1: IRLZ44N (N-channel Logic-Level MOSFET, TO-220 package)
- R1 (Gate Resistor): 100Ω, 1/4W. Limits the inrush current from the ESP32 pin into the MOSFET's gate capacitance, protecting the microcontroller's GPIO.
- R2 (Pull-down Resistor): 10kΩ, 1/4W. Tied between Gate and Ground. Ensures the MOSFET stays off if the ESP32 pin is floating (e.g., during boot-up or reset).
- D1 (Flyback Diode): 1N4007 or 1N5819 (Schottky). Placed in reverse-bias across the pump terminals (cathode to 12V, anode to Drain). Absorbs the inductive voltage spike when the pump turns off.
Wiring Steps
- Connect the ESP32 GPIO pin to one leg of the 100Ω resistor (R1).
- Connect the other leg of R1 to the Gate of the IRLZ44N.
- Connect the 10kΩ resistor (R2) between the Gate and Source (Ground).
- Connect the Source pin directly to your common system Ground.
- Connect the 12V power supply positive terminal to the positive wire of the water pump.
- Connect the negative wire of the water pump to the Drain pin of the MOSFET.
- Solder or screw the 1N4007 diode directly across the pump terminals, with the silver stripe (cathode) facing the 12V positive side.
Selection Decision Tree: Picking the Right FET
Do not just grab any MOSFET from your bin. Use this decision path to select the correct part for your specific application.
| Decision Point | Condition | Action / Specification Needed |
|---|---|---|
| 1. Logic Level Drive? | Gate drive voltage is 3.3V or 5V (MCU GPIO) | You MUST select a Logic-Level MOSFET ($V_{GS(th)}$ max ≤ 2.5V, fully enhanced at $V_{GS}$ = 4.5V). |
| 1. Logic Level Drive? | Gate drive voltage is 10V to 15V (Dedicated gate driver IC) | Standard-level MOSFET is fine ($V_{GS(th)}$ up to 4.0V, enhanced at 10V). |
| 2. High-Side or Low-Side? | Switching the ground path (Low-Side) | Use N-Channel. Cheaper, lower $R_{DS(on)}$, easier to drive. |
| 2. High-Side or Low-Side? | Switching the positive supply (High-Side) | Use P-Channel (for loads < 5A) or an N-Channel with a charge pump/bootstrap driver. |
| 3. Current Rating | Continuous load current is $I_{load}$ | Select a FET with an $I_D$ rating of at least 1.5 × $I_{load}$ to account for thermal derating without a heatsink. |
| Final Default Pick | 3.3V/5V MCU, Low-Side, < 10A load | Use the IRLZ44N (TO-220) or AO3400 (SOT-23). |
Failure Modes and Bench Testing with a Multimeter
MOSFETs typically fail in two ways: Gate Oxide Puncture from Electrostatic Discharge (ESD) or voltage spikes exceeding the $V_{GS}$ max (usually ±20V), which creates a dead short between Gate and Source; and Thermal Runaway, where insufficient gate drive leaves the FET in the linear region, causing $R_{DS(on)}$ to generate massive heat until the silicon melts, usually shorting Drain to Source.
You can test an N-channel MOSFET on your bench using a standard digital multimeter in Diode Test Mode. This verifies both the body diode and the gate capacitance.
- Discharge the Gate: Touch the multimeter's black probe to the Source and the red probe to the Gate. This bleeds off any stored charge.
- Test Body Diode (Forward): Place the red probe on the Source and the black probe on the Drain. You should read a diode drop of roughly 0.4V to 0.6V. This confirms the intrinsic body diode is intact.
- Test Body Diode (Reverse): Swap probes (red on Drain, black on Source). The meter should read OL (Open Loop).
- Charge the Gate: Move the red probe from the Drain to the Gate while keeping the black probe on the Source. The multimeter's internal battery (usually 3V to 9V) will charge the gate capacitance, turning the FET on.
- Verify Channel Conduction: Move the red probe back to the Drain (black remains on Source). Because the gate is now charged, the channel is open. The meter should read near 0.0V (or beep in continuity mode), proving the FET turns on.
- Discharge to Turn Off: Touch the black probe to the Gate to discharge it. Re-test Drain to Source; it should read OL again.
If the FET reads shorted (0.0V) in both directions across Drain-Source, or if Gate-Source reads as a dead short, the component is destroyed.
The Safe Default MOSFET Part Numbers for Your Bench
Stop guessing and stock these four specific part numbers. They cover 99% of hobbyist, Arduino, ESP32, and 12V/24V automotive switching tasks.
- IRLZ44N (N-Channel, Logic-Level, TO-220): The ultimate bench workhorse. Rated for 47A continuous, $R_{DS(on)}$ of 22mΩ at $V_{GS}$ = 5V. Fully turns on with 3.3V or 5V GPIO pins. Handles up to ~5A without a heatsink. Typical price: $1.20 each.
- IRFZ44N (N-Channel, Standard-Level, TO-220): Similar physical specs to the IRLZ44N, but requires 10V on the gate to fully enhance. Use this only when driving from a dedicated 12V gate driver IC or a 12V control circuit. Typical price: $0.80 each.
- AO3400 (N-Channel, Logic-Level, SOT-23): The go-to surface-mount part for tight spaces on custom PCBs. Rated for 5.7A, $R_{DS(on)}$ of 26mΩ at 4.5V. Perfect for driving small relays, LEDs, or low-power motors directly from an ESP32. Typical price: $0.10 each on tape and reel.
- IRF9540 (P-Channel, Standard-Level, TO-220): The default high-side switch. Rated for 23A, $R_{DS(on)}$ of 117mΩ. Requires a negative $V_{GS}$ of -10V to turn on, making it ideal for 12V high-side automotive switching where the gate is pulled to ground to activate. Typical price: $1.10 each.
For further reading on MOSFET gate drive characteristics and thermal design, consult the Texas Instruments MOSFET Overview and the All About Circuits semiconductor textbook chapter on FETs. Keep your gate pull-downs installed, respect the body diode, and your switches will run indefinitely.






