Truth Table Generator
Enter a Boolean expression and get its complete truth table instantly, with the minterm list, canonical SOP and POS, and the simplified expression.
NOT: A' or !A. AND: AB, A*B or A&B. OR: A + B or A|B. XOR: A ^ B.
How a Truth Table Is Built
A truth table lists every possible combination of the inputs and the output for each one. With n inputs there are 2n rows: 4 rows for 2 inputs, 8 for 3 and 16 for 4. The inputs count up in binary so no combination is missed.
Canonical SOP = OR of the minterms where F = 1
Canonical POS = AND of the maxterms where F = 0
Worked example
For F = (A + B)C' the output is 1 only when C is 0 and at least one of A or B is 1, which is rows 2, 4 and 6 (ABC = 010, 100, 110). So F = Σm(2, 4, 6), canonical SOP A'BC' + AB'C' + ABC', which simplifies back to AC' + BC'.
Common gate truth tables
| A | B | AND | OR | NAND | NOR | XOR | XNOR |
|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 |
| 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 |
| 1 | 0 | 0 | 1 | 1 | 0 | 1 | 0 |
| 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1 |
Frequently Asked Questions
How many rows does a truth table have?
2 to the power of the number of inputs: 2 inputs give 4 rows, 3 give 8, 4 give 16 and 6 give 64.
How do I write a Boolean expression from a truth table?
Take every row where the output is 1, write it as an AND term (complement inputs that are 0) and OR the terms together. That is the canonical SOP, which you can then simplify.
What symbols can I use?
NOT as A' or !A, AND as AB, A*B or A&B, OR as A + B or A|B, XOR as A ^ B, plus brackets and the constants 0 and 1.
Can I export the truth table?
Yes. The Copy CSV button copies the table so you can paste it into Excel or a report.
Learn more on the blog
Digital logic gates explained with truth tables
A practical guide on instrumentationblog.in that explains the theory behind this tool with solved examples.
Read Full Article