Logic Gates

Tap switches to toggle inputs ON (1) or OFF (0). Watch how different gates combine inputs to produce outputs. The highlighted row in each truth table shows the current state.

NOT
A
0
1
OUT
AOUT
01
10

Inverts the input — 1 becomes 0, 0 becomes 1

AND
A
0
B
0
0
OUT
ABOUT
000
010
100
111

Output is 1 only when both inputs are 1

OR
A
0
B
0
0
OUT
ABOUT
000
011
101
111

Output is 1 when at least one input is 1

NAND
A
0
B
0
1
OUT
ABOUT
001
011
101
110

NOT AND — output is 0 only when both inputs are 1

XOR
A
0
B
0
0
OUT
ABOUT
000
011
101
110

Exclusive OR — output is 1 when inputs are different