Logic Gates Truth Tables Dataset
This dataset provides comprehensive truth tables for 32 common logic gates, including their input/output states, Boolean expressions, and descriptions. Ideal for learning and reference in digital electronics.
Free Download
Key Takeaways
- Access truth tables for 32 fundamental logic gates.
- Explore Boolean expressions and operational descriptions for each gate.
- Download ready-to-use data for digital logic design and study.
- Use gate types, inputs, and outputs to simulate digital circuits.
Showing 32 of 32
| Gate Type | Number of Inputs | Input A | Input B | Output | Boolean Expression | Description |
|---|---|---|---|---|---|---|
| NOT | 1 | 0 | - | 1 | ¬A | Inverts the input |
| NOT | 1 | 1 | - | 0 | ¬A | Inverts the input |
| AND | 2 | 0 | 0 | 0 | A ∧ B | Output 1 only if both inputs are 1 |
| AND | 2 | 0 | 1 | 0 | A ∧ B | Output 1 only if both inputs are 1 |
| AND | 2 | 1 | 0 | 0 | A ∧ B | Output 1 only if both inputs are 1 |
| AND | 2 | 1 | 1 | 1 | A ∧ B | Output 1 only if both inputs are 1 |
| OR | 2 | 0 | 0 | 0 | A ∨ B | Output 1 if any input is 1 |
| OR | 2 | 0 | 1 | 1 | A ∨ B | Output 1 if any input is 1 |
| OR | 2 | 1 | 0 | 1 | A ∨ B | Output 1 if any input is 1 |
| OR | 2 | 1 | 1 | 1 | A ∨ B | Output 1 if any input is 1 |
| NAND | 2 | 0 | 0 | 1 | ¬(A ∧ B) | NOT AND - Output 0 only if both inputs are 1 |
| NAND | 2 | 0 | 1 | 1 | ¬(A ∧ B) | NOT AND - Output 0 only if both inputs are 1 |
| NAND | 2 | 1 | 0 | 1 | ¬(A ∧ B) | NOT AND - Output 0 only if both inputs are 1 |
| NAND | 2 | 1 | 1 | 0 | ¬(A ∧ B) | NOT AND - Output 0 only if both inputs are 1 |
| NOR | 2 | 0 | 0 | 1 | ¬(A ∨ B) | NOT OR - Output 1 only if both inputs are 0 |
| NOR | 2 | 0 | 1 | 0 | ¬(A ∨ B) | NOT OR - Output 1 only if both inputs are 0 |
| NOR | 2 | 1 | 0 | 0 | ¬(A ∨ B) | NOT OR - Output 1 only if both inputs are 0 |
| NOR | 2 | 1 | 1 | 0 | ¬(A ∨ B) | NOT OR - Output 1 only if both inputs are 0 |
| XOR | 2 | 0 | 0 | 0 | A ⊕ B | Output 1 if inputs are different |
| XOR | 2 | 0 | 1 | 1 | A ⊕ B | Output 1 if inputs are different |
| XOR | 2 | 1 | 0 | 1 | A ⊕ B | Output 1 if inputs are different |
| XOR | 2 | 1 | 1 | 0 | A ⊕ B | Output 1 if inputs are different |
| XNOR | 2 | 0 | 0 | 1 | ¬(A ⊕ B) | Output 1 if inputs are same |
| XNOR | 2 | 0 | 1 | 0 | ¬(A ⊕ B) | Output 1 if inputs are same |
| XNOR | 2 | 1 | 0 | 0 | ¬(A ⊕ B) | Output 1 if inputs are same |
| XNOR | 2 | 1 | 1 | 1 | ¬(A ⊕ B) | Output 1 if inputs are same |
| BUFFER | 1 | 0 | - | 0 | A | Output equals input (signal amplifier) |
| BUFFER | 1 | 1 | - | 1 | A | Output equals input (signal amplifier) |
| IMPLY | 2 | 0 | 0 | 1 | A → B | Logical implication (if A then B) |
| IMPLY | 2 | 0 | 1 | 1 | A → B | Logical implication (if A then B) |
| IMPLY | 2 | 1 | 0 | 0 | A → B | Logical implication (if A then B) |
| IMPLY | 2 | 1 | 1 | 1 | A → B | Logical implication (if A then B) |
Use Cases
- Import the CSV file into your Python scripts or SQL databases to programmatically analyze gate behavior or build digital circuit simulators.
- Use the Excel file to filter gates by type, create custom truth table views, or calculate gate logic for educational purposes.
- Print the PDF version for classroom reference, offline study, or to include in presentations on digital electronics fundamentals.
- Leverage this dataset to quickly verify logic gate outputs or as a foundational resource for designing complex digital systems.