The hosted part is NTE’s 2N3904, while the existing guide covers onsemi’s version. I’ll preserve the hosted variant in this comparison and leave the existing files untouched.
For 2n4401 vs 2n3904, the main difference is higher collector-current capability in the 2N4401, not higher voltage capability. Choose 2N3904 for low-current stages with suitable gain and drive margins; choose 2N4401 for higher-current loads after checking base drive and heat.
Quick answerElectrical comparison
Exact scope: This project's hosted part is NTE Electronics 2N3904, without an A suffix, in a TO-92 type package. The comparison is onsemi 2N4401, without an A suffix, in TO-92—not a surface-mount derivative. The existing Application and Usage Guide instead describes an onsemi 2N3904; its manufacturer-...
The guide preserves the hosted NTE variant, includes sourced comparisons, and gives a worked base-drive example.
Left out:
Frequency and switching-speed rankings: matched-condition evidence was not established.
Gain and saturation values at the higher-current test point beyond the worked example: the retrieved citations did not validate them.
Numeric NTE pin assignments: its drawing labels E/B/C rather than numbers.
NTE revision/date: not stated; the Sources section says so.
Pinout risk: E/B/C functions align, but exact lead form, viewing orientation, and board pad mapping must be checked before claiming a drop-in replacement. No hardware testing or simulation was performed.
The 2N3904 is a general-purpose silicon NPN bipolar junction transistor used for small-signal amplification and switching; the onsemi version covered here uses a three-lead TO-92 through-hole package. A common practical application is a resistor-driven, common-emitter low-side switch that lets a microcontroller control a small load, such as an indicator LED.
1. Quick Specifications
Scope: Unless stated otherwise, these specifications apply to onsemi document 2N3903/D, Rev. 9, August 2021. Absolute maximum ratings are stress limits, not recommended design targets, and cannot be combined indiscriminately.
Table
Parameter
Value and conditions
Classification
Collector–emitter voltage, VCEO
40 V
Absolute maximum.
Collector–base voltage, VCBO
60 V
Absolute maximum; not a substitute for the VCEO limit.
Emitter–base voltage, VEBO
6 V
Absolute maximum reverse emitter–base voltage; avoid reverse bias in normal use.
Continuous collector current, IC
200 mA
Absolute maximum, subject to power and temperature constraints.
Total device dissipation, PD
625 mW at TA = 25°C; derate by 5 mW/°C above 25°C
Absolute maximum under the datasheet thermal conditions.
Junction/storage temperature
−55°C to +150°C
Absolute maximum range; not a blanket ambient operating recommendation.
Junction-to-ambient thermal resistance
200°C/W maximum
Datasheet thermal characteristic; actual assembly conditions matter.
DC current gain, hFE
100–300 at IC = 10 mA, VCE = 1 V
Electrical-characteristic limits at the stated test point, not a fixed gain.
Collector saturation voltage
≤0.2 V at IC = 10 mA, IB = 1 mA; ≤0.3 V at IC = 50 mA, IB = 5 mA
Maximum values at specified drive conditions.
Current-gain bandwidth product, fT
≥300 MHz at IC = 10 mA, VCE = 20 V, f = 100 MHz
Minimum test-point characteristic, not a 300 MHz switching-frequency rating.
Package and pin order
TO-92, Case 29, Style 1; pins 1/2/3 = E/B/C
Manufacturer-specific package and numbering.
Lead spacing
Outline tables list G = 1.15–1.39 mm and G = 2.40–2.80 mm for different configurations
Mechanical dimensions, not interchangeable PCB pitches. The extracted evidence did not unambiguously associate each table with its lead form; verify the drawing and exact ordering code before footprint release.
Practical operating example
3.3 V or 5 V GPIO driving a 10 mA load through the circuit below
Engineering example, not a manufacturer-specified recommended operating range.
A separate recommended-operating-conditions table was not established from the retrieved evidence. Choose the operating point from electrical-characteristic conditions, load requirements, driver capability, and thermal margin rather than treating maximum ratings as normal conditions.
2. Pinout & Connections
Use the onsemi Case 29, Style 1 drawing to identify the physical leads. Do not infer the viewing direction or numbering from a generic TO-92 silhouette.
Table
Pin Number
Pin Name
Description
Best Practice
1
E — Emitter
Emitter terminal.
For the low-side switch below, connect to GND with a short return. The GPIO and load supply must share this reference.
2
B — Base
Current-driven control terminal.
Drive through a calculated series resistor. A suggested 47 kΩ base–emitter pull-down holds the device off while the GPIO is high impedance; this is a design choice, not a mandatory datasheet value.
3
C — Collector
Switched load terminal.
Connect to the load's low side; connect the load's high side to its positive supply. Clamp inductive loads.
These GND recommendations apply to this low-side circuit, not to every amplifier or emitter-follower configuration.
3. Standard Application Circuit
2N3904 low-side switch with 3.3 V or 5 V logic
Text
+VLOAD ── load ─────────── C (pin 3)
Q1: 2N3904
GPIO ── RB ──┬────────── B (pin 2)
│ E (pin 1) ── GND
47 kΩ
│
GND
GPIO HIGH turns the load on; GPIO LOW turns it off. For an open-collector logic output rather than a physical load, add a collector pull-up and size it for sink current and edge-rate requirements.
Required base resistor. Do not connect the GPIO directly to the base. For switching, use a forced gain of 10 as a starting point, matching the datasheet's IC/IB ratio at its saturation-voltage test points; do not size base current using nominal active-region hFE.
For the 10 mA example, target IB ≥ 1 mA. Use the datasheet VBE(sat) maximum of 0.85 V at IC = 10 mA and IB = 1 mA. Including the suggested 47 kΩ pull-down:
RB ≤ (VOH,min − 0.85 V) / (1 mA + 0.85 V / 47 kΩ)
Table
Assumed GPIO output HIGH
Calculated RB ceiling
Example RB, 1%
Estimated base current after pull-down
3.3 V
2.41 kΩ
2.2 kΩ
1.10 mA
5.0 V
4.08 kΩ
3.9 kΩ
1.05 mA
These are derived examples using ideal stated output voltages, not guarantees for every GPIO. Recalculate using the controller's minimum VOH under load, resistor tolerance, temperature, and permitted source current. At 50 mA collector current the datasheet saturation test uses 5 mA base current and allows VBE(sat) up to 0.95 V; confirm the GPIO can supply that drive or use a separate driver or suitable MOSFET.
Optional LED load. When switching an LED, replace “load” with a series resistor and LED: +VLOAD → RLED → LED anode; LED cathode → collector. Calculate:
RLED = (VLOAD − VF,LED − VCE(sat)) / ILED
For an explicitly assumed red LED with VF = 2.0 V, ILED = 10 mA, and a 0.2 V transistor-drop budget:
3.3 V LED supply:(3.3 − 2.0 − 0.2) / 0.010 = 110 Ω; choose 120 Ω for about 9.2 mA at these assumed drops.
5 V LED supply:(5.0 − 2.0 − 0.2) / 0.010 = 280 Ω; choose 300 Ω for about 9.3 mA at these assumed drops.
The LED's VF is illustrative, not a verified specification for an unnamed LED. Check maximum current using maximum supply voltage, minimum LED VF, minimum resistor value, and a conservatively low transistor drop. GPIO voltage and LED supply voltage need not be equal.
Inductive load protection. For a relay coil or solenoid, place a flyback diode across the load, cathode to +VLOAD and anode to the collector. Select it for initial flyback current at least equal to coil current, reverse voltage above the supply, and the required repetitive energy; a plain flyback diode slows coil release. Keep the clamped collector voltage, including overshoot, below the transistor's voltage limit with margin.
Capacitors and dissipation. This transistor has no supply pin and no mandatory IC-style bypass capacitor. For a pulsed load, a local 100 nF ceramic plus load-dependent bulk capacitance across +VLOAD/GND is a starting design choice; estimate bulk capacitance with C ≥ ΔI × Δt / ΔV and verify supply impedance. Estimate device loss as P ≈ VCE × IC + VBE × IB, plus switching loss. For example, 5 V across the transistor at 100 mA already dissipates approximately 0.5 W before base-drive loss; at the listed 200°C/W thermal resistance that implies approximately 100°C junction rise, so linear operation can overheat a device that is below its current limit.
4. PCB Layout & Routing Guidelines
The following are engineering layout recommendations, not manufacturer-mandated dimensions:
Verify the lead form and pad mapping. Match the purchased straight/bent-lead configuration, hole diameter, courtyard, and E/B/C mapping to the mechanical drawing. Add a clear flat-side orientation mark; do not assume all TO-92 parts share one footprint.
Keep the base loop short. Place RB and the optional base–emitter pull-down near the transistor. Route the emitter return so load current does not introduce voltage into the GPIO's ground reference; keep the collector switching node away from sensitive analog inputs.
Size collector/emitter copper for the actual current. Use copper thickness, trace length, allowed voltage drop, and temperature rise to choose trace width. There is no universal “200 mA trace width.” Use solderable thermal reliefs on plane-connected through-hole pads where needed, while retaining adequate spoke capacity; avoid large collector copper solely for cooling because it enlarges the switching node.
Minimize the load/clamp loop. Put the flyback diode close to the coil connection and keep its commutation loop compact. Put any local load-supply decoupling close to that loop, not across base–emitter by default.
Provide test access. Include labeled test points on each power rail and GND, plus collector/base access where useful. Differential-pair routing and length matching are not requirements for this low-side-switch circuit.
5. Common Pitfalls / Things to Watch Out For
Underdriving the base or leaving it floating. hFE = 100–300 is specified at IC = 10 mA and VCE = 1 V, whereas the low-saturation-voltage test uses IC/IB = 10. A resistor selected from nominal hFE can leave the transistor partially on and dissipating excess power. Include GPIO reset behavior, minimum VOH, and available drive current in the design.
Treating a headline rating or similar package as sufficient qualification. The 40 V, 200 mA, and 625 mW ratings do not authorize simultaneous operation at those values; the dissipation ceiling falls above 25°C. Verify transient voltage, flyback protection, thermal rise, and the replacement manufacturer's actual lead mapping and lead form before fitting an alternative.
6. Popular Alternatives & Equivalents
These two alternatives from other manufacturers are verified functionally similar SMD options, not TO-92 drop-ins. A PCB redesign and electrical requalification are required; matching voltage/current ratings alone does not prove identical gain, switching, or thermal performance.
SOT23; VCEO = 40 V and IC = 200 mA absolute maxima.
Functionally similar only. Not footprint-compatible; do not reuse the TO-92 pin-number mapping. The link searches the library family; select the exact ordering code and package.
Manufacturer MMBT3904 datasheet specifies SOT-23, VCEO = 40 V and IC = 200 mA absolute maxima; the exact -TP variant is present in the Flux library.
Functionally similar only. Not TO-92 footprint-compatible; remap pads and recheck thermal, gain, and switching requirements.
Drop-in status: No alternate-manufacturer TO-92 drop-in was fully qualified in this research. Diotec and an older Diodes TO-92 datasheet lookup remained unresolved during source processing, so neither is represented here as a verified drop-in. Their unresolved pinout/mechanical checks do not imply that those datasheets lack the information.
7. Sourcing & Purchasing Guide
Table
Attribute
Details
Primary Distributors
Start with DigiKey, Mouser, and Arrow; confirm the selected manufacturer's current franchised-distributor status for your region. LCSC is another sourcing route, but verify manufacturer identity and traceability rather than assuming every 2N3904 listing is the onsemi device.
Packaging Options
Onsemi lists 2N3904G as Pb-free TO-92, 5,000 units/bulk; 2N3904RLRAG as 2,000/tape-and-reel; and 2N3904RLRMG as 2,000/ammo pack. These are manufacturer shipping quantities, not necessarily distributor order minimums.
Standard MOQ
Live distributor MOQ was not independently verified. A search result indicated single-unit bulk purchasing, but the product page could not be read. Confirm quantity breaks at checkout. The verified factory pack quantities above must not be reported as universal MOQs.
Sourcing Advice
Buy traceable stock from franchised distributors; avoid untraceable marketplace lots because counterfeit or relabeled parts may have incorrect pinouts, gain, or ratings. Match the full suffix to package, lead form, Pb-free requirements, and bulk/reel/ammo packing. Confirm lifecycle and availability for the exact ordering code; a 2021 ordering table is not proof of present stock.
Research checked 10 November 2026. No live stock, lead-time, or price commitment is made. No schematic, footprint, or PCB was modified or electrically tested for this documentation task.
Sources
onsemi, General Purpose Transistors: 2N3903, 2N3904, publication 2N3903/D, Rev. 9, August 2021. Sections used: Maximum Ratings; Thermal Characteristics; Electrical Characteristics; Ordering Information; TO-92 Case 29-11 mechanical outline. Manufacturer datasheet.
Diodes Incorporated, MMBT3904: 40V NPN Small-Signal Transistor in SOT23, DS30036 Rev. 27-2, March 2025. Sections used: Mechanical Data; Absolute Maximum Ratings. Manufacturer datasheet.
Micro Commercial Components, MMBT3904, Rev.3-6-08182023. Sections used: package identification and Maximum Ratings. Manufacturer datasheet.
Flux parts library: exact MMBT3904-TP entry linked in Section 6; used only for library presence and ordering-code identification, not as a substitute for manufacturer electrical specifications.