When you move beyond simple logic ICs and start switching real power—motors, solenoids, LED strips, or heating elements—the bipolar junction transistor (BJT) quickly hits its limits. You need a Field Effect Transistor (FET), specifically a MOSFET. But unlike the base, collector, and emitter of a BJT, identifying and properly biasing the transistor source drain gate terminals requires a different mental model. The gate doesn't draw continuous current; it acts like a tiny capacitor that controls a voltage-variable resistor between the other two pins.
This guide cuts through the semiconductor physics and gives you the practical, bench-ready knowledge to select, wire, and test MOSFETs for DIY and prototyping projects.
The Transistor Source Drain Gate Pinout Explained
The three terminals of a MOSFET are the Gate (G), Drain (D), and Source (S). In an N-channel device (the most common type for low-side switching), current flows from the Drain to the Source when a sufficient positive voltage is applied to the Gate relative to the Source.
Physical Pinout vs. Schematic Symbol
The most common through-hole package for power MOSFETs is the TO-220. When you hold a TO-220 MOSFET with the text facing you and the metal tab pointing up, the pins from left to right are:
- Pin 1 (Left): Gate
- Pin 2 (Middle): Drain
- Pin 3 (Right): Source
In schematic symbols, the Source is always the pin connected to the body diode's cathode (for N-channel) or anode (for P-channel). That intrinsic body diode is a physical byproduct of how the silicon is doped, and it means a MOSFET will always conduct current in reverse (Source to Drain for N-channel) if the Drain voltage drops below the Source voltage by about 0.7V, regardless of the Gate state.
MOSFET Operation Regions and Biasing
To use a MOSFET as a switch, you must drive it fully into the Ohmic (Linear) region. To use it as an amplifier, you bias it in the Saturation region. Here is how the transistor source drain gate voltages dictate behavior:
| Operation Region | Gate-Source Voltage (Vgs) | Drain-Source Voltage (Vds) | Drain Current (Id) | Practical Use Case |
|---|---|---|---|---|
| Cutoff | Vgs < Vgs(th) | Any | 0A (Leakage only) | Switch is OFF. Load is disconnected. |
| Saturation (Active) | Vgs > Vgs(th) | Vds > (Vgs - Vgs(th)) | Constant (Controlled by Vgs) | Constant current sources, linear amplifiers. MOSFET dissipates high heat. |
| Ohmic (Linear) | Vgs >> Vgs(th) | Vds < (Vgs - Vgs(th)) | Proportional to Vds | Switch is fully ON. Acts as a low-value resistor (Rds(on)). Minimal heat. |
The Biasing Trap: Vgs(th) vs. Vgs(max)
The datasheet parameter Vgs(th) (Gate-Source Threshold Voltage) is the most misunderstood spec in electronics. If a datasheet lists Vgs(th) as 2.0V to 4.0V, it means the MOSFET will just barely start to conduct a tiny trickle of current (usually 250µA) at that voltage. It does not mean the transistor is fully turned on.
To fully turn on a MOSFET and achieve the low Rds(on) (Drain-Source On-Resistance) listed on the front page of the datasheet, you must look at the test conditions for Rds(on). If Rds(on) is tested at Vgs = 10V, you need to supply 10V to the Gate to get that performance. If you are driving the Gate from a 3.3V microcontroller, you must select a 'Logic-Level' MOSFET, which specifies Rds(on) at Vgs = 4.5V or 2.5V.
Decision Tree: Picking the Right MOSFET for Your Circuit
Stop guessing based on what is in your junk bin. Use this decision path to select the exact component for your next build.
| Condition / Requirement | Required Spec | Concrete Part Pick |
|---|---|---|
| Switching < 500mA, 3.3V or 5V logic, signal level | N-ch, Vgs(th) < 1.5V, SOT-23 package | BSS138 (or 2N7000 for through-hole) |
| Switching 5A to 30A, driven by 5V Arduino/ESP32 | N-ch Logic Level, Vgs=4.5V Rds(on) rated, TO-220 | IRLZ44N (or IRLB8721) |
| Switching > 50A, high power (e.g., e-bike, 12V inverter) | N-ch, Vgs=10V rated, extremely low Rds(on) | IRF3205 (Requires 10V-12V gate driver IC) |
| High-side switching (load connected to ground) | P-ch MOSFET or N-ch with charge pump | IRF9540N (P-ch) or use a dedicated high-side driver IC |
The Verdict: For 90% of hobbyist microcontroller projects switching moderate loads (motors, solenoids, LED strips under 20A), the IRLZ44N is the undisputed default. Buy a 10-pack and keep them on your bench.
Application Circuit: Driving a 12V Motor with an ESP32
The ESP32 operates at 3.3V logic and its GPIO pins can only safely source about 12mA to 20mA. We will use an IRLZ44N logic-level N-channel MOSFET to switch a 12V DC motor drawing 2A. According to All About Circuits, protecting the microcontroller from the MOSFET's gate capacitance and the motor's inductive kickback is mandatory.
Components Required
- 1x ESP32 DevKit
- 1x IRLZ44N N-Channel MOSFET
- 1x 100Ω Resistor (Gate series)
- 1x 10kΩ Resistor (Gate pull-down)
- 1x 1N4007 or 1N5819 Flyback Diode
- 1x 12V DC Motor
Wiring Steps
- Gate Series Resistor: Connect a 100Ω resistor between the ESP32 GPIO pin (e.g., GPIO 25) and the MOSFET Gate pin. This limits the inrush current as the ESP32 charges the MOSFET's internal gate capacitance, protecting the ESP32's silicon from overcurrent.
- Gate Pull-Down Resistor: Connect a 10kΩ resistor between the MOSFET Gate and Source (Ground). This ensures the Gate is pulled low during ESP32 boot-up when GPIO pins are floating, preventing the motor from spinning out of control.
- Source to Ground: Connect the MOSFET Source pin directly to the system Ground (shared with the ESP32 GND and the 12V power supply negative).
- Drain to Load: Connect the Motor's negative terminal to the MOSFET Drain pin. Connect the Motor's positive terminal to the 12V power supply positive.
- Flyback Diode: Place the 1N4007 diode in reverse bias across the motor terminals (Cathode/Stripe to 12V+, Anode to Drain). When the MOSFET turns off, the motor's collapsing magnetic field generates a massive voltage spike. The diode recirculates this current, preventing it from punching through the MOSFET's Drain-Source junction.
How MOSFETs Fail and How to Test Them with a Multimeter
MOSFETs generally fail in three ways: Gate punch-through (exceeding the ±20V Vgs max limit, often from static electricity), thermal runawayavalanche breakdown (inductive voltage spikes exceeding the Vds rating). When they fail, they almost always fail 'short'—Drain to Source becomes a dead short, and the Gate often shorts to the Source.
You do not need a specialized transistor tester to verify a MOSFET. A standard digital multimeter in Diode Test mode is highly effective. As outlined in testing guides by Fluke, follow this exact sequence for an N-channel MOSFET:
- Discharge the Gate: Touch the multimeter's black probe to the Source and the red probe to the Gate for a second. This bleeds off any residual charge in the gate capacitor, ensuring the MOSFET is in the Cutoff region.
- Test the Body Diode (Reverse): Keep the black probe on the Source. Touch the red probe to the Drain. The meter should read 'OL' (Over Limit) or a very high number. This confirms the intrinsic body diode is blocking current in the reverse direction.
- Test the Body Diode (Forward): Swap the probes. Red on Source, Black on Drain. The meter should read a standard diode drop, typically between 0.400V and 0.600V. If it reads 0.000V, the Drain-Source junction is shorted (dead MOSFET).
- Turn the MOSFET On: Leave the black probe on the Source. Touch the red probe to the Gate for a second to charge the gate capacitance with the multimeter's internal battery (usually 3V to 9V, enough to partially turn on a logic-level FET). Then, move the red probe back to the Drain. The meter should now read a very low voltage drop (near 0.000V to 0.100V), indicating the channel is conducting.
- Turn the MOSFET Off: Touch the black probe to the Gate (while red is on Drain or Source) to discharge it. Re-test Drain to Source; it should revert to the diode drop reading from Step 3.
The Safe Default Part Numbers for the Workbench
Stop buying random assortments of unlabeled TO-92 transistors from overseas marketplaces. Stock these specific, industry-standard part numbers. They are widely available from reputable distributors like DigiKey, Mouser, and Arrow, ensuring you get genuine silicon with accurate datasheets.
| Part Number | Type / Package | Vds (Max) | Id (Continuous) | Rds(on) @ Vgs | Typical Retail Price (2026) |
|---|---|---|---|---|---|
| BSS138 | N-Ch / SOT-23 | 50V | 220mA | 3.5Ω @ 4.5V | $0.15 |
| 2N7000 | N-Ch / TO-92 | 60V | 200mA | 5.0Ω @ 10V | $0.20 |
| IRLZ44N | N-Ch / TO-220 | 55V | 47A | 22mΩ @ 5.0V | $1.40 |
| IRF3205 | N-Ch / TO-220 | 55V | 110A | 8mΩ @ 10V | $1.80 |
| IRF9540N | P-Ch / TO-220 | -100V | -23A | 117mΩ @ -10V | $1.60 |
By standardizing your inventory around the BSS138 for signal switching and the IRLZ44N for power switching, you eliminate the 'it depends' paralysis. You will always have the right transistor source drain gate configuration ready for your next ESP32 or Arduino build, backed by known thermal limits and guaranteed logic-level compatibility.






