If you need a functional NAND gate for a modern digital design, your concrete default pick is the SN74HC00N (a quad 2-input NAND IC in a DIP-14 package). It costs roughly $0.50, guarantees matched propagation delays, and handles 5V or 3.3V logic seamlessly. However, if you are studying semiconductor physics, designing for extreme high-voltage environments (>15V), or simply need to understand the underlying silicon, you must build it discretely. When interpreting a circuit diagram nand gate for discrete construction, always choose a CMOS topology over legacy BJT Resistor-Transistor Logic (RTL). CMOS offers near-zero static power draw and rail-to-rail output swing, whereas BJT RTL suffers from voltage stacking and high static current.
The Decision Path: Discrete CMOS vs. BJT RTL vs. Integrated IC
Before wiring a single component, use this decision matrix to select the right implementation for your bench or PCB. The default recommendation for 99% of functional prototypes is the integrated 74HC00.
| Criterion | Integrated (74HC00 IC) | Discrete CMOS (MOSFETs) | Discrete RTL (BJTs) |
|---|---|---|---|
| Part Count (per gate) | 1 IC (contains 4 gates) | 4 MOSFETs + 4 resistors | 2 BJTs + 3 resistors |
| Static Power Draw | ~1 µA (negligible) | ~1 µA (negligible) | High (mA range, base current) |
| Output Voltage Swing | Rail-to-rail (0V to VCC) | Rail-to-rail (0V to VDD) | Degraded LOW (Vce(sat) stacking) |
| Propagation Delay | ~15 ns @ 5V | ~100 ns (limited by parasitics) | ~200 ns (storage time delays) |
| Best Use Case | Functional logic, microcontrollers | High-voltage logic, education | Historical retro-builds only |
Discrete CMOS Topology and Node Map
A CMOS NAND gate relies on complementary networks of PMOS and NMOS transistors. The PMOS transistors form the pull-up network (connecting the output to VDD), while the NMOS transistors form the pull-down network (connecting the output to GND). For a 2-input NAND gate, the PMOS devices are wired in parallel, and the NMOS devices are wired in series.
Node Labels and Component Mapping
- Node 1 (VDD): +5V DC power rail.
- Node 2 (Input A): Logic input A. Connected to the gates of P1 and N1.
- Node 3 (Input B): Logic input B. Connected to the gates of P2 and N2.
- Node 4 (Intermediate Pull-Down): The junction between the source of N1 and the drain of N2.
- Node 5 (Output Y): The logic output. Tied to the drains of P1, P2, and N1.
- Node 6 (GND): 0V reference. Connected to the source of N2.
Component Selection: Use 2N7000 N-channel MOSFETs for N1 and N2 (Vgs(th) ≈ 2.0V). Use BS250 P-channel MOSFETs for P1 and P2 (Vgs(th) ≈ -1.5V). Both come in TO-92 packages. Looking at the flat face of the TO-92 package with the pins pointing down, the pinout for both the 2N7000 and BS250 is Source (left), Gate (center), Drain (right).
Behavior Matrix: Logic States and Extreme Failure Modes
Understanding how the circuit behaves under normal logic conditions is only half the battle. Bench debugging requires knowing exactly what happens when a component fails or a node is miswired. The table below maps the standard truth table alongside extreme fault injections.
| Input A | Input B | PMOS Network State | NMOS Network State | Output Y (Node 5) |
|---|---|---|---|---|
| LOW (0V) | LOW (0V) | P1 & P2 ON (Parallel) | N1 & N2 OFF (Series broken) | HIGH (~5V) |
| LOW (0V) | HIGH (5V) | P1 ON, P2 OFF | N1 ON, N2 OFF (Series broken) | HIGH (~5V) |
| HIGH (5V) | LOW (0V) | P1 OFF, P2 ON | N1 OFF, N2 ON (Series broken) | HIGH (~5V) |
| HIGH (5V) | HIGH (5V) | P1 & P2 OFF | N1 & N2 ON (Series complete) | LOW (~0V) |
What Breaks at the Extremes? (Fault Injection)
- N1 Fails Open (Drain-to-Source): The NMOS pull-down series path is permanently broken. If A=1 and B=1, the output will float or remain HIGH. The gate loses its ability to pull low.
- P1 Fails Short (Drain-to-Source): The output is permanently tied to VDD. The output is stuck HIGH regardless of inputs. Warning: If A=1 and B=1, N1 and N2 will turn on, creating a direct short circuit from VDD to GND through P1 and the NMOS network. This will result in thermal destruction of the MOSFETs due to crowbar current.
- Input A Left Floating: CMOS gates have incredibly high input impedance. A floating gate will act as an antenna, picking up ambient AC noise. This causes the PMOS and NMOS networks to partially turn on simultaneously, leading to high-frequency oscillation, massive current draw, and eventual die meltdown. Never leave a CMOS input floating.
Design Walkthrough: Sizing Resistors and Protecting Gates
When building this circuit diagram nand gate discretely on a breadboard, parasitic inductance and capacitive coupling can cause ringing and destructive voltage spikes. You must size your resistors to protect the gates and drive the output load safely.
- Gate Series Resistors (Rg1, Rg2): Place a 100Ω to 1kΩ resistor in series with Input A and Input B before they reach the MOSFET gates. This forms a low-pass filter with the gate capacitance (typically ~20pF for a 2N7000), damping high-frequency ringing caused by breadboard wire inductance.
- Input Pull-Down Resistors (Rpda, Rpdb): Tie a 10kΩ resistor from each input node to GND. This ensures that if your input signal is disconnected or high-impedance, the gate defaults to a solid LOW state, preventing the floating-gate crowbar current issue mentioned above.
- Output LED Current Limiter (Rled): If you are driving an indicator LED directly from Node 5, you must limit the current. Assuming a standard red LED with a forward voltage (Vf) of 2.0V and a desired current of 10mA:
R = (VDD - Vf) / I = (5.0V - 2.0V) / 0.010A = 300Ω.
Select the next standard E12 value: 330Ω. Do not attempt to draw more than 15mA directly from a discrete TO-92 MOSFET without a dedicated buffer transistor.
Step-by-Step Breadboard Validation
Do not apply power until you have verified the wiring. A miswired PMOS source/drain will forward-bias the intrinsic body diode, bypassing the logic entirely and shorting your power supply.
- Seat the Transistors: Insert the two 2N7000 (NMOS) and two BS250 (PMOS) transistors across the breadboard's center trench. Ensure the flat faces are facing you to verify the Source-Gate-Drain pinout.
- Wire the Power Rails: Connect the red rail to +5V and the blue rail to GND. Tie the sources of P1 and P2 to the red rail. Tie the source of N2 to the blue rail.
- Build the Networks:
- Jump the drains of P1 and P2 together to form Node 5 (Output).
- Jump the source of N1 to the drain of N2 to form Node 4.
- Jump the drain of N1 to Node 5.
- Install Protection Resistors: Insert the 10kΩ pull-downs from the input jumper wires to GND. Insert the 330Ω current limiter from Node 5 to the anode of your indicator LED, with the cathode to GND.
- Pre-Power Continuity Check: Set your digital multimeter (DMM) to continuity mode. Place the black probe on GND and the red probe on VDD. It should read open (OL). If it beeps, you have a short—likely a miswired MOSFET or a stray wire. Fix it before applying power.
- Apply Power and Measure: Power the board. Set your DMM to DC Voltage. Black probe on GND, red probe on Node 5.
- With both inputs tied to GND (LOW), the DMM should read ~4.9V to 5.0V.
- With both inputs tied to +5V (HIGH), the DMM should read < 0.2V.
- Verify the NAND Truth Table: Toggle inputs A and B independently using jumper wires to VDD and GND. The output should only drop to < 0.2V when both A and B are simultaneously connected to +5V.
For further reading on standardizing these discrete logic blocks into larger arrays, review the Nexperia 74HC00 logic family documentation, which details how internal silicon geometries scale these exact discrete topologies into sub-nanosecond switching ICs.






