The Direct Answer: Safe Default Transistors for the Bench

If you just need to switch a load or amplify a small signal and don't want to spend an hour digging through distributor parametric search tools, keep these four workhorses in your component drawers. These are the safe, proven defaults that cover 90% of hobbyist and prototyping applications.

Part Number Type Max Voltage (Vce/Vds) Max Current (Ic/Id) Package Best Used For
PN2222A (or 2N2222) NPN BJT 40V 600mA TO-92 Low-side switching (relays, LEDs), small signal amplification
PN2907A (or 2N2907) PNP BJT 40V 600mA TO-92 High-side switching, complementary push-pull output stages
IRLZ44N N-Channel MOSFET 55V 47A TO-220 High-current low-side switching (motors, heaters) from 5V/3.3V logic
SI2301 P-Channel MOSFET 20V 2.8A SOT-23 Low-power high-side switching, battery polarity protection
Bench Tip: Always buy the "P" prefix versions (PN2222A) for TO-92 through-hole packages. The original "2N" prefix technically designates a TO-18 metal can package, though many overseas vendors ignore this and ship TO-92s labeled as 2N2222. The silicon inside is identical, but knowing this saves confusion when reading datasheets.

Pinouts, Symbols, and the Three Operating Regions

Before wiring anything, you must identify the pins. For standard TO-92 BJTs (like the PN2222A), hold the transistor with the flat side facing you and the leads pointing down. From left to right, the pins are Emitter (E), Base (B), and Collector (C). The schematic symbol for an NPN BJT features an arrow on the emitter pointing outward (Not Pointing iN). For TO-220 MOSFETs, flat side facing you, pins down, the order is Gate (G), Drain (D), Source (S).

A Bipolar Junction Transistor (BJT) operates in three distinct regions depending on the bias voltage applied to the Base-Emitter junction and the Collector-Emitter path. Understanding these regions is the difference between a working circuit and a melted GPIO pin.

Operating Region Base-Emitter Voltage (Vbe) Collector-Emitter State Current Relationship Practical Application
Cutoff < 0.6V Open circuit (High impedance) Ic = 0 Switch is OFF. Load is disconnected.
Active (Linear) ~0.6V to 0.7V Variable resistance Ic = β × Ib Amplification. Small base current changes dictate large collector current changes.
Saturation > 0.7V Short circuit (Vce < 0.2V) Ic < β × Ib Switch is ON. Transistor acts as a closed mechanical switch.

How to Bias a Transistor: Switching vs. Amplification

Biasing simply means setting the DC voltages and currents to put the transistor in the correct operating region for your specific task. The math changes drastically depending on whether you want a digital switch or an analog amplifier.

Biasing for Switching (Saturation Region)

When using a BJT as a switch, you want it fully saturated. In saturation, the voltage drop across the Collector and Emitter (Vce_sat) drops to roughly 0.2V, minimizing power dissipation (heat) inside the transistor.

The most common beginner mistake is relying on the datasheet's β (hFE or current gain) to calculate the base resistor. Never use hFE for switching calculations. hFE varies wildly with temperature and current. Instead, use a "forced beta" of 10. This means you drive the base with 1/10th of the required collector current to guarantee saturation.

  • Formula: Ib = Ic / 10
  • Base Resistor (Rb): Rb = (V_drive - Vbe_sat) / Ib

Biasing for Amplification (Active Region)

If you are building a Class-A audio preamplifier or an RF oscillator, you need the transistor to sit squarely in the Active region. You do this using a voltage divider on the base to set a quiescent DC operating point (Q-point), usually targeting Vce at half of your supply voltage (Vcc/2) to allow maximum symmetrical voltage swing. According to the foundational guides on All About Circuits, a stiff voltage divider where the bleeder current is at least 10 times the base current prevents the input signal from shifting your Q-point.

Complete Application Circuit: Driving a 12V Relay from a 3.3V ESP32

Let's apply the switching math to a real-world scenario. You have an ESP32 (3.3V logic) and you need to switch a 12V automotive relay that draws 75mA when the coil is energized. We will use the default PN2222A NPN transistor.

Safety Note: While this circuit operates at low voltage (12V DC), the principles apply to higher voltages. Always verify your load current does not exceed the transistor's absolute maximum ratings, and always use a flyback diode across inductive loads to prevent voltage spikes from destroying your silicon.

Component Selection and Math

  1. Identify Load Current (Ic): The relay coil draws 75mA (0.075A).
  2. Calculate Required Base Current (Ib): Using our forced beta of 10, Ib = 75mA / 10 = 7.5mA.
  3. Verify GPIO Limits: An ESP32 GPIO pin can safely source up to 20mA continuously. Our 7.5mA requirement is well within safe limits.
  4. Calculate Base Resistor (Rb): The ESP32 outputs 3.3V. The Vbe_sat of the PN2222A is roughly 0.7V.
    Voltage across Rb = 3.3V - 0.7V = 2.6V.
    Rb = 2.6V / 0.0075A = 346.6 Ω.
    Select the nearest standard E12 resistor value lower than the calculated value to ensure enough current flows. We choose a 330 Ω resistor.

Wiring the Circuit

  • ESP32 GPIO Pin → 330 Ω Resistor → PN2222A Base (middle pin).
  • PN2222A Emitter (left pin) → System Ground (GND).
  • Relay Coil Pin 1 → 12V Power Supply Positive.
  • Relay Coil Pin 2 → PN2222A Collector (right pin).
  • Flyback Diode (1N4148 or 1N4007): Place across the relay coil. The cathode (stripe) must point toward the 12V positive, and the anode points toward the transistor collector. This snubs the inductive kickback when the transistor turns off.

Decision Tree: BJT vs. MOSFET Selection

When should you abandon the BJT and reach for a MOSFET? BJTs are current-controlled devices; they require continuous base current to stay on. MOSFETs are voltage-controlled; they require almost zero continuous gate current, making them vastly superior for high-current loads or battery-powered deep-sleep applications. Use this decision matrix to pick your part.

Application Parameter Choose BJT (e.g., PN2222A) Choose Logic-Level MOSFET (e.g., IRLZ44N)
Load Current < 500mA > 500mA up to 40A+
Drive Voltage Any (just adjust base resistor) Must be ≥ Vgs(th) (Look for "Logic Level" rated for 3.3V/5V)
Switching Speed (PWM) Good for audio/low kHz frequencies Excellent for high-frequency PWM (motor control, LED dimming)
Quiescent Power Draw Higher (base current is constantly wasted) Near zero (gate draws current only during switching transitions)
Cost & Complexity ~$0.05, requires base resistor ~$0.50+, requires gate pulldown resistor to prevent floating

The Final Verdict: If you are switching an LED, a small 12V relay, or a low-power sensor rail from a microcontroller, default to the PN2222A. If you are driving a DC motor, a 3D printer heater cartridge, or an LED strip drawing more than 1 Amp, default to the IRLZ44N (and add a 10kΩ pulldown resistor between Gate and Ground).

Failure Modes and Multimeter Diode-Test Procedures

Transistors rarely fail gracefully. When they exceed their thermal or voltage limits, they typically fail shorted. According to the ON Semiconductor PN2222A Datasheet, exceeding the maximum Collector-Emitter voltage (Vceo) causes avalanche breakdown, while exceeding the power dissipation limit causes the silicon die to literally melt and fuse the internal junctions.

Common Failure Modes

  • Thermal Runaway: As a BJT heats up, its hFE increases, causing it to draw more collector current, which creates more heat. This positive feedback loop ends in a short circuit. Fix: Always use an emitter resistor in linear amplifier designs to provide negative feedback.
  • Secondary Breakdown: High voltage and high current occurring simultaneously create localized hot spots on the silicon die, destroying it instantly. Fix: Check the Safe Operating Area (SOA) graph in the datasheet for linear applications.
  • Gate Oxide Puncture (MOSFETs only): Exceeding the maximum Gate-Source voltage (usually ±20V) or hitting the gate with electrostatic discharge (ESD) punctures the microscopic insulating layer. The MOSFET becomes a permanent short or fails to turn on.

How to Test an NPN BJT with a Digital Multimeter

You don't need a curve tracer to check if a BJT is dead. Set your multimeter to Diode Test mode (the symbol with an arrow and a line). This mode outputs a small test current and reads the forward voltage drop.

  1. Base to Emitter (Forward): Red probe on Base, Black probe on Emitter. You should read between 0.600V and 0.750V.
  2. Base to Collector (Forward): Red probe on Base, Black probe on Collector. You should read between 0.600V and 0.750V (often slightly lower than the B-E reading).
  3. Reverse Bias Checks: Swap the probes (Black on Base, Red on Emitter/Collector). The meter should read OL (Over Limit / Open).
  4. Collector to Emitter: Probes on C and E in either direction. The meter must read OL.
Diagnosing the Result: If any forward reading is 0.000V, the junction is shorted (the transistor is dead). If a reverse reading shows a voltage drop instead of OL, the junction is leaky or shorted. If C-to-E reads anything other than OL in either direction, the transistor has suffered secondary breakdown and belongs in the trash.

Mastering transistor selection comes down to matching the load requirements to the silicon's hard limits, then using conservative biasing math to guarantee operation across temperature variations. Stick to the default part numbers, respect the forced-beta rule for switching, and always protect inductive loads with a flyback diode. Your workbench will be full of working circuits, and your component bins will stay organized.