The Quick Answer: Safe Default NPN and PNP Part Numbers

When you need a bipolar junction transistor (BJT) for general-purpose switching or amplification on the bench, skip the endless datasheet scrolling. These four TO-92 through-hole part numbers cover 95% of hobbyist and prototyping needs. Keep them stocked in your component bins.

Bench Rule of Thumb: Always use a 'forced beta' of 10 when calculating base resistors for switching applications. Never rely on the datasheet's hFE (DC current gain) for saturation calculations, as hFE drops significantly when the transistor is fully turned on.
RoleDefault PartMax VceMax IcMax PowerTO-92 Pinout (Flat side facing you)
NPN (Low Power)2N390440V200mA625mWEmitter, Base, Collector
NPN (Medium Power)2N222230V800mA500mWEmitter, Base, Collector
PNP (Low Power)2N390640V200mA625mWEmitter, Base, Collector
PNP (Medium Power)2N290740V600mA400mWEmitter, Base, Collector

Pinouts, Symbols, and Operation Regions

Understanding NPN and PNP transistors starts with the schematic symbols. The arrow on the emitter leg dictates the type and current flow direction. For NPN, the arrow points outward (Not Pointing iN); current flows from Collector to Emitter when the Base is pulled high. For PNP, the arrow points inward; current flows from Emitter to Collector when the Base is pulled low relative to the Emitter.

Unlike MOSFETs, which are voltage-controlled, BJTs are current-controlled devices. The collector current is a multiple of the base current. To use them effectively, you must understand which of the three operation regions the device is currently in.

RegionBase-Emitter Voltage (Vbe)Collector-Emitter Voltage (Vce)State / Application
Cutoff< 0.6VEquals Supply VoltageOFF (Open switch). No base current flows.
Active (Linear)~0.65V - 0.7V> 0.3V (typically mid-rail)Amplifier. Ic = hFE * Ib. Used for audio/RF.
Saturation~0.7V - 0.8V< 0.2V (Vce_sat)ON (Closed switch). Fully turned on, minimal heat.

How to Bias NPN and PNP Transistors for Switching

The most common point of failure in DIY electronics is under-driving a BJT base, leaving it in the active region where it dissipates massive heat and burns out. Let's walk through a complete, real-world application circuit: driving a 12V automotive relay using a 3.3V ESP32 GPIO pin.

Application Circuit: ESP32 Driving a 12V Relay via 2N2222

  • Load: 12V relay coil, 80mA nominal current.
  • Control Signal: ESP32 GPIO, 3.3V logic high, max 12mA source capability.
  • Transistor: 2N2222 (NPN).

Step 1: Calculate Required Base Current (Ib)
To guarantee the 2N2222 enters deep saturation, we use a forced beta (hFE_sat) of 10, regardless of the datasheet's linear hFE of 100+.
Ib = Ic / 10 = 80mA / 10 = 8mA.

Step 2: Calculate Base Resistor (Rb)
The ESP32 outputs 3.3V. The base-emitter junction drops about 0.7V when conducting.
Rb = (V_gpio - Vbe) / Ib = (3.3V - 0.7V) / 0.008A = 325 Ohms.
Select the nearest standard E12 value: 330 Ohms. This safely limits GPIO current to ~7.8mA, well within the ESP32's 12mA absolute max.

Step 3: Add the Flyback Diode
When the transistor turns off, the relay coil's collapsing magnetic field generates a high-voltage reverse spike that will punch through the transistor's collector-emitter junction. Place a 1N4148 or 1N4007 diode in reverse bias across the relay coil (cathode to 12V, anode to the transistor's collector).

Warning: Never exceed the reverse Base-Emitter voltage (Vebo). For the 2N3904 and 2N2222, this is typically 5V to 6V. If you accidentally apply a negative voltage to the base relative to the emitter without a current-limiting resistor, the BE junction will Zener-breakdown, permanently destroying the transistor's current gain.

Decision Tree: Which Transistor Topology Do You Need?

Choosing between NPN and PNP topologies depends entirely on your load grounding and microcontroller voltage. Use this decision path to select the exact part for your breadboard.

Condition / RequirementTopology ChoiceConcrete Part Pick
Load is tied to VCC; you need to switch the ground path (Low-Side).NPN BJT2N2222 (if Ic < 800mA)
Load is tied to Ground; you need to switch the VCC path (High-Side) AND Vcc ≤ 5V.PNP BJT2N2907 (if Ic < 600mA)
Load is tied to Ground; High-Side switching required AND Vcc > 5V (e.g., 12V or 24V).PNP driven by NPN2N2907 (PNP) + 2N3904 (NPN driver)
Load current exceeds 1A, or you need PWM switching at high frequencies (>1kHz).Abandon BJTs. Use Logic-Level MOSFET.IRLZ44N (N-Channel) or IRL4905 (P-Channel)

The High-Voltage PNP Gotcha: If you are switching a 12V load using a PNP transistor, the emitter is at 12V. To turn it off, the base must be pulled up to 12V. If your microcontroller outputs 3.3V, connecting the GPIO directly to the base resistor will result in 8.7V flowing backward into your MCU pin, frying it. You must use a small NPN transistor (like the 2N3904) to pull the PNP's base down to ground to turn it on, and use a pull-up resistor to 12V to turn it off.

Failure Modes and Multimeter Testing

Transistors rarely fail gracefully. According to semiconductor failure analysis, the most common BJT death mechanisms are thermal runaway (insufficient heatsinking in the active region), secondary breakdown (exceeding the Safe Operating Area at high Vce and high Ic simultaneously), and base-emitter Zener punch-through.

When a BJT fails due to overcurrent, the silicon die melts, typically shorting the Collector and Emitter together. When it fails due to overvoltage, the junction usually blows open.

How to Test NPN and PNP Transistors with a Multimeter

You can verify a BJT's health in seconds using the Diode Test mode on your digital multimeter (DMM). A BJT is essentially two diodes back-to-back sharing a common anode (PNP) or cathode (NPN). Remove the transistor from the circuit for accurate readings.

  1. Set your DMM to Diode Mode. The display should show an open loop (OL) when probes are apart.
  2. Test the NPN Base Junctions: Place the Red probe on the Base pin. Touch the Black probe to the Emitter, then the Collector. You should read a forward voltage drop between 0.600V and 0.750V for both.
  3. Test NPN Reverse Bias: Swap probes. Black on Base, Red on Emitter/Collector. The meter must read OL (open). If it reads near 0.00V, the junction is shorted.
  4. Test Collector-Emitter: Place probes across C and E in both directions. Both must read OL. If you read continuity (a beep or low resistance), the transistor has suffered thermal melt and is dead.
  5. Reverse for PNP: For a PNP (like the 2N2907), swap the probe logic. Black probe on Base, Red probe on Emitter/Collector should yield the 0.6V-0.7V drop. Reverse should be OL.

If your transistor passes the diode test but still fails to switch a load in-circuit, your base resistor is likely too large, leaving the device stranded in the active region. Drop the base resistor value by half and measure the Vce; if it drops below 0.2V, you have achieved proper saturation.