A bipolar junction transistor (BJT) is a three-terminal, current-controlled semiconductor device used to amplify or switch electronic signals. Unlike voltage-controlled MOSFETs, a BJT requires a continuous base current to maintain conduction between its collector and emitter. While MOSFETs dominate high-power and high-frequency switching today, the BJT remains the undisputed king of low-cost linear amplification, simple low-side switching, and current-mirror circuits.
If you are designing a circuit and need a reliable switch for loads under 500mA, or you are building an audio preamp, the BJT is your go-to component. This guide strips away the abstract solid-state physics and focuses on bench-level reality: which part numbers to stock, how to calculate base resistors for hard saturation, and how to verify a suspect component with a standard digital multimeter.
The Safe Default BJT Part Numbers
Walk into any well-organized electronics lab, and you will find a few specific BJT part numbers stocked in bulk. As of 2026, despite the proliferation of specialized surface-mount devices, these through-hole and SMD staples remain the most cost-effective and widely available options for prototyping and production. When in doubt, default to these.
| Part Number | Polarity | Max Vce (V) | Max Ic (mA) | Typical hFE (β) | Package | Approx. Unit Cost |
|---|---|---|---|---|---|---|
| 2N3904 | NPN | 40V | 200mA | 100 - 300 | TO-92 / SOT-23 | $0.03 - $0.05 |
| 2N3906 | PNP | -40V | -200mA | 100 - 300 | TO-92 / SOT-23 | $0.03 - $0.05 |
| 2N2222A | NPN | 40V | 600mA | 100 - 300 | TO-92 / TO-18 | $0.08 - $0.12 |
| 2N2907A | PNP | -40V | -600mA | 100 - 300 | TO-92 / TO-18 | $0.08 - $0.12 |
| TIP31C | NPN | 100V | 3A | 10 - 50 | TO-220 | $0.40 - $0.60 |
| TIP32C | PNP | -100V | -3A | 10 - 50 | TO-220 | $0.40 - $0.60 |
Pinouts, Symbols, and Operating Regions
Before soldering, you must verify the pinout. The most common package for small-signal BJTs is the TO-92. Hold the transistor with the flat side facing you and the leads pointing down. From left to right, the pins are:
- Emitter (E): The reference terminal. In an NPN, current exits here; in a PNP, current enters here.
- Base (B): The control terminal. A small current here dictates the larger collector-emitter current.
- Collector (C): The main current path. In an NPN, current enters here from the positive supply.
On schematics, the BJT symbol features an arrow on the Emitter leg. For NPN, the arrow points outward (Not Pointing iN). For PNP, the arrow points inward (Pointing iN Proudly). The direction of the arrow always indicates the direction of conventional current flow when the base-emitter junction is forward-biased.
A BJT operates in three distinct regions depending on the biasing of its two internal PN junctions (Base-Emitter and Base-Collector). Understanding these regions is critical for deciding whether your circuit will act as a switch or an amplifier.
| Operating Region | Base-Emitter Junction | Base-Collector Junction | Vbe (Typical) | Vce (Typical) | Primary Application |
|---|---|---|---|---|---|
| Cutoff | Reverse / Zero Bias | Reverse Bias | < 0.5V | Vce = Vcc | Switch (OPEN / OFF) |
| Active (Linear) | Forward Bias | Reverse Bias | ~0.65V | Vce > 0.3V | Amplification, Linear Regulators |
| Saturation | Forward Bias | Forward Bias | ~0.7V to 0.8V | Vce(sat) ~0.2V | Switch (CLOSED / ON) |
How to Bias a BJT for Switching (Complete Circuit)
The most common mistake hobbyists make is under-driving the base, leaving the BJT in the active region instead of saturation. When a BJT is in the active region while passing high current, it dissipates massive amounts of heat (P = Vce × Ic) and will quickly undergo thermal failure. For switching, you must drive it into hard saturation.
Let us design a complete driver circuit. We want to use an ESP32 GPIO pin (3.3V logic, max 12mA source capability) to switch a 12V automotive relay coil that draws 50mA. We will use a 2N2222A NPN transistor.
Step-by-Step Bias Calculation
- Determine Collector Current (Ic): The relay draws 50mA. So, Ic = 50mA.
- Find Minimum hFE (β): Checking the ON Semiconductor datasheet for the 2N2222A at Ic = 150mA, the minimum hFE is 100. At 50mA, it is typically higher, but we design for the worst-case minimum of 100.
- Calculate Theoretical Base Current (Ib): Ib = Ic / hFE = 50mA / 100 = 0.5mA.
- Apply an Overdrive Factor: To guarantee hard saturation across temperature variations and part tolerances, we multiply the theoretical Ib by an overdrive factor of 5 to 10. Let us use 5. Target Ib = 0.5mA × 5 = 2.5mA. (This is well within the ESP32's 12mA GPIO limit).
- Calculate Base Resistor (Rb): The ESP32 outputs 3.3V. The Base-Emitter junction drops about 0.7V. The voltage across the resistor is 3.3V - 0.7V = 2.6V.
Rb = V_Rb / Target_Ib = 2.6V / 0.0025A = 1040Ω.
Select the nearest standard E12 resistor value: 1kΩ.
Final Component List and Wiring
- Q1: 2N2222A (NPN BJT). Emitter to GND. Collector to Relay Coil (-).
- R1 (Base): 1kΩ, 1/4W resistor. Connects between ESP32 GPIO and Q1 Base.
- R2 (Pull-down): 10kΩ resistor between Q1 Base and GND. This prevents the relay from chattering if the ESP32 GPIO floats during boot-up.
- D1 (Flyback): 1N4148 or 1N4007 diode. Cathode (stripe) to 12V, Anode to Q1 Collector. Never omit this; the relay coil's inductive kickback will instantly punch through the BJT's Vce rating and destroy it.
- Relay Coil (+): Connected directly to the 12V supply.
Failure Modes and Multimeter Testing
BJTs are rugged, but they have specific vulnerabilities. The two most common catastrophic failure modes are thermal runaway and secondary breakdown.
Thermal runaway occurs because the Base-Emitter voltage drop (Vbe) has a negative temperature coefficient of roughly -2mV/°C. As the silicon heats up, Vbe drops, which causes the base current (and consequently the collector current) to increase if the base voltage is held rigid. More current means more heat, creating a destructive feedback loop that melts the die. Secondary breakdown happens when high Vce and high Ic occur simultaneously, causing current to crowd into a microscopic localized hot spot on the silicon die, instantly shorting the collector to the emitter.
How to Test a BJT with a Digital Multimeter
You do not need a dedicated transistor tester. A standard multimeter in Diode Test mode will verify the health of the internal PN junctions. Set your meter to the diode symbol (which outputs a small test current and reads the forward voltage drop).
- Test Base-Emitter (Forward): Red probe on Base, Black probe on Emitter. You should read between 0.550V and 0.750V.
- Test Base-Collector (Forward): Red probe on Base, Black probe on Collector. You should read between 0.550V and 0.750V (usually slightly lower than the B-E reading).
- Test Reverse Bias: Swap the probes (Black on Base, Red on Emitter, then Red on Collector). The meter should read OL (Open Loop) on both.
- Test Collector-Emitter: Place probes across Collector and Emitter in both directions. The meter must read OL. If it reads 0.00V or a low resistance, the BJT has suffered secondary breakdown or thermal melting and is internally shorted. Throw it away.
BJT vs. MOSFET: When to Stick with Bipolar
A common question on the workbench is whether to replace a BJT with a logic-level MOSFET. While MOSFETs are superior for high-current and high-frequency PWM applications, the bipolar junction transistor still holds distinct advantages in specific scenarios.
| Criteria | Bipolar Junction Transistor (BJT) | Metal-Oxide-Semiconductor FET (MOSFET) |
|---|---|---|
| Control Mechanism | Current-controlled (Requires continuous Ib) | Voltage-controlled (Requires gate charge, zero static current) |
| Conduction Loss | Fixed Vce(sat) voltage drop (~0.2V to 1.0V) | Resistive Rds(on) drop (Scales with I²R) |
| Switching Speed | Slower (Limited by minority carrier storage time) | Faster (Limited only by gate capacitance and driver strength) |
| Linear Operation | Excellent, smooth, predictable transconductance | Poor, prone to thermal runaway and oscillation in linear mode |
| Cost (Low Power) | Extremely cheap ($0.03 for 2N3904) | Slightly higher ($0.10 - $0.20 for 2N7000) |
Choose the BJT when: You are designing analog audio amplifiers, linear voltage regulators, constant-current sinks, or ultra-low-cost digital switches for loads under 100mA where the base current draw is negligible to your system's power budget.
Choose the MOSFET when: You are switching loads over 1A, running high-frequency PWM (like motor speed control or LED dimming >5kHz), or designing battery-operated devices where the continuous base current of a BJT would unnecessarily drain the cell.






