The Direct Answer: What Is a Bipolar Junction Transistor?
A bipolar junction transistor (BJT) is a three-terminal, current-controlled semiconductor valve. In practical circuit terms, it allows a small current flowing into one terminal (the Base) to proportionally control a much larger current flowing between the other two terminals (the Collector and Emitter). Unlike MOSFETs, which are voltage-controlled and dominate modern high-power switching, BJTs rely on the physical injection of minority carriers across a PN junction, making them transconductance devices with a predictable, linear current gain.
BJTs come in two polarities: NPN and PNP. The easiest way to remember the schematic symbols is the arrow on the Emitter leg. For NPN, the arrow points outward (remember: Not Pointing iN). For PNP, the arrow points inward (Pointing iN).
If you are holding a standard plastic TO-92 packaged BJT (like the ubiquitous 2N3904 or 2N2222) with the flat side facing you and the leads pointing down, the pins from left to right are Emitter, Base, Collector (E-B-C). However, always verify with the specific manufacturer's datasheet, as some high-voltage or specialized TO-92 parts swap the Collector and Emitter.
Operation Regions: Where the BJT Actually Works
To use a BJT effectively, you must know which of its three operating regions you are targeting. A common mistake among hobbyists is trying to use a BJT in the 'Active' region for a digital on/off switch, which results in the transistor dissipating massive amounts of heat and burning out. Here are the exact voltage and current boundaries for each region.
| Region | Vbe (Base-Emitter) | Vce (Collector-Emitter) | Ic (Collector Current) | Primary Application |
|---|---|---|---|---|
| Cutoff | < 0.5V | Equal to Supply (Vcc) | ~0A (Leakage only) | Switch 'OFF' state |
| Active (Linear) | ~0.6V to 0.7V | > 0.3V (Typically Vcc/2) | Ic = β * Ib | Audio/Signal Amplification |
| Saturation | ~0.7V to 0.8V | < 0.2V (Vce_sat) | Limited by external load | Switch 'ON' state |
When using a BJT as a switch, your goal is to drive it deep into Saturation. In this state, the voltage drop across the Collector and Emitter (Vce_sat) drops to roughly 0.2V. If you are switching a 1A load, the transistor only dissipates 0.2W of heat (P = V * I), which a standard TO-92 package can handle without a heatsink. If you accidentally leave it in the Active region with 5V across it at 1A, it will dissipate 5W and instantly vaporize its internal bond wires.
Biasing for the Job: The 5V-to-12V Relay Switch Circuit
Let's build a complete, real-world application circuit. Suppose you need to use a 5V Arduino GPIO pin to switch a 12V automotive-style relay coil that draws 75mA. A microcontroller pin can only safely source about 20mA, and it only outputs 5V, so we need an NPN BJT to bridge the gap.
Step 1: Calculate the Required Base Current (Ib)
First, look at the datasheet for our chosen transistor, the ON Semiconductor P2N2222A. At an Ic of 75mA, the DC current gain (hFE or β) is typically around 100.
- Theoretical Base Current: Ib = Ic / hFE = 75mA / 100 = 0.75mA.
Never design a switching circuit using the exact theoretical hFE. Temperature variations and part tolerances will push the transistor out of saturation. Always overdrive the base by a factor of 2 to 5. We will target an Ib of 2mA to guarantee hard saturation.
Step 2: Calculate the Base Resistor (Rb)
The Arduino outputs 5V. The Base-Emitter junction acts like a forward-biased diode, dropping about 0.7V. The voltage across the base resistor is therefore 5V - 0.7V = 4.3V.
- Rb = V_Rb / Ib = 4.3V / 0.002A = 2150Ω.
The closest standard E12 resistor value is 2.2kΩ. This will safely limit the GPIO current to ~1.95mA while keeping the BJT saturated.
Step 3: The Flyback Diode
A relay coil is an inductor. When the BJT turns off, the collapsing magnetic field will generate a high-voltage reverse spike that will punch through the transistor's Vceo rating and destroy it. You must place a flyback diode (like a 1N4148 or 1N4007) in reverse bias across the relay coil (cathode to 12V, anode to the BJT Collector).
Final Circuit Summary
- Connect Arduino 5V Pin to one leg of a 2.2kΩ resistor.
- Connect the other leg of the resistor to the Base of the 2N2222.
- Connect the Emitter of the 2N2222 to system Ground.
- Connect the Collector to the negative terminal of the 12V relay coil.
- Connect the positive terminal of the relay coil to the 12V supply.
- Place a 1N4148 diode across the coil (stripe facing the 12V supply).
How BJTs Fail and How to Test Them With a Multimeter
Before we look at part selection, you need to know how these components die and how to verify them on the bench. According to All About Circuits, BJT failure modes generally fall into three categories:
- Thermal Runaway: As a BJT heats up, its internal leakage current increases, which causes it to draw more current, generating more heat until the silicon melts. This is why emitter resistors are used in linear amplifier biasing.
- Secondary Breakdown: A localized hot spot inside the silicon die causes a short circuit between Collector and Emitter, usually triggered by high voltage and high current simultaneously.
- Vceo Punch-Through: Exceeding the maximum Collector-Emitter voltage with the Base open causes the depletion region to avalanche, permanently shorting the device.
The 60-Second Multimeter Diode Test
You do not need a dedicated transistor tester to check a BJT. Set your digital multimeter to Diode Test mode and follow this exact sequence for an NPN transistor:
- Base to Emitter (Forward): Red probe on Base, Black probe on Emitter. You should read between 0.600V and 0.750V.
- Base to Collector (Forward): Red probe on Base, Black probe on Collector. You should read between 0.600V and 0.750V.
- Reverse Checks: Swap the probes (Black on Base, Red on E/C). The meter must read OL (Over Limit).
- Collector to Emitter: Test C to E in both directions. Both must read OL. If you read a short (0.00V) or a low resistance here, the transistor has suffered secondary breakdown and is trash.
For a PNP transistor, simply reverse the probe polarities in steps 1 and 2 (Black on Base, Red on E/C to get the 0.6V drop).
Decision Tree: Which BJT Should You Grab From the Bin?
There are thousands of BJT part numbers, but 95% of DIY and prototyping tasks can be handled by four specific families. Use this decision matrix to select the right part based on your load current and voltage requirements.
| Load Requirement | Max Vceo | Max Ic | Package | Default NPN Pick | Default PNP Pick |
|---|---|---|---|---|---|
| Low-power signal / logic | 40V | 200mA | TO-92 | 2N3904 | 2N3906 |
| Medium switching (relays, LEDs) | 40V | 600mA | TO-92 | 2N2222 | 2N2907 |
| Power switching (motors, heaters) | 100V | 3.0A | TO-220 | TIP31C | TIP32C |
| Mains / High Voltage (SMPS) | 400V | 1.5A | TO-220 | MJE13003 | N/A (Use MOSFET) |
The Final Verdict: Stop Overthinking It
If you are designing a generic microcontroller interface, switching a relay, driving a small LED array, or just need a reliable NPN switch for a load under 500mA at standard logic voltages, do not waste time scrolling through distributor catalogs.
Your default pick is the 2N2222 (or its modern equivalent, the P2N2222A). It has a robust 600mA continuous current rating, a 40V Vceo limit that easily covers 12V and 24V systems, and an hFE curve that is forgiving enough to saturate easily from a 3.3V or 5V GPIO pin through a standard 1kΩ to 4.7kΩ base resistor. Keep a sleeve of 50 on your bench; they cost roughly $0.05 each in bulk and will solve almost every low-side switching problem you encounter.






