When makers, hobbyists, and engineering students search for transistores pnp npn, they are looking for the fundamental building blocks of analog and switching circuits: Bipolar Junction Transistors (BJTs). The direct answer to "which one should I use?" depends on your load, but for 90% of general-purpose switching and amplification tasks under 200mA, your safe default picks are the 2N3904 (NPN) and 2N3906 (PNP).

NPN transistors sink current to ground (low-side switching), while PNP transistors source current from the positive supply (high-side switching). This guide skips the abstract semiconductor physics and goes straight to the workbench: how to read the pinouts, bias the base correctly, test for failures with a multimeter, and select the exact part number for your next build.

Pinouts, Symbols, and the Core Difference

The most common package for small-signal BJTs is the TO-92. However, a critical bench trap awaits those who assume all TO-92 transistors share the same pinout.

  • US/European Standard (e.g., 2N3904, 2N2222, BC547): With the flat side facing you and the leads pointing down, the pins are Emitter (E), Base (B), Collector (C) from left to right.
  • Japanese Standard (e.g., 2SC1815, 2SA1015): With the flat side facing you and leads down, the pins are Emitter (E), Collector (C), Base (B).
Workbench Tip: Never trust a pinout from memory. Always check the specific manufacturer's datasheet for the exact part number you are holding. Swapping the Base and Collector will usually result in a very low current gain (reverse beta) or immediate thermal destruction.

Symbol Identification: In schematic symbols, the arrow is always on the Emitter leg. For an NPN, the arrow points outward (away from the base). A common mnemonic is NPN = Not Pointing iN. For a PNP, the arrow points inward (toward the base) — PNP = Pointing iN. Current flows from Collector to Emitter in an NPN, and from Emitter to Collector in a PNP.

Operation Regions and Biasing Voltages

To use a BJT as a switch, you must drive it into saturation. To use it as an amplifier, you must bias it in the active region. Here is the operational breakdown for a standard silicon NPN transistor:

Region Base-Emitter Voltage (Vbe) Collector-Emitter Voltage (Vce) Collector Current (Ic) Primary Use Case
Cutoff < 0.5V Equal to Supply (Vcc) ~0 mA (Leakage only) Switch OFF
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 (Relays, LEDs)

How to Bias for Switching: Never rely on the datasheet's maximum hFE (current gain) for switching calculations. Datasheet hFE is measured in the active region. In saturation, the gain drops drastically. The industry standard practice is to use a forced beta of 10. If your load requires 100mA of collector current (Ic), you must supply at least 10mA of base current (Ib) to guarantee the transistor turns fully on and minimizes heat dissipation.

The Workbench Test: Diagnosing a Failed BJT

BJTs typically fail due to three mechanisms: thermal runaway (exceeding maximum power dissipation without a heatsink), secondary breakdown (exceeding the Vceo voltage rating while drawing high current), or overcurrent (melting the internal bond wires). You can diagnose a suspected dead transistor in-circuit or on the bench using your digital multimeter's (DMM) diode test mode.

Numbered Steps for NPN Testing (e.g., 2N3904):

  1. Set your DMM to the diode test setting (symbol: ➔|– ).
  2. 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.
  3. Move the Black probe to the Collector (Red stays on Base). You should read a similar drop, typically slightly lower (e.g., 0.550V to 0.700V).
  4. Reverse the probes: Black on Base, Red on Emitter, then Red on Collector. Both should read OL (Open Loop / Over Limit).
  5. Finally, test across Collector and Emitter in both directions. Both must read OL.
Failure Indicator: If your meter reads 0.00V or beeps continuously across the Collector and Emitter, the transistor has suffered an internal short and is dead. If the Base-Emitter junction reads OL in the forward direction, the internal bond wire has blown open.

Complete Application Circuit: 12V Relay Driver

Let's build a practical low-side switch to control a 12V automotive-style relay using a 5V microcontroller GPIO (like an Arduino Uno or ESP32). We will use an NPN transistor because low-side switching is easier to bias and avoids the high-side PNP requirement for base voltages exceeding the MCU's logic level.

Component Values & Specifications:

  • Transistor: 2N3904 (NPN, TO-92)
  • Load: 12V Relay with a 170Ω coil (Ic = 12V / 170Ω ≈ 70mA)
  • Control Signal: 5V DC from MCU GPIO
  • Flyback Diode: 1N4148 (Switching diode, rated for 100V/300mA)

Biasing Calculation:

Target Collector Current (Ic) = 70mA.
Forced Beta = 10.
Required Base Current (Ib) = 70mA / 10 = 7mA.
Voltage across Base Resistor (Rb) = V_gpio - Vbe = 5V - 0.7V = 4.3V.
Rb = 4.3V / 0.007A = 614Ω.

We select the next standard E12 resistor value below 614Ω to ensure we supply slightly more base current than the minimum. Use a 560Ω resistor. Power dissipation in the resistor is P = I²R = (0.007)² × 560 = 27mW, so a standard 1/4W (250mW) resistor is perfectly safe.

Wiring Sequence:

  1. Connect one side of the relay coil to the 12V supply.
  2. Connect the other side of the relay coil to the Collector of the 2N3904.
  3. Connect the Emitter of the 2N3904 directly to system Ground.
  4. Connect the 560Ω base resistor between the MCU GPIO pin and the Base of the 2N3904.
  5. Place the 1N4148 flyback diode in parallel with the relay coil. Critical: The cathode (the end with the painted stripe) must point toward the 12V supply. This safely routes the inductive voltage spike back into the supply when the transistor switches off.

Decision Tree: Which Transistor Do You Actually Need?

Stop guessing. Use this decision matrix to terminate your component selection process with a concrete part number. If your requirements fall outside these bounds, you likely need a MOSFET instead of a BJT.

Load Current (Ic) Supply Voltage (Vce) Switching Speed Concrete Pick (NPN / PNP)
< 200 mA < 40V Low / Medium 2N3904 / 2N3906
200 mA - 800 mA < 40V Low / Medium 2N2222 / 2N2907
1A - 3A < 60V Low (Relays/Motors) TIP120 (Darlington) / TIP125
> 3A or High PWM Any High (kHz to MHz) Use a Logic-Level MOSFET (e.g., IRLZ44N)
Why swap to a MOSFET for high PWM? BJTs are current-controlled devices. Driving a BJT at 20kHz requires continuously charging and discharging the base capacitance with high current spikes, which wastes power and stresses your microcontroller. MOSFETs are voltage-controlled and vastly superior for high-frequency PWM dimming or motor control.

Safe Default Part Numbers and Ratings

Keep these specific part numbers stocked in your lab. They are universally available, cost pennies in bulk, and cover the vast majority of DIY and prototyping needs. Always verify the Vceo (Collector-Emitter breakdown voltage) to ensure it exceeds your maximum supply voltage by at least 20%.

Part Number Type Max Vceo Max Ic Typical hFE Package
2N3904 NPN 40V 200mA 100 - 300 TO-92
2N3906 PNP 40V 200mA 100 - 300 TO-92
2N2222 (or PN2222) NPN 30V 800mA 100 - 300 TO-92 / TO-18
2N2907 (or PN2907) PNP 40V 600mA 100 - 300 TO-92 / TO-18
TIP120 NPN Darlington 60V 5A > 1000 TO-220
TIP125 PNP Darlington 60V 5A > 1000 TO-220

For deeper theory on BJT load lines and small-signal models, reference the comprehensive Bipolar Junction Transistor tutorials at All About Circuits. When designing circuits that push the limits of these components, always consult the specific manufacturer's datasheet, such as the ON Semiconductor 2N3904 specification sheet, to verify thermal derating curves and safe operating areas (SOA).