
Computer Science Learning Tool
Logic Gates Simulator
Explore logic gates by switching inputs on and off, then connect the circuit output to the matching truth table and boolean expression.
Big idea: Logic gates turn binary inputs into a binary output. A truth table lists every possible input combination, while a boolean expression writes the same rule in symbols.
Choose a logic gate
The selected gate controls the circuit rule and truth table.
Switch inputs
A and B are binary inputs. 0 means false/off, and 1 means true/on.
Boolean expressionY = A · B
AND gate ruleY is 1 only when A and B are both 1.
Input A0
Input B0
Output Y0
Output is OFFThe current inputs make the output 0.
Gate Meanings
Each logic gate has a rule, a boolean expression, and a truth table. Change the selected gate above to compare them.
Practice Keywords
Use this tool to study logic gates, boolean expression notation, binary inputs, binary output, and truth tables.
logic gatesboolean expressiontruth tableAND gateOR gateNOT gateXOR gate