Truth Table Generator

Truth Table Generator

Enter a logical expression using variables A, B, C, D and logical operations. The generator will automatically create a complete truth table with all possible combinations.

Supported Operations:

Expression Examples:

How it works:

The truth table generator evaluates your logical expression for all possible combinations of input values. For n variables, there are 2^n rows in the truth table.

Applications:

Frequently Asked Questions

What is a truth table?
A truth table is a mathematical table that shows the result of a logical operation for all possible combinations of input values.
Which logical operations are supported?
Basic logical operations are supported: AND (&), OR (|), NOT (!), XOR (^), NAND and NOR. You can also use parentheses for grouping.
How many variables can I use?
You can use up to 4 variables (A, B, C, D). For more variables, the table becomes too large to display effectively.
How do I enter complex expressions?
Use parentheses for grouping operations, for example: (A & B) | (C & D). Operation precedence: parentheses, NOT, AND, XOR, OR.
What's the difference between NAND and NOR?
NAND is NOT-AND (outputs false only when both inputs are true), NOR is NOT-OR (outputs true only when both inputs are false).

Get AI insights about this calculator: