An algorithm is a recipe: a lesson plan for grades 1–3
A ready-to-use 45-minute lesson plan for ages 6–9: what an algorithm is and why the order of steps matters. Unplugged games, movement, cards and a short Looponi lesson. Printable worksheet included.
Updated:
- Grades
- 1–3
- Time
- 45 min
- one worksheet per child
- scissors and glue
- a dozen A4 sheets as track pieces
- two sheets marked START and STOP
- an interactive whiteboard or tablets with Looponi
Open the printable worksheetDownload the worksheet (PDF)Try this lesson

This lesson introduces the first idea in algorithmic thinking: an algorithm is a set of steps done in order, from start to finish. Children first give instructions to the teacher, then build a paper track on the floor, and finally lay a track in Looponi, in the lesson “Track to the bakery”. There, Dot goes to fetch a cake for Semaphore the cat's birthday.
Goals
- Children put 4–5 steps of an everyday task in the right order and say what happens when two steps are swapped.
- Children point to the start (START) and the end (STOP) of an algorithm.
- Children predict what a program will do before they run it.
Lesson outline
1. Unplugged warm-up: the teacher robot (10 min)
Say: “I'm a robot. I do exactly what you tell me. Nothing more.” The class has to guide you through making a sandwich. Follow every instruction literally. If someone says “spread the butter” while the bread is still in the bag, spread it on the bag (miming is enough).
After two or three attempts, ask:
- What went wrong?
- Which step has to come first? Which one comes last?
Write the agreed steps on the board and name them: “This is an algorithm. Steps in order, from beginning to end.”
2. A paper track on the floor (15 min)
Put a START sheet on the floor and a STOP sheet a few metres away. Tell the class the bakery is next to STOP. One child plays Dot and stands at the start. Dot may only walk on track pieces, one step at a time.
- The other children take turns laying A4 sheets as track pieces from START to STOP.
- Before Dot sets off, ask the class: “Will she get to the bakery or stay at the start?”
- Dot walks. If there is a gap in the track, she stops in front of it.
- Take one sheet out of the middle and ask again.
Then, in pairs, children cut out the sandwich cards from the worksheet and lay them in order on the desk. The pair next to them checks whether a robot could make a sandwich from it.
3. Looponi: “Track to the bakery” (15 min)
Open the lesson with the button on this page. On an interactive whiteboard, children come up in turn and each does one step. On tablets, they work in pairs and swap after every step.
The app's narrator speaks Polish only. In English, read the short instructions aloud yourself or let a confident reader read them to the group.
What happens in the lesson:
- A short story: it's Semaphore the cat's birthday, and Dot is going to the bakery for a cake.
- The app shows the START station at the top and STOP at the bottom, by the bakery.
- The child lays the track downwards, one piece under another.
- The question “What will Dot do?”: the child picks an answer before seeing the ride.
- Dot rides, and then comes the task on their own: “Lay the whole track from START to STOP!”
The lesson takes a few minutes, so there is time for two or three more children to do it again at the board, or for pairs on tablets to move on to the next lesson.
4. Wrap-up (5 min)
- What is an algorithm? (Steps in order.)
- What does every track for Dot need? (START, STOP and no gaps.)
- Where do you follow an algorithm at home? (Brushing teeth, getting dressed, a cake recipe.)
Common mistakes and what to say
- The track doesn't reach STOP. The child leaves a gap or ends the track too early. Say: “Point to where the track ends.”
- The child wants to see the ride straight away without building anything. Say: “First guess what Dot will do. Then we'll check.”
- The recipe cards are in the wrong order. Instead of saying “wrong”, play the robot: “I'm spreading butter… on what? There's no bread yet.”
- Mixing up start and end. Ask: “Where is Dot at the beginning? Where should she stop?”
Easier and harder versions
- Easier: only two recipe cards: bread and butter. Lay the floor track together with the children; they only say “next piece”.
- Harder: the lesson “Presents in order”, where Dot collects presents in a set order. Or “Water first!”: water, coal and fire must come in order, but washing the windows can go anywhere. Ask which steps of the sandwich recipe could also be swapped.
Worksheet
The worksheet has recipe cards to cut out and order, steps to number, a track with a gap to judge (will Dot get there?) and a space to draw a track from START to STOP; you can download it below this lesson plan.
Open the printable worksheetDownload the worksheet (PDF)Try this lesson
Frequently asked questions
Does every child need a computer for this lesson?
No. The first two parts are unplugged. The Looponi part works on one interactive whiteboard, with children coming up in turn, or on tablets in pairs.
What should children know after this lesson?
That an algorithm is a set of steps in order, that it has a start and an end, and that changing the order of the steps can change the result or make it fail.
Can children who don't read yet take part?
Yes, with help. The cards and the worksheet have pictures next to short words. In Looponi the narrator reads instructions in Polish only, so in English the teacher reads them aloud or children read them together.