If you need a default N-P-N transistor for low-side switching, buy the 2N2222 (or the 2N3904 for signals under 200mA). If you need a P-N-P transistor for high-side switching, buy the 2N2907 (or the 2N3906). N-P-N devices switch the ground side of a load and turn on with a positive base voltage, while P-N-P devices switch the positive side and turn on when the base is pulled low. Stop overthinking the physics of the depletion region; for 95% of bench and jobsite applications, a Bipolar Junction Transistor (BJT) is just a current-controlled switch. This guide gives you the exact decision paths, biasing math, and default part numbers to get your circuit working on the first breadboard attempt.
N-P-N vs P-N-P: The Core Decision Path
Choosing between an N-P-N and P-N-P transistor is rarely about the transistor itself; it is about where your load is positioned and what your control signal looks like. Use this decision matrix to terminate your selection process immediately.
| Load Position | Control Signal | Recommended Topology | Default Part Pick |
|---|---|---|---|
| High-Side (Load connected to VCC) | Active-High (e.g., 5V GPIO push-pull) | N-P-N Low-Side Switch | 2N2222 / 2N3904 |
| Low-Side (Load connected to GND) | Active-Low (e.g., Open-Drain / N-MOSFET) | P-N-P High-Side Switch | 2N2907 / 2N3906 |
| High-Side (Load to VCC) | Active-High (Microcontroller 3.3V/5V) | P-N-P driven by an N-P-N level shifter | 2N3906 driven by 2N3904 |
| High Current (>1A) Low-Side | Active-High (5V GPIO) | Darlington N-P-N or Logic-Level MOSFET | TIP120 (or IRLZ44N MOSFET) |
Pinouts, Symbols, and Biasing Basics
Before you solder, you must verify the pinout. The physical package does not guarantee the pin order. For the ubiquitous TO-92 package (the small black plastic teardrop), hold the flat side facing you with the leads pointing down. For the 2N3904 (N-P-N) and 2N3906 (P-N-P), the pins from left to right are Emitter (E), Base (B), and Collector (C). However, for the BC547 (a common European/Asian equivalent), the order is Collector, Base, Emitter. Always check the specific manufacturer's datasheet.
In schematic symbols, the arrow is always on the Emitter leg.
- N-P-N: The arrow points out (away from the base). Mnemonic: 'Not Pointing iN'.
- P-N-P: The arrow points in (toward the base). Mnemonic: 'Pointing iN'.
How to Bias the Base: A silicon BJT requires a base-emitter voltage ($V_{BE}$) of approximately 0.7V to begin conducting. You never connect a voltage source directly to the base; you must use a base resistor ($R_B$) to limit the base current ($I_B$). The fundamental biasing equation is:
$R_B = \frac{V_{CONTROL} - V_{BE}}{I_B}$
To ensure the transistor acts as a closed switch (saturation) rather than a linear amplifier, we force a 'beta' ($h_{FE}$) of 10. This means we design the base current to be one-tenth of the required collector current ($I_C$), regardless of the datasheet's maximum $h_{FE}$ rating.
Operation Regions: Cutoff, Active, and Saturation
Understanding where your transistor is operating prevents melted components and half-open relays. Here are the exact voltage and current thresholds for a standard silicon N-P-N BJT.
| Region | $V_{BE}$ (Base-Emitter) | $V_{CE}$ (Collector-Emitter) | Collector Current ($I_C$) | Practical Use Case |
|---|---|---|---|---|
| Cutoff | < 0.5V | $= V_{CC}$ (Supply Voltage) | $0A$ (Leakage only) | Switch OFF (Open circuit) |
| Active (Linear) | $\approx 0.7V$ | $> 0.2V$ (typically $V_{CC}/2$) | $I_C = h_{FE} \times I_B$ | Audio amplification, current mirrors |
| Saturation | $\approx 0.7V$ to $0.8V$ | $< 0.2V$ ($V_{CE(sat)}$) | $I_C < h_{FE} \times I_B$ | Switch ON (Closed circuit) |
When using a BJT as a switch, your goal is to drive it deep into saturation. In saturation, the voltage drop across the collector and emitter ($V_{CE(sat)}$) drops to roughly 0.2V, minimizing power dissipation ($P = V_{CE} \times I_C$) inside the silicon die. If your transistor is getting hot to the touch while switching a small load, you are likely stuck in the active region due to insufficient base current.
A Complete Switching Circuit: Driving a 12V Relay
Let us build a practical, bulletproof circuit. We will use a 5V Arduino GPIO to switch a 12V automotive-style relay coil that draws 75mA. We will use the 2N2222 N-P-N transistor. According to ON Semiconductor's PN2222A datasheet, this part can easily handle the 12V $V_{CEO}$ and 75mA $I_C$.
Component List:
- Q1: 2N2222 (or PN2222A) N-P-N Transistor
- R1: 560Ω Resistor (1/4W)
- D1: 1N4007 Flyback Diode
- K1: 12V Relay (75mA coil)
Wiring Steps:
- Calculate Base Resistor: Target $I_C = 75mA$. Using a forced beta of 10, required $I_B = 7.5mA$. $R_B = (5V - 0.7V) / 0.0075A = 573\Omega$. The closest standard E12 value is 560Ω.
- Connect the Base: Wire the Arduino 5V GPIO pin through the 560Ω resistor to the Base (middle pin) of the 2N2222.
- Ground the Emitter: Connect the Emitter (left pin, flat side facing you) directly to the system Ground (GND). Ensure the Arduino GND and 12V supply GND are bonded together.
- Wire the Load: Connect one side of the relay coil to the 12V positive supply. Connect the other side of the relay coil to the Collector (right pin) of the 2N2222.
- Install the Flyback Diode: Place the 1N4007 diode in parallel with the relay coil. The cathode (stripe end) must point toward the 12V positive supply, and the anode must point toward the Collector. Never skip this diode; the inductive kickback will instantly avalanche and destroy the transistor's silicon junction.
How BJTs Fail and How to Test Them with a Multimeter
Transistors rarely fail gracefully. Understanding failure modes helps you design protective circuits, and knowing how to test them saves you from chasing ghosts in a broken prototype.
Common Failure Modes:
- Thermal Runaway: As silicon heats up, its $h_{FE}$ increases, causing it to draw more collector current, which generates more heat. Without an emitter resistor to provide negative feedback or adequate heatsinking, the junction melts, resulting in a dead short between Collector and Emitter.
- Secondary Breakdown: Exceeding the $V_{CEO}$ rating or operating at high voltage and high current simultaneously creates localized hot spots on the die. The transistor physically cracks or shorts internally.
- Inductive Kickback Avalanche: Switching off a relay or motor without a flyback diode generates a voltage spike that exceeds the breakdown voltage, punching a hole through the Collector-Base junction.
Testing a BJT with a Digital Multimeter (DMM):
Set your multimeter to Diode Test Mode. A BJT is essentially two diodes sharing a common anode or cathode (the Base).
- Identify N-P-N vs P-N-P: Place the Red probe on the Base and the Black probe on the Emitter. If you read a voltage drop between 0.55V and 0.75V, it is an N-P-N. If it reads 'OL' (Open Loop), swap the probes (Black on Base, Red on Emitter). If you now read 0.55V-0.75V, it is a P-N-P.
- Verify the Junctions: For an N-P-N, you should read ~0.65V from Base to Emitter AND Base to Collector (Red probe on Base). Reversing the probes (Black on Base) must read 'OL' for both junctions.
- Check for Shorts: Measure across the Collector and Emitter in both directions. Both readings must be 'OL'. If you read a short (0.00V or a beep) between Collector and Emitter, the transistor is dead and has suffered thermal or avalanche failure.
The 'Always Keep in Stock' Default Part Numbers
Stop searching for the 'perfect' transistor for every minor project. Standardize your lab inventory around these four through-hole TO-92 workhorses. As noted by All About Circuits' semiconductor guide, these complementary pairs cover the vast majority of hobbyist and prototyping needs.
| Part Number | Type | $V_{CEO}$ (Max) | $I_C$ (Max) | $P_D$ (Max) | Typical $h_{FE}$ | Best Application |
|---|---|---|---|---|---|---|
| 2N3904 | N-P-N | 40V | 200mA | 625mW | 100 - 300 | Signal switching, LED drivers, logic level shifting |
| 2N3906 | P-N-P | 40V | 200mA | 625mW | 100 - 300 | High-side signal switching, complementary pairs with 2N3904 |
| 2N2222 / PN2222A | N-P-N | 40V | 800mA | 625mW (1.5W in TO-18) | 100 - 300 | Relay drivers, small motor control, moderate power switching |
| 2N2907 / PN2907A | P-N-P | 60V | 600mA | 625mW | 100 - 300 | High-side relay drivers, moderate power P-N-P switching |
| TIP120 | N-P-N Darlington | 60V | 5A | 65W (with heatsink) | 1000+ | High-current loads (strips, motors) directly from 5V GPIO |
A Warning on Darlington Transistors (TIP120): While the TIP120 is excellent for high current, remember that a Darlington pair consists of two transistors stacked together. This means the base-emitter turn-on voltage is roughly 1.4V (not 0.7V), and the $V_{CE(sat)}$ when fully ON is typically 2.0V, not 0.2V. At 3A of current, a TIP120 will dissipate 6 Watts of heat ($2V \times 3A$) and absolutely requires a bolt-on heatsink. If you are switching more than 1A continuously, abandon BJTs entirely and use a Logic-Level N-Channel MOSFET like the IRLZ44N, which has an $R_{DS(on)}$ in the milliohm range and generates virtually zero heat.
Buy a bulk kit of 2N3904, 2N3906, 2N2222, and 2N2907 transistors, keep them sorted in your component drawer, and you will have the right part for 99% of your DC switching and amplification tasks without ever needing to wait for shipping.






