When designing a switching or amplification circuit, the choice between a MOSFET (Metal-Oxide-Semiconductor Field-Effect Transistor) and a standard BJT (Bipolar Junction Transistor) dictates your drive circuitry, heat dissipation, and component cost. While both are three-terminal semiconductor devices used to control current flow, their internal physics and external drive requirements are fundamentally different.

The short answer: Use a logic-level N-channel MOSFET for switching loads over 500mA from 3.3V or 5V microcontrollers. Use an NPN BJT for low-current signal switching under 200mA, or for linear audio/RF amplification where you need precise, continuous current control.

The Decision Path: Which Device Wins Your Socket?

Do not guess based on what is in your junk bin. Use this decision matrix to select the right topology for your specific schematic constraints.

Circuit Condition If True... Concrete Part Pick
Load current is > 500mA (Motors, LED strips, solenoids) Choose Logic-Level MOSFET. BJTs will overheat due to base current limits and Vce(sat) voltage drop. IRLZ44N (N-Ch, 55V, 47A)
Load current is < 200mA (Relays, small indicators, level shifters) Choose NPN BJT. Cheaper, simpler to bias for small loads, and immune to static gate blowouts. 2N3904 (NPN, 40V, 200mA)
Need high-side switching (Load connected to GND, switch to VCC) Choose PNP BJT for low current, or P-Channel MOSFET for high current. (N-channel high-side requires a charge pump). 2N3906 (PNP) or IRF9540N (P-Ch)
Application is linear amplification (Audio pre-amp, RF oscillator) Choose BJT. Transconductance is more linear in the active region than a MOSFET's square-law response. 2N3904 or BC547

Pinouts, Symbols, and the Terminology Trap

Both devices have three pins, but they map to different physical properties.

  • BJT (NPN): Base (B), Collector (C), Emitter (E). The Base-Emitter junction acts like a standard silicon diode. Current flowing into the Base controls the larger current flowing from Collector to Emitter. It is a current-controlled device.
  • MOSFET (N-Channel): Gate (G), Drain (D), Source (S). The Gate is electrically isolated by a thin silicon dioxide layer. Voltage applied between Gate and Source creates an electric field that forms a conductive channel. It is a voltage-controlled device.
The Datasheet Terminology Trap: The word "Saturation" means opposite things for these two devices. For a BJT, Saturation means the switch is fully ON (lowest voltage drop). For a MOSFET, Saturation means the device is acting as a constant-current source (amplifier mode). When using a MOSFET as a switch, you want it in the Ohmic (or Linear/Triode) region. Always read the datasheet with the specific device type in mind.

Operation Regions and Typical Thresholds

Region Name BJT (NPN) Behavior MOSFET (N-Ch) Behavior Typical Use Case
Cutoff Vbe < 0.6V. No base current, no collector current. Vgs < Vth (Threshold). Channel is pinched off. Switch OFF state.
Active / Linear Vbe ≈ 0.65V. Ic = hFE × Ib. Acts as current amplifier. Vgs > Vth, Vds > (Vgs - Vth). Acts as voltage-controlled current source. Audio amplifiers, constant current loads.
Saturation (BJT) / Ohmic (MOSFET) Vce drops to ~0.2V. Collector current limited only by external load. Vgs is high (e.g., 5V-10V), Vds is very low. Rds(on) dictates voltage drop. Switch ON state (Digital logic, PWM motor control).

How to Bias and Select the Right Device

Biasing a BJT requires calculating base current to ensure saturation. Biasing a MOSFET requires ensuring the Gate voltage exceeds the Rds(on) specification on the datasheet, not just the threshold voltage (Vgs(th)).

The Classic Beginner Mistake: IRF520 vs. IRLZ44N

Many hobbyists buy the IRF520 MOSFET because it is cheap and handles 9A. However, its datasheet specifies an Rds(on) of 0.27Ω at Vgs = 10V. If you drive it from an ESP32 (3.3V) or Arduino (5V), it will never fully turn on. It will operate in the linear region, act like a 2-ohm resistor, and melt under a 2A load.

The Fix: Always select a Logic-Level MOSFET (usually denoted by an 'L' in the part number, like IRLZ44N). The IRLZ44N guarantees an Rds(on) of ~22mΩ at Vgs = 5V, making it safe for 5V microcontrollers.

Complete Application Circuit: Switching a 12V 2A Load

Let’s design a circuit to switch a 12V, 2A solenoid using an ESP32 (3.3V logic GPIO).

The MOSFET Solution (Recommended)

  1. Component: IRLZ44N Logic-Level N-Channel MOSFET.
  2. Gate Resistor (R1): 100Ω in series between ESP32 GPIO and MOSFET Gate. This limits the inrush current required to charge the Gate capacitance, protecting the ESP32 GPIO pin from transient spikes.
  3. Pull-down Resistor (R2): 10kΩ from Gate to Source (GND). This ensures the MOSFET stays off if the ESP32 pin floats during boot-up.
  4. Load Connection: Solenoid connected between 12V supply and MOSFET Drain. MOSFET Source connected to GND.
  5. Flyback Diode: 1N4007 diode placed in reverse parallel across the solenoid (Cathode to 12V, Anode to Drain). This absorbs the inductive kickback when the MOSFET turns off, preventing Vds from spiking to 50V+ and destroying the silicon.

Why the BJT Fails Here

If you tried to use a standard 2N2222 BJT for this 2A load, you would need a base current of at least 20mA (assuming a forced beta of 100 for saturation). The ESP32 GPIO is strictly limited to 40mA absolute max, and running it at 20mA continuously causes severe brownouts and silicon degradation on the ESP32. Furthermore, the 2N2222 is only rated for 800mA continuous collector current. You would need a bulky Darlington pair like the TIP120, which has a massive Vce(sat) voltage drop of ~2V. At 2A, that TIP120 would dissipate 4 Watts of heat (P = V × I = 2V × 2A), requiring a large heatsink. The IRLZ44N dissipates less than 0.1W (P = I² × R = 4A × 0.022Ω) and needs no heatsink.

Failure Modes and Multimeter Testing

Semiconductors fail in predictable ways. Here is how to test them on your bench using a standard digital multimeter (DMM) set to Diode Test Mode.

Testing an NPN BJT (e.g., 2N3904)

  • Forward Bias: Place the red probe on the Base, black probe on Emitter. You should read a voltage drop between 0.60V and 0.75V. Repeat from Base to Collector (similar reading).
  • Reverse Bias: Swap probes (black on Base, red on Emitter/Collector). The meter should read OL (Overload/Open).
  • Failure Mode: If you read 0.00V (short) or OL in both directions (open), the junction is blown, usually from exceeding the maximum collector current or reverse-biasing the Base-Emitter junction beyond its ~5V breakdown limit.

Testing an N-Channel MOSFET (e.g., IRLZ44N)

MOSFET testing relies on checking the internal body diode and the gate capacitance.

  1. Discharge the Gate: Touch the Gate and Source pins together with a piece of wire or your finger to bleed off any stored charge.
  2. Check the Body Diode: Place the red probe on the Source and the black probe on the Drain. You should read a diode drop of roughly 0.45V to 0.60V. Swap the probes (red on Drain, black on Source); it should read OL.
  3. Check Gate Isolation: Test between Gate and Drain, and Gate and Source. Both directions must read OL. If you get a continuous beep or a low resistance, the gate oxide is punctured. The part is dead.
  4. Failure Mode: MOSFETs typically fail due to electrostatic discharge (ESD) puncturing the gate oxide, or avalanche breakdown from inductive voltage spikes exceeding the Vds(max) rating.
Bench Tip: Always store loose MOSFETs with their legs wrapped in conductive foam or aluminum foil to keep the pins shorted. A static shock from walking across a carpeted room can easily generate 3,000V, instantly vaporizing the microscopic gate oxide layer inside a TO-220 package.

The "Safe Default" Part Numbers for Your Bench

Stop wasting time hunting for obscure parts. Stock these three devices in your lab to cover 95% of hobbyist and prototyping switching needs. Prices reflect typical 2026 distributor rates for single units.

Part Number Type Key Ratings Best Used For Approx. Cost
IRLZ44N N-Ch Logic MOSFET 55V, 47A, Rds(on) 22mΩ @ 5Vgs High-current switching from 3.3V/5V logic (motors, heaters, LED strips). $1.50
2N3904 NPN BJT 40V, 200mA, hFE ~100 Low-current signal switching, driving small 5V relays, basic audio amplification. $0.05
TIP120 NPN Darlington BJT 60V, 5A, Vce(sat) ~2.0V Legacy 12V motor control where logic-level MOSFETs aren't available. Requires a heatsink. $0.80

For further reading on semiconductor characteristics and safe operating areas (SOA), refer to the All About Circuits semiconductor textbook or review specific component datasheets via Components101. Always verify the absolute maximum ratings in the manufacturer's datasheet before finalizing your PCB layout.