Ilustração: Hour of Code Activities for Elementary Students (Unplugged and Online)
Holidays

Hour of Code Activities for Elementary Students (Unplugged and Online)

By Pluma Team ·

TL;DR

Computer Science Education Week 2026 runs December 7–13. An 'hour of code' can be completely unplugged: robot-and-programmer games, arrow mazes on the floor, algorithm cards and debugging puzzles teach sequencing, loops and conditionals without a single device. Add block-based coding online for 1st–5th graders, and, for 3rd–5th, a short lesson on how AI learns from examples, since the event's organizer now frames it as an hour of AI.

In this article you will find
  1. What changed recently
  2. The big ideas, in kid language
  3. Unplugged activities for K–2
  4. Unplugged activities for 3–5
  5. Online coding for 1st–5th grade
  6. A simple AI lesson for 3–5
  7. A ready one-hour plan
  8. Connecting coding to math and literacy
  9. Telling families about the week
  10. Running a coding week
  11. Supporting every student

An Hour of Code is a one-hour introduction to computer science held during Computer Science Education Week, which in 2026 runs December 7–13, and for elementary students the best activities mix unplugged games (robot-and-programmer, floor mazes, algorithm cards) with simple block-based coding online and, for older students, a short look at how AI learns from examples. You don’t need devices for every student or any coding experience yourself. The ideas that matter at this age (sequencing, loops, conditionals and debugging) can all be taught with paper, tape and a little movement. Below are activities by grade band, a ready one-hour plan and tips for running the week. For other dates and planning ideas, see our school calendar guide.

What changed recently

The nonprofit that started the Hour of Code in 2013 rebranded the campaign as an Hour of AI in 2025, and its featured activities now focus on artificial intelligence. Computer Science Education Week itself continues, and teachers still use “Hour of Code” to describe a coding hour in December. For elementary classrooms, the practical answer is to do both: coding builds the foundation, and a short, age-appropriate AI lesson helps older students understand the tools they hear about.

The big ideas, in kid language

Idea What it means Kid-friendly version
Algorithm A set of steps to do a task A recipe or directions
Sequencing Steps in the right order First, next, last
Loop Repeating steps Do it again, 3 times
Conditional A choice based on a condition If it’s raining, then take an umbrella
Debugging Finding and fixing mistakes Detective work

Introduce one or two of these per activity, using the kid-friendly words first and the real term after.

Unplugged activities for K–2

Robot and programmer. One student is the robot; another gives directions using only a few commands: step forward, turn left, turn right, pick up. The goal is to guide the robot to a target, such as a book on a chair. The class quickly discovers that “go over there” doesn’t work for a robot; it needs exact steps. Switch roles often.

Floor maze with arrow cards. Make a grid on the floor with painter’s tape (a 5×5 grid works well). Place a “start” and a “goal,” plus a few obstacles. Students lay arrow cards to plan the path, then a classmate walks it. If the path fails, they debug: which arrow was wrong?

Daily routine algorithms. Students put picture cards for brushing teeth or making a sandwich in order. Mix up one step and ask them to find the bug. Kindergartners love fixing the “silly robot” who puts the bread on top of the plate and the peanut butter on the table.

Dance loops. Create a short dance with four moves and ask, “How can we write this with fewer cards?” Students discover that “clap, clap, clap, clap” can be “clap × 4,” which is a loop.

Pattern beads. Students follow a “program” card (red, blue, blue, repeat 3 times) to string beads. It connects coding to the patterns they study in math.

Unplugged activities for 3–5

Conditionals game. Play a version of Simon Says with conditions: “If you’re wearing blue, stand up. Else, clap twice.” Then have students write their own if-then-else rules for the class to follow.

Binary bracelets. Teach that computers store letters as 0s and 1s. Give students a simple binary alphabet chart and have them encode their initials with two colors of beads. It’s a fast, memorable lesson on how data is represented.

Debugging puzzles. Give pairs a written algorithm with one or two bugs, like directions to draw a house where the roof ends up inside the square. They find and fix the bugs and explain the change.

Sorting network. Draw a sorting network on the playground with chalk and have students walk it holding number cards. They come out in order every time, which makes a great discussion about how computers follow rules.

Online coding for 1st–5th grade

If you have devices, free block-based coding activities let students drag and snap commands to move a character through a maze or create a simple animation. Look for activities that:

  • Use blocks instead of typing, especially for 1st–3rd grade.
  • Include short tutorials and self-checking levels.
  • Work in a browser without student accounts, or with accounts managed by your district.
  • Have options with no text for pre-readers.

Pair students on one device. Pair programming (one driver, one navigator, switching every few minutes) builds talk and reduces frustration. Make sure any site you use is approved by your district, and don’t create student accounts on services that haven’t been vetted for student privacy.

A simple AI lesson for 3–5

You can teach the core idea behind AI without a computer. Give groups a set of picture cards: half are cats, half are dogs, with a few tricky ones. Ask them to write rules to tell them apart (“If it has pointy ears, it’s a cat”). Their rules will fail on some cards. Then explain that many AI systems don’t use rules written by people. Instead, they learn patterns from thousands of labeled examples. Discuss: What happens if all the dog pictures we used to train it are brown dogs? Students quickly see why the examples matter and how AI can make mistakes.

Close with a conversation about using AI tools responsibly: they can be wrong, they don’t know you, and personal information should stay private.

A ready one-hour plan

Minutes Activity
0–10 Hook: robot-and-programmer demo with the teacher as the robot
10–25 Floor maze or debugging puzzles in pairs
25–50 Online block coding in pairs, or a second unplugged game
50–60 Share: one bug you found and how you fixed it; certificates

For K–1, cut the online part and run two unplugged games with a movement break between them.

Connecting coding to math and literacy

Coding fits naturally into what you already teach. Sequencing an algorithm is the same skill as retelling events in order or writing how-to steps, so a coding activity can lead straight into a procedural writing lesson: students write the directions for the maze they solved. Loops connect to repeated addition and multiplication (“move forward 2, repeat 4 times” is 4 × 2). Coordinates on a grid maze prepare 5th graders for graphing on the coordinate plane. Debugging is a form of checking work, which is a habit you want in every subject.

You can also use a coding week to talk about careers. Many students think computer science means sitting alone at a screen. Show examples of people who use code to design games, study animals, build robots for hospitals or make music, and ask students what problem they’d want to solve with code.

Telling families about the week

A short note home helps families continue the conversation. Explain what students learned in kid-friendly words (algorithms, loops, debugging), share one unplugged game families can play at home, like giving step-by-step directions to make a sandwich, and mention that coding can be practiced any time of year, not only in December.

Running a coding week

Some schools turn the week into a series of short activities: unplugged games on Monday and Tuesday, devices on Wednesday and Thursday, and a showcase on Friday where students teach families or another class. Rotating groups through coding stations is an easy way to manage limited devices; our post on learning stations vs centers has rotation schedules you can adapt.

Coding also connects to science. The NGSS practice “using mathematics and computational thinking” covers the same kind of step-by-step reasoning, and our guide to the 8 NGSS science and engineering practices shows where it fits.

Supporting every student

Coding activities can be adapted for any learner. Use picture-only command cards for pre-readers and students who need visual supports, pair students thoughtfully, and give a clear “if you’re stuck” routine (ask your partner, check the hint, then ask the teacher). For students with IEPs or 504 plans, the accommodations the team decided on still apply, including extended time and assistive technology.

If December is busy, a coding hour also fits other activities you have planned that week; see our Christmas activities for school for a full last-week schedule.

For dates, observances and planning ideas for every month, visit our school calendar guide.

FAQ

When is Hour of Code 2026?

The event takes place during Computer Science Education Week, which runs December 7–13, 2026. You can run an hour of coding any day that week, or any time of year.

Is Hour of Code still happening?

The nonprofit behind the event rebranded it as an Hour of AI in 2025, with AI-focused activities, but coding activities remain widely available and many schools still call the week's activities Hour of Code.

Can kindergartners do Hour of Code?

Yes. Unplugged activities such as giving step-by-step directions to a 'robot' classmate or building arrow paths on the floor teach the same ideas as screen-based coding and suit K–1 best.

Do I need to know how to code to teach an Hour of Code?

No. Most activities are self-guided or unplugged, and the goal is exposure and fun. Try the activity yourself for ten minutes beforehand so you can help with common snags.

Read next