← Tools / ⚡ Logic Gates

Logic Gate Simulator

Toggle inputs A and B, select a gate, and watch the output update live. Truth tables update automatically.

Select gate

Output is 1 only when ALL inputs are 1

Inputs

Output

A=0B=00
0
Output
LOW (0)

Truth table — AND

ABOutput
000
010
100
111

Exam reference

AND
A · B
All inputs must be 1
OR
A + B
At least one input is 1
NOT
¬A
Inverts the input
NAND
¬(A · B)
Inverse of AND
NOR
¬(A + B)
Inverse of OR
XOR
A ⊕ B
Inputs must differ