Logic Gate Truth Table
Interactive AND, OR, NAND, NOR, XOR, XNOR, NOT truth tables.
How to Use
- Pick a gate type; click inputs to toggle 0/1.
- Full truth table updates live.
Truth Table
Gate Cheatsheet
History of Logic Gates
George Boole published An Investigation of the Laws of Thought in 1854, introducing the algebra of logic that now bears his name — AND, OR, NOT operating on true/false values. Claude Shannon\'s 1938 master\'s thesis "A Symbolic Analysis of Relay and Switching Circuits" connected Boolean algebra to electromechanical relays, founding the field of digital circuit design almost single-handedly.
The first practical logic gates were vacuum-tube circuits in computers like ENIAC (1945) and Colossus (1944). Transistor-transistor logic (TTL) appeared in 1961 with the Texas Instruments SN5400 series NAND gate; CMOS logic families followed in 1963 from RCA. TTL and CMOS remained the dominant discrete-logic families for decades. Today, discrete 74-series logic is rare — most digital function now lives inside FPGAs or full SoCs — but truth tables are still the fundamental tool for describing any digital behavior.
NAND (and NOR) are functionally complete: any Boolean function, no matter how complex, can be implemented using NAND gates alone (or NOR alone). This universality property made NAND the dominant choice for early CMOS libraries — fabs only had to characterize one cell design to offer a full logic family. Modern standard-cell libraries include dozens of gate types for compactness and speed, but the underlying logic-completeness principle is unchanged.
About This Calculator
Pick a gate type and input values (A and B for 2-input gates, just A for NOT). The tool computes Y and shows the full truth table below. Useful for verifying homework, building intuition for new gate types (XNOR, for instance), and quickly looking up unfamiliar equations.
For serious design work, use a proper HDL simulator (Verilog/VHDL with ModelSim, Icarus Verilog, Verilator) or schematic capture with logic simulation (LTspice, Qucs). This calculator is a quick reference, not a synthesis tool. Everything runs client-side; no values leave your browser.
About the Logic Gate Truth Table
Use the Logic Gate Truth Table — a free, easy tool for electronics and circuit design. Nothing is uploaded, and you do not need an account. Interactive AND, OR, NAND, NOR, XOR, XNOR, NOT truth tables.
How it works
Put each value in its box and read the answer as you go. Because it recalculates live, you can play with the inputs to see how each one moves the result — handy for checking your own working or planning ahead. Everything happens on your device, so it is fast and private.
Want the deeper story? The Knowledge Base explains the ideas behind the tools in more detail.
Frequently Asked Questions
Why NAND is universal?
Any Boolean function can be built from NAND gates alone (same for NOR).
XOR uses?
Parity checking, half-adder sum.
How do I use the Logic Gate Truth Table?
Simply type your numbers and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.
Do I need to install or sign up for anything?
Not at all — it runs in the browser with nothing to install and no account. After it loads once, it even works without an internet connection.
Is my information private?
Yes. Everything happens in your browser. Nothing you type is sent to a server or saved anywhere.
Common Use Cases
Homework
Validate truth tables.
PCB Design
Pick CMOS logic family.
Last updated: