When makers and engineers search for a nor gate transistor solution, they are usually looking to build Resistor-Transistor Logic (RTL) from discrete components, or they need to understand the internal transistor-level schematic of a logic IC. A discrete NOR gate relies on NPN bipolar junction transistors (BJTs) wired in parallel. If any input goes high, the corresponding transistor saturates, pulling the shared output node to ground (Logic 0). Only when all inputs are low do the transistors cut off, allowing a pull-up resistor to drive the output high (Logic 1).
The safest, most ubiquitous default NPN transistor for 5V hobbyist and bench logic is the 2N3904 (rated for 40V Vce, 200mA Ic). For higher current switching up to 800mA, the 2N2222A is the standard upgrade. This guide covers the exact biasing math, a complete 5V application circuit, and the real-world failure modes you will encounter when moving from simulation to the breadboard.
The Anatomy of a Discrete NOR Gate Transistor Circuit
Unlike an integrated circuit like the 74HC02 which packages four NOR gates into a single silicon die, a discrete RTL NOR gate requires individual biasing for every transistor. The standard 2-input configuration uses two NPN transistors (Q1 and Q2) sharing a common collector node.
- Emitter (E): Left pin. Connected to Ground (GND).
- Base (B): Middle pin. Connected to the logic input via a current-limiting base resistor.
- Collector (C): Right pin. Tied to the other transistor's collector and the pull-up resistor.
In this topology, the output impedance is highly asymmetric. When the output is pulled LOW (transistors saturated), the impedance is incredibly low—roughly Vce(sat) typically 0.2V at Ic=10mA, meaning it can sink current efficiently. However, when the output is HIGH, it relies entirely on the pull-up resistor, making it very weak at sourcing current. This asymmetry is the root cause of 90% of RTL logic failures on the bench.
Biasing for Logic: Operation Regions and Voltage Thresholds
To use a BJT as a logic switch, you must force it into either the Cutoff region (open switch) or the Saturation region (closed switch). You never want the transistor operating in the active (linear) region for digital logic, as this causes excessive heat dissipation and undefined logic levels.
| Logic State | Region | V_in (Base) | V_be | I_b (Base Current) | I_c (Collector Current) | V_out (Collector) |
|---|---|---|---|---|---|---|
| Input LOW | Cutoff | < 0.5V | < 0.5V | ~0 mA | ~0 mA | Vcc (via Pull-up) |
| Input HIGH | Saturation | > 2.0V | ~0.7V | > 1.0 mA | Max allowed by load | ~0.2V (Vce_sat) |
How to bias and select it for the job:
To guarantee saturation, you must supply enough base current (Ib) so that the transistor's DC current gain (hFE or Beta) is effectively overridden. A standard rule of thumb for switching is to assume a forced Beta of 10. If your load requires 20mA of collector current (Ic), you need at least 2mA of base current.
Rb = (V_in - V_be) / Ib. For a 5V logic input: Rb = (5V - 0.7V) / 2mA = 2,150Ω. A standard 2.2kΩ or 4.7kΩ resistor is the safe default for 5V RTL inputs.
Complete 5V RTL Application Circuit
Below is the exact component list and build sequence for a 2-input RTL NOR gate driving a high-impedance logic input (like a microcontroller GPIO or a CMOS gate). For the schematic and deeper theory, refer to the All About Circuits RTL chapter.
Bill of Materials:
- Q1, Q2: 2N3904 NPN Transistors (ON Semi Datasheet)
- Rc (Pull-up): 1kΩ, 1/4W
- Rb1, Rb2 (Base limiters): 4.7kΩ, 1/4W
- Vcc: 5.0V regulated DC supply
- Ground the Emitters: Insert Q1 and Q2 into the breadboard. Connect both Emitter (left) pins directly to the common ground rail.
- Wire the Base Inputs: Connect Input A to Q1's Base (middle) through Rb1 (4.7kΩ). Connect Input B to Q2's Base through Rb2 (4.7kΩ). These resistors prevent base-emitter junction burnout if the input voltage spikes.
- Tie the Collectors: Use a jumper wire to connect Q1's Collector (right) directly to Q2's Collector. This shared node is your Logic Output.
- Install the Pull-Up: Connect Rc (1kΩ) between the shared Collector node and the 5V Vcc rail.
- Verify Logic: Apply 5V to Input A. The output should drop to ~0.2V. Ground both inputs; the output should rise to ~4.8V (accounting for minor pull-up leakage).
Bench Walkthrough: The Relay Chatter Disaster
Theory is clean; the workbench is messy. Here is a real-world scenario demonstrating why understanding RTL output impedance is critical.
The Setup: A hobbyist built the 5V RTL NOR gate described above to control a 5V automotive relay (SRD-05VDC-SL-C). They connected the relay coil between the NOR gate's output (the shared collector node) and Ground, assuming that when the NOR output went HIGH, it would power the coil.
The Numbers: The SRD-05VDC relay coil has a resistance of roughly 70Ω, requiring about 71mA to energize. The RTL pull-up resistor (Rc) was 1kΩ.
The Outcome: When both inputs went LOW, the transistors cut off, and the output attempted to go HIGH. However, the 1kΩ pull-up resistor could only source a maximum of 5mA (5V / 1070Ω). The relay coil dragged the output voltage down to roughly 0.4V. The relay clicked weakly, the contacts chattered violently, and the resulting back-EMF spikes caused the hobbyist's ESP32 microcontroller (which was feeding the inputs) to brownout and reset continuously.
What Went Wrong & The Fix: The builder forgot that RTL outputs are terrible at sourcing current. The fix was to reconfigure the circuit for low-side switching. By wiring the relay coil between Vcc (5V) and the NOR gate's Collector node, the logic inverted physically but functioned correctly: when the NOR gate output went LOW (transistors saturated), the transistors sinked the 71mA through the coil to ground. The 2N3904 can safely handle up to 200mA, making this a robust, chatter-free solution. (Note: Always add a 1N4007 flyback diode in reverse parallel across the relay coil to protect the transistors from inductive kickback).
Failure Modes and Multimeter Diagnostics
Discrete transistors in logic circuits generally fail in two ways: thermal runaway from sustained high current, or junction blowout from voltage spikes. Here is how to test a suspected dead 2N3904 using a standard digital multimeter (DMM).
Testing with DMM Diode Mode:
- Set your multimeter to the Diode Test mode (usually indicated by a diode symbol).
- Base-Emitter Junction: Place the Red probe on the Base (middle) and Black on the Emitter (left). A healthy silicon NPN will read between 0.600V and 0.750V. Reverse the probes; it should read OL (Open Loop).
- Base-Collector Junction: Red on Base, Black on Collector (right). Expect the same 0.600V - 0.750V forward drop, and OL in reverse.
- Collector-Emitter: Place probes across C and E in both directions. Both must read OL. If you read a short (0.00V or a very low number) or a partial voltage drop, the transistor is internally shorted and must be discarded.
Common Bench Mistake: Applying a 12V or 24V signal directly to the base without a current-limiting resistor. The base-emitter junction acts like a zener diode that breaks down around 6V to 9V in reverse bias. Once it punches through, the transistor loses its current gain (hFE drops to near 1) and will no longer amplify or switch properly, even if it still shows a passing diode test on a DMM.
Discrete RTL vs. Integrated Logic (74HC02)
While building a NOR gate from discrete transistors is an excellent exercise in understanding semiconductor physics and biasing, it is rarely the right choice for production PCB design. For complex logic, engineers default to integrated circuits like the TI SN74HC02 (a quad 2-input NOR gate).
| Criteria | Discrete RTL (2N3904) | CMOS IC (74HC02) |
|---|---|---|
| Propagation Delay | ~50ns to 200ns (sluggish due to base charge storage) | ~14ns at 5V (highly optimized) |
| Output Impedance | Asymmetric (Strong sink, weak source) | Symmetric (Push-pull CMOS output stage) |
| Power Consumption | High (continuous current through Rc when output is LOW) | Near zero static current (only draws during switching) |
| Component Count | 5 components per gate (2 BJTs, 3 Resistors) | 1 IC package contains 4 gates |
Choose Discrete RTL when: You are operating in high-radiation environments (where CMOS ICs suffer from single-event latchups), you need to interface with unusually high voltages (e.g., switching a 24V industrial line directly with a 40V-rated 2N3904), or you are teaching foundational electronics.
Choose the 74HC02 IC when: You need multiple logic gates, tight propagation delays for high-speed data buses, symmetric drive capability to source and sink LEDs directly, or minimal board space. For 95% of modern microcontroller and breadboard projects, the 74-series logic ICs are the superior, cost-effective choice, leaving discrete transistors to do the heavy lifting in the power-switching stages.






