How to Use a 2N3904 Transistor in Circuits: Practical Applications for Students and Makers
Step-by-step instructions on using 2N3904 transistors in real circuits. Learn specs, wiring, calculations, tips, and where to source reliable local stock at Communica.

Versatile NPN Transistor
Ideal for switching and amplifying tasks in hobby or industry circuits.
Key Specs & Calculations
Understand voltage, current, gain, and use Ohm's Law for biasing.
Local Sourcing Tips
Find 2N3904 stock, related categories, and fast pickup at Communica.
Overview: What is a 2N3904 Transistor?
The 2N3904 is a widely used NPN bipolar junction transistor (BJT). It's a staple for students, makers, and engineers due to its low cost, reliable operation, and availability in the South African market. The 2N3904 works as a fast switch or modest signal amplifier in a wide variety of analog and digital projects.
Typical uses include driving LEDs, relays, small motors, audio amplifiers, and interfacing logic circuits. Its TO-92 package makes it easy to handle and breadboard, ideal for prototyping or educational kits.
Pinout, Standards, and Specifications
| Pin | Name | Description |
|---|---|---|
| 1 | Emitter (E) | Connects to ground or negative rail. |
| 2 | Base (B) | Drives transistor on/off with control current. |
| 3 | Collector (C) | Connects to load and supply voltage. |
| Specification | Typical Value | Notes |
|---|---|---|
| Max Collector-Emitter Voltage (VCE) | 40V | Do not exceed to avoid breakdown. |
| Max Collector Current (IC) | 200mA | Good for LEDs, small relays, logic output stages. |
| Max Power Dissipation | 625mW (at 25 degreesC) | Derate at higher temperature. |
| DC Current Gain (hFE) | 70-300 | Varies by load and biasing. |
| Transition Frequency (fT) | 250MHz (typ) | Fast for most hobby/logic work. |
The 2N3904 is not intended for high power or voltage circuits, but excels in most control, sensor, or signal-processing projects.
How to Select a 2N3904 for Your Circuit
For most basic projects, the 2N3904 is a great fit when:
- Switching loads under 200mA (LEDs, buzzers, basic relays, small motors)
- Providing simple signal amplification for analog sensors or audio
- Building part of logic-level switching (e.g. microcontroller interfacing)
Make sure the collector current (IC) needed by your load does not exceed 200mA, and keep VCE within safe range-typical 5V or 12V projects in hobby labs are ideal.
2N3904 vs. Alternatives
| Transistor | Polarity | Max IC | Typical Use |
|---|---|---|---|
| 2N3904 | NPN | 200mA | General purpose switch/amp |
| BC547 | NPN | 100mA | Lower current, similar jobs |
| 2N2222 | NPN | 600mA | Higher current loads |
| 2N3906 | PNP | 200mA | Complementary, low/high-side switching |
Related Sensors & Semiconductors Products
Discover quality sensors & semiconductors products related to How to Use a 2N3904 Transistor in Circuits: Practical Applications for Students and Makers
Fgh40n60sfdtu Transistor Igbt 600v 40a 290w To247ab
Fgh40n60sfdtu Transistor Igbt 600v 40a 290w To247ab
Ms183-35 To-18 Transistor Pad • 5.5 X 2.5 + 1mm
Ms183-35 To-18 Transistor Pad • 5.5 X 2.5 + 1mm
Ms53-3 Transistor Pad For To5 Od=9,2 X 3mm
Ms53-3 Transistor Pad For To5 Od=9,2 X 3mm
Ms53-25 Transistor Pad For To5 Od=9,2 X 1,5+1mm
Ms53-25 Transistor Pad For To5 Od=9,2 X 1,5+1mm
Stgwa40h65dfb2 Transistor Igbt 650v 40a To247
Stgwa40h65dfb2 Transistor Igbt 650v 40a To247
Ms34-518 | Transistor Pad For To5 Od=9.2mm Polymide
Ms34-518 | Transistor Pad For To5 Od=9.2mm Polymide
Ms183-25 | Transistor Pad For To18 Od=5,4 X 2,5+1mm
Ms183-25 | Transistor Pad For To18 Od=5,4 X 2,5+1mm
Mlw44 | Transistor Pad - To220/to219/to202
Mlw44 | Transistor Pad - To220/to219/to202
Ms510-15 Fischer Elektronik Pcb Mounting Pad For To5-10 (10 Pin)
Ms510-15 Fischer Elektronik Pcb Mounting Pad For To5-10 (10 Pin)
2n5551 Transistor Si-n 180v 0.6a 0.31w Vid.
2n5551 Transistor Si-n 180v 0.6a 0.31w Vid.
Bu931p Transistor N 400v 500v 15a 135w To247
Bu931p Transistor N 400v 500v 15a 135w To247
Biasing and Calculations: 2N3904 as a Switch
To use the 2N3904 as an on/off switch-such as controlling an LED-connect the load (LED with resistor) between supply (+V) and collector; tie emitter to ground, and use a resistor to limit base current from your control signal.
Here's the essential formula set (using safe approximations and ZAR context):
- Assume a microcontroller (GPIO) output = 3.3V or 5V
- LED + resistor draws 20mA (typical indicator)
- 2N3904 hFE (gain) ~100 (use 1/10 rule for solid switch)
| Parameter | Formula | Example Value |
|---|---|---|
| Base current IB | IB = IC / 10 | 20mA / 10 = 2mA |
| Base resistor RB | RB = (Vcontrol - 0.7V) / IB | (5V - 0.7V) / 0.002A ~ 2150Ohm |
Choose a 2.2kOhm base resistor for a 5V GPIO output. Use 1kOhm if your control voltage is lower to guarantee full saturation. Resistor values are widely available from Communica's components category.
Simple 2N3904 LED Driver Circuit
+5V | [LED] | [220Ohm] (Collector) | O 2N3904 | (Emitter) | GND Control signal via 2.2kOhm resistor to base.
This standard approach lets you safely switch small loads, boost output for logic-level devices, or build logic inverters and relay drivers for automation.
Troubleshooting Your Circuit
- LED stays off: Double-check base resistor; ensure the GPIO or trigger actually sources current.
- Transistor overheats: Load may exceed 200mA or VCE; check datasheets and circuit configuration.
- No switching action: Base current too low-try lowering RB to 1kOhm and confirm all connections.
- Collector and emitter swapped: Double-check the TO-92 pinout; incorrect wiring is common for new users.
Explore Further: Common Applications & Resources
- Small signal amplifiers for sensors and microphones
- Logic inverters and level shifters for microcontroller projects
- Relay, solenoid, or small motor drivers (within 200mA limit)
- Battery level indicators, oscillators, and basic analog circuits
Communica stocks the 2N3904 in singles, bulk, and kits-browse Transistors or check Passives for biasing resistors. Educational and procurement quotes are supported for South African schools and businesses.
Sources
Communica supplies semiconductors and electronic components to industries such as automotive, electrical, automation, mining, and education.
Disclaimer: This content is for educational purposes only. Product availability, pricing, and specifications are subject to change. Always verify current details on the retailer's website before making a purchase. We may earn affiliate commissions from qualifying purchases.
Frequently Asked Questions
Get answers to common questions about Sensors And Semiconductors
Why Choose Communica?
*Free Shipping
Free shipping for orders over ZAR 1,000.00.
7-Day Returns
Get a full refund if you had the product for less than 7 days.
Quick Delivery
Nationwide delivery within 2 - 4 working days.
























