Overview

The 2N2222 (and improved 2N2222A) is arguably the most famous general-purpose NPN Bipolar Junction Transistor (BJT) in electronic engineering. Designed by Motorola in 1962, it is bundled in virtually every electronics component starter kit (Elegoo, SunFounder, SparkFun, Adafruit).

Housed in either a metal TO-18 can or a plastic TO-92 package (often designated P2N2222A / PN2222A), the 2N2222 is rated for collector-emitter breakdown voltages up to 40 Volts40\text{ Volts} and high continuous collector currents up to 800 mA800\text{ mA} with a fast 300 MHz300\text{ MHz} transition frequency. It serves as a low-side switch for driving relays, small DC motors, buzzers, and LEDs from microcontroller GPIO pins.

Quick reference

Transistor TypeGeneral-Purpose NPN Bipolar Junction Transistor (BJT)
PackageTO-18 Metal Can (2N2222A) / TO-92 Plastic (PN2222A / P2N2222A)
Collector-Emitter Voltage (VCEOV_{CEO})40 V40\text{ V} max (2N2222A) / 30 V30\text{ V} max (2N2222)
Collector-Base Voltage (VCBOV_{CBO})75 V75\text{ V} max (2N2222A)
Continuous Collector Current (ICI_C)800 mA800\text{ mA} continuous (1.0 A1.0\text{ A} peak pulse)
DC Current Gain (hFEh_{FE})100300100 \dots 300 at IC=150mA,VCE=10VI_C = 150\text{mA}, V_{CE} = 10\text{V}
Transition Frequency (fTf_T)300 MHz300\text{ MHz} min (High speed switching/RF)
Collector Saturation Volts (VCE(sat)V_{CE(sat)})0.3 V0.3\text{ V} max at IC=150mA,IB=15mAI_C = 150\text{mA}, I_B = 15\text{mA}

Pinout (TO-92 vs TO-18 Package Comparison)

Looking at the flat face of the plastic TO-92 package with leads pointing down:

text
        ┌─────────────┐
        │   2N2222A   │  (Flat Package Face)
        └─┬───┬───┬───┘
          1   2   3
          E   B   C
PinNameDescription
1EMITTER (E)Emitter terminal (Ground reference 0 V)
2BASE (B)Base control input terminal (Connect via current limiting resistor)
3COLLECTOR (C)Collector terminal (Low-side load connection)
Warning

TO-92 Variant Pinout Warning (2N2222 vs P2N2222A):

  • Standard 2N2222 / PN2222A (TO-92): Emitter - Base - Collector (E-B-C).
  • ON Semi P2N2222A (TO-92): Collector - Base - Emitter (C-B-E).
  • Always check pin ordering with a multimeter component tester before soldering.

Specifications

ParameterSymbolMinTypMaxUnitConditions
Collector Breakdown VoltageV(BR)CEOV_{(BR)CEO}40VIC=10mA,IB=0I_C = 10\text{mA}, I_B = 0
Emitter Breakdown VoltageV(BR)EBOV_{(BR)EBO}6.0VIE=10 μA,IC=0I_E = 10\ \mu\text{A}, I_C = 0
Base-Emitter SaturationVBE(sat)V_{BE(sat)}0.61.2VIC=150mA,IB=15mAI_C = 150\text{mA}, I_B = 15\text{mA}
Collector Cutoff CurrentICEXI_{CEX}10nAVCE=60V,VEB(off)=3.0VV_{CE} = 60\text{V}, V_{EB(off)} = 3.0\text{V}
Power DissipationPDP_D625mWTA=25CT_A = 25^\circ\text{C} (TO-92)

Standard Low-Side NPN Switching Circuit

To use the 2N2222 as a saturated low-side switch driving a 100 mA100\text{ mA} relay from a 5V5\text{V} Arduino GPIO pin:

  1. Calculate Base Current (IBI_B): For saturation, set IBIC10=100mA10=10 mAI_B \approx \frac{I_C}{10} = \frac{100\text{mA}}{10} = 10\text{ mA}.
  2. Calculate Base Resistor (RBR_B):

RB=VGPIOVBEIB=5.0V0.7V0.01A=430 Ω(Use standard 470 Ω or 1 kΩ resistor)R_B = \frac{V_{GPIO} - V_{BE}}{I_B} = \frac{5.0\text{V} - 0.7\text{V}}{0.01\text{A}} = 430\ \Omega \quad (\text{Use standard } 470\ \Omega \text{ or } 1\text{ k}\Omega \text{ resistor})

text
        +5V - 12V Load Supply Rail

        [ 5V Relay / Motor Load ] ─── (Flyback Diode)

        [Pin 3: COLLECTOR]
         2N2222A
        [Pin 1: EMITTER] ─── GND

   MCU ── [ R_B = 1kΩ ] ─── [Pin 2: BASE]

Common mistakes

  • Connecting base pin directly to microcontroller GPIO without a resistor: Connecting a GPIO output pin directly to the Base pin creates a short circuit through the internal VBEV_{BE} PN diode (0.7V\sim 0.7\text{V}), destroying the MCU pin. Always place a 220 Ω1 kΩ220\ \Omega \dots 1\ \text{k}\Omega resistor in series with the Base.
  • Using 2N2222 instead of a logic-level MOSFET for high currents (>500mA): At high currents (>500mA>500\text{mA}), BJTs require significant base drive current (50mA+50\text{mA}+) and drop 0.3V1.0V0.3\text{V} \dots 1.0\text{V} VCE(sat)V_{CE(sat)}, leading to excessive thermal heating. For loads >500mA>500\text{mA}, prefer an N-channel logic-level MOSFET.

Notes

  • 2N2222 vs 2N3904 vs BC547: 2N2222 handles up to 800mA800\text{mA} continuous current; 2N3904 handles up to 200mA200\text{mA}; BC547 handles up to 100mA100\text{mA} (European pinout C-B-E).

Assets & downloads