2N3904 vs 2N2222: NPN Transistor Specifications and Replacement Comparison


2N3904 and 2N2222 are two widely used NPN bipolar junction transistors for switching, signal amplification, driver circuits, and general-purpose electronic applications.

Because both devices are commonly used as low-power switching transistors, engineers often search for 2N3904 vs 2N2222 when selecting a transistor for a new design or looking for a replacement.

Although they have similar applications, they are not identical components. Collector current, voltage ratings, current gain characteristics, package options, power dissipation, and pin configuration can vary depending on the exact device and manufacturer.

What Is 2N3904?

2N3904 is a general-purpose NPN bipolar junction transistor designed for amplification and switching applications.

The onsemi 2N3904 is specified with a minimum collector-emitter breakdown voltage of 40V and a continuous collector-current rating of 200mA. Its datasheet also specifies a minimum DC current gain of 100 under one of the listed test conditions.

The transistor is commonly used in:

Signal amplification

LED switching

Relay drivers

Sensor circuits

Microcontroller interfaces

Logic-level switching

Audio circuits

General-purpose transistor stages

Its relatively small package and low current requirements make 2N3904 suitable for many low-power electronic circuits.

What Is 2N2222?

2N2222 is another widely used general-purpose NPN bipolar transistor.

The 2N2222 family is commonly used for switching and amplification, including applications where a higher collector-current capability than a 2N3904 may be required.

However, the exact specifications depend on the manufacturer and package. For example, onsemi's 2N2222A datasheet specifies the characteristics of its particular device version, so engineers should not assume that every component marked 2N2222 has exactly the same ratings.

Typical applications include:

Relay drivers

Motor-control interfaces

LED drivers

Power switching

Signal amplification

Sensor interfaces

Embedded control circuits

General-purpose switching

2N3904 vs 2N2222: Basic Difference

The most important difference between 2N3904 and 2N2222 is their intended current-handling capability.

The onsemi 2N3904 is a 200mA, 40V NPN transistor.

2N2222 devices are commonly available with higher collector-current capability, although the actual rating depends on the specific manufacturer's version and package.

This makes 2N2222 attractive for switching applications where the load current is higher, while 2N3904 is commonly used for lower-current switching and signal amplification.

For an existing design, however, maximum current should not be the only replacement criterion.

2N3904 vs 2N2222 Collector Current

Collector current is one of the first specifications to check when comparing these two transistors.

For the onsemi 2N3904, the continuous collector current is 200mA.

The 2N2222 family can provide higher current capability depending on the exact version. onsemi's product-selection data, for example, lists 2N2222A-related devices with 600mA continuous collector current.

This difference can matter when driving:

Relays

Small motors

LED arrays

Solenoids

Other low-power loads

A design operating near the 200mA limit of a 2N3904 may require a transistor with a higher current rating.

2N3904 vs 2N2222 Voltage Rating

The collector-emitter voltage rating must also be considered.

The onsemi 2N3904 has a minimum collector-emitter breakdown voltage of 40V.

Many 2N2222 variants also use a 40V collector-emitter rating, but engineers should verify the exact manufacturer's datasheet.

Voltage margin is particularly important when switching inductive loads.

When a transistor drives a relay, motor, solenoid, or other inductive load, voltage spikes can appear when the load is switched off. A suitable protection circuit, such as a flyback diode, may be required.

2N3904 vs 2N2222 Current Gain

DC current gain, commonly represented by hFE, is another important transistor parameter.

The 2N3904 datasheet specifies different minimum gain values depending on collector current. For the onsemi device, the minimum hFE is 100 at 1mA collector current and 1V collector-emitter voltage, while other test conditions produce different limits.

This illustrates an important point: transistor gain is not a single fixed number.

The actual gain changes with:

Collector current

Collector-emitter voltage

Temperature

Device variation

Transistor manufacturing process

Therefore, circuit designers should avoid designing a transistor switch based only on a typical hFE value.

2N3904 vs 2N2222 Switching Applications

Both transistors can be used as electronic switches.

A typical low-side switching circuit connects the load between the positive supply and the transistor collector, with the emitter connected to ground.

A control signal is applied through a base resistor.

When sufficient base current is provided, the transistor turns on and allows current to flow through the load.

This configuration is commonly used with microcontrollers and digital logic.

2N3904 is suitable for many low-current loads, while 2N2222 can be attractive when the load requires more collector current.

2N3904 vs 2N2222 for Microcontroller Projects

Both transistors are commonly used with microcontrollers.

A microcontroller GPIO pin may not have enough current capability to directly drive a relay, motor, or other load.

An NPN transistor can provide the required switching interface.

For example, a microcontroller output can drive the transistor base through a resistor while the transistor controls the load current.

When selecting between 2N3904 and 2N2222, engineers should check:

GPIO output voltage

Required base current

Load current

Transistor saturation voltage

Power dissipation

Switching frequency

The transistor should not be selected only because the base-emitter junction can be driven by the microcontroller.

2N3904 vs 2N2222 for Relay Drivers

Relay driving is a common application for both devices.

The transistor must handle the relay coil current while remaining within its voltage and power limits.

2N2222 is often considered when a higher-current switching device is required.

2N3904 can work well for smaller relay coils when the coil current remains within its specified operating range.

A flyback diode should normally be placed across a conventional DC relay coil to reduce the voltage spike generated when the transistor switches off.

2N3904 vs 2N2222 for LED Switching

For individual LEDs and small LED loads, both devices can be suitable.

The required collector current is usually much lower than the maximum current rating of either transistor.

In this type of application, other factors such as:

Package

Availability

Base-drive requirements

Forward voltage

Saturation voltage

Cost

PCB footprint

may become more important than maximum collector current.

For higher-current LED loads, the transistor's power dissipation should also be calculated.

2N3904 vs 2N2222 for Signal Amplification

Both transistors can operate in amplifier circuits.

They can be configured as:

Common-emitter amplifiers

Common-collector circuits

Common-base circuits

Small-signal switching stages

Biasing circuits

Signal-conditioning stages

The best choice depends on the required gain, frequency response, bias conditions, noise performance, and signal amplitude.

For precision analog designs, engineers may need a transistor specifically optimized for low noise, high gain, high frequency, or other specialized characteristics rather than selecting a general-purpose transistor.

2N3904 vs 2N2222 Package Differences

Package is an important consideration when replacing one transistor with another.

The 2N3904 is commonly available in TO-92 and surface-mount variants. onsemi, for example, lists 2N3904 devices in TO-92-3 and several surface-mount packages.

The 2N2222 family is also available in multiple packages.

This creates an important replacement issue: the same transistor name does not necessarily guarantee the same physical package or pinout.

Engineers should verify the exact manufacturer's mechanical drawing before changing a transistor on an existing PCB.

2N3904 vs 2N2222 Pinout

Pin configuration is one of the most important issues when evaluating a replacement.

Different manufacturers and package versions can use different lead arrangements.

Therefore, engineers should not assume that every 2N3904 and 2N2222 has the same pin order simply because both are three-pin NPN transistors.

Before PCB assembly, always verify:

Collector pin

Base pin

Emitter pin

Package orientation

Lead spacing

Mechanical dimensions

For an existing board, a transistor with a different pinout may require PCB modification even when its electrical specifications are suitable.

Can 2N2222 Replace 2N3904?

In some circuits, 2N2222 can be a suitable alternative to 2N3904, but the replacement should be evaluated against the complete circuit requirements.

The higher current capability of some 2N2222 versions can provide additional margin for switching applications.

However, engineers should verify:

VCEO

IC

hFE

VCE(sat)

Base-drive current

Power dissipation

Switching speed

Package

Pinout

Temperature range

If the 2N2222 version satisfies all required parameters, it may be used as an alternative.

It should not be treated as a universal drop-in replacement.

Can 2N3904 Replace 2N2222?

Replacing 2N2222 with 2N3904 requires more caution.

If the original circuit requires more than the 2N3904's specified 200mA collector-current capability, the 2N3904 is not an appropriate substitute.

For a low-current application, however, a 2N3904 may be electrically suitable if its voltage, gain, saturation, switching, package, and pinout requirements are satisfied.

The actual load current should therefore be checked before considering a 2N3904 replacement.

2N3904 vs 2N2222 Saturation Voltage

For switching applications, VCE(sat) can be more useful than the transistor's maximum current rating.

When the transistor is fully turned on, a lower saturation voltage generally means lower conduction loss.

However, VCE(sat) depends strongly on base current and collector current.

Therefore, designers should compare the VCE(sat) test conditions in the datasheets rather than comparing isolated typical values.

This is particularly important when the transistor is used to control a load continuously.

2N3904 vs 2N2222 Power Dissipation

Transistor power dissipation can be estimated from the voltage across the transistor and the current flowing through it.

For a switching application, a simplified approximation is:

P ≈ VCE × IC

During switching, additional losses can occur because the transistor spends time in its active region.

Package thermal resistance also affects the maximum usable power.

A transistor with a higher nominal current rating is not automatically suitable for high-current operation if the package cannot dissipate the resulting heat.

2N3904 vs 2N2222 Switching Speed

Both devices can be used for switching applications, but their switching performance depends on the circuit configuration and operating conditions.

Important parameters include:

Turn-on time

Turn-off time

Storage time

Fall time

Rise time

Base charge

Collector current

Base drive

For low-speed switching such as relay or LED control, these parameters may not be critical.

For high-frequency switching, engineers should compare the complete switching specifications of the exact devices.

2N3904 vs 2N2222 Frequency Performance

The transition frequency of a transistor provides an indication of its high-frequency capability.

onsemi lists a minimum transition frequency of 300MHz for its 2N3904 product variants.

However, transition frequency should not be interpreted as the frequency at which the transistor can directly operate as a switch or amplifier.

Actual circuit performance depends on bias current, capacitance, load, circuit topology, and other factors.

2N3904 vs 2N2222 for Industrial Electronics

Both transistors can be used in industrial electronics for relatively low-power switching and signal-conditioning functions.

Applications may include:

Control interfaces

Sensor circuits

Relay drivers

Alarm circuits

Indicator circuits

Signal amplification

Logic interfaces

Auxiliary control circuits

For industrial applications, temperature rating and long-term component availability should also be considered.

The exact manufacturer's qualification level may be important for production equipment.

2N3904 vs 2N2222 for New PCB Designs

For a new PCB, engineers have more flexibility because the transistor footprint can be selected around the chosen device.

The decision can therefore focus on:

Required current

Required voltage

Switching performance

Gain

Power dissipation

Package

Availability

Cost

Temperature range

If the load current is comfortably below 200mA, a 2N3904 may be sufficient for many general-purpose switching applications.

If a higher current margin is required, a suitable 2N2222 variant may be more appropriate.

2N3904 vs 2N2222 Replacement Considerations

When evaluating a 2N3904 replacement or 2N2222 replacement, engineers should compare the complete electrical and mechanical specifications.

The most important parameters include:

Collector-emitter voltage

Collector current

Base-emitter voltage

DC current gain

Collector-emitter saturation voltage

Transition frequency

Power dissipation

Operating temperature

Package

Pinout

The comparison should be made under the same test conditions wherever possible.

This is especially important because transistor parameters can vary significantly between manufacturers.

2N3904 vs 2N2222: Which One Should You Choose?

Choose 2N3904 when the design requires a general-purpose NPN transistor for relatively low-current switching or signal amplification and its 200mA collector-current rating provides sufficient margin.

Choose 2N2222 when the application requires a general-purpose NPN transistor with a higher current capability in the selected device version.

For simple LED, sensor, logic-interface, and small switching circuits, either device may be suitable.

For an existing PCB, however, the complete part number, package and pinout should be checked before substitution.

2N3904 vs 2N2222 for Component Replacement

2N3904 and 2N2222 are both popular general-purpose NPN transistors, but they should not automatically be considered identical or interchangeable.

The 2N3904 is commonly specified as a 200mA, 40V NPN transistor, while many 2N2222 versions provide a higher collector-current capability.

For engineers searching for 2N3904 vs 2N2222, 2N3904 alternative, 2N2222 alternative, or 2N3904 replacement, the correct approach is to evaluate the exact device version and the actual circuit requirements.

Current rating, voltage rating, gain, saturation behavior, switching performance, package and pinout should all be verified before production substitution.


Related Articles

Explore related electronics articles and guides.

Sep 27, 2026

LM358 vs LM324: What Is the Difference Between Dual and Quad Op Amps?

Compare LM358 and LM324 operational amplifiers by channel count, package, pinout, performance, and circuit applications to select the right part.

Sep 27, 2026

LM7805 vs LM317: Which Linear Voltage Regulator Should You Use?

Compare LM7805 and LM317 linear voltage regulators by output voltage, pinout, external components, heat dissipation, and applications.

Sep 27, 2026

1N4007 vs 1N5408: What Is the Difference?

Compare 1N4007 and 1N5408 rectifier diodes by current rating, voltage rating, package size, and applications to choose the right part for your design.

Aug 23, 2026

XC7A200T-2FBG484I Upgrade From XC7A100T-2FGG484C

Learn why engineers upgrade from XC7A100T-2FGG484C to XC7A200T-2FBG484I and what to consider for FPGA resource expansion and system migration.

Aug 23, 2026

XC7A100T-2CSG324I vs XC7A100T-2FGG484C FPGA Package Difference

Compare XC7A100T-2CSG324I and XC7A100T-2FGG484C package options and understand their impact on Artix-7 FPGA design, I/O planning and industrial applications.

Aug 23, 2026

XC7Z020-1CLG484I vs XC7Z020-2CLG484I Speed Grade Difference

Compare XC7Z020-1CLG484I and XC7Z020-2CLG484I speed grades and understand how performance differences affect Zynq-7000 embedded system design.

Aug 23, 2026

XC7Z020-1CLG400I vs XC7Z020-1CLG484I Package Selection

Understand the differences between XC7Z020-1CLG400I and XC7Z020-1CLG484I and how package selection affects Zynq-7000 embedded system design.

Aug 23, 2026

XC7Z020-1CLG400I vs XC7Z020-1CLG484I Package Difference

Compare XC7Z020-1CLG400I and XC7Z020-1CLG484I package differences, I/O requirements and design considerations for Zynq-7000 embedded systems.

Aug 23, 2026

XC7A35T-1CSG324C vs XC7A50T-2CPG236I FPGA

Compare XC7A35T-1CSG324C and XC7A50T-2CPG236I Artix-7 FPGA devices for industrial control, embedded applications and programmable logic designs.

Aug 23, 2026

Why Engineers Upgrade from XC6SLX45-2CSG324I to XC7A100T-1FGG484C for New FPGA Designs

Explore the differences between XC6SLX45-2CSG324I and XC7A100T-1FGG484C and understand why many FPGA designs migrate from Spartan-6 to Artix-7 platforms.

Aug 23, 2026

XC7Z020-1CLG484I vs XC7Z020-2CLG484I Speed Grade Difference and Zynq-7000 FPGA Selection Guide

Compare XC7Z020-1CLG484I and XC7Z020-2CLG484I Zynq-7000 SoC devices including speed grade differences, embedded applications and FPGA design considerations.

Aug 23, 2026

XC7A100T-2FGG484C vs XC7A200T-2FBG484I FPGA Upgrade Comparison for High Performance Designs

Compare XC7A100T-2FGG484C and XC7A200T-2FBG484I Artix-7 FPGA devices for industrial control, image processing, communication and hardware acceleration applicati...

WhatsApp Telegram LINE Email