Advanced

Boolean Truth Table Calculator

Generate the complete truth table for two boolean variables under any common logical operator.

Operator

Logical operator applied to A and B
TRUE rows
1

out of 4 input combinations

1

TRUE

TRUE

25%

FALSE

75%

A=FALSE, B=FALSE
FALSE
A=FALSE, B=TRUE
FALSE
A=TRUE, B=FALSE
FALSE
A=TRUE, B=TRUE
TRUE
TRUE rows
1
FALSE rows
3
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

A truth table for two boolean variables has four rows (00, 01, 10, 11). Pick a logical operator — AND, OR, XOR, NAND, NOR, XNOR, IMPLIES or IFF — and the calculator evaluates it on every row, lists the full table, and counts how many results are TRUE versus FALSE.

Formula
For A,B ∈ {false,true} over rows 00,01,10,11: out = op(A,B)
How this is calculated

A truth table enumerates every possible combination of input values for a logical expression. With two boolean variables A and B there are exactly 2² = 4 rows: (A=0,B=0), (A=0,B=1), (A=1,B=0) and (A=1,B=1), where 0 means FALSE and 1 means TRUE.

The operator you select determines the output column. AND is true only when both inputs are true; OR is true when at least one is true; XOR is true when the inputs differ; NAND and NOR are the negations of AND and OR; XNOR (equivalence) is true when the inputs match; IMPLIES (A → B) is false only when A is true and B is false; and IFF (biconditional) is true when both inputs are equal — making it identical to XNOR.

The calculator evaluates op(A,B) for all four rows, lists the full table, and counts how many rows yield TRUE versus FALSE. The donut chart visualizes that TRUE/FALSE split. Because the domain is finite and discrete, there are no rounding or unit concerns; every operator produces an exact, deterministic 4-row table.

Frequently asked questions

With two boolean variables, each can be TRUE or FALSE, giving 2 × 2 = 4 distinct combinations. More generally n variables produce 2ⁿ rows.

The biconditional (IFF) is true exactly when both operands have the same truth value, which is precisely the definition of XNOR (negated exclusive-or). They are logically equivalent.

A → B is false only in the single case where A is TRUE and B is FALSE. In all other rows it is TRUE, including when A is FALSE (vacuously true).

Also known as

truth table calculator
boolean logic
logic gate table
and or xor
boolean operator
logical operations
truth table

APA

TG we-Calculate Editorial Team. (2026). Boolean Truth Table Calculator [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/truth-table-calculator

Chicago

TG we-Calculate Editorial Team. "Boolean Truth Table Calculator." TG we-Calculate. 2026. https://we-calculate.com/calculator/truth-table-calculator.

IEEE

TG we-Calculate Editorial Team, "Boolean Truth Table Calculator," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/truth-table-calculator

BibTeX

@misc{wecalculate_truth_table_calculator, title = {Boolean Truth Table Calculator}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/truth-table-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?