2N2222 NPN Transistor Pinout & Base Resistor Calculator
The 2N2222 / PN2222A is a general-purpose NPN BJT rated up to 40V V_CEO and 600 mA collector current. Facing the flat side of a standard TO-92 PN2222A with leads down, the pinout from left to right is Emitter (1), Base (2), Collector (3) — whereas P2N2222AG reverses it to C-B-E.
Using forced beta = 10 guarantees V_CE(sat) stays around 0.2V–0.3V instead of heating up in the linear region. Never connect a GPIO pin directly to the Base without R_B.
- Always check the part prefix: PN2222A / 2N2222A (TO-92 flat face) is E-B-C, while ON Semi P2N2222AG is reversed C-B-E.
- To use 2N2222 as a clean microcontroller switch, drive it into hard saturation with forced beta I_C / I_B <= 10 to 15 (typically a 470 ohm to 1 kOhm base resistor).
- For inductive loads like 5V/12V relays or DC motors, always place a 1N4007 or 1N4148 flyback diode across the coil to clamp voltage spikes.
| Symbol | Component | Real-World Engineering Tip |
|---|---|---|
| Q_NPN | PN2222A (TO-92 Plastic, E-B-C) | Flat face toward you, legs down: Left = Emitter, Middle = Base, Right = Collector. |
| TO-18 | 2N2222A (TO-18 Metal Can) | The metal can case is internally connected to the Collector — do not let it touch GND. |
| REV | P2N2222AG (Reversed C-B-E) | If your breadboard transistor circuit refuses to turn on or gets hot immediately, check if you bought P2N2222AG. |
Real-World Bench Scenario: Switching a 150 mA 5V relay coil from a 3.3V ESP32 GPIO: (3.3V - 0.7V) / 15 mA ≈ 173 Ω -> use a 220 Ω or 330 Ω base resistor to keep GPIO current safe while saturating the 2N2222.
Bench Challenge: Toggle between PN2222A (E-B-C), TO-18 Metal Can, and P2N2222AG (Reversed C-B-E), then lower R_B until the status flips to HARD SATURATION.