Boolean algebra, truth tables, Karnaugh maps and logic gates
Type or paste anything — an expression, a truth table, a minterm list, a binary number, a line of text. This page works out what it is and shows you every other form of it.
AND is · * & or juxtaposition (AB); OR is + or |; NOT is ¬ ~ ! or a trailing ′; ^ is XOR, never a power; | is OR, never NAND. Paste a truth table, a Σm list, a number in any base, or plain text.
Read as ((A · B) + (¬A · C) + (B · C))
Every form of what you entered
Example
Boolean expression
The function written in algebra, reduced as far as it goes.
Bits per symbol for any distribution, with the surprisal of each symbol shown.
What this is
Every tool here shows its working. When you simplify an expression you get the minimal form and the named law applied at each step — Absorption, Consensus, De Morgan — because you are usually being graded on the method, not the result. When you group a Karnaugh map, the grouping is drawn, and your own grouping is marked correct, redundant or invalid. When you convert a number, the positional arithmetic is written out.
Where a canonical algorithm exists we name it and use it: Quine–McCluskey with Petrick’s method for exact minimisation, so an answer is never a guess that ran out of rewrite rules. Where a function has more than one equally minimal form, you get all of them, rather than one silently chosen and presented as if it were the only one. Nothing is behind an account, a paywall, or a “click to calculate” button, and every page keeps working with no network after your first visit.
Where this comes from
In 1937 a twenty-one-year-old master’s student at MIT noticed that the algebra George Boole had built to describe the laws of thought was the same algebra that describes a network of relay switches — a claim Claude Shannon published the following year as A Symbolic Analysis of Relay and Switching Circuits (Transactions of the AIEE 57(12), 713–723, 1938). That single observation is why a truth table, a Karnaugh map and a circuit diagram are three views of one object, and it is the reason every tool on this site can hand its input to every other.