Logic Gates

Build intuition for boolean logic. Toggle inputs on standard gates, evaluate boolean expressions step by step, and test your skills with a practice quiz.

0A0B0Y

Click an input circle to toggle it between 0 and 1.

Input A

0

Input B

0

Output Y

0

Truth Table

ABY
000
010
100
111

The highlighted row matches your current inputs.

About the AND gate

Outputs 1 only when all inputs are 1.

Rule: Output is 1 if A and B are both 1.

Y = A B