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 upgrading for ad-free browsing and more daily uses, or allowlist MiniWebtool.com and reload.
- Allow ads for MiniWebtool.com, then reload
- Or upgrade for ad-free browsing and higher daily limits
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.
Advanced Math Operations:
- Adjacency Matrix Calculator New
- Antilog Calculator
- Beta Function Calculator
- Binomial Coefficient Calculator
- Binomial Probability Distribution Calculator
- Bitwise Calculator Popular
- Boolean Algebra Simplifier New
- Central Limit Theorem Calculator
- Chinese Remainder Theorem Calculator
- Combination Calculator
- Complementary Error Function Calculator
- Complex Number Calculator
- Continued Fraction Calculator
- Derangement (Subfactorial) Calculator
- Dijkstra's Shortest Path Calculator
- Entropy Calculator
- Error Function Calculator
- Euler's Totient Function Calculator
- Exponential Decay Calculator
- Exponential Growth Calculator
- Exponential Integral Calculator
- Exponents Calculator
- Extended Euclidean Algorithm Calculator
- Factorial Calculator
- Gamma Function Calculator
- Golden Ratio Calculator
- Graph Coloring Calculator New
- Graph Degree Sequence Validator
- Group Theory Order Calculator New
- Half Life Calculator
- Hamiltonian Path Checker New
- Inclusion-Exclusion Calculator New
- Karnaugh Map (K-Map) Solver New
- Linear Programming Solver New
- Markov Chain Steady State Calculator
- Minimum Spanning Tree Calculator
- Modular Exponentiation Calculator New
- Modular Multiplicative Inverse Calculator
- Negative Binomial Distribution Calculator New
- Network Flow Calculator (Max Flow) New
- Percent Growth Rate Calculator Popular
- Permutation Calculator
- Permutations with Repetition Calculator New
- Pigeonhole Principle Calculator
- Planar Graph Checker New
- Poisson Distribution Calculator
- Polynomial Roots Calculator
- Primitive Root Calculator
- Probability Calculator
- Probability Distribution Calculator
- Proportion Calculator Popular
- Quadratic Formula Calculator
- Ring and Field Calculator New
- Rounding Calculator New
- Scientific Calculator
- Scientific Notation Calculator Popular
- Set Theory Calculator
- Significant Figures Calculator New
- Stable Marriage Problem Solver New
- Stirling Numbers Calculator
- Sum of Cubes Calculator
- Sum of Positive Integers Calculator
- Sum of Squares Calculator
- Topological Sort Calculator New
- Traveling Salesman Solver (TSP) New
- Truth Table Generator
- Venn Diagram Generator (3 Sets)