What is a MOSFET Transistor? (The Bench-Side Definition)

A Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET) is a voltage-controlled electronic switch. Unlike a Bipolar Junction Transistor (BJT) that requires a continuous flow of base current to stay turned on, a MOSFET requires almost zero steady-state current at its control terminal. Once you apply the correct voltage to the gate, an electric field creates a conductive channel, and the device stays on until you remove that voltage. This near-infinite input impedance makes MOSFETs the undisputed standard for everything from 5W LED drivers to 5kW solar inverters.

Every standard MOSFET has three pins: Gate (G), Drain (D), and Source (S). In an N-channel MOSFET (the most common type for low-side switching), current flows from the Drain to the Source when a positive voltage is applied to the Gate relative to the Source. The schematic symbol for an N-channel device features an arrow on the Source pin pointing inward toward the channel, while a P-channel symbol has the arrow pointing outward.

A critical feature hidden inside the physical silicon layout is the intrinsic body diode. It is permanently wired in parallel with the channel, pointing from Source to Drain in an N-channel device. This means an N-channel MOSFET will always conduct current backward (Source to Drain) if the Drain voltage drops below the Source voltage, a trait you must account for when designing H-bridges or battery protection circuits.

Operation Regions and Safe Default Part Numbers

One of the most common traps for hobbyists transitioning from BJTs to MOSFETs is the terminology for operation regions. In a BJT, "saturation" means the switch is fully ON. In a MOSFET, "saturation" actually means it is acting as a constant-current source (partially on), while the "linear" or "ohmic" region means it is fully ON as a switch.

MOSFET Operation Regions (N-Channel)
Region Gate-Source Voltage (Vgs) Drain-Source Voltage (Vds) Behavior & Typical Use
Cutoff Vgs < Vgs(th) Any Switch is OFF. Only micro-amps of leakage current flow.
Linear (Ohmic) Vgs > Vgs(th) Vds < (Vgs - Vgs(th)) Fully ON switch. Acts as a low-value resistor (Rds(on)). Used for PWM and power switching.
Saturation (Active) Vgs > Vgs(th) Vds > (Vgs - Vgs(th)) Constant current source. Current is limited by Vgs, not the load. Used in analog amplifiers and linear regulators.

When stocking your bench, you only need a handful of reliable, high-availability part numbers to cover 95% of DIY and prototyping needs. According to All About Circuits semiconductor guides, selecting logic-level gate thresholds is vital for modern microcontroller integration.

Safe Default MOSFET Part Numbers for the Workbench
Part Number Type Vds (Max) Id (Continuous) Rds(on) @ Vgs=4.5V Package Typ. Price
IRLZ44N N-Channel 55V 47A 22 mΩ TO-220 $1.20
AO3400A N-Channel 30V 5.7A 26 mΩ SOT-23 $0.15
BSS138 N-Channel 50V 0.22A 3.5 Ω SOT-23 $0.10
IRF9540N P-Channel -100V -23A 117 mΩ TO-220 $1.80

How to Select and Bias a MOSFET for Your Circuit

Selecting the right MOSFET requires checking three absolute maximums: Drain-Source Voltage (Vds), Continuous Drain Current (Id), and Gate-Source Threshold Voltage (Vgs(th)). Always derate Vds by at least 20% (e.g., use a 55V part for a 36V solar string). For current, calculate your thermal budget using the formula: Power Dissipated = I² × Rds(on). If your load draws 10A through an IRLZ44N (22mΩ at 4.5V), the dissipation is 10² × 0.022 = 2.2W. A bare TO-220 package can dissipate about 1.5W to 2W in free air before hitting thermal limits, meaning you will need a small clip-on heatsink for continuous 10A operation.

Callout Tip: The Gate Pulldown Resistor
Never leave a MOSFET gate floating. A floating gate acts as an antenna, picking up electromagnetic interference (EMI) and partially turning the device on, leading to rapid thermal destruction. Always place a 10kΩ to 100kΩ resistor between the Gate and Source to bleed off stray charge when the driving signal is disconnected.

Complete Application Circuit: ESP32 PWM 12V Fan Driver

Here is a robust, real-world circuit to drive a 12V, 1.5A PC cooling fan using the 3.3V GPIO of an ESP32 DevKit v1. We use the IRLZ44N because its Rds(on) is fully specified at Vgs = 4.5V, meaning it turns on hard even with a 3.3V logic signal.

Components Required:

  • 1x IRLZ44N N-Channel MOSFET
  • 1x 100Ω Gate Resistor (prevents high-frequency ringing and protects the GPIO pin from inrush current into the gate capacitance)
  • 1x 10kΩ Gate-to-Source Pulldown Resistor
  • 1x 1N4007 or 1N5819 Flyback Diode (protects against inductive kickback from the fan motor)

Wiring Steps:

  1. Connect the ESP32 GND pin to the ground rail of your breadboard.
  2. Connect the 12V power supply negative terminal to the same ground rail.
  3. Place the IRLZ44N on the board. Connect its Source pin directly to the ground rail.
  4. Insert the 10kΩ pulldown resistor between the Gate and Source pins of the MOSFET.
  5. Connect one end of the 100Ω gate resistor to the MOSFET Gate, and the other end to ESP32 GPIO pin 18 (a hardware PWM-capable pin).
  6. Connect the flyback diode across the fan terminals: Diode Cathode (striped end) to the 12V positive rail, Diode Anode to the MOSFET Drain.
  7. Connect the Fan's positive wire to the 12V positive rail, and the Fan's negative wire to the MOSFET Drain.

For deeper insights into managing gate charge and Miller plateau effects during the switching transition, refer to the Texas Instruments Fundamentals of MOSFET Gate Driver Circuits application note.

Failure Modes and How to Test a MOSFET with a Multimeter

MOSFETs rarely fail gracefully. They typically fail in three ways:

  • Gate Oxide Puncture: Exceeding the maximum Vgs (usually ±20V) ruptures the microscopic silicon dioxide layer inside the gate. The gate becomes shorted to the source, and the device is dead.
  • Avalanche Breakdown: An inductive voltage spike exceeds the Vds rating, causing the silicon to break down and short the Drain to the Source.
  • Thermal Runaway: As a MOSFET heats up, its Rds(on) increases. This causes it to dissipate more power, making it hotter, until it melts into a permanent short circuit.

How to Test an N-Channel MOSFET with a Digital Multimeter

You can verify the health of an N-channel MOSFET using your multimeter's Diode Test mode. This test checks both the intrinsic body diode and the gate's ability to hold a charge.

  1. Discharge the Gate: Touch your fingers across all three pins (Gate, Drain, Source) simultaneously to bleed off any static charge.
  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 forward voltage drop (typically 0.4V to 0.6V). Reverse the probes (Red on Drain, Black on Source); the meter should read "OL" (Open Loop).
  3. Charge the Gate: Keep the Black probe on the Source. Briefly touch the Red probe to the Gate pin. This applies the multimeter's internal ~3V battery to the gate, charging the internal capacitance and turning the channel ON.
  4. Test the Channel: Move the Red probe back to the Drain (Black remains on Source). The meter should now read a very low voltage (near 0.00V to 0.02V) or beep on continuity mode, indicating the channel is successfully conducting.
  5. Discharge and Verify: Touch the Gate and Source together to discharge the gate. Re-test Drain to Source; it should revert to reading "OL", confirming the device can turn off.

Note: For P-channel testing, swap all Red and Black probe assignments in the steps above.

Frequently Asked Questions

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

A BJT (like the 2N2222) is a current-controlled device; it requires continuous base current to maintain collector current, resulting in a voltage drop (Vce(sat)) that generates heat. A MOSFET is voltage-controlled. Once the gate capacitance is charged, it draws virtually zero current. Furthermore, a fully turned-on MOSFET acts as a pure resistor (Rds(on)), meaning its voltage drop scales linearly with current, making it vastly more efficient for high-current switching applications.

Can I drive a MOSFET directly from an Arduino or ESP32 GPIO pin?

Yes, but only if you select a logic-level MOSFET. Standard MOSFETs (like the IRF520) require 10V on the gate to fully turn on and achieve their rated Rds(on). If you drive an IRF520 with a 5V Arduino, it will only partially turn on, acting as a resistor and overheating rapidly. Always check the datasheet for the Rds(on) specification at Vgs = 4.5V or Vgs = 2.5V. The IRLZ44N and AO3400A are excellent logic-level choices that work perfectly with 3.3V and 5V microcontrollers.

Why does my MOSFET get hot even when it is fully turned on?

Heat generation in the ON state is dictated by I² × Rds(on). If your Rds(on) is 50mΩ and you are pulling 10A, you are dissipating 5W of heat. A standard TO-220 package without a heatsink can only safely dissipate about 1.5W to 2W in still air before the silicon junction exceeds safe temperatures (usually 150°C). To fix this, either add a bolt-on heatsink, switch to a MOSFET with a lower Rds(on) (like an IRLB3034 at 1.3mΩ), or parallel two MOSFETs to halve the effective resistance.

What is the body diode in a MOSFET and when does it conduct?

The body diode is an unavoidable parasitic component formed during the semiconductor manufacturing process. In an N-channel MOSFET, the anode is connected to the Source and the cathode to the Drain. It conducts whenever the Source voltage is higher than the Drain voltage by about 0.6V. While often a nuisance in H-bridge circuits (requiring dead-time management to prevent shoot-through), the body diode is highly beneficial in synchronous buck converters and motor drive circuits, where it provides a natural freewheeling path for inductive kickback currents.