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.
Click an input circle to toggle it between 0 and 1.
Input A
0
Input B
0
Output Y
0
Truth Table
| A | B | Y |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
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