Logic Gates Truth Tables Dataset

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
NOT10-1¬AInverts the input
NOT11-0¬AInverts the input
AND2000A ∧ BOutput 1 only if both inputs are 1
AND2010A ∧ BOutput 1 only if both inputs are 1
AND2100A ∧ BOutput 1 only if both inputs are 1
AND2111A ∧ BOutput 1 only if both inputs are 1
OR2000A ∨ BOutput 1 if any input is 1
OR2011A ∨ BOutput 1 if any input is 1
OR2101A ∨ BOutput 1 if any input is 1
OR2111A ∨ BOutput 1 if any input is 1
NAND2001¬(A ∧ B)NOT AND - Output 0 only if both inputs are 1
NAND2011¬(A ∧ B)NOT AND - Output 0 only if both inputs are 1
NAND2101¬(A ∧ B)NOT AND - Output 0 only if both inputs are 1
NAND2110¬(A ∧ B)NOT AND - Output 0 only if both inputs are 1
NOR2001¬(A ∨ B)NOT OR - Output 1 only if both inputs are 0
NOR2010¬(A ∨ B)NOT OR - Output 1 only if both inputs are 0
NOR2100¬(A ∨ B)NOT OR - Output 1 only if both inputs are 0
NOR2110¬(A ∨ B)NOT OR - Output 1 only if both inputs are 0
XOR2000A ⊕ BOutput 1 if inputs are different
XOR2011A ⊕ BOutput 1 if inputs are different
XOR2101A ⊕ BOutput 1 if inputs are different
XOR2110A ⊕ BOutput 1 if inputs are different
XNOR2001¬(A ⊕ B)Output 1 if inputs are same
XNOR2010¬(A ⊕ B)Output 1 if inputs are same
XNOR2100¬(A ⊕ B)Output 1 if inputs are same
XNOR2111¬(A ⊕ B)Output 1 if inputs are same
BUFFER10-0AOutput equals input (signal amplifier)
BUFFER11-1AOutput equals input (signal amplifier)
IMPLY2001A → BLogical implication (if A then B)
IMPLY2011A → BLogical implication (if A then B)
IMPLY2100A → BLogical implication (if A then B)
IMPLY2111A → BLogical 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.