The three main types of bipolar junction transistors (BJTs) you will encounter on the bench are standard NPN, standard PNP, and Darlington pairs. For 90% of hobbyist and DIY switching tasks under 200mA, the 2N3904 (NPN) and 2N3906 (PNP) are your safe, bulletproof defaults. For loads up to 5A requiring massive current gain, default to the TIP120 (NPN Darlington). If your load exceeds 1A continuous, abandon BJTs entirely and pivot to a logic-level MOSFET.
The BJT Family Tree: Pinouts, Symbols, and Safe Defaults
Bipolar transistors are current-controlled devices. A small current at the Base controls a much larger current flowing from Collector to Emitter. The three primary types dictate how you wire them and where they sit in your circuit.
Symbol and Pinout Identification
- NPN (Negative-Positive-Negative): The schematic symbol arrow on the Emitter points outward (Not Pointing iN). Used for low-side switching (load connected to VCC, transistor to ground).
- PNP (Positive-Negative-Positive): The schematic symbol arrow points inward (Pointing iN). Used for high-side switching (load connected to ground, transistor to VCC).
- Darlington Pair: Two transistors cascaded inside one package. The symbol shows two interconnected transistors. Offers massive current gain (hFE > 1000) but suffers from a high saturation voltage drop (Vce(sat) ≈ 1.5V).
| Part Number | Type | Vceo (Max) | Ic (Max) | Typ. hFE | Package |
|---|---|---|---|---|---|
| 2N3904 | NPN | 40V | 200mA | 100 - 300 | TO-92 |
| 2N3906 | PNP | 40V | 200mA | 100 - 300 | TO-92 |
| 2N2222A | NPN | 40V | 800mA | 100 - 300 | TO-92 / TO-18 |
| TIP120 | NPN Darlington | 60V | 5A | 1000+ | TO-220 |
| TIP125 | PNP Darlington | 60V | 5A | 1000+ | TO-220 |
Operation Regions: Biasing for Switching vs. Amplification
A BJT operates in three distinct regions depending on the bias voltages applied to its junctions. In DIY and embedded systems, you almost always want the Saturation region to act as a closed switch.
| Region | Base-Emitter (Vbe) | Collector-Emitter (Vce) | State | Primary Use Case |
|---|---|---|---|---|
| Cutoff | < 0.5V | ≈ VCC (Supply) | OFF (Open Switch) | Turning the load off |
| Active (Linear) | ≈ 0.6V - 0.7V | 0.7V to VCC | Partially ON | Audio amplifiers, linear regulators |
| Saturation | ≈ 0.7V - 0.9V | ≈ 0.1V - 0.3V | ON (Closed Switch) | Digital logic, relay drivers, PWM |
How to Bias for Hard Saturation
The most common beginner mistake is using the transistor's datasheet hFE (current gain) to calculate the base resistor. The hFE listed in the ON Semi 2N3904 datasheet is for the active region. To force the transistor into saturation (acting like a true switch with minimal voltage drop), you must overdrive the base.
The Forced Beta Rule: Assume a forced current gain (β) of 10. Calculate your required Base current (Ib) by dividing your Load current (Ic) by 10.
Formula: Rb = (Vgpio - Vbe) / (Ic / 10)
The Decision Tree: Picking the Right BJT for the Job
Use this decision matrix to terminate your component selection process. Do not overcomplicate your BOM with obscure RF or high-voltage transistors unless the application strictly demands it.
| Condition / Constraint | Decision Path | Concrete Component Pick |
|---|---|---|
| Load < 100mA, Low-Side Switch (NPN) | Standard small-signal NPN | 2N3904 or BC547 |
| Load < 100mA, High-Side Switch (PNP) | Standard small-signal PNP | 2N3906 or BC557 |
| Load 100mA - 800mA, Low-Side | Medium power NPN | 2N2222A (TO-92) |
| Load 1A - 3A, weak GPIO drive | Darlington Pair (NPN) | TIP120 (Requires heatsink) |
| Load > 3A continuous OR High PWM freq. | STOP. BJT base drive will waste too much power and overheat. | Pivot to Logic-Level MOSFET: IRLZ44N |
Application Circuit: Driving a 12V Relay from a 3.3V ESP32
Let's build a complete, robust low-side switch. We are using an ESP32 (3.3V logic) to switch a 12V automotive-style relay with a 50mA coil. We will use the 2N2222A NPN transistor.
Components Required
- 1x 2N2222A NPN Transistor
- 1x 1kΩ Base Resistor (1/4W)
- 1x 1N4148 or 1N4007 Flyback Diode
- 1x 12V Relay (50mA coil current)
Wiring Steps & Biasing Math
- Calculate Base Resistor: Target Ic = 50mA. Forced beta = 10. Required Ib = 5mA.
Rb = (3.3V - 0.7V) / 0.005A = 520Ω. We select the next standard value up: 560Ω (or safely use 1kΩ which yields 2.6mA base drive, still enough to saturate since 50/2.6 = 19, well below the 2N2222's minimum hFE of 100). - Connect the Base: Wire the ESP32 GPIO pin to the 1kΩ resistor, then to the Base (middle pin) of the 2N2222A.
- Connect the Emitter: Wire the Emitter (left pin, flat side facing you) directly to the common system Ground (ESP32 GND and 12V supply GND must be bonded).
- Connect the Collector & Load: Wire one side of the relay coil to the 12V supply. Wire the other side of the coil to the Collector (right pin) of the transistor.
- Install Flyback Diode: Place the 1N4148 diode in parallel with the relay coil. The cathode (stripe) must point toward the 12V supply, and the anode points toward the Collector. This routes the inductive spike back into the 12V rail.
For a deeper theoretical breakdown of why the flyback diode is mandatory and how BJT junction capacitance interacts with inductive loads, refer to the Electronics Tutorials BJT guide.
Bench Testing: How BJTs Fail and How to Test Them
Transistors rarely fail randomly; they fail due to thermal runaway, secondary breakdown from inductive spikes, or exceeding maximum junction temperature. When a BJT fails, it usually fails shorted (Collector to Emitter) or the internal bond wires melt, leaving it open.
Testing with a Digital Multimeter (DMM)
You do not need a specialized transistor tester. A standard DMM in Diode Test Mode will verify the health of a BJT by treating it as two back-to-back diodes.
- Set DMM to Diode Mode: Ensure the transistor is completely removed from the circuit. Power must be off.
- Test Base-Emitter (NPN): Place the Red probe on the Base, Black probe on the Emitter. You should read a forward voltage drop between 0.600V and 0.750V. Swap probes (Black on Base, Red on Emitter); the meter should read OL (Overload/Open).
- Test Base-Collector (NPN): Red probe on Base, Black on Collector. Expect 0.600V - 0.750V. Swap probes; expect OL.
- Test Collector-Emitter: Place probes across Collector and Emitter in both directions. Both must read OL. If you read a short (near 0.00V) in either direction, the transistor is blown and must be discarded.
Common Failure Mode: Thermal Runaway
If you are using a BJT in the Active (linear) region to regulate current or voltage, the base-emitter voltage drop (Vbe) decreases by roughly 2mV per °C as the silicon heats up. If your base drive is a stiff voltage source, this drop in Vbe causes the transistor to draw more base current as it gets hotter, which makes it draw more collector current, which generates more heat. This positive feedback loop is thermal runaway. The fix: Always place a small ballast resistor (e.g., 1Ω to 10Ω) in series with the Emitter to introduce negative feedback and stabilize the bias point.
When in doubt, stock your bench with 2N3904s for small signals, 2N2222s for medium loads, and keep a handful of IRLZ44N MOSFETs for anything that pulls serious amperage. Mastering these defaults will solve 99% of your switching problems without requiring a second trip to the parts supplier.






