Using a MOS transistor as a switch is the foundational building block of modern power electronics, motor control, and microcontroller interfacing. Unlike mechanical relays, a Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET) offers silent, high-speed switching with virtually zero steady-state gate current. However, treating it like a simple mechanical contact will lead to melted silicon and bricked microcontrollers.
The direct answer for most hobbyist and bench applications is to use an N-channel logic-level MOSFET in a low-side switching configuration. For high-current loads (up to 47A), the IRLZ44N is the safest default through-hole part. For low-power signal switching (under 300mA), the 2N7000 remains the standard. Below, we break down exactly how to bias, protect, and test these components on the bench.
Understanding the MOS Transistor Pinout and Symbol
Before wiring anything, you must understand the physical and schematic layout. A standard discrete MOS transistor has three primary terminals, plus a hidden fourth internal connection:
- Gate (G): The control terminal. It acts like one plate of a capacitor, separated from the semiconductor channel by a microscopic layer of silicon dioxide (the gate oxide). Voltage applied here creates an electric field that allows current to flow.
- Drain (D): The terminal where current enters the N-channel device (conventional current flow). Connects to the negative terminal of the load.
- Source (S): The terminal where current exits the device. Connects directly to ground in low-side switching.
- Body Diode: Inherent in the physical construction of discrete power MOSFETs, a parasitic PN junction exists between the drain and source. In an N-channel MOSFET, the anode is at the source and the cathode is at the drain. This diode conducts if the drain voltage drops below the source voltage, which is why high-side N-channel switching requires complex charge pumps.
Operation Regions: When is it Actually Switching?
A common trap for engineers transitioning from Bipolar Junction Transistors (BJTs) is the terminology. In a BJT, "saturation" means the switch is fully ON. In a MOS transistor, "saturation" means the device is acting as a constant-current source (the active region). To use a MOS transistor as a switch, you must toggle between Cutoff and the Triode (Ohmic) region.
| Operating Region | Gate-Source Voltage ($V_{GS}$) | Drain-Source Voltage ($V_{DS}$) | Switch State | Typical Application |
|---|---|---|---|---|
| Cutoff | $V_{GS} < V_{GS(th)}$ | $V_{DS} > 0$ | OFF (Open Circuit) | Load is disconnected; only nanoamp leakage flows. |
| Triode (Ohmic) | $V_{GS} > V_{GS(th)}$ | $V_{DS} < (V_{GS} - V_{GS(th)})$ | ON (Closed Switch) | Power switching; acts as a low-value resistor ($R_{DS(on)}$). |
| Saturation (Active) | $V_{GS} > V_{GS(th)}$ | $V_{DS} \ge (V_{GS} - V_{GS(th)})$ | Partial / Linear | Audio amplifiers, electronic loads; avoid for switching due to high heat. |
To ensure the device stays in the Triode region (fully ON), your gate drive voltage ($V_{GS}$) must be significantly higher than the threshold voltage ($V_{GS(th)}$), and the voltage drop across the load must leave very little $V_{DS}$ remaining.
How to Bias and Select a MOS Transistor for the Job
Selecting the right part requires looking past the absolute maximum ratings on the first page of the datasheet. The critical parameters for switching are:
- $V_{DS(max)}$: Must be at least 20% higher than your supply voltage to handle inductive ringing.
- $R_{DS(on)}$: The on-state resistance. This dictates your heat dissipation ($P = I^2 \times R_{DS(on)}$). Always read this value at the specific $V_{GS}$ your microcontroller provides (e.g., 4.5V or 10V), not at the absolute maximum $V_{GS}$.
- $V_{GS(th)}$ (Threshold Voltage): This is the voltage where the transistor just barely starts to turn on (usually defined at 250µA). A $V_{GS(th)}$ of 2V to 4V means you cannot reliably drive it with a 3.3V logic pin. You need a "logic-level" MOSFET with a guaranteed low $R_{DS(on)}$ at $V_{GS} = 4.5V$ or lower.
Safe Default Part Numbers (2026 Bench Standards)
| Part Number | Package | Type | $V_{DS(max)}$ | $I_{D(max)}$ | $R_{DS(on)}$ @ 5V | Best Use Case |
|---|---|---|---|---|---|---|
| IRLZ44N | TO-220 | N-Ch Logic | 55V | 47A | 22 mΩ | High-power motors, solenoids, heater elements. |
| AO3400A | SOT-23 | N-Ch Logic | 30V | 5.7A | 40 mΩ | Compact SMD designs, LED strips, small pumps. |
| 2N7000 | TO-92 | N-Ch Std | 60V | 200mA | ~1.2 Ω | Signal switching, driving relays, logic level translation. |
| IRF4905 | TO-220 | P-Ch | -55V | -74A | 20 mΩ | High-side switching (requires NPN driver or gate pull-up). |
Gate Biasing Network
Never connect a microcontroller GPIO pin directly to a MOSFET gate. The gate has parasitic capacitance (often 1000pF to 3000pF for power FETs). When the GPIO pin goes high, it momentarily acts as a short circuit to charge this capacitor, which can pull down the microcontroller's voltage rail or exceed the pin's maximum current rating (typically 20mA-40mA).
- Gate Series Resistor ($R_G$): Place a 100Ω to 330Ω resistor between the GPIO and the Gate. This limits the inrush current and dampens high-frequency ringing caused by PCB trace inductance.
- Gate Pull-Down Resistor ($R_{PD}$): Place a 10kΩ to 100kΩ resistor between the Gate and Source (Ground). If your microcontroller reboots or the GPIO goes high-impedance, this resistor ensures the gate discharges and the load turns off, preventing runaway machinery.
Complete Application Circuit: Driving a 12V DC Motor
This circuit uses an ESP32 or Arduino (5V tolerant logic) to switch a 12V, 2A DC cooling fan or small pump using an IRLZ44N.
Bill of Materials
- 1x IRLZ44N N-Channel Logic-Level MOSFET
- 1x 1N5819 Schottky Diode (Flyback protection)
- 1x 220Ω Resistor (Gate series)
- 1x 10kΩ Resistor (Gate pull-down)
- 12V DC Motor / Fan
Wiring Steps
- Source to Ground: Connect the Source (pin 3) of the IRLZ44N directly to your common ground (both the 12V supply ground and the microcontroller ground).
- Gate Network: Connect the 10kΩ pull-down resistor between the Gate (pin 1) and Source (pin 3). Connect the 220Ω series resistor from your microcontroller's PWM GPIO pin to the Gate.
- Load Connection: Connect the negative terminal of the 12V motor to the Drain (pin 2) of the MOSFET. Connect the positive terminal of the motor to the 12V power supply.
- Flyback Diode: Connect the 1N5819 diode in parallel with the motor. The cathode (stripe) must point toward the 12V positive rail, and the anode must point toward the MOSFET Drain.
Safety Warning: Omitting the flyback diode on an inductive load will cause a massive voltage spike (often >100V) when the MOSFET turns off. This will instantly punch through the 55V $V_{DS(max)}$ rating, destroying the silicon and potentially feeding high voltage back into your microcontroller.
- Verify: Power the 12V rail. Measure the voltage at the Gate. When the GPIO is HIGH, it should read ~5V. The motor should spin. When LOW, the Gate should read 0V, and the motor should stop.
For deeper theoretical background on inductive kickback and flyback diode selection, refer to the All About Circuits semiconductor textbook or application notes from ON Semiconductor's gate driver design resources.
How MOS Transistors Fail and How to Test Them
MOS transistors rarely fail gracefully. When they exceed their limits, they typically fail in one of three ways:
- Thermal Runaway: Exceeding the current rating or operating in the linear region causes $I^2R$ heating. As the silicon heats up, its threshold voltage drops, causing it to draw more current, leading to a catastrophic short between Drain and Source.
- Avalanche Breakdown: An inductive spike exceeds $V_{DS(max)}$. The internal body diode or the channel itself breaks down, permanently fusing the Drain and Source together.
- Gate Oxide Puncture: The gate oxide layer is incredibly thin and can be destroyed by as little as 20V of static electricity (ESD) or a miswired probe. A punctured gate results in a permanent short between the Gate and Source, or Gate and Drain.
Multimeter Diode-Mode Testing Procedure
You can verify the health of an N-channel MOSFET using a standard digital multimeter (DMM) set to Diode Test mode. This test leverages the internal body diode and the gate capacitance.
- Discharge the Gate: Touch the meter's black probe to the Source and the red probe to the Gate. This drains any residual charge.
- Test the Body Diode: Place the black probe on the Source and the red probe on the Drain. The meter should read a forward voltage drop of roughly 0.4V to 0.6V (the body diode conducting). Reverse the probes (red on Source, black on Drain); it should read "OL" (Open Loop).
- Charge the Gate: Leave the black probe on the Source. Briefly touch the red probe to the Gate. This uses the meter's internal battery (usually 3V to 9V) to charge the gate capacitance above the threshold voltage, turning the channel ON.
- Verify the Channel: Move the red probe back to the Drain (black remains on Source). The meter should now read a very low voltage drop (close to 0.00V or a beep in continuity mode), indicating the MOSFET channel is fully conducting and bypassing the body diode.
- Discharge and Re-verify: Touch the red probe to the Source and black to the Gate to discharge it. Re-test Drain to Source; it should revert to the 0.4V - 0.6V body diode reading. If it stays at 0V, the device is shorted and dead.
Frequently Asked Questions
Can I use a standard MOS transistor as a switch with a 3.3V microcontroller?
Generally, no. Standard MOSFETs like the IRF520 have a $V_{GS(th)}$ range of 2.0V to 4.0V. At 3.3V, they are barely turning on and will operate in the high-resistance linear region, generating massive heat and dropping voltage to your load. You must specifically select a "logic-level" MOSFET (often denoted by an 'L' in the part number, like IRLZ44N, or explicitly guaranteed in the datasheet for $R_{DS(on)}$ at $V_{GS} = 2.5V$ or $V_{GS} = 4.5V$). If you only have standard MOSFETs available, use a BJT or a dedicated gate driver IC to step the 3.3V logic up to 10V-12V to drive the gate.
Why does my MOS transistor get hot even when fully turned on?
Heat in the ON state is dictated by $P = I^2 \times R_{DS(on)}$. If your load draws 10A and your MOSFET has an $R_{DS(on)}$ of 50mΩ (0.05Ω), it will dissipate $10^2 \times 0.05 = 5$ Watts of heat. A standard TO-220 package without a heatsink can only safely dissipate about 1W to 1.5W in free air before exceeding maximum junction temperatures. Furthermore, if your gate drive voltage is too low (e.g., driving a 10V-rated gate with only 5V), the $R_{DS(on)}$ will be significantly higher than the datasheet's headline spec, compounding the heat issue. Add a heatsink or choose a FET with a lower $R_{DS(on)}$.
Do I need a flyback diode when switching a resistive load like an LED strip?
No. Flyback diodes are strictly required for inductive loads (motors, solenoids, relays) to suppress the reverse voltage spike generated when the magnetic field collapses. Resistive loads like incandescent bulbs, heating elements, and LED strips do not store energy in a magnetic field. However, if your LED strip is exceptionally long, it may have enough parasitic trace inductance to cause minor high-frequency ringing; a small ceramic capacitor (100nF) across the load terminals is usually sufficient to handle this, but a flyback diode is not mandatory.
What is the difference between using a MOS transistor as a switch versus a BJT?
A Bipolar Junction Transistor (BJT) is a current-controlled device. To keep a BJT saturated (turned ON), you must continuously supply base current, which wastes power and requires calculating base resistors based on the load current and the transistor's gain ($h_{FE}$). A MOS transistor is a voltage-controlled device. Once the gate capacitance is charged, it draws virtually zero steady-state current from your microcontroller. This makes MOSFETs vastly superior for high-current loads and battery-powered applications, while BJTs remain useful for ultra-low-cost, low-current signal switching or linear amplification.






