Analyze logic using operators and truth tables. See simplification, precedence, variable counts, and validation instantly. Built for classes, coding practice, exams, and digital design.
Accepted operators: AND, OR, NOT, XOR, NAND, NOR, IMP, EQV, parentheses, and constants 0 or 1.
| Expression | Manual Inputs | Expected Output | Interpretation |
|---|---|---|---|
| A AND B | A=1, B=1 | 1 | Both conditions must be true. |
| A XOR B | A=1, B=1 | 0 | XOR is true only when inputs differ. |
| NOT A OR B | A=1, B=0 | 0 | Negated A is false, and B is false. |
| A IMP B | A=1, B=0 | 0 | Implication fails only when true implies false. |
The calculator applies Boolean algebra and precedence-aware parsing to convert your expression into Reverse Polish Notation, then evaluates each truth-table row.
Canonical SOP joins all true-output minterms with OR. Canonical POS joins all false-output maxterms with AND.
It evaluates Boolean expressions, builds a complete truth table, identifies whether the expression is a tautology or contradiction, and shows canonical SOP and POS forms.
You can use AND, OR, NOT, XOR, NAND, NOR, implication using IMP or ->, equivalence using EQV or <->, parentheses, and constants 0 and 1.
Any identifier starting with a letter becomes a variable, unless it matches a reserved logic operator. Names like A, Input1, Gate_A, and flag are accepted.
A tautology returns 1 for every possible input combination. This means the expression is always true, regardless of the values assigned to its variables.
Canonical sum of products lists every minterm that makes the expression true. Each minterm contains all variables, either normal or negated, joined by AND.
Truth tables grow exponentially. Eight variables already create 256 rows, which is useful but still readable on a page and practical for exporting.
Yes. It is helpful for digital electronics, discrete mathematics, circuit verification, homework checks, and understanding how operator precedence changes output.
The PDF option opens your browser print dialog for saving as PDF. This keeps the page simple and works without server-side file generation.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.