Truth Table Generator
Generate truth tables for any boolean logic expression. Supports AND, OR, NOT, XOR, NAND, NOR, XNOR, and conditional operators. Visualize logic gates with animated evaluation.
Your ad blocker is preventing us from showing ads
MiniWebtool is free because of ads. If this tool helped you, please support us by going Premium (ad‑free + faster tools), or allowlist MiniWebtool.com and reload.
- Allow ads for MiniWebtool.com, then reload
- Or upgrade to Premium (ad‑free)
About Truth Table Generator
What Is a Truth Table?
A truth table is a systematic way to list all possible truth values of a logical expression. For each combination of input variable values (True or False), the table shows the resulting output of the expression. Truth tables are fundamental in:
- Digital Logic Design — designing circuits with AND, OR, NOT gates
- Computer Science — evaluating conditional expressions and boolean algebra
- Philosophy & Mathematics — formal proofs in propositional logic
- Software Engineering — testing all branches of conditional logic
How to Use This Truth Table Generator
Enter a boolean expression using variables (A-H) and logical operators. The tool will automatically detect your variables and generate the complete truth table showing all possible input/output combinations.
- Use single uppercase letters (A, B, C, ..., H) as variables — up to 8 variables supported
- Use parentheses ( ) to control operator precedence
- Click the operator buttons or type operators directly
- Toggle "Show Sub-expressions" to see intermediate calculation steps
Operator Precedence (Highest to Lowest)
When no parentheses are used, operators are evaluated in this order:
- NOT (!, ~, ¬) — evaluated first (highest precedence)
- AND (&&, &, ∧) — evaluated second
- NAND — evaluated third
- XOR, XNOR (^, ⊕, ⊙) — evaluated fourth
- OR (||, |, ∨) — evaluated fifth
- NOR — evaluated sixth
- IMPLIES (→, =>) — evaluated seventh
- BICONDITIONAL / IFF (↔, <=>) — evaluated last (lowest precedence)
Supported Operator Syntax
| Operator | Accepted Syntax | Description | Example |
|---|---|---|---|
| AND | AND, &&, &, ∧, · | True only when both operands are true | A AND B |
| OR | OR, ||, |, ∨, + | True when at least one operand is true | A OR B |
| NOT | NOT, !, ~, ¬ | Inverts the truth value | NOT A |
| XOR | XOR, ^, ⊕ | True when operands differ | A XOR B |
| NAND | NAND | Negation of AND | A NAND B |
| NOR | NOR | Negation of OR | A NOR B |
| XNOR | XNOR, ⊙ | True when operands are the same | A XNOR B |
| IMPLIES | →, =>, IMPLIES | False only when P is true and Q is false | A → B |
| BICONDITIONAL | ↔, <=>, IFF | True when both have the same value | A ↔ B |
Understanding Minterms and Maxterms
Minterms are the rows where the output is 1 (True). The Sum of Minterms (SOP) expresses the function as an OR of AND terms. Maxterms are the rows where the output is 0 (False). The Product of Maxterms (POS) expresses the function as an AND of OR terms. Both forms are essential in digital logic simplification and Karnaugh map analysis.
Reference this content, page, or tool as:
"Truth Table Generator" at https://MiniWebtool.com/truth-table-generator/ from MiniWebtool, https://MiniWebtool.com/
Truth Table Generator uses standard boolean algebra rules. For more information, see Truth table - Wikipedia.
You can also try our AI Math Solver GPT to solve your math problems through natural language question and answer.
Related MiniWebtools:
Advanced Math Operations:
- Antilog Calculator
- Beta Function Calculator
- Binomial Coefficient Calculator
- Binomial Probability Distribution Calculator
- Bitwise Calculator Featured
- Central Limit Theorem Calculator
- Combination Calculator
- Complementary Error Function Calculator
- Complex Number Calculator
- Entropy Calculator
- Error Function Calculator
- Exponential Decay Calculator Featured
- Exponential Growth Calculator
- Exponential Integral Calculator
- Exponents Calculator
- Factorial Calculator
- Gamma Function Calculator
- Golden Ratio Calculator
- Half Life Calculator
- Percent Growth Rate Calculator Featured
- Permutation Calculator
- Poisson Distribution Calculator
- Polynomial Roots Calculator
- Probability Calculator
- Probability Distribution Calculator
- Proportion Calculator
- Quadratic Formula Calculator
- Scientific Notation Calculator
- Sum of Cubes Calculator
- Sum of Positive Integers Calculator Featured
- Sum of Squares Calculator
- Truth Table Generator New
- Set Theory Calculator New
- Venn Diagram Generator (3 Sets) New
- Chinese Remainder Theorem Calculator New
- Euler's Totient Function Calculator New
- Extended Euclidean Algorithm Calculator New
- Modular Multiplicative Inverse Calculator New
- Continued Fraction Calculator New
- Dijkstra's Shortest Path Calculator New
- Minimum Spanning Tree Calculator New
- Graph Degree Sequence Validator New
- Derangement (Subfactorial) Calculator New
- Stirling Numbers Calculator New
- Pigeonhole Principle Calculator New
- Markov Chain Steady State Calculator New