The 2N3904 and 2N2222 are two of the most widely used NPN bipolar junction transistors in electronic circuits. Both devices function as electronic switches and signal amplifiers, yet they differ in current capability, packaging, thermal behavior, and load-driving strength. Understanding these differences helps you choose the most suitable transistor for circuits such as LED drivers, relay controllers, sensor interfaces, and small motor control systems. By comparing their pinout, specifications, applications, and performance characteristics, you can determine which device better fits a particular electronic design.

Overview of 2N3904

The 2N3904 is a silicon NPN transistor designed for small-signal amplification and low-power switching. It has three terminals; base, collector, and emitter, and operates by allowing a small base current to control the larger current flowing from the collector to the emitter. Because of its compact size, low cost, and stable performance, the 2N3904 is widely used in signal amplification stages, switching circuits, and other low-power electronic applications.
What is 2N2222?

The 2N2222 is a similar NPN transistor but designed to handle higher current loads. It is used for switching and signal amplification, with a small base input controlling the current flow between the collector and emitter. The 2N2222 is known for handling higher current than many small-signal transistors, making it suitable for many switching and driver applications.
2N3904 vs 2N2222 Pinout
2N3904 Pinout

| Pin | Name | Description |
|---|---|---|
| 1 | Emitter | Terminal where current leaves the transistor |
| 2 | Base | Controls transistor conduction |
| 3 | Collector | Terminal where current enters the transistor |
2N2222 Pinout

| Pin | Name | Description |
|---|---|---|
| 1 | Base | Controls transistor conduction |
| 2 | Collector | Current enters the transistor |
| 3 | Emitter | Current exits the transistor |
Package Differences
2N3904 Package
The 2N3904 is typically packaged in a TO-92 plastic package. This type of package is inexpensive and compact, making it common in low-power electronic products such as consumer devices, sensors, and small control circuits. Plastic packages provide moderate thermal performance and are suitable for circuits with relatively low power dissipation.
2N2222 Package
The traditional 2N2222 often uses a TO-18 metal package. Metal packages conduct heat more efficiently than plastic ones, allowing the transistor to handle higher current and temperature levels. Plastic versions such as PN2222A are also widely used and provide similar electrical characteristics in a TO-92 package.
2N3904 vs 2N2222 Specifications
| Parameter | 2N3904 | 2N2222 |
|---|---|---|
| Transistor Type | Bipolar Junction Transistor | Bipolar Junction Transistor |
| Polarity | NPN | NPN |
| Maximum Collector Current (Ic) | 200 mA | up to about 600 mA |
| Collector-Emitter Voltage (VCEO) | 40 V | 40–60 V depending on manufacturer |
| Power Dissipation | about 625 mW (TO-92 package) | about 625–800 mW depending on package and manufacturer |
| Current Gain (hFE) | 100–300 | 75–300 |
| Transition Frequency (fT) | about 250–300 MHz | about 200–300 MHz depending on manufacturer |
Equivalent and Complementary Transistors
Both transistors can be replaced by similar devices in certain circuits if the electrical ratings and pin configuration match.
2N3904 Equivalents
• BC547 – Common small-signal NPN transistor used in low-current circuits
• BC548 – Similar device used for switching and amplification
• BC636 – Higher-current NPN transistor for some driver circuits
• BC639 – Often used in switching and driver stages
• 2N2222 / 2N2222A – Can replace 2N3904 in circuits requiring higher current capability
2N2222 Equivalents
• 2N3904 – Suitable replacement only in lower-current circuits
• BC547 – Used for low-power amplification and switching
• BC548 – Similar replacement for low-current applications
Complementary PNP Transistors
Complementary PNP devices are often used in push-pull amplifiers or switching pairs.
| NPN Transistor | Complementary PNP |
|---|---|
| 2N3904 | 2N3906 |
| 2N2222 | 2N2907 |
Before using a substitute transistor, verify the voltage rating, current rating, gain range, and package type.
Applications of 2N3904 and 2N2222
2N3904 Applications

• LED driver circuits – switches current for indicator LEDs and small lighting circuits
• Small-signal amplifiers – amplifies low-level audio or sensor signals
• PWM switching circuits – used as a fast electronic switch in pulse-width modulation systems
• Consumer electronics – radios, small audio devices, and electronic modules
• Signal conditioning circuits – amplifies sensor outputs in measurement systems
• Low-power switching circuits – performs digital or logic signal switching
2N2222 Applications

• Relay driver circuits – switches relay coils in control systems
• Motor driver circuits – drives small DC motors and inductive loads
• RF and VHF circuits – used in radio-frequency amplification stages
• Sensor interfaces – amplifies signals from measurement sensors
• Embedded systems – switching element in microcontroller-based circuits
• PWM power control – handles moderate-current switching applications
• Audio amplifier stages – driver stage in multi-stage amplifier circuits
Differences Between 2N3904 and 2N2222
| Selection Factor | 2N3904 | 2N2222 |
|---|---|---|
| Typical Role | Small-signal stages and low-current control | Driver transistor for moderate loads |
| Maximum Collector Current | About 200 mA | About 600 mA or more depending on version |
| Collector-Emitter Voltage | Around 40 V | Around 40–60 V |
| Power Dissipation | About 625 mW | About 625–800 mW depending on package |
| Package Type | Mostly TO-92 plastic | TO-18 metal or TO-92 plastic |
| Thermal Behavior | Suitable for lower power circuits | Metal versions dissipate heat more efficiently |
| Load Capability | Small loads | Moderate loads such as relays or small motors |
| Frequency Performance | Good for small-signal stages | Stable performance in driver circuits |
| Typical Uses | Sensors, signal stages, compact electronics | Relay drivers, motor control, moderate-current circuits |
Choosing the Right Transistor
Selecting between these two devices depends on several circuit factors:
• Collector current requirement: Circuits requiring more than a few hundred milliamps favor the 2N2222 because of its higher current rating.
• Load type: Inductive loads such as relays or small motors benefit from the stronger drive capability of the 2N2222.
• Thermal conditions: Higher-current designs may benefit from the improved heat dissipation of metal-package 2N2222 versions.
• Signal vs driver stages: Low-level signal circuits often use the 2N3904, while driver stages for loads prefer the 2N2222.
Selecting a transistor that matches the electrical and thermal requirements of the circuit improves reliability and prevents operation beyond the device limits.
2N3904 vs 2N2222 vs BC547 Comparison

| Feature | 2N3904 | 2N2222 | BC547 |
|---|---|---|---|
| Transistor type | NPN BJT | NPN BJT | NPN BJT |
| Maximum collector current | 200 mA | about 600 mA | 100 mA |
| Collector-emitter voltage | 40 V | 40–60 V | 45 V |
| Power dissipation | about 625 mW | about 625–800 mW | about 500 mW |
| Current gain | 100–300 | 75–300 | 110–800 |
| Transition frequency | about 250–300 MHz | about 200–300 MHz | about 300 MHz |
| Typical package | TO-92 | TO-18 / TO-92 | TO-92 |
| Main application | Small-signal amplification | Switching and driver circuits | High-gain signal amplification |
Conclusion
The 2N3904 and 2N2222 are both versatile NPN transistors widely used in electronic circuits. The 2N3904 is well suited for low-power switching and small-signal amplification, while the 2N2222 provides higher current capability and stronger load-driving performance. By considering specifications such as current rating, package type, thermal behavior, and circuit requirements, you can select the transistor that best matches the electrical and current requirements of the circuit.
Frequently Asked Questions [FAQ]
Can a 2N3904 directly replace a 2N2222 in a circuit?
In some cases, yes, but only if the circuit operates within the 2N3904’s lower current limits. The 2N3904 supports about 200 mA, while the 2N2222 can handle up to 600–800 mA. You must also verify the pin configuration, power dissipation, and base drive requirements before substituting one device for the other.
What base resistor should be used with a 2N3904 or 2N2222?
The base resistor depends on the supply voltage and desired collector current. A common design approach is to provide a base current equal to about one-tenth of the collector current for reliable switching. For example, if the load requires 100 mA, the base current might be around 10 mA, and the resistor value is calculated using Ohm’s law.
Which transistor is better for driving relays or motors?
The 2N2222 is typically the better choice because it can switch significantly higher current than the 2N3904. Its higher collector current rating and stronger load-driving capability make it suitable for relay coils, small DC motors, and other inductive loads that require more current.
What precautions should be taken when switching inductive loads with these transistors?
When driving relays, motors, or coils, a flyback diode should be connected across the load. This diode protects the transistor from voltage spikes produced when the inductive load is switched off. Without this protection, the transistor can be damaged by the high reverse voltage.
How do temperature and heat affect 2N3904 and 2N2222 performance?
Higher temperature increases leakage current and can reduce transistor reliability if the device exceeds its power dissipation limit. The 2N2222 often tolerates heat better, particularly in metal packages, while the 2N3904 is better suited to low-power environments where heat generation remains minimal.