BOOLEAN ALGEBRA & TRUTH TABLE CALCULATOR
Evaluate logic equations, resolve boolean expressions, and generate instant truth tables
- Enter Expression: Type your boolean logic expression in the text box using variables (A, B, C, X, Y, Z).
- Use Operators: You can type words like
AND,OR,NOTor use symbols like*,+,!. - Calculate: Click the button to automatically extract the variables and generate the full truth table. (Max 5 variables allowed to ensure fast loading).
Valid Syntax & Logic Gates:
- AND Gate:
A AND B,A & B,A * B - OR Gate:
A OR B,A | B,A + B - NOT Gate:
NOT A,!A,~A - XOR Gate:
A XOR B,A ^ B - Grouping: Use parentheses
( )to control order of operations.
Truth Table Output
| Inputs | Output |
|---|---|
| Enter an expression to generate table. | |
What is a Boolean Function Calculator?
In computer science, digital electronics, and discrete mathematics, Boolean algebra is the branch of algebra in which the values of the variables are the truth values true (1) and false (0). A boolean function calculator is a specialized mathematical tool designed to evaluate logical expressions and automatically generate the corresponding truth table.
Whether you are an engineering student designing logic gate circuits, a programmer writing complex if/else conditions, or a mathematician simplifying equations, this truth table generator eliminates manual calculation errors and speeds up your workflow.
How to Generate a Truth Table
Our boolean expression calculator simplifies the process of creating truth tables. A truth table breaks down every possible combination of inputs (1s and 0s) to show what the final output of the equation will be.
- Identify Variables: The calculator automatically scans your input for unique letters (e.g., A, B, X, Y). If you have 3 variables, the table will have 2³ = 8 rows.
- Apply Operators: It translates your text into logical operators.
- Evaluate Computations: It runs through every binary permutation to determine if the final state is True (1) or False (0).
Supported Logic Gates and Operators
This boolean logic calculator supports standard digital logic gates used in circuit design. You can use standard programming symbols or plain English words:
| Logic Gate | Text Input | Symbol Input | Description |
|---|---|---|---|
| AND | A AND B |
A * B or A & B |
Output is 1 only if BOTH inputs are 1. |
| OR | A OR B |
A + B or A | B |
Output is 1 if AT LEAST ONE input is 1. |
| NOT | NOT A |
!A or ~A |
Inverts the input (1 becomes 0, 0 becomes 1). |
| XOR | A XOR B |
A ^ B |
Exclusive OR. Output is 1 if inputs are DIFFERENT. |
Why use a Boolean Algebra Solver?
Complex logic circuits often start as massive equations. Before physically building a circuit with transistors or writing a software algorithm, engineers use a boolean algebra solver to verify the logic. By viewing the complete truth table, you can easily identify redundancies and apply theorems (like De Morgan’s Laws) to simplify the equation, saving both hardware costs and processing power.

