Truth Table Generator
Build a Boolean truth table with MiniWebtool’s Truth Table Generator. Enter an expression using up to eight variables, A through H, with logical operators such as AND, OR, XOR, negation, and conditionals.
For Gemini, paste the copied question into the chat. You can also copy it below.Need help using this tool? Ask AI
View the question
Type a Boolean expression below to get its full truth table, with up to 8 variables.
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
At a Glance
Truth Table Generator builds a Boolean truth table from an expression using up to eight variables, A through H. It supports AND, OR, NOT, XOR, NAND, NOR, XNOR, implication and biconditional operators.
| Feature | What you get | Good for |
|---|---|---|
| Variables | Use single uppercase letters A to H, up to 8 variables. The tool detects the variables in your expression and lists every True and False combination. | Checking all cases of a logic expression |
| Operators | NOT, AND, NAND, XOR, XNOR, OR, NOR, IMPLIES and biconditional, typed as symbols such as !, &&, ^, ->, => and <=>, or with the operator buttons. | Writing expressions in the notation you already use |
| Precedence | Operators are evaluated from NOT (highest) down to biconditional (lowest), and parentheses override the order. | Avoiding mistakes in long expressions |
| Sub-expressions | A toggle shows the intermediate results of each part of the expression. | Following how the final column is built |
| Minterms and maxterms | Rows with output 1 give the Sum of Minterms and rows with output 0 give the Product of Maxterms. | Digital logic simplification and Karnaugh map work |
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.
Chat with your favorite AI
For Gemini, paste the copied question into the chat. You can also copy it below.
View the question
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 Popular
- 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 Popular
- Exponential Growth Calculator
- Exponential Integral Calculator Popular
- 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 Popular
- 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
- Quadratic Formula Calculator
- Ring and Field Calculator New
- Rounding Calculator New
- Scientific Calculator
- Scientific Notation Calculator
- 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) Popular
- Truth Table Generator
- Venn Diagram Generator (3 Sets)
- Big Number Calculator New