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 and high continuous collector currents up to with a fast 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 Type | General-Purpose NPN Bipolar Junction Transistor (BJT) |
| Package | TO-18 Metal Can (2N2222A) / TO-92 Plastic (PN2222A / P2N2222A) |
| Collector-Emitter Voltage () | max (2N2222A) / max (2N2222) |
| Collector-Base Voltage () | max (2N2222A) |
| Continuous Collector Current () | continuous ( peak pulse) |
| DC Current Gain () | at |
| Transition Frequency () | min (High speed switching/RF) |
| Collector Saturation Volts () | max at |
Pinout (TO-92 vs TO-18 Package Comparison)
Looking at the flat face of the plastic TO-92 package with leads pointing down:
┌─────────────┐
│ 2N2222A │ (Flat Package Face)
└─┬───┬───┬───┘
1 2 3
E B C
| Pin | Name | Description |
|---|---|---|
| 1 | EMITTER (E) | Emitter terminal (Ground reference 0 V) |
| 2 | BASE (B) | Base control input terminal (Connect via current limiting resistor) |
| 3 | COLLECTOR (C) | Collector terminal (Low-side load connection) |
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
| Parameter | Symbol | Min | Typ | Max | Unit | Conditions |
|---|---|---|---|---|---|---|
| Collector Breakdown Voltage | 40 | — | — | V | ||
| Emitter Breakdown Voltage | 6.0 | — | — | V | ||
| Base-Emitter Saturation | 0.6 | — | 1.2 | V | ||
| Collector Cutoff Current | — | — | 10 | nA | ||
| Power Dissipation | — | — | 625 | mW | (TO-92) |
Standard Low-Side NPN Switching Circuit
To use the 2N2222 as a saturated low-side switch driving a relay from a Arduino GPIO pin:
- Calculate Base Current (): For saturation, set .
- Calculate Base Resistor ():
+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 PN diode (), destroying the MCU pin. Always place a resistor in series with the Base.
- Using 2N2222 instead of a logic-level MOSFET for high currents (>500mA): At high currents (), BJTs require significant base drive current () and drop , leading to excessive thermal heating. For loads , prefer an N-channel logic-level MOSFET.
Notes
- 2N2222 vs 2N3904 vs BC547: 2N2222 handles up to continuous current; 2N3904 handles up to ; BC547 handles up to (European pinout C-B-E).
Assets & downloads
- datasheetdatasheet
- product-pagereference