Truth Table Generator

Build the truth table of a Boolean expression with up to 6 variables and see whether it is a tautology.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Step 1: Open Truth Table Generator and add your input

    Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.

  2. 2
    Step 2: What Truth Table Generator does

    Build the truth table of a Boolean expression with up to 6 variables and see whether it is a tautology.

  3. 3
    Step 3: Read the result and compare

    The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.

  4. 4
    Step 4: Copy or save it

    Copy the result or download it. For an important decision, confirm it with the official source or an adviser.

About this tool

Type an expression using AND, OR, NOT, XOR, NAND, NOR, parentheses and the variables A to F. The calculator lists every combination of the inputs with the output, counts the true rows, gives the minterms and tells you if the expression is always true, always false or in between.

Syntax

Use A AND B, A OR B, NOT A, A XOR B, or the symbols & | ! ^. NOT binds tightest, then AND and NAND, then OR, XOR and NOR. Use parentheses to be sure. Constants 0 and 1 are allowed.

Results

A tautology is true for every input, a contradiction false for every input. The minterms are the row numbers (with the first variable as the most significant bit) where the output is 1.

Worked example

(A AND B) OR (NOT A AND C) is true in 4 of 8 rows, minterms Σm(1, 3, 6, 7). It is contingent: neither always true nor always false.

Tips for best results

Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.

Quick facts

Embed this calculator on your site

Copy this code to show the calculator on your own page. A link back to shobfree.com is included.

Frequently asked questions

How many variables can I use?

Up to 6 (64 rows).

Which operators are supported?

AND, OR, NOT, XOR, NAND, NOR and the symbols & | ! ^.

What is a minterm?

The number of an input row where the output is 1.

Which variable names can I use?

A, B, C, D, E and F, in upper or lower case.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages