COMPUTING CONCEPTS, MADE VISIBLE
Binary Particles

Home / Logic Lab

Logic Lab · Switches and rules

Change an input. Watch the output respond.

Logic gates apply simple Boolean rules to binary inputs. Choose a gate and toggle the inputs to explore what changes.

Open the simulator
A small team exploring a computer science project together

Interactive gate

Set inputs A and B.

The output updates when you choose a gate or change an input. Try to predict each result first.

Output0

NOT uses input A; the second input is ignored.

Input AInput BANDORXOR
00000
01011
10011
11110

Build on the idea

Connect gates to make a larger system.

Circuits use combinations of gates to perform arithmetic, compare values, and store information. Try drawing a two-bit adder on paper, then use an online simulator to test its outputs.

  • Write down the inputs and expected result
  • Draw each gate and connect the wires
  • Test every possible input combination
Find external simulators
Try a prediction

Set A to 1 and B to 0. Which gates return 1? Switch between AND, OR, and XOR to compare their rules.