Logic Gate Calculator

Calculate the output of a logic gate and see its full truth table. Compare AND, OR, XOR, NAND, NOR, XNOR, NOT, and buffer gates.

Result
—

How to calculate

Choose a gate and set its inputs to 0 or 1. The result shows the selected output. The truth table lists each input combination for the same gate.

Worked example

Use Logic gate AND · Input A 1 · Input B 0. The result is 0.

Input and result notes

NOT inverts A, while a buffer passes A through. XOR is 1 when the inputs differ, and XNOR is 1 when they match.

OpenStax truth tables

Related calculators