2N3904 Transistor is a popular NPN bipolar junction transistor used in low power and current, medium voltage applications. It is widely used for low power amplification and switching.
2N3904 is complementary to 2N3906 PNP bipolar junction transistor.

It has a current rating of 200 mA, voltage rating of 40 V, and power rating of 625 mW. And provides a current gain of 100 when the current of 10 mA flows through the collector. 2N3N04 is popular due to its high gain and low saturation voltage.
Note: 2N3904 transistor was first manufactured by Motorola.
2N3904 Transistor Pinout

2N3904 pinout has three pins: emitter, base, and collector respectively from left to right(flat side with the leads pointed downward).
2N3904 Transistor datasheet
This transistor is available in Through-hole and a wide variety of SMD packages(SOT23, SOT223, etc) with TO-92 being the most popular one. 2N3904 is called MMBT3904 in SOT23 or SMD package.
Given below is the datasheet of the 2N3904 transistor in the TO-92 package:
Download 2N3904 transistor datasheet.
Electrical characteristics, current-voltage ratings, and physical dimensions of the 2n3904 transistor are given in detail in this datasheet.
Given below is the datasheet of 2N3904 transistor(MMBT3904) in the SOT23 package:
Download MMBT3904 transistor datasheet.
2N3904 equivalent
Given below is the list of popular transistors which can be used as a replacement for 2N3904:
BC537, BC538, 2N4401, and P2N2222A. BC547 and BC548 are functionally equivalent transistors.
Specifications of 2N3904 transistor
Feature | Value |
Type | NPN |
Package(THT) | TO-92 |
Collector-Base Voltage | 60 V |
Collector-Emitter Voltage: | 40 V |
Emitter-Base Voltage: | 6 V |
Collector Current: | 0.2 A |
Collector Dissipation – | 0.625 W |
DC Current Gain (hFE) | 100 to 300 |
Transition Frequency | 300 MHz |
Noise | 5 dB |
Junction Temperature Range | 55 to +150 °C |
2N3904 TO-92 Package dimensions
Given below is the image of 2N3904 transistor TO-92 package dimensions. All the dimensions are in mm.

2N3904 based electronics projects:
Using 2N3904 Transistor as a switch:

In the circuit diagram given above, 2N3904 is used as a switch to turn ON/OFF an LED connected at the collector terminal. The complete circuit is powered via a 5 V supply.
The base of the transistor is biased using a 10 K Ohm resistor(R3) in parallel to the 1 K Ohm resistor(R2) plus base-emitter junction resistance(in series). OR R3 || ( R2+RBE ). Proper biasing of the base ensures adequate base current to turn ON the transistor.
A resistor of 220 Ohm is connected between the load(LED) and the collector terminal to protect the LED from overcurrent. The required resistor value can be easily calculated using Ohm’s law.
When the switch is open, the base of the transistor is not biased. And no current flows to the base of the transistor. Due to this, 2N3904 remains in the cut-off state and the LED does not glow.
When the switch is closed, the base of the transistor is biased, and current flows to the base of the transistor. Due to this biasing current, 2N3904 goes to the saturation state and the LED turns ON.