QuickToolbox

Logic Gate Simulator

Choose a logic gate and its inputs to see the output and the full truth table for AND, OR, NOT, NAND, NOR, XOR and XNOR.

These tools are for study and quick checking. A result is only as good as the numbers you enter and the simplifying assumptions in the formula. For published, regulated or safety-critical work, check it against a trusted source or an instrument.

How it works

The formula

AND = A.B; OR = A+B; XOR = A xor B; NAND = not(A.B)

Frequently asked questions

Which gates are universal?

NAND and NOR. Any logic function can be built from either one alone.

How does NOT differ from the others?

It has one input, so input B is ignored.

Is what I enter sent anywhere?

No. The calculation is done in your browser, so your numbers are not sent to a server or saved.

Related tools