โ† Back to all tools

๐Ÿ”Œ How Do Computers Make Decisions? โ€” Logic Gates

Toggle inputs on interactive logic gates or build expressions to generate truth tables automatically.

Designed with the WJEC specification in mind
CS GCSE ยง1.6CS A-Level Unit 1CS A-Level Unit 3

๐Ÿค” What are logic gates?

Logic gates are the building blocks of all computer circuits. They take electrical inputs (on/off) and produce outputs based on simple rules. Every decision your computer makes uses these basic gates!

๐Ÿ• Analogy: Think of them like automatic doors with different rules โ€” some need BOTH sensors triggered (AND), others need just one (OR), and some do the opposite of what you'd expect (NOT)!
๐ŸŽ›๏ธ Interactive Gates
๐Ÿ“‹ Truth Tables
โœ๏ธ Expression Builder
๐Ÿ“‹

Select a gate to see its truth table

โœ๏ธ

Boolean Expression โ†’ Truth Table

Type a Boolean expression using variables A, B, C and operators AND, OR, NOT, XOR, NAND, NOR. Use brackets for grouping.

Examples:
๐Ÿ“

Exam Tips

  • GCSE: Know the symbols and truth tables for AND, OR, NOT gates
  • A-Level: Include XOR, NAND, NOR gates and be able to simplify Boolean expressions
  • Key point: NAND = NOT AND, NOR = NOT OR (they're the opposites)
  • Remember: Use brackets carefully in expressions โ€” (A AND B) OR C is different from A AND (B OR C)