If you need a general-purpose NPN bipolar transistor for switching loads under 200mA, buy the 2N3904. For loads between 200mA and 800mA, use the 2N2222A. If you are driving high-current loads (1A to 3A) from a low-current microcontroller GPIO, grab a Darlington pair like the TIP120. For PNP equivalents, swap to the 2N3906, 2N2907A, and TIP125, respectively. These four part numbers will cover 95% of the switching and linear amplification tasks you will encounter on the bench.

This guide skips the abstract semiconductor physics and focuses entirely on how to select, bias, wire, and test a bipolar transistor in real-world circuits. All pinouts and ratings below assume standard TO-92 and TO-220 through-hole packages operating at a 25°C ambient temperature.

Pinouts, Symbols, and the TO-92 Trap

The schematic symbol for a bipolar transistor features three terminals: the Base (B), Collector (C), and Emitter (E). The arrow is always on the Emitter leg. For an NPN transistor, the arrow points outward (away from the Base); for a PNP, it points inward. A common mnemonic is 'Not Pointing iN' for NPN.

The physical pinout is where hobbyists frequently destroy components. When holding a standard TO-92 package with the flat side facing you and the legs pointing down:

Bench Warning: The 2N3904 and 2N2222A pinout is Emitter, Base, Collector (E-B-C) from left to right. However, the equally popular BC547 (common in European kits) is Collector, Base, Emitter (C-B-E). Always verify the pinout on the specific manufacturer's datasheet before soldering. Assuming E-B-C for every TO-92 part is the fastest way to short your power rail to ground.

For higher power TO-220 packages (like the TIP31C or TIP120), the tab is the Collector. With the tab facing away from you and legs down, the pins are Base, Collector, Emitter (B-C-E). Note that the Collector is electrically bonded to the metal heatsink tab, meaning you must use an insulating mica pad and thermal paste if mounting multiple TO-220s to a shared heatsink.

Operation Regions: Cutoff, Active, and Saturation

A bipolar transistor operates in three distinct regions depending on the bias voltages applied to its junctions. When using a transistor as a digital switch (driven by an Arduino or ESP32), you only care about Cutoff and Saturation. The Active region is reserved for analog amplification.

Region Base-Emitter Voltage ($V_{BE}$) Collector-Emitter Voltage ($V_{CE}$) State / Primary Use Case
Cutoff < 0.5V $V_{CE} = V_{CC}$ (Supply Voltage) Open Switch (No current flows)
Active (Linear) ≈ 0.6V - 0.7V $0.2V < V_{CE} < V_{CC}$ Amplifier ($I_C = \beta \times I_B$)
Saturation ≈ 0.7V - 0.8V $V_{CE(sat)} \approx 0.1V - 0.3V$ Closed Switch (Max current flows)

In saturation, the transistor acts like a closed mechanical switch with a tiny voltage drop ($V_{CE(sat)}$) across it. To guarantee saturation, you must supply enough Base current ($I_B$) so that the transistor runs out of current gain ($\beta$ or $h_{FE}$) before the load limits the Collector current.

How to Bias a Bipolar Transistor for Switching

Let us build a complete, real-world application circuit: driving a 12V automotive-style relay (coil resistance 120Ω, drawing 100mA) using a 5V ESP32 GPIO pin and a 2N2222A NPN transistor.

The Math (Forced Beta):
A 2N2222A has a datasheet $h_{FE}$ of roughly 150 in the active region. However, in saturation, $h_{FE}$ collapses. The industry standard rule of thumb is to use a 'forced beta' of 10 to guarantee hard saturation.
$I_C = 100mA$. Therefore, required $I_B = I_C / 10 = 10mA$.
The ESP32 outputs 5V (or 3.3V; we will calculate for 5V but the 3.3V math is identical with a smaller resistor). The Base-Emitter junction drops about 0.7V.
$R_B = (V_{GPIO} - V_{BE}) / I_B = (5V - 0.7V) / 0.010A = 430\Omega$.
We select the next standard E12 resistor value up: 470Ω.

  1. Connect the Load: Wire one side of the 12V relay coil to your 12V power supply positive terminal. Wire the other side to the Collector pin of the 2N2222A.
  2. Install the Flyback Diode: Place a 1N4007 rectifier diode in reverse parallel across the relay coil (cathode stripe pointing to the 12V side). This clamps the inductive voltage spike when the transistor switches off, preventing avalanche breakdown of the silicon.
  3. Wire the Base Resistor: Connect a 470Ω resistor between the ESP32 GPIO pin and the Base pin of the transistor.
  4. Ground the Emitter: Connect the Emitter pin directly to the common ground shared by both the 12V power supply and the ESP32. Never switch the ground path through the transistor; always switch the high side of the load with an NPN.
  5. Add a Pull-Down (Optional but Recommended): Solder a 10kΩ resistor between the Base and Ground. This ensures the transistor stays in cutoff if the microcontroller pin floats during boot-up.

Decision Tree: Which Bipolar Transistor Should You Buy?

Stop guessing based on what is in your junk bin. Use this decision matrix to select the exact part number for your next schematic. For a deeper look at BJT characteristics and standard families, refer to the All About Circuits semiconductor guide or ON Semiconductor's BJT portfolio.

If Your Load Requirement Is... Then Pick This NPN Part PNP Equivalent Max Ratings ($V_{CEO}$ / $I_C$)
Signal switching, LEDs, logic level translation (< 200mA) 2N3904 2N3906 40V / 200mA
Medium power, small relays, motors (200mA to 800mA) 2N2222A 2N2907A 40V / 800mA
High current, solenoids, high-power LEDs (1A to 3A) TIP31C TIP32C 100V / 3A
High current (up to 5A) but you only have < 5mA of GPIO base drive available TIP120 (Darlington) TIP125 60V / 5A
The Safe Default Bench Kit: If you are stocking a new lab, buy a 50-pack of 2N3904s, a 50-pack of 2N2222As, and a 10-pack of TIP120s. This specific combination costs under $15 in 2026 and will handle virtually every DIY switching task you throw at it.

Failure Modes and Multimeter Diode Testing

Bipolar transistors are robust, but they fail predictably when abused. The three most common failure modes are:

  • Thermal Runaway: As silicon heats up, its $V_{BE}$ requirement drops, causing it to draw more current, which creates more heat. This ends in a melted package. Always use an emitter resistor for linear analog circuits to provide negative feedback.
  • Secondary Breakdown: Occurs when the transistor simultaneously sustains high voltage and high current (common in inductive loads without flyback diodes). It creates a localized hot spot that instantly shorts the Collector to the Emitter.
  • Bond Wire Melt: Exceeding the absolute maximum $I_C$ rating simply fuses the microscopic wire connecting the silicon die to the external leg, resulting in an open circuit.

You can diagnose a dead or suspect bipolar transistor in-circuit (if isolated from low-impedance paths) or out-of-circuit using a standard digital multimeter (DMM) set to Diode Test mode.

  1. Identify the Base: Touch the red probe to one leg and the black probe to the other two legs in sequence. If you get a reading of 0.600V to 0.750V on both combinations, the leg under the red probe is the Base, and you have an NPN transistor. (If the black probe is on the Base and yields these readings, it is a PNP).
  2. Check the Junctions: For an NPN, red on Base and black on Emitter should read roughly 0.650V. Red on Base and black on Collector should read slightly lower, perhaps 0.630V. This slight difference helps confirm which leg is which if the pinout is unknown.
  3. Verify Reverse Blocking: Swap the probes (black on Base, red on Emitter/Collector). The meter must read 'OL' (Open Loop) or '1'. If it reads a low voltage or zero, the Base-Emitter or Base-Collector junction is shorted. The part is dead.
  4. Check Collector-to-Emitter: Place probes across the Collector and Emitter in both directions. It must read 'OL' both ways. If it reads near 0V, the transistor has suffered secondary breakdown and is internally shorted.

By keeping a stock of the default part numbers listed above, calculating your base resistor using the forced-beta rule of 10, and always protecting inductive loads with a flyback diode, you will eliminate bipolar transistor failures from your troubleshooting workflow entirely.