A metal oxide field effect transistor (MOSFET) is a voltage-controlled semiconductor device used primarily for switching and amplifying electronic signals. Unlike Bipolar Junction Transistors (BJTs) that require continuous base current to stay on, a MOSFET draws virtually zero steady-state gate current, making it the undisputed choice for microcontroller-driven DC loads, power supplies, and motor controllers.
If you need a safe, reliable default N-channel MOSFET for general 12V/5A hobbyist switching, buy the IRLZ44N (logic-level, ~$1.80). For higher voltage 24V-48V systems up to 10A, use the IRF540N (~$1.20). If your design strictly requires high-side switching, grab the P-channel IRF9540N (~$1.90). Keep reading to understand how to bias them correctly, avoid common destruction modes, and verify them on your bench.
The Metal Oxide Field Effect Transistor: Symbol, Pinout, and Safe Defaults
Before wiring anything, you must understand the physical package and the schematic symbol. In a standard schematic, the N-channel MOSFET symbol features three main terminals: Gate (G), Drain (D), and Source (S). The arrow on the source terminal points inward for N-channel and outward for P-channel. Crucially, the symbol also includes an intrinsic body diode pointing from Source to Drain (for N-channel), which conducts if the drain voltage drops below the source voltage.
For the ubiquitous TO-220 through-hole package, hold the component with the metal tab facing away from you and the three pins pointing down. From left to right, the pins are: 1: Gate, 2: Drain, 3: Source. The metal tab is internally connected to the Drain, which is why you must use an insulating pad if mounting multiple TO-220 MOSFETs to a shared heatsink.
| Part Number | Type | VDS (Max) | ID (Continuous) | RDS(on) @ VGS | VGS(th) | Typ. Price |
|---|---|---|---|---|---|---|
| IRLZ44N | N-Channel (Logic) | 55V | 47A | 22mΩ @ 5V | 1.0 - 2.0V | $1.80 |
| IRF540N | N-Channel (Standard) | 100V | 33A | 44mΩ @ 10V | 2.0 - 4.0V | $1.20 |
| IRF9540N | P-Channel (Standard) | -100V | -23A | 117mΩ @ -10V | -2.0 to -4.0V | $1.90 |
| FQP30N06L | N-Channel (Logic) | 60V | 32A | 35mΩ @ 5V | 1.0 - 2.5V | $1.50 |
Operation Regions and Biasing for Switching vs. Amplification
A common point of confusion for makers transitioning from BJTs is MOSFET terminology. What a BJT calls "saturation" (fully ON), a MOSFET calls the Linear or Triode region. What a BJT calls "active" (amplification), a MOSFET calls Saturation. When using a metal oxide field effect transistor as a switch, you want to operate exclusively in the Cutoff and Triode regions.
| Region | Gate Bias Condition | Drain-Source Condition | Behavior & Use Case |
|---|---|---|---|
| Cutoff | VGS < VGS(th) | Any | Device is OFF. Only nanoamps of leakage current flow. Used for open-circuit switching. |
| Triode (Linear) | VGS > VGS(th) | VDS < (VGS - VGS(th)) | Device is fully ON. Acts as a low-value resistor (RDS(on)). Used for power switching. |
| Saturation | VGS > VGS(th) | VDS > (VGS - VGS(th)) | Current is constant regardless of VDS. Acts as a voltage-controlled current source. Used for amplifiers. |
How to bias for switching: To ensure the MOSFET enters the Triode region and minimizes heat, your Gate-to-Source voltage (VGS) must be significantly higher than the threshold voltage (VGS(th)). If you are driving the gate from a 5V Arduino, do not use a standard MOSFET like the IRF540N; its RDS(on) is only guaranteed at 10V. At 5V, it will partially turn on, exhibit high resistance, and overheat. Instead, select a "logic-level" MOSFET (like the IRLZ44N) which specifies a low RDS(on) at VGS = 4.5V or 5V.
Application Circuit: Driving a 12V DC Motor from 3.3V Logic
Below is a complete, robust circuit for driving a 12V, 2A DC motor using an ESP32 (3.3V logic) and an IRLZ44N logic-level metal oxide field effect transistor.
Component List and Values
- Q1: IRLZ44N (N-Channel Logic-Level MOSFET)
- R1 (Gate Resistor): 100Ω (Limits inrush current into the gate capacitance, preventing GPIO damage and high-frequency ringing)
- R2 (Pull-down Resistor): 10kΩ (Ensures gate is pulled to 0V when GPIO is floating)
- D1 (Flyback Diode): 1N5819 Schottky (Clamps inductive voltage spikes when the motor turns off)
- M1: 12V DC Motor (Nominal 2A draw)
- U1: ESP32 DevKit V1 (3.3V GPIO output)
Wiring Steps
- Connect the ESP32 GND pin to the common ground rail of your breadboard.
- Connect the 12V power supply ground to the same common ground rail.
- Connect the IRLZ44N Source pin (Pin 3) to the common ground rail.
- Connect the 10kΩ pull-down resistor (R2) between the IRLZ44N Gate (Pin 1) and Source (Pin 3).
- Connect the 100Ω gate resistor (R1) between the ESP32 GPIO pin (e.g., GPIO 25) and the IRLZ44N Gate (Pin 1).
- Connect the motor's negative terminal to the IRLZ44N Drain pin (Pin 2).
- Connect the motor's positive terminal to the 12V power supply positive rail.
- Place the 1N5819 diode in parallel with the motor: connect the diode's cathode (striped end) to the 12V rail, and the anode to the MOSFET Drain pin.
When the ESP32 drives GPIO 25 HIGH (3.3V), the VGS exceeds the IRLZ44N's 2.0V maximum threshold, pushing it deep into the triode region. The RDS(on) drops to roughly 25mΩ, and the motor runs. When the GPIO goes LOW, R2 pulls the gate to ground, turning the MOSFET off, and D1 safely dissipates the motor's collapsing magnetic field.
Failure Modes and Multimeter Diagnostics
MOSFETs generally fail in three ways: Gate oxide puncture from ESD or exceeding the ±20V VGS limit, thermal runaway from inadequate heatsinking or insufficient gate drive voltage, and avalanche breakdown from inductive kickback exceeding the VDS rating. When a MOSFET fails, it almost always fails "short" (Drain-to-Source short circuit), which can subsequently take out your power supply or microcontroller.
You can test a metal oxide field effect transistor directly on the bench using a standard digital multimeter (DMM) in Diode Test mode. Do not use resistance mode; it lacks the forward voltage required to bias the internal body diode or charge the gate capacitance.
Step-by-Step DMM Test (N-Channel)
- Discharge the Gate: Touch the multimeter's black probe to the Source pin and the red probe to the Gate pin. This shorts any residual charge.
- Test Body Diode (Forward): Place the red probe on the Source and the black probe on the Drain. The DMM should read a diode voltage drop between 0.4V and 0.7V. This confirms the intrinsic body diode is intact.
- Test Body Diode (Reverse): Swap the probes (red on Drain, black on Source). The DMM should read "OL" (Open Loop), confirming the diode blocks reverse current.
- Charge the Gate: While keeping the black probe on the Source, briefly touch the red probe to the Gate pin. The DMM's internal battery (usually 3V to 9V) will charge the gate capacitance, turning the MOSFET on.
- Verify Triode Conduction: Move the red probe back to the Drain (black remains on Source). The DMM should now read a near-short (0.00V to 0.05V), indicating the channel is fully enhanced and conducting.
- Discharge and Verify Cutoff: Touch the Gate to the Source again to discharge it. Re-test Drain-to-Source; it should revert to "OL".
If the device reads shorted in both directions, or fails to turn on in Step 5, the MOSFET is destroyed and must be replaced.
Frequently Asked Questions
Can I drive a standard metal oxide field effect transistor directly from a 3.3V microcontroller?
Generally, no. Standard MOSFETs (like the IRF520 or IRF540N) have a threshold voltage (VGS(th)) ranging from 2.0V to 4.0V. While 3.3V might barely cross the threshold to initiate conduction, it is nowhere near the 10V required to fully enhance the channel and achieve the advertised low RDS(on). The device will operate in the linear region, acting as a high-value resistor, and will rapidly overheat. Always use a dedicated "logic-level" MOSFET (indicated by an 'L' in the part number, like IRLZ44N) or a dedicated gate driver IC when switching from 3.3V logic.
Why does my metal oxide field effect transistor get hot even when the load current is low?
If the load current is well within the MOSFET's rating (e.g., 1A on a 30A device) but the case is hot to the touch, you are likely experiencing high-frequency switching losses or inadequate gate drive. If you are using PWM at frequencies above 5kHz, the gate capacitance (Qg) requires significant peak current to charge and discharge rapidly. A microcontroller GPIO cannot supply this current, causing the MOSFET to linger in the linear (high-resistance) region during every transition. The fix is to add a dedicated MOSFET gate driver (like the TC4420) between the microcontroller and the gate.
What is the difference between a MOSFET and a BJT for switching applications?
The primary difference is the control mechanism. A Bipolar Junction Transistor (BJT) is current-controlled; it requires a continuous base current (typically 1/10th of the collector current) to remain in saturation. A metal oxide field effect transistor is voltage-controlled; it requires a voltage potential at the gate but draws virtually zero continuous current. For high-current loads (>1A) or high-frequency PWM switching, MOSFETs are vastly superior due to lower conduction losses and faster switching speeds. BJTs are still useful for ultra-low-cost, low-current (<100mA) signal switching where the base current overhead is negligible.






