ceo@instrumentationblog.in
Digital Logic Tools · Free Tool

Truth Table Generator

Enter a Boolean expression and get its complete truth table instantly, with the minterm list, canonical SOP and POS, and the simplified expression.

Up to 6 inputsCanonical SOP and POSSimplified formCopy as CSV
Examples:

NOT: A' or !A. AND: AB, A*B or A&B. OR: A + B or A|B. XOR: A ^ B.

Minterms (output 1)
Maxterms (output 0)
Simplified SOP
Canonical forms
    Advertisement

    How a Truth Table Is Built

    A truth table lists every possible combination of the inputs and the output for each one. With n inputs there are 2n rows: 4 rows for 2 inputs, 8 for 3 and 16 for 4. The inputs count up in binary so no combination is missed.

    Rows = 2n
    Canonical SOP = OR of the minterms where F = 1
    Canonical POS = AND of the maxterms where F = 0

    Worked example

    For F = (A + B)C' the output is 1 only when C is 0 and at least one of A or B is 1, which is rows 2, 4 and 6 (ABC = 010, 100, 110). So F = Σm(2, 4, 6), canonical SOP A'BC' + AB'C' + ABC', which simplifies back to AC' + BC'.

    Common gate truth tables

    ABANDORNANDNORXORXNOR
    00001101
    01011010
    10011010
    11110001
    Key insight: write the truth table before wiring a PLC interlock. It shows every case, including the odd combinations that cause trips in the field.
    Advertisement

    Frequently Asked Questions

    How many rows does a truth table have?

    2 to the power of the number of inputs: 2 inputs give 4 rows, 3 give 8, 4 give 16 and 6 give 64.

    How do I write a Boolean expression from a truth table?

    Take every row where the output is 1, write it as an AND term (complement inputs that are 0) and OR the terms together. That is the canonical SOP, which you can then simplify.

    What symbols can I use?

    NOT as A' or !A, AND as AB, A*B or A&B, OR as A + B or A|B, XOR as A ^ B, plus brackets and the constants 0 and 1.

    Can I export the truth table?

    Yes. The Copy CSV button copies the table so you can paste it into Excel or a report.

    You May Also Like

    Learn more on the blog

    Digital logic gates explained with truth tables

    A practical guide on instrumentationblog.in that explains the theory behind this tool with solved examples.

    Read Full Article

    More Digital Logic Tools

    More Instrumentation Tools

    2 toolsInstrument Tag DecoderDecode ISA 5.1 instrument tags and look up every identification letter.4 toolsIP, NEMA and Ex Rating DecoderDecode IP codes, NEMA enclosure types, ATEX and IECEx Ex markings and hazardous area zones.4 toolsWire and Cable Color CodesWire colour codes for power, control panels, thermocouples and RTDs by standard.9 toolsPID Tuning ToolsPID tuning calculators, PID form converter and an online PID loop simulator.4 toolsP&ID SymbolsSearchable P&ID symbols for instruments, lines, valves and flow elements.3 toolsPipe and Flange ChartsPipe schedules, ASME B16.5 flange dimensions and pressure ratings.4 toolsThread Size ChartsNPT, BSP and metric thread sizes and a thread identifier for instrument fittings.17 toolsTroubleshooting GuidesInteractive fault finders for transmitters, flowmeters, valves and loops.18 toolsPractice TestsInstrumentation quizzes with instant scores and explained answers.3 toolsDigital Logic ToolsK map solver, Boolean algebra simplifier and truth table generator for digital electronics and PLC logic.3 toolsElectrical Selection ToolsConduit fill and wire gauge calculators to the NEC, plus an ANSI device numbers decoder for protection relays.2 toolsMechanical ChartsGalvanic corrosion chart with a metal pair checker and a bolt torque calculator for SAE and metric bolts.2 toolsProcess Engineering ToolsPsychrometric calculator with a live chart and a flow rate calculator for pipes.CalculatorsCalculatorsFree engineering calculators for flow, level, pressure, temperature, valves and more.ConvertersUnit Converters76 converters, 700+ units.