Components / Transistors and MOSFETs / NPN Transistor 2N2222

NPN Transistor 2N2222

A bipolar transistor can amplify signals or switch suitable loads.

TypeNPN bipolar transistor
Max voltage40 V collector-emitter (2N2222A)
Max current600 mA collector
Key figureGain hFE 100 to 300 at 150 mA
SemiconductorsReviewedMPN PN2222AUsed in 19 projects
NPN
In short

What is the NPN Transistor 2N2222 and what is it used for?

A bipolar transistor can amplify signals or switch suitable loads. Makers use it for transistor switching with suitable resistor.

Pin order differs between makers. Check the datasheet for the exact part number printed on yours.
In the real world

Small load switching and signal stages

How it works

Semiconductor devices control or steer current. Safe use requires exact polarity, voltage/current ratings and thermal limits.

Key specifications

Diode or transistor specValue
TypeNPN bipolar transistor
Max voltage40 V collector-emitter (2N2222A)
Max current600 mA collector
Key figureGain hFE 100 to 300 at 150 mA
PackageTO-92 (or TO-18 metal can)
Pin orderPN2222A: E-B-C; P2N2222A: C-B-E (flat face toward you). Check yours.

Pinout

EEmitter, usually to GND
BBase, through 1 kΩ from the microcontroller pin
CCollector, to the load's negative side

How to use it

Switch loads up to a few hundred mA from a GPIO: load from supply to collector, emitter to ground, 1 kΩ into the base. Add a diode across inductive loads.

// D3 → 1 kΩ → base. Buzzer or relay between 5 V and collector.
void setup() { pinMode(3, OUTPUT); }
void loop() { digitalWrite(3, HIGH); delay(300); digitalWrite(3, LOW); delay(700); }

Applications

Alternatives

Buy at

Common questions

What is the NPN Transistor 2N2222 used for?

In products: small load switching and signal stages. In maker projects: transistor switching with suitable resistor.

How does the NPN Transistor 2N2222 work?

Semiconductor devices control or steer current. Safe use requires exact polarity, voltage/current ratings and thermal limits.

What can I use instead of the NPN Transistor 2N2222?

MOSFET AO3400A and PNP Transistor 2N2907.