Young students sitting in a circle doing an unplugged coding activityK-2

Elementary CS: Grades K-2

Teaching computer science to five, six, and seven year olds is mostly about patterns, following directions, and learning that being precise with instructions matters. You will not be writing code on screens (usually), and that is fine. The concepts that matter at this stage (sequencing, decomposition, simple data sorting) all work beautifully with hands-on, unplugged activities. This page gives you a practical lesson flow structure, materials guidance, warm-up ideas, and the differentiation tips that keep a mixed-ability K-2 room moving.

Classroom Reality
Time needed

25 to 35 minutes per session. Young learners hit a wall after about 30 minutes of focused work.

Materials

Construction paper, crayons, sorting objects (buttons, blocks, beads), directional arrow cards. No devices needed.

Common snags

Students will want to help each other (great) but will also want to grab each other's materials (less great). Set clear sharing norms before starting.

Suggested Lesson Flow

This structure works for most K-2 CS sessions. Adjust timing based on your students and the specific activity.

Warm-Up (5 minutes)

Start with a quick, whole-group activity that activates the concept for the day. Examples:

Mini-Lesson (8 to 10 minutes)

Introduce or revisit one concept. Keep it to one idea per session. Use physical demonstrations: walk through an "algorithm" for sharpening a pencil (step 1: pick up the pencil, step 2: walk to the sharpener...) and show what happens if you skip a step or put them out of order.

Practice (10 to 15 minutes)

Students work individually or in pairs on an activity that uses the concept. This is the core of the session. Walk the room, ask questions ("What happens next?" "How did you know?"), and note who is struggling or racing ahead.

Reflection (3 to 5 minutes)

Bring the group back together. Ask two or three students to share what they did. Ask the group: "What was hard?" and "What would you do differently?" Even kindergartners can answer these if you keep the language simple.

Differentiation Tips

Materials List

  • Directional arrow cards (up, down, left, right) printed on cardstock
  • Sorting objects: buttons, colored blocks, or small toys
  • Grid paper or large floor mats with a grid pattern
  • Crayons and blank paper for drawing sequences
  • Simple puppets or figures that can "follow instructions" given by students

Common Snags and How to Handle Them

Young student arranging directional arrow cards on a table

What Comes Next

After K-2, students move into the 3-5 grade band where the concepts shift from unplugged pattern work to loops, conditionals, and simple variables. The skills built here (sequencing, precision, decomposition) are the foundation for everything that follows.

Colorful classroom display showing student-created algorithms