Parts
2N2222 transistor: pinout for every package, ratings and substitutes
By Bulan Sarkar
"2N2222" is a family name, and the pin order depends on which member you are holding. The onsemi P2N2222A in TO-92 is C-B-E. The PN2222A in the same TO-92 body is E-B-C, the exact reverse. Put one in a board laid out for the other and collector and emitter swap places.
Every pinout, rating and gain figure below was read from the maker's own datasheet. Each pinout names the page it came from, and the datasheets and their revisions are listed at the foot of the page.
Pinout by package
Flat face toward you, leads pointing down: pins 1, 2, 3 from left to right.
This is the one that catches people: collector on the left, the reverse of the PN2222A.
Source: onsemi P2N2222A/D, p. 1 (pin diagram and TO-92 Case 29, Style 17); onsemi P2N2222A/D, p. 6 (Style 17: pin 1 collector, 2 base, 3 emitter)
Flat face toward you, leads pointing down: E, B, C from left to right.
Same order as the 2N3904, and the reverse of the P2N2222A.
Source: onsemi (Fairchild) PN2222A / MMBT2222A / PZT2222A, p. 1 (TO-92 drawing labelled E B C)
Looking at the leads from underneath: the emitter is next to the tab, then base, then collector.
The metal can is the collector (Microchip note 9), so keep it clear of other metal.
Source: Central Semiconductor 2N2221A, 2N2222A, p. 2 (lead code: 1 emitter, 2 base, 3 collector); Microchip DS00005314A (2N2221A–2N2222A, MIL-PRF-19500/255), p. 6 (outline, notes 9 and 12: lead 1 emitter, collector tied to the case)
Top view, marking readable, single lead at the top: pin 1 bottom left, pin 2 bottom right, pin 3 on top.
Source: onsemi MMBT2222LT1/D, p. 1 (SOT-23 Case 318, Style 6: 1 base, 2 emitter, 3 collector); onsemi (Fairchild) PN2222A / MMBT2222A / PZT2222A, p. 1 (SOT-23 drawing, C on the single lead, marking 1P)
Which one do you have?
Read the print on the flat face. P2N2222A (printed as P2N2 over 222A) is onsemi's TO-92 part and runs collector, base, emitter from the left. PN2222A is the Fairchild-designed part that onsemi now sells, and it runs emitter, base, collector. A metal can marked 2N2222A is the original TO-18 part, with the emitter next to the tab. A tiny three-lead part marked 1P is an MMBT2222A in SOT-23.
A TO-92 marked only "2N2222" or "2N2222A" could have come from any maker. Do not trust a drawing for it. Check it with a meter, as described further down, before you solder it.
The versions without the A are older and weaker. In onsemi's SOT-23 datasheet the plain MMBT2222 is rated 30 V collector to emitter against 40 V for the MMBT2222A, and 5 V emitter to base against 6 V. Buy the A.
Absolute maximum ratings
The makers agree on the voltages and disagree on current and power. The P2N2222A is rated 600 mA, the PN2222A 1 A and the TO-18 can 800 mA. The SOT-23 part is rated 225 mW, about a third of what the TO-92 parts can dissipate, so it runs much hotter at the same current. Microchip's 2N2222A, qualified to MIL-PRF-19500, is rated 50 V collector to emitter where Central's is rated 40 V.
| Parameter | P2N2222ATO-92 | PN2222ATO-92 | 2N2222ATO-18 | MMBT2222ASOT-23 |
|---|---|---|---|---|
| Collector-emitter voltage VCEO | 40 V | 40 V | 40 V (Central), 50 V (Microchip) | 40 V |
| Collector-base voltage VCBO | 75 V | 75 V | 75 V | 75 V |
| Emitter-base voltage VEBO | 6.0 V | 6.0 V | 6.0 V | 6.0 V |
| Collector current, continuous IC | 600 mA | 1.0 A | 800 mA | 600 mA (1.1 A peak) |
| Power dissipation at 25 °C ambient PD | 625 mW | 625 mW | 500 mW | 225 mW (on a small FR-5 board) |
| Thermal resistance, junction to air RθJA | 200 °C/W | 200 °C/W | 350 °C/W (Central), 325 °C/W (Microchip) | 556 °C/W |
| Junction temperature TJ | −55 to 150 °C | −55 to 150 °C | −65 to 200 °C | −55 to 150 °C |
These are limits, not operating points. Design for well under them: a 2N2222A carrying 500 mA works, but by the datasheet its saturation voltage can reach 1 V at that current, which is half a watt in a part rated for 625 mW.
Gain, saturation and speed
| Parameter | P2N2222ATO-92 | PN2222ATO-92 | 2N2222ATO-18 | MMBT2222ASOT-23 |
|---|---|---|---|---|
| DC current gain hFEIC = 10 mA, VCE = 10 V | 75 min | 75 min | 75 min (Central), 100 min (Microchip) | 75 min |
| DC current gain hFEIC = 150 mA, VCE = 10 V | 100 to 300 | 100 to 300 | 100 to 300 | 100 to 300 |
| DC current gain hFEIC = 150 mA, VCE = 1 V | 50 min | 50 min | 50 min (Central) | 50 min |
| DC current gain hFEIC = 500 mA, VCE = 10 V | 40 min | 40 min | 40 min (Central), 30 min (Microchip) | 40 min |
| Saturation voltage VCE(sat)IC = 150 mA, IB = 15 mA | 0.3 V max | 0.3 V max | 0.3 V max | 0.3 V max |
| Saturation voltage VCE(sat)IC = 500 mA, IB = 50 mA | 1.0 V max | 1.0 V max | 1.0 V max | 1.0 V max |
| Base-emitter voltage in saturation VBE(sat)IC = 150 mA, IB = 15 mA | 0.6 to 1.2 V | 0.6 to 1.2 V | 0.6 to 1.2 V | 0.6 to 1.2 V |
| Transition frequency fTIC = 20 mA, VCE = 20 V | 300 MHz min | 300 MHz min | 300 MHz min (Central); Microchip gives |hfe| ≥ 2.5 at 100 MHz, i.e. 250 MHz | 300 MHz min |
| Output capacitance CoboVCB = 10 V | 8 pF max | 8 pF max | 8 pF max | 8 pF max |
Two things in this table matter more than the rest. First, gain is a range. At 150 mA and 10 V the hFE can be anywhere from 100 to 300, and at 1 V across the transistor (a switch that is nearly on) only 50 is guaranteed. Never design for the 300. Second, the 0.3 V saturation voltage is specified with the base current at one tenth of the collector current (150 mA and 15 mA). That ratio is what the switching example below uses.
The 300 MHz transition frequency is why the 2N2222 turns up in RF oscillators and fast pulse circuits as well as relay drivers. The onsemi datasheet gives storage time as 225 ns at most at 150 mA, so switching at tens of kilohertz, as in PWM motor or LED drive, is well within reach.
What it is good for
- Switching a relay, a buzzer, a small motor or a short LED strip from a microcontroller pin, up to a few hundred milliamps. The BJT as a switch lesson covers the theory.
- Small-signal amplifiers, such as a common-emitter stage or an emitter follower.
- Oscillators and pulse circuits into the tens of megahertz.
It is the wrong part above about half an amp, and for anything that needs to run cool at currents over a few hundred milliamps. At that point a logic-level MOSFET wastes far less power; MOSFET or BJT compares the two.
Worked example: switching a 100 mA load
A 12 V load that draws 100 mA, say a small relay coil, switched from a 5 V microcontroller pin. The emitter goes to ground, the load sits between +12 V and the collector, and a resistor feeds the base from the pin.
1. Pick the base current. Use the ratio the datasheet specifies saturation at, collector current over ten: 100 mA / 10 = 10 mA.
2. Take the worst-case base-emitter voltage. The datasheet gives VBE(sat) as 0.6 V to 1.2 V. The highest value leaves the least voltage across the resistor, so size with 1.2 V: R ≤ (5 − 1.2) V / 10 mA = 380 Ω.
3. Round down to a standard value. The next E12 value below is 330 Ω. With it the base current is 11.5 mA if VBE is 1.2 V and 13.3 mA if it is 0.6 V. Both are above the 10 mA target.
4. Check against the guaranteed gain. At the lowest base current, the minimum hFE of 50 could support 576 mA. The load needs 100 mA, so the transistor is driven hard into saturation with room to spare.
5. Check the heat. At most 100 mA × 0.3 V plus 13.3 mA × 1.2 V = 46 mW. At 200 °C/W for the TO-92 that raises the junction about 9.2 °C above the air around it. The resistor dissipates 59 mW, so an ordinary quarter-watt part is fine.
From a 3.3 V pin the same working gives R ≤ 210 Ω, so 180 Ω, and a base current between 11.7 mA and 15 mA. Look up your chip's per-pin current limit before you settle on that. If the pin cannot supply it, a logic-level MOSFET needs almost no gate current (see the MOSFET as a switch).
Two parts finish the circuit. A relay coil or motor needs a diode across it (cathode to +12 V), or the voltage spike at switch-off can exceed the 40 V rating; the flyback diode and relay driving lessons explain why. A 10 kΩ resistor from base to emitter holds the transistor off while the microcontroller is resetting and its pin is floating. It takes only about 0.1 mA from the base drive.
Substitutes, and the pin-order trap
The two parts people reach for when a 2N2222 is not in the drawer are the 2N3904 and the BC547. Both are NPN and both come in TO-92, but they use different pin orders, and neither handles as much current.
| Part | Pins | Verdict |
|---|---|---|
| 2N3904 | E-B-C | Same pin order as the PN2222A and the reverse of the P2N2222A. Rated 200 mA, and its saturation voltage is only specified up to 50 mA, so it is a substitute for light loads only.onsemi 2N3903/D, p. 1; onsemi 2N3903/D, p. 2 |
| BC547 | C-B-E | Same pin order as the P2N2222A and the reverse of the PN2222A and 2N3904. Its absolute maximum collector current is 100 mA, so it cannot carry the 100 mA load worked through below with any margin.onsemi BC546/D, p. 1; onsemi BC546/D, p. 2 |
For the 100 mA example above, neither is a good swap. The BC547 would be at its absolute maximum current. The 2N3904 is rated for 200 mA, but its datasheet specifies saturation voltage only up to 50 mA, and guarantees an hFE of just 30 at 100 mA, so you would be relying on behaviour nobody promises. For loads under 50 mA both are fine, provided the pins go in the right holes.
If a board was designed for a PN2222A or 2N3904 (E-B-C) and you only have a P2N2222A or BC547 (C-B-E), turn the part around so the flat face points the other way. The outer two leads swap and the base stays in the middle. Then check it with a meter.
Finding the pins with a multimeter
An NPN transistor looks like two diodes to a meter, with their anodes joined at the base. Set the meter to diode test.
- Find the lead that conducts to both others with the red probe on it. That lead is the base, and each junction reads roughly 0.6 to 0.7 V. If the black probe is the one that finds a common lead, the part is PNP, not a 2N2222.
- Reverse the probes: both junctions should read open (OL). Between the two outer leads you should read open in both directions.
- The base-emitter reading is usually a few millivolts higher than the base-collector one. That is a hint, not proof. If your meter has an hFE socket, try the part both ways round: the orientation that shows the higher gain has collector and emitter in the right holes.
The transistor testing lesson works through the same method step by step, and continuity and diode test explains what the meter is doing in that mode. The Datasheet Guru will pull the same figures from any other transistor's datasheet.
Buying 2N2222 transistors in India
A loose TO-92 sold as "2N2222", in a market or online, with no maker named could have either pin order, because the maker decides it. Buy from a seller that names the maker and the full part number (onsemi orders its TO-92 part as P2N2222AG, for example), or meter every part from an unmarked bag before it goes into a board. Our guide to buying electronic components in India compares ten online sellers and covers how to spot fakes.
Lessons that go deeper
Datasheets this page was checked against
- onsemi, P2N2222A/D (Rev. 7, January 2013)
- onsemi (Fairchild), PN2222A / MMBT2222A / PZT2222A (Rev. A3, August 2010)
- Central Semiconductor, 2N2221A, 2N2222A (R5, 5 December 2013)
- Microchip, DS00005314A (2N2221A–2N2222A, MIL-PRF-19500/255) (Rev. A, February 2024)
- onsemi, MMBT2222LT1/D (revision not printed on the copy checked)
- onsemi, 2N3903/D (Rev. 8, August 2012)
- onsemi, BC546/D (Rev. 6, March 2007)
Makers revise datasheets. If the copy you download has a newer revision and a number here disagrees with it, the datasheet wins, and we would like to hear about it.