Home / Hands-on activities / Boolean Logic Gates

Coding activity

Boolean Logic Gates

Play the Yes or No game! Learn about TRUE and FALSE using real-life questions. Hold up green (yes/true) and red (no/false) cards to answer fun questions.

Hands OnAbout 25 minutesScreen-freeParent help expected

Materials and setup

How this changes by age

Pre-K (ages 3–4)

Play the Yes or No game! Learn about TRUE and FALSE using real-life questions. Hold up green (yes/true) and red (no/false) cards to answer fun questions.

Difficulty 1 of 3

Steps

  1. Make two cards: green (TRUE/YES) and red (FALSE/NO).
  2. Ask questions: 'Is the sky blue?' Child holds up green. 'Do fish fly?' Child holds up red.
  3. Play 10 rounds with silly and serious questions.
  4. Combine: 'Is the sky blue AND do you have two eyes?' BOTH must be true for green card.
  5. Discuss: 'Computers think in yes or no, true or false. That is how they make decisions!'
  6. Tell a grown-up one thing that surprised you.

Learning objectives

  • Evaluate statements as true or false
  • Use physical cards to represent Boolean values
  • Begin to understand AND logic by combining two true/false statements

Kindergarten (ages 5–6)

Build logic gates with cards! Learn AND, OR, and NOT. Two inputs go in, one answer comes out. Use TRUE and FALSE cards to test every combination and discover how computers make decisions.

Difficulty 2 of 3

Steps

  1. Create input cards: TRUE (green) and FALSE (red). Draw an AND gate box on paper.
  2. AND gate: Both inputs must be TRUE for output to be TRUE. Test all 4 combinations: T+T=T, T+F=F, F+T=F, F+F=F.
  3. Draw an OR gate: At least one input must be TRUE for TRUE output. Test all 4 combinations.
  4. Draw a NOT gate: It flips! TRUE becomes FALSE, FALSE becomes TRUE.
  5. Real life AND: 'IF it is sunny AND you finished homework, THEN you can go outside.' What if only one is true?
  6. Tell a grown-up one thing that surprised you.

Learning objectives

  • Demonstrate how AND, OR, and NOT gates process two inputs into one output
  • Test all input combinations for each gate type and record results
  • Connect logic gates to real-life decision-making scenarios

Early elementary (ages 6–8)

Build a logic gate circuit on paper! Chain AND, OR, and NOT gates together to create complex decisions. Fill out truth tables and design a gate combination that solves a real-world problem.

Difficulty 2 of 3

Steps

  1. Review AND, OR, NOT gates. For each, create a complete truth table showing all input/output combinations.
  2. Chain two gates: take the output of an AND gate and feed it into a NOT gate. This creates a NAND gate. Build its truth table.
  3. Design a 'Should I bring an umbrella?' circuit: Input 1 = 'Is it cloudy?' Input 2 = 'Did the forecast say rain?' Use an OR gate (bring umbrella if EITHER is true).
  4. Add complexity: Input 3 = 'Am I driving?' Use AND with NOT: bring umbrella IF (cloudy OR forecast rain) AND NOT driving.
  5. Draw the full circuit diagram with labeled gates and inputs. Trace through 3 different scenarios to verify it works.
  6. Challenge: design a circuit for 'Should I study or play?' with 3 inputs of your choosing.
  7. In one sentence, tell a parent or sibling what surprised you today.

Learning objectives

  • Create complete truth tables for basic and combined logic gates
  • Chain multiple gates to build complex decision circuits
  • Apply logic gate thinking to model real-world decision processes

Upper elementary (ages 8–10)

Master Boolean algebra and digital logic. Build a half-adder circuit that adds binary numbers, explore how computers use millions of logic gates to compute, and design your own logic puzzle for others to solve.

Difficulty 3 of 3

Steps

  1. Review: AND, OR, NOT, NAND, NOR, XOR (exclusive OR — true when inputs differ). Build truth tables for XOR and NAND.
  2. Binary addition: 0+0=0, 0+1=1, 1+0=1, 1+1=10 (carry). A half-adder uses XOR for the sum bit and AND for the carry bit. Draw the circuit.
  3. Test your half-adder with all 4 input combinations. Verify the output matches binary addition.
  4. Boolean algebra: simplify expressions. A AND (A OR B) = A. NOT (NOT A) = A. Practice 5 simplification problems.
  5. Design a logic puzzle: create a scenario with 4 binary inputs and a specific output pattern. Draw the gate circuit. Give it to someone else to solve — can they figure out your truth table?
  6. Discuss: 'A modern CPU has billions of logic gates. Everything your computer does — math, graphics, internet — is built from these simple TRUE/FALSE gates.'
  7. In one sentence, tell a parent or sibling what surprised you today.

Learning objectives

  • Build and verify a half-adder circuit that performs binary addition
  • Apply Boolean algebra to simplify logical expressions
  • Design original logic circuits and puzzles using multiple gate types

Safety and evidence note

Read the full activity before beginning. An adult should supervise tools, heat, food, outdoor work, movement, and experiments as appropriate. Completion records that the activity was done; the child’s explanation, work sample, photo, or demonstration is stronger evidence of learning than a completion check alone.

Related coding activities

Browse all 575 activities · Explore course syllabi