A standard NPN bipolar junction transistor (BJT) diagram features three terminals: Base (B), Collector (C), and Emitter (E), represented by a circle with an arrow pointing outward on the Emitter. Whether you are switching a relay from an ESP32 or building a linear audio amplifier, reading the schematic symbol and mapping it to the physical pins is the first step to a working circuit. This guide breaks down the diagram of a transistor, provides safe default part numbers, and walks through a complete biasing calculation and test procedure.
Decoding the Diagram of a Transistor: Symbols and Pinouts
When you look at a schematic, the diagram of a transistor will show one of two primary BJT symbols: NPN or PNP. The distinguishing feature is the arrow on the Emitter leg. For an NPN transistor, the arrow points away from the Base (outward). A common mnemonic is "Not Pointing iN." For a PNP transistor, the arrow points toward the Base (inward).
However, translating that 2D diagram to a physical 3D component is where most hobbyists make mistakes. The physical pinout depends entirely on the package type and the specific manufacturer's datasheet. The most common through-hole package is the TO-92. If you hold a standard TO-92 transistor with the flat side facing you and the pins pointing down, the pinout is usually:
- 2N3904 / 2N2222 (US standard): Emitter (1), Base (2), Collector (3)
- BC547 / BC557 (European standard): Collector (1), Base (2), Emitter (3)
Safe Default Part Numbers and Ratings
When a schematic calls for a generic "NPN transistor" without specifying a part number, you need a reliable default. Here are the four workhorse BJTs you should keep in your bench stock, complete with their absolute maximum ratings. These parts cost between $0.05 and $0.20 each in bulk.
| Part Number | Type | Package | Max VCEO | Max IC | Typical hFE (Beta) | Best Use Case |
|---|---|---|---|---|---|---|
| 2N3904 | NPN | TO-92 | 40V | 200mA | 100 - 300 | Low-power logic level shifting, LED driving |
| 2N3906 | PNP | TO-92 | 40V | 200mA | 100 - 300 | High-side switching, complementary pairs |
| 2N2222A | NPN | TO-92 / TO-18 | 40V | 600mA | 100 - 300 | Medium-power switching, small relays, motors |
| TIP120 | NPN Darlington | TO-220 | 60V | 5A | 1000+ | High-current loads, solenoids, large motors |
Operation Regions and Biasing for the Job
A BJT operates in three distinct regions depending on the voltage applied to its junctions. Understanding these regions is critical for deciding how to bias the Base terminal.
| Operation Region | VBE (Base-Emitter) | VCE (Collector-Emitter) | IC (Collector Current) | Primary Application |
|---|---|---|---|---|
| Cutoff | < 0.5V | ~VCC (Supply) | 0A (Leakage only) | Switch OFF (Open circuit) |
| Active (Linear) | ~0.6V - 0.7V | > 0.2V | β × IB | Amplifiers, current mirrors |
| Saturation | ~0.7V - 0.8V | < 0.2V (VCE(sat)) | Limited by external load | Switch ON (Closed circuit) |
How to bias for switching (Saturation):
When using a transistor as a switch, you must drive it into hard saturation to minimize the VCE voltage drop and prevent the transistor from overheating. Do not rely on the datasheet's maximum hFE (current gain). Instead, use a "forced beta" of 10.
Worked Example: You need to switch a 100mA load using a 2N3904 and a 5V Arduino GPIO pin.
1. Target IC = 100mA.
2. Forced beta = 10, so required IB = 100mA / 10 = 10mA.
3. Arduino outputs 5V. The Base-Emitter junction drops ~0.7V.
4. Voltage across base resistor (RB) = 5V - 0.7V = 4.3V.
5. RB = 4.3V / 0.010A = 430Ω.
Select the next standard E12 resistor value up: 470Ω. This safely limits the GPIO current while guaranteeing saturation.
Complete Application Circuit: Driving a 12V Relay
Microcontrollers operate at 3.3V or 5V and can only source 20-40mA. To control a 12V relay with a 70mA coil, you need a transistor switch. Here is the exact component list and wiring sequence using a 2N2222A.
Components Required:
- Q1: 2N2222A NPN Transistor (TO-92)
- R1: 1kΩ Base Resistor (1/4W)
- D1: 1N4148 or 1N4007 Flyback Diode
- K1: 12V SPDT Relay (Coil resistance ~170Ω, drawing ~70mA)
- Connect the Emitter: Wire the Emitter (pin 1 on the flat side) directly to the system ground (GND). This ground must be shared with your microcontroller.
- Wire the Base Resistor: Connect one leg of the 1kΩ resistor to your microcontroller's GPIO pin. Connect the other leg to the Base (pin 2) of the 2N2222A. The 1kΩ resistor will provide roughly 4.3mA of base current, which is more than enough to saturate the transistor for a 70mA load.
- Connect the Collector to the Load: Wire the Collector (pin 3) to the negative terminal (or ground pin) of the relay coil.
- Power the Relay: Connect the positive terminal of the relay coil to your 12V power supply.
- Install the Flyback Diode (Critical): Place the 1N4148 diode in reverse bias across the relay coil. The cathode (striped end) connects to the 12V side, and the anode connects to the Collector side. When the transistor turns off, the collapsing magnetic field in the relay coil generates a massive reverse voltage spike. The diode safely recirculates this current, protecting the transistor from avalanche breakdown.
How Transistors Fail and How to Test Them
Transistors typically fail in three ways: thermal runaway (excessive power dissipation melting the silicon die), secondary breakdown (localized hot spots from high voltage and high current simultaneously), and overvoltage avalanche (exceeding VCEO or VEBO, often from inductive kickback without a flyback diode). When a BJT fails, it almost always fails shorted (Collector to Emitter), leaving your load permanently turned on.
How to test an NPN transistor with a multimeter:
- Set your digital multimeter to Diode Test mode (usually indicated by a diode symbol).
- Place the Red probe on the Base and the Black probe on the Emitter. You should read a forward voltage drop between 0.600V and 0.750V.
- Keep the Red probe on the Base and move the Black probe to the Collector. You should read a similar drop, typically slightly lower (e.g., 0.550V to 0.700V).
- Reverse the probes: Black on Base, Red on Emitter, then Red on Collector. The meter should read "OL" (Over Limit / Open Loop) in both cases.
- Finally, measure across Collector and Emitter in both directions. Both should read "OL".
Frequently Asked Questions
What does the arrow mean in a transistor diagram?
The arrow in a BJT schematic symbol is always located on the Emitter leg and indicates the direction of conventional current flow when the Base-Emitter junction is forward-biased. In an NPN transistor, current flows from the Base and Collector into the Emitter, so the arrow points outward. In a PNP transistor, current flows out of the Base and Collector, so the arrow points inward toward the Base.
How do I read the pinout on a physical TO-92 transistor?
Hold the transistor so the flat face is pointing toward you and the three wire legs are pointing straight down. For standard US JEDEC parts like the 2N3904 or 2N2222, the pins from left to right are Emitter, Base, Collector. For European Pro Electron parts like the BC547, the order is Collector, Base, Emitter. Always verify with a datasheet, as some high-voltage or specialized TO-92 parts use different arrangements.
Can I use an NPN transistor diagram to wire a PNP transistor?
No, the wiring topology is inverted. An NPN transistor is used for "low-side switching," where the load is placed between the positive supply and the Collector, and the Emitter goes to ground. A PNP transistor is used for "high-side switching," where the load is placed between the Collector and ground, and the Emitter connects to the positive supply. Furthermore, a PNP requires a negative voltage relative to the Emitter at the Base to turn on, meaning your microcontroller logic must pull the Base to ground (via a resistor) to activate it.
Why is my transistor getting hot in a switching circuit?
If a transistor is hot to the touch while acting as a switch, it is likely operating in the Active (linear) region instead of the Saturation region. This happens when the Base current is too low to fully turn the transistor on, causing a high VCE voltage drop. Power dissipation is calculated as P = VCE × IC. If VCE is 2V and IC is 200mA, the transistor is burning 400mW, which will make a small TO-92 package painfully hot. Decrease your base resistor value to increase Base current and force the transistor into hard saturation, dropping VCE below 0.2V.






