If you've spent any time tinkering with circuits or designing small signal stages, chances are you've come across both the 2N3904 and 2N2222. They're two of the most widely used NPN transistors out there—and for good reason. They're cheap, easy to find, and generally reliable. But when it comes down to picking one for a specific job, the choice isn’t always obvious.
On paper, they look similar: both are general-purpose NPN BJTs, good for switching and amplification. But dig a little deeper, and you'll notice some practical differences—things like how much current they can handle, how fast they switch, and even how much voltage they drop when fully on. These details can matter a lot, especially when you're working close to the limits of your power supply or trying to squeeze the most efficiency out of a circuit.
In this article, we'll walk through a hands-on comparison of the 2N3904 and 2N2222. We'll look at their key specs in plain language, explore where each one tends to shine (or struggle), and talk about how interchangeable they really are in real-world projects. Whether you're designing a sensor interface, a basic amplifier, or just switching an LED on and off with a microcontroller, understanding these differences can save you from unnecessary troubleshooting—or fried components.
Key Parameter Comparison: 2N3904 vs 2N2222
| Parameter | 2N3904 | 2N2222 |
|---|---|---|
| Maximum Collector Current (Ic) | 200 mA | 800 mA |
| Collector-Emitter Voltage (Vceo) | 40 V | 40 V |
| Collector-Base Voltage (Vcbo) | 60 V | 75 V |
| Emitter-Base Voltage (Vebo) | 6 V | 6 V |
| DC Current Gain (hFE) | 100–300 (typ. ~150) | 100–300 (typ. ~200) |
| Power Dissipation (Ptot) | 625 mW | 500 mW (TO-18) / 1 W (TO-92) |
| Transition Frequency (fT) | ~250 MHz | ~250 MHz |
| Saturation Voltage (Vce(sat)) | ~0.2 V @ 10 mA | ~0.3 V @ 150 mA |
| Package | TO-92 | TO-92 / TO-18 |
Which One to Use, and When
At a glance, both transistors look fairly similar, but a few key differences can guide your choice depending on your application.
Current Handling (Ic):
The 2N2222 can handle up to 800 mA, while the 2N3904 tops out around 200 mA. That’s a big deal if you’re switching something like a motor or relay. For low-power digital logic or small-signal applications, 2N3904 is usually more than enough—but once you push past 100 mA, the 2N2222 becomes the safer choice.
Gain (hFE):
Both have similar current gain ranges, but the 2N2222 tends to have slightly higher gain at moderate currents, which can help when you're working with weak drive signals (like from a microcontroller pin).
Saturation Voltage:
When used as a switch, the lower VCE(sat) on the 2N3904 (~0.2V) can help reduce power loss—though the 2N2222 holds up better at higher currents, even if it drops a bit more voltage.
Power Dissipation:
If you're worried about heat, check the package. A metal-can TO-18 version of the 2N2222 can handle up to 1W, which outclasses the standard 625 mW rating of the 2N3904. But in the common TO-92 package, they’re closer in performance.
Speed (fT):
Both transistors are pretty fast, with transition frequencies around 250 MHz, so they’re fine for most small-signal applications, including RF up to VHF, assuming layout is good.
Package and Pinout Comparison: 2N3904 vs 2N2222

TO-92 (Plastic Package) – Used by Both 2N3904 and 2N2222
Physical characteristics:
- Small, black, cylindrical body with a flat face
- Commonly used in through-hole applications
- Inexpensive and easy to work with on breadboards or perf boards
Pinout (flat side facing you):
2N3904 (TO-92):
- Left to Right: Emitter – Base – Collector (E–B–C)
2N2222A (TO-92):
- Left to Right: Collector – Base – Emitter (C–B–E)
This is reversed from the 2N3904!
TO-18 (Metal Can Package) – Classic 2N2222
Physical characteristics:
- Small round metal can (often with a tab or notch to indicate pin 1)
- Better thermal conductivity and slightly higher power rating than TO-92
- More robust mechanically, often used in older or military-grade designs
Pinout -viewed from bottom, leads downward, tab or notch pointing up:
- Pin 1: Emitter
- Pin 2: Base
- Pin 3: Collector
- This is different from both TO-92 versions.
Can They Be Swapped Directly?
Not always. While electrically the 2N3904 and 2N2222 are both NPN BJTs and can serve similar roles, the pin configuration is not the same across their typical packages:
If you're swapping a 2N3904 (TO-92) for a 2N2222A (TO-92) on a breadboard or PCB, you'll likely need to rearrange the legs or adjust the layout, because the emitter and collector are flipped.
Swapping in a metal-can TO-18 2N2222 makes things even more complex, as the pinout follows a radial arrangement instead of linear.
Using a socketed board or adapter can help with mechanical compatibility when experimenting.
Substitute Options for 2N3904 and 2N2222
For 2N3904:
| Substitute | Key Differences | When to Use | Notes |
|---|---|---|---|
| 2N4401 | Higher current handling (600 mA vs. 200 mA) | When higher current capacity is needed | Similar pinout; verify datasheet |
| BC547 | European equivalent; similar specs | General-purpose applications | Different pinout (C-B-E); check layout |
| PN2222A | Slightly higher current rating | General-purpose switching | Similar pinout; verify datasheet |
| MMBT3904 | Surface-mount version | Compact PCB designs | SOT-23 package; SMD layout required |
| S8050 | Up to 500 mA, common in Asia | Cost-sensitive projects | Pinout may vary; confirm before use |
For 2N2222:
| Substitute | Key Differences | When to Use | Notes |
|---|---|---|---|
| PN2222A | Plastic version of 2N2222 | Most general-purpose applications | Same specs; often easier to source |
| 2N4401 | Similar current rating, slightly different gain | Switching loads up to 600 mA | Check gain curve; pinout is the same |
| 2N2219 | Higher power version in TO-39 metal can | Higher dissipation requirements | Different package (TO-39); mechanical compatibility needed |
| BC337 | European equivalent; up to 800 mA | General switching tasks | Different pinout (C-B-E); check layout carefully |
| S8050 | Widely available Asian equivalent, up to 500 mA | Budget hobbyist circuits | Pinout varies by vendor; verify datasheet |
| MMBT2222A | SMD version of PN2222A | Compact PCBs and modern designs | SOT-23 package; SMD layout required |
Application-Based Recommendations: 2N3904 vs 2N2222
LED Control (Simple On/Off Switching or PWM Dimming)
Recommended: 2N3904
Why:
LED control typically involves small currents (usually under 20–30 mA per LED). The 2N3904 handles up to 200 mA, which is more than enough for multiple LEDs or small LED strips.
Bonus:
It has a lower saturation voltage at low current levels, meaning slightly less power loss and heat when acting as a switch.
Use case tip: For driving a few LEDs directly from a microcontroller (e.g., using PWM from an Arduino), the 2N3904 is cost-effective, efficient, and perfectly suited.
Motor Driving (Small DC Motors or Relays)
Recommended: 2N2222
Why:
Motors and relays typically require higher current—often more than 200 mA, especially at startup. The 2N2222 can handle up to 800 mA, making it much more suitable for these kinds of inductive loads.
Bonus:
It’s also more robust under switching transients, especially when combined with a flyback diode.
Use case tip: When switching a small 6V or 12V motor from an Arduino or Raspberry Pi, choose the 2N2222 to avoid pushing the transistor too close to its limits.
Audio Amplification (Low-Power Signal Stages)
Recommended: 2N3904
Why:
For small-signal audio amplification (like pre-amp stages or hobby radio circuits), the 2N3904 performs well due to its good frequency response and linearity at low currents.
Bonus:
It’s slightly quieter and better suited to high-gain, low-noise applications than the 2N2222, especially in consumer-grade designs.
Use case tip: In a basic transistor amplifier circuit (e.g., a microphone preamp), the 2N3904 is a more natural fit.
Arduino Projects (General Purpose Switching)
Recommended:
2N3904 for LEDs, buzzers, sensors
2N2222 for motors, solenoids, relays
Why:
Arduino GPIO pins typically output around 20–40 mA of current. Both transistors can be driven directly by these pins. The real decision comes down to load current.
If you're switching small loads (LEDs, optocouplers), go with the 2N3904.
For larger loads (motors, relays), use the 2N2222 to stay within safe limits and avoid overheating.
Use case tip: Always check your load current. If you're unsure, and it might go above 150–200 mA, choose the 2N2222 to be safe.
Conclusion
The 2N3904 and 2N2222 are both excellent general-purpose NPN transistors, but they're not always drop-in replacements for each other. The 2N3904 is a great fit for low-power, high-speed switching and small-signal amplification, making it ideal for learning projects and basic control tasks. On the other hand, the 2N2222 offers higher current handling and greater robustness, making it more suitable for driving motors, relays, or other power-demanding loads.
Understanding their differences—especially in terms of current capacity, saturation voltage, and pinout—can help you avoid common mistakes and choose the right part for your specific application. In short: use the 2N3904 when efficiency and simplicity matter, and go with the 2N2222 when you need more muscle.



























