Illustration of AND, OR, and XOR logic gates with small truth tables showing inputs and outputs.

Boolean Truth Tables

Standard logic gates

Each table lists every input combination and the output (0 or 1). These are the building blocks digital circuits use to store and process bits.

AND
ABOut
000
010
100
111
OR
ABOut
000
011
101
111
NAND
ABOut
001
011
101
110
NOR
ABOut
001
010
100
110
XOR
ABOut
000
011
101
110
XNOR
ABOut
001
010
100
111
NOT
AOut
01
10

Arithmetic using gates

Real processors use much faster designs; below is the straightforward ripple-carry and shift-and-add approach — simple schemes, not the fast ones.

How boolean truth tables work

Every combination of inputs

A truth table lists outputs of a boolean expression for each possible true/false (1/0) input pattern. This page evaluates common logic operations so AND, OR, XOR, NAND, NOR, and implication become concrete instead of memorised slogans.

Worked example

AND is true only when both inputs are true. XOR is true when inputs differ. Those single-bit rules are the same ones CPUs apply across whole registers in Bitwise Operations.

Common mistakes

  • Confusing implication (→) with IF statements in programming languages that short-circuit differently.
  • Mixing boolean logic with bitwise operators on integers casually.

FAQs

Why teach tables if languages have &&?
Tables make completeness proofs and digital logic circuits easier to reason about.

When this page helps

Use it when you want a transparent, browser-side calculation with the assumptions spelled out — then verify anything high-stakes against primary docs, a professional, or your own measurements. The related links below point to sibling tools and longer guides when you need more context.

Accuracy notes

Results depend entirely on the numbers you enter and the simplified model described above. Device clocks, tape measurements, market rates, and recipe conventions can all differ from a perfect textbook case. If an output looks surprising, re-check units first, then re-read the formula section.

Related: Bitwise Operations, Number Bases.

Last updated: July 2026