• Electronics
  • Years 9–13 · Ages 13–18
  • 9 levels
  • Free · No sign-up

Logic Lab

Free logic gates game for ages 13–18. Wire AND, OR, NOT, XOR and NAND gates to escape the lab, check truth tables and build a binary adder. No sign-up.

A 2-bit adder built from XOR, AND and OR gates, showing 3 + 2 = 5, next to its truth table

9 levels · Free · No sign-up

Logic LabFree · No sign-up · Works on Chromebooks, tablets and phones

What students learn

  • NOT, AND and OR gates
  • Reading and completing truth tables
  • Combining gates for 3-input problems
  • XOR (exclusive OR) and two-way light switches
  • Writing circuits as Boolean expressions
  • NAND as a universal gate (De Morgan's law)
  • Half adders and full adders
  • Adding binary numbers with logic

Logic Lab is a free logic gates game. Students are locked in the Logic Lab after dark, and every light, door and alarm runs on logic gates that need wiring up. They drag gates onto the board and connect them with wires, from a single NOT gate that switches on a night light to a 2-bit adder that unlocks the way out. A live truth table shows, for every combination of inputs, what the circuit should do and what it actually does, and the Expression tab writes the circuit as Boolean algebra.

How to play

Each level has inputs on the left (switches, sensors, keys and buttons) and outputs on the right (lamps, doors, a bell, a siren and lights). Drag a gate from the bar at the bottom onto an empty slot, then drag from one pin to another to connect a wire. Wires carrying a 1 glow orange. Tap an input, or a row of the truth table, to try different inputs and watch the circuit respond. When every row has a tick, press Test it to run through the whole truth table.

Each level earns up to three stars: one for a circuit that works, two for using no more than a few extra gates, and three for using the fewest gates we know.

The levels

# Level Years Big idea
1 Lights Out 9 NOT gates
2 Two Keys 9 AND gates
3 Ring the Bell 9 OR gates
4 Burglar Alarm 10 Combining gates: A AND (B OR C)
5 Landing Light 10–11 Exclusive OR from AND, OR and NOT
6 Majority Vote 11 Simplifying a Boolean expression
7 Only NAND 12 NAND as a universal gate
8 Half Adder 12 Adding two bits
9 The Calculator 13 A 2-bit adder

Tips for teachers

  • Years 9–10: before students build each circuit, ask them to fill in the truth table on paper. The game’s table then checks their answer as well as their circuit.
  • Years 10–11: after Burglar Alarm and Majority Vote, open the Expression tab and ask students to read the Boolean expression aloud, then write it in A · B + C notation.
  • Years 12–13: Only NAND leads into De Morgan’s laws, and the last two levels build the half and full adders on the A-level Computer Science specifications.

Every level ends with a short “What you learned” summary you can use as a plenary.

Curriculum links

  • GCSE Computer Sciencelogic gates (AND, OR, NOT, XOR), truth tables and logic circuits
  • GCSE Computer ScienceBoolean expressions and binary addition
  • GCSE Design and Technology / Electronicslogic in control systems
  • A-level Computer ScienceNAND and NOR, De Morgan's laws, half and full adders

Controls

Drag a gate from the barPut it on the board (or choose it and tap an empty slot)
Drag from pin to pinConnect a wire
Drag a wire's end awayRemove the wire (or use the eraser)
Tap a switch or a table rowTry different inputs
Arrow keys, Enter, WBuild with the keyboard
Ctrl + ZUndo

Questions about Logic Lab

Is Logic Lab free?

Yes. Logic Lab is free to play in any web browser, with no ads, no sign-up and nothing to install. The teacher pack is free too.

What age is Logic Lab for?

Logic Lab is for ages 13–18. Its 9 levels are labelled by school year and cover Years 9–13 in the UK (Grades 8–12 in the US). The first levels need no previous knowledge and the last ones reach A-level ideas.

What do students learn in Logic Lab?

The levels cover:

  • NOT, AND and OR gates
  • Reading and completing truth tables
  • Combining gates for 3-input problems
  • XOR (exclusive OR) and two-way light switches
  • Writing circuits as Boolean expressions
  • NAND as a universal gate (De Morgan's law)
  • Half adders and full adders
  • Adding binary numbers with logic
Is there a teacher pack for Logic Lab?

Yes. A free 15-page PDF you can download from this page. It includes:

  • Two 60-minute lesson plans (Years 9–10 and 11–13)
  • Two worksheets, with answers and a mark scheme
  • A level-by-level guide with the 3-star circuits
  • Curriculum links (KS3, GCSE, A-level, US)
Does Logic Lab work on Chromebooks and iPads?

Yes. It runs in any up-to-date browser on Chromebooks, Windows and Mac computers, iPads, Android tablets and phones, with a mouse, touch or keyboard. A bigger screen makes the later levels easier.

More engineering games

See all games →