A logic gate truth table defines the Boolean relationship between digital inputs and outputs. In theory, an AND gate outputs a 1 only when both inputs are 1. But on the workbench, a physical IC like the Texas Instruments SN74HC08 isn't just an abstract mathematical concept; it is a silicon device bound by voltage thresholds, propagation delays, and temperature derating. If you are designing a mixed-voltage system in 2026—say, interfacing a 3.3V ESP32 with a 5V relay board—relying solely on an idealized truth table will lead to floating inputs, metastability, and fried GPIO pins.
This reference guide provides the standard ANSI/IEEE truth tables, followed by the critical silicon specifications and derating charts that dictate how those logic gates actually behave in physical circuits.
The Master Logic Gate Truth Tables (ANSI/IEEE Std 91)
The following table covers the seven fundamental logic gates. The symbols and standard names align with ANSI/IEEE Std 91-1984, the standard for graphic symbols for logic functions.
| Gate Type | Boolean Expression | Input A | Input B | Output Y (Active-High) | Output Y (Active-Low / Inverted) |
|---|---|---|---|---|---|
| AND | Y = A · B | 0 / 0 / 1 / 1 | 0 / 1 / 0 / 1 | 0 / 0 / 0 / 1 | N/A (NAND used instead) |
| OR | Y = A + B | 0 / 0 / 1 / 1 | 0 / 1 / 0 / 1 | 0 / 1 / 1 / 1 | N/A (NOR used instead) |
| XOR | Y = A ⊕ B | 0 / 0 / 1 / 1 | 0 / 1 / 0 / 1 | 0 / 1 / 1 / 0 | 1 / 0 / 0 / 1 (XNOR) |
| NAND | Y = ¬(A · B) | 0 / 0 / 1 / 1 | 0 / 1 / 0 / 1 | 1 / 1 / 1 / 0 | 0 / 0 / 0 / 1 (AND) |
| NOR | Y = ¬(A + B) | 0 / 0 / 1 / 1 | 0 / 1 / 0 / 1 | 1 / 0 / 0 / 0 | 0 / 1 / 1 / 1 (OR) |
Silicon Realities: Voltage Thresholds and Derating
An ideal truth table assumes that a '0' is exactly 0.0V and a '1' is exactly $V_{CC}$. Real silicon uses threshold windows: $V_{IL}$ (maximum voltage guaranteed to be read as a '0') and $V_{IH}$ (minimum voltage guaranteed to be read as a '1'). Furthermore, the transition between states takes time, known as propagation delay ($t_{pd}$).
When designing a circuit, which column applies to your installation depends entirely on your microcontroller's logic level and the ambient operating environment. If you are wiring a 3.3V Raspberry Pi Pico to a 5V sensor, you must look at the 74LVC or 74HCT columns, not the standard 74HC column.
| Logic Family (Example IC) | $V_{CC}$ Range | $V_{IH}$ Min (Logic 1) | $V_{IL}$ Max (Logic 0) | $t_{pd}$ Base (25°C) | $t_{pd}$ Derated (85°C) |
|---|---|---|---|---|---|
| 74HC (e.g., SN74HC08) | 2.0V - 6.0V | 0.7 × $V_{CC}$ (3.5V @ 5V) | 0.3 × $V_{CC}$ (1.5V @ 5V) | 12 ns | 16 ns |
| 74HCT (TTL-compatible inputs) | 4.5V - 5.5V | 2.0V (Fixed) | 0.8V (Fixed) | 14 ns | 19 ns |
| 74LVC (e.g., 74LVC1G08) | 1.2V - 5.5V | 2.0V (at 3.3V $V_{CC}$) | 0.8V (at 3.3V $V_{CC}$) | 4.5 ns | 6.5 ns |
| 74LS (Legacy Bipolar TTL) | 4.75V - 5.25V | 2.0V | 0.8V | 9 ns | 15 ns |
How Derating Rows Modify the Base Value: Notice the $t_{pd}$ (Propagation Delay) columns. The 25°C row provides your base timing value for breadboard prototyping. However, the 85°C derating row modifies this base value to reflect silicon behavior under thermal load. For a 74HC gate, the delay increases from 12ns to 16ns. If you are chaining multiple gates in a high-speed clock divider or a ripple-carry adder, this 4ns derating penalty per gate accumulates. If your design relies on a 50MHz clock (20ns period), a single 74HC gate at 85°C consumes 80% of your timing budget, risking metastability.
What the Ideal Truth Table Cannot Tell You
While the truth table gives you the static logical outcome, it completely omits the dynamic and physical behaviors of the IC. When debugging a circuit on an oscilloscope, keep these three blind spots in mind:
- Metastability and Setup/Hold Times: If inputs A and B of an XOR gate transition at the exact same nanosecond, the output doesn't just cleanly snap to '0'. It may enter a metastable state, oscillating or hovering at $V_{CC}/2$ for several nanoseconds before resolving. Truth tables assume inputs are stable; real silicon requires setup and hold time margins.
- Floating Inputs (The CMOS Hazard): The truth table doesn't show what happens when an input is left unconnected. In bipolar TTL (74LS), a floating input defaults to a logical '1' due to internal pull-up structures. In CMOS (74HC, 74LVC), a floating input acts as an antenna. It will pick up EMI, causing the internal MOSFETs to rapidly switch on and off. This doesn't just cause erratic outputs; it causes massive $I_{CC}$ current spikes that can overheat and destroy the IC. Always tie unused CMOS inputs to GND or $V_{CC}$.
- Output Drive Capability (Fan-Out): A truth table shows a '1', but it doesn't tell you how much current that '1' can source. A standard 74HC gate can typically source/sink about 25mA. If your truth table says '1', but you've connected an LED without a current-limiting resistor, the output voltage will droop below the $V_{IH}$ threshold of the next gate, or the silicon trace will fuse open.
Quick-Jump Reference: Common 74-Series IC Part Numbers
When you need to order parts or swap a dead chip on a legacy PCB, use this bookmark-friendly lookup. These part numbers assume the standard 14-pin PDIP or SOIC packages containing quad 2-input gates (or hex inverters).
| Gate Function | 74HC (5V CMOS) | 74LVC (3.3V/5V Tolerant) | 74HCT (5V, TTL Inputs) | Pins per Package |
|---|---|---|---|---|
| Quad 2-Input AND | SN74HC08 | SN74LVC08A | SN74HCT08 | 14 |
| Quad 2-Input OR | SN74HC32 | SN74LVC32A | SN74HCT32 | 14 |
| Quad 2-Input NAND | SN74HC00 | SN74LVC00A | SN74HCT00 | 14 |
| Quad 2-Input NOR | SN74HC02 | SN74LVC02A | SN74HCT02 | 14 |
| Quad 2-Input XOR | SN74HC86 | SN74LVC86A | SN74HCT86 | 14 |
| Hex Inverter (NOT) | SN74HC04 | SN74LVC04A | SN74HCT04 | 14 |






