If you need to switch a high-current load with a tiny microcontroller signal, you need a Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET). But staring at a MOSFET transistor diagram for the first time can feel like reading a foreign language. The direct answer for 90% of hobbyist DC switching tasks under 30V and 40A is to grab an IRLZ44N (N-channel, logic-level, TO-220 package). It is cheap, rugged, and turns on fully with a 3.3V or 5V logic signal.

This guide strips away the semiconductor physics fluff and focuses on what you actually need on the workbench: how to read the schematic symbol, how the device behaves in different voltage regions, how to test a suspect part with your multimeter, and exactly which part numbers to buy for your next build.

Decoding the MOSFET Transistor Diagram: Symbol and Pinout

When you look at a schematic, the MOSFET symbol tells you everything about how to wire it. We are focusing on Enhancement-mode N-channel MOSFETs, which act as normally-open switches that close when you apply a positive voltage to the gate.

The symbol features three main terminals and one hidden feature:

  • Gate (G): The control terminal. Think of it as a capacitor plate. It draws virtually zero steady-state current, but requires a brief surge of current to charge its internal capacitance and turn the switch on.
  • Drain (D): The terminal where current enters the device from the positive side of your load.
  • Source (S): The terminal where current exits the device to ground.
  • The Body Diode: Notice the arrow pointing from the Source to the Drain on the symbol. This represents the intrinsic parasitic body diode. It means current can always flow backward from Source to Drain if the Drain voltage drops below the Source voltage, even if the MOSFET is turned off. This is critical to remember when wiring inductive loads like motors.
Bench Tip: TO-220 Physical Pinout
Hold a standard TO-220 packaged MOSFET (like the IRLZ44N) with the text facing you and the three pins pointing down. From left to right, the pins are Gate, Drain, Source. The large metal tab on the back is physically and electrically connected to the Drain. If you mount it to a grounded heatsink without an insulating pad, you will short your load directly to ground.

Operation Regions: Where the Magic (and Heat) Happens

Unlike BJTs, which are current-controlled, MOSFETs are voltage-controlled. The relationship between the Gate-Source voltage ($V_{GS}$) and the Drain-Source voltage ($V_{DS}$) dictates which region the transistor operates in. For switching applications, you only want to live in two of these regions. Lingering in the middle will melt your component.

MOSFET Operation Regions and Thermal Behavior
Region Gate-Source ($V_{GS}$) Drain-Source ($V_{DS}$) Behavior Power Dissipation
Cutoff < Threshold ($V_{th}$) Any Switch is OPEN. No current flows (except tiny leakage). Near Zero
Linear (Ohmic) > $V_{th}$ (Fully Enhanced) Low ($V_{DS} < V_{GS} - V_{th}$) Switch is CLOSED. Acts as a low-value resistor ($R_{DS(on)}$). Low ($I^2 \times R_{DS(on)}$)
Saturation (Active) > $V_{th}$ High ($V_{DS} > V_{GS} - V_{th}$) Constant current source. Used for amplification, NOT switching. Massive ($V_{DS} \times I_D$)

Note on terminology: In BJT land, 'saturation' means the switch is fully on. In MOSFET land, 'saturation' means the active amplification region. When using a MOSFET as a switch, you want to drive it hard into the Linear (Ohmic) region, where $R_{DS(on)}$ is minimized.

The Workbench Test: How MOSFETs Fail and How to Test Them

MOSFETs typically fail in three ways: gate oxide puncture from electrostatic discharge (ESD), thermal runaway from insufficient gate drive (leaving it in the saturation region), or avalanche breakdown from inductive voltage spikes exceeding the $V_{DS}$ rating. When they fail, they almost always fail 'short'—the Drain and Source become a dead short, melting your traces.

You can verify a MOSFET's health in 60 seconds using a digital multimeter (DMM) in Diode Test mode.

  1. Discharge the Gate: Touch your finger across all three pins, or use a 10kΩ resistor between Gate and Source. This bleeds off any trapped charge in the gate capacitance.
  2. Check the Body Diode: Place the DMM's red probe on the Source and the black probe on the Drain. You should read a standard diode drop (typically 0.4V to 0.6V). Reverse the probes; it should read 'OL' (Open Loop).
  3. Charge the Gate: Move the red probe to the Gate while keeping the black probe on the Drain. The DMM's internal battery will output ~3V, charging the gate capacitance and turning the MOSFET on.
  4. Verify the Switch: Move the red probe back to the Source (black still on Drain). The meter should now read close to 0.00V (a short), indicating the MOSFET has turned on and is bypassing the body diode.
  5. Discharge and Re-verify: Short the Gate to the Source with your finger or a resistor. Move the red probe back to the Source (black on Drain). The reading should revert to the 0.4V - 0.6V diode drop, proving the device successfully turns off.

If the device reads shorted in step 2, or fails to turn on in step 4, the MOSFET is dead. Bin it.

Application Circuit: Driving a 12V DC Motor with an ESP32

Let's put the diagram into practice. We want to control a 12V, 3A DC cooling fan using an ESP32 GPIO pin. The ESP32 outputs 3.3V logic, which is below the threshold of standard MOSFETs like the IRF520. We must use a logic-level MOSFET.

Here is the complete, battle-tested component list and wiring procedure:

  • Q1: IRLZ44N (N-Channel Logic Level MOSFET)
  • R1 (Gate Pull-down): 10kΩ resistor (Gate to GND)
  • R2 (Gate Stopper): 100Ω resistor (ESP32 GPIO to Gate)
  • D1 (Flyback): 1N4007 Diode (Cathode to +12V, Anode to Drain)

Wiring Steps:

  1. Connect the ESP32 GND to the MOSFET Source, and tie both to the 12V power supply ground. Common ground is mandatory.
  2. Wire the 10kΩ pull-down resistor (R1) between the Gate and Source. This ensures the motor stays off while the ESP32 is booting up and its GPIO pins are floating.
  3. Wire the 100Ω gate stopper (R2) in series between the ESP32 GPIO pin and the Gate. This limits the inrush current from the GPIO pin charging the gate capacitance, protecting the ESP32 and preventing high-frequency ringing.
  4. Connect the motor's positive wire to the +12V supply. Connect the motor's negative wire to the MOSFET Drain.
  5. Place the 1N4007 flyback diode in parallel with the motor (Cathode to +12V, Anode to Drain). When the MOSFET turns off, the motor's collapsing magnetic field generates a massive reverse voltage spike. Without this diode, the spike will punch through the MOSFET's $V_{DS}$ limit and destroy it instantly.
Thermal Math Check:
The IRLZ44N has an $R_{DS(on)}$ of roughly 22mΩ (0.022Ω) at $V_{GS}$ = 5V. At 3A, the power dissipated as heat is $I^2 \times R = 3^2 \times 0.022 = 0.198W$. This is well below the 1W threshold where a TO-220 package starts getting uncomfortably hot to the touch. No heatsink is required for this specific load.

Decision Tree: Picking the Right MOSFET for Your Build

Stop guessing in the parts bin. Use this decision matrix to select the exact right MOSFET for your specific load and logic level. These are the safe, widely available defaults that should live in every maker's drawer.

MOSFET Selection Decision Matrix
Your Scenario Logic Voltage Load Current Concrete Part Pick Key Specs ($V_{DS}$ / $I_D$ / $R_{DS(on)}$)
Heavy DC Motors, Solenoids, or High-Power LED strips (Low-side switch) 3.3V or 5V 10A - 40A IRLZ44N (TO-220) 55V / 47A / 22mΩ @ 5V
Extreme High Current (E-bike controllers, large battery banks) 5V or 12V 40A - 100A+ IRLB3034 (TO-220) 40V / 195A / 1.7mΩ @ 10V
Standard 12V LED Strips or PC Fans (Low-side switch, cost-sensitive) 5V (Marginal at 3.3V) < 10A IRLB8721 (TO-220) 30V / 62A / 7.8mΩ @ 4.5V
I2C Level Shifting or Tiny Signal Switching (SMD required) 3.3V or 5V < 200mA BSS138 (SOT-23) 50V / 220mA / 3.5Ω @ 4.5V
High-Side Switching (Must switch the positive rail, not ground) 5V or 12V (Needs gate driver for 3.3V) < 20A IRF9540N (P-Channel TO-220) -55V / -23A / 117mΩ @ -10V

The Golden Rules of Selection:

  1. Always check the $V_{GS}$ threshold, not just the absolute maximum. A datasheet might say '$V_{GS}$ max = 20V', but if the threshold ($V_{th}$) is 4V, a 3.3V ESP32 pin will barely crack it open, leaving the MOSFET in the high-heat saturation region.
  2. Derate current ratings by 50%. If a TO-220 datasheet claims '100A continuous', they tested it with the case bolted to an infinite liquid-cooled heatsink at 25°C ambient. In free air on your desk, a TO-220 will overheat past 5A to 10A without a finned heatsink.
  3. P-Channel is for high-side, N-Channel is for low-side. While you can use an N-channel for high-side switching, it requires a charge pump or bootstrap circuit to drive the gate above the supply rail. Keep it simple: use N-channel to switch the ground path, and P-channel to switch the positive path.

For deeper reading on gate drive requirements and parasitic oscillation, refer to the Texas Instruments guide on MOSFET gate driving and the All About Circuits MOSFET primer. Keep your flyback diodes close, your pull-down resistors installed, and your logic levels matched.