Math & Algebra Tool
Truth Table Generator
Visual logic gate truth tables.
| A | B | AND Output |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Frequently Asked Questions
What is a Truth Table?+
A truth table is a mathematical table used in logic to determine whether a proposition is true or false for all possible input values. It lists every possible combination of inputs and the resulting output.
What does the AND gate do?+
The AND gate returns True (1) only if ALL of its inputs are True. If even one input is False (0), the output is False.
What is XOR (Exclusive OR)?+
XOR returns True if inputs are different (one True, one False). If both are True or both are False, XOR returns False. It's like saying 'either one or the other, but not both'.
What are NAND and NOR?+
These are 'universal gates'. NAND is NOT AND (opposite of AND). NOR is NOT OR (opposite of OR). You can build any other logic gate using just NAND or just NOR gates.
Why are 1s and 0s used?+
In digital electronics and computer science, binary (Base-2) is used. 1 represents 'True' or 'High Voltage', and 0 represents 'False' or 'Low Voltage'.
How many rows are in a truth table?+
The number of rows is 2^n, where n is the number of input variables. For 2 inputs (A, B), there are 2^2 = 4 rows.