Logic Gates

Build logic circuits from switches, lamps and AND, OR, NOT, XOR, NAND and NOR gates; the app shows the truth table and the logical expression.

Open the app

Free, runs in the browser, no sign-in or installation.

Subject
Computer Science
Area
Logic
Level
Primary and secondary school
A half adder built from XOR and AND gates with switches A and B

What you can do

  • Add switches, gates and lamps from the tray, connect them by dragging wires, and flip the switches to see which lamps light up.
  • The truth table (for up to five switches) and the logical expression for each lamp update as you build the circuit.
  • Type a logical expression and the app builds the circuit, or type two expressions and check whether they are equivalent.
  • Solve eight tasks with checking and solutions, including a half adder, a full adder, a majority vote and circuits from NAND gates only.
  • Choose ANSI or IEC gate symbols, show expressions with ∧ ∨ ¬, in words or in Boolean notation, and download the circuit as a PNG.

Worksheets and lessons

Lessons with worksheets that use this app.

More apps: Computer Science

All apps →