Algorithms explained for parents (Australia)

Algorithms explained for parents - Ziado maths guide

Over afternoon tea, a Year 4 child unpacks their bag and announces that today in maths they "built an algorithm". You picture computer code and wonder whether the class has quietly turned into a coding club. In fact they probably drew a few boxes joined by arrows that told a classmate how to list the multiples of 4, and then talked about the pattern that appeared.

In primary maths, an algorithm is simply a recipe for a calculation or a decision: a set of steps that anyone can follow, in order, and always land on the right result. Following algorithms starts early; writing their own now features in every year of the Australian Curriculum from Year 3 to Year 6.

Below: what an algorithm is, the three building blocks, flow charts and function machines, examples for home, the curriculum path and common slip-ups. Parents of children in roughly Years 2 to 7 will find it most useful.

What an algorithm actually is

An algorithm is a finite list of precise instructions that solves a problem or produces a result. Two things make it an algorithm rather than a vague hint:

  • Precision. Each step says exactly what to do. "Add some" is not a step; "add 4 to the number" is.
  • Reliability. Anyone who follows the steps carefully, with the same starting number, gets the same answer every time.

A pancake recipe is an everyday algorithm. The written methods your child meets at school are maths algorithms too. Column addition is a fixed routine (start with the ones, write the digit, carry any ten), and so is long division with its divide, multiply, subtract, bring down cycle.

What has changed in recent years is the emphasis. Children are no longer just asked to follow someone else's procedure. They are asked to design their own, test it, fix it when it breaks and explain the number patterns it produces. That shift is what the curriculum means when it says students "follow and create" algorithms.

The three building blocks: steps, decisions and loops

Almost every algorithm a primary child writes is put together from three pieces. Naming them helps children plan and helps you ask useful questions.

1. Sequence (steps in order). Instructions happen one after another, and order matters. "Put on socks, then shoes" works; swap them and it doesn't. In maths: "start at 3, add 5, write the answer" gives 8, while "write the answer, then add 5" makes no sense.

2. Decisions (branching). The algorithm asks a yes/no question and takes a different path depending on the answer. "Does the number end in 0 or 5? If yes, it is a multiple of 5. If no, it isn't." Decisions are what let one algorithm sort many different inputs.

3. Loops (repetition). A group of steps runs again and again until something tells it to stop. "Add 4. Write the number down. Is it bigger than 40? If no, go back and add 4 again. If yes, stop." Without a stopping rule a loop runs forever, which children find hilarious once they spot it.

Flow charts: an algorithm you can see

Primary classrooms often draw algorithms as flow charts, because the shape of each box tells you its job:

  • an oval marks Start and Stop
  • a rectangle holds an action, such as "multiply by 2"
  • a diamond holds a yes/no question, with two arrows leaving it
  • arrows show which box comes next

Here is a simple loop written as a flow chart in words. Start. Set the number to 0. Add 3. Write the number. Is the number 30 or more? No: return to "Add 3". Yes: Stop. Follow it and you write 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, the multiples of 3 up to 30, which links neatly to skip counting.

A flow chart that starts at 0, adds 3, writes the number, and loops until the number is 30 or more, then stops.
Start at 0, add 3, write the number, and loop until it is 30 or more, then stop.

Numbered steps, shuffled instruction cards or acting it out with a partner work just as well; clarity matters more than format.

Pattern-making algorithms

A big part of the curriculum work is using an algorithm to generate a list of numbers and then explaining the pattern that emerges.

Repeated addition. Start at 7 and keep adding 7: 7, 14, 21, 28, 35, 42. Children notice the ones digits cycle (7, 4, 1, 8, 5, 2...) and that this is exactly the seven times table. It is one reason the times tables guide talks about tables as patterns rather than isolated facts.

Doubling. Start at 1 and double each time: 1, 2, 4, 8, 16, 32, 64, 128. The numbers grow slowly at first and then very quickly. Halving runs it backwards. The doubling and halving guide shows how these chains become mental shortcuts.

Comparing two rules. A Year 6 favourite is to run two algorithms side by side from the same start. Begin with 1. Rule A adds 2 each time: 1, 3, 5, 7, 9, 11. Rule B multiplies by 2: 1, 2, 4, 8, 16, 32. After five steps Rule A has reached 11 while Rule B has reached 32. Children discover for themselves that repeated multiplying eventually races past repeated adding, an idea that returns in high school and in index notation.

Odd outputs. Start at 1 and add 2 forever and you only ever land on odd numbers. Asking "Why can this algorithm never give 10?" turns a list of numbers into real reasoning.

These are the same growing and repeating structures covered in the patterns guide; the algorithm is just the machine that produces them.

Decision algorithms: sorting numbers with yes/no questions

Algorithms that make decisions let children test any number they like.

Is it a multiple of 10, 5 or 2? A Year 3 child might write: "Look at the last digit. Is it 0? Yes: it is a multiple of 10, 5 and 2. No: is it 5? Yes: it is a multiple of 5 only. No: is it even? Yes: multiple of 2. No: none of these." Run it on 70, 45, 36 and 13 and you get four different branches. This is the beginning of the divisibility rules, which are themselves algorithms.

Is it a factor? A Year 5 version: "Divide the big number by the small number. Is there a remainder? No: the small number is a factor. Yes: it isn't." Testing 3 against 27 gives 9 with nothing left over, so 3 is a factor of 27. Testing 4 against 27 leaves 3 over, so 4 is not. Our factors and multiples guide and prime numbers guide build on exactly this check.

Sorting coins. Tip a handful of 5c and 10c coins on the table. Algorithm: "Pick up a coin. Is it a 10c? Put it in the left pile. If not, put it in the right pile. Repeat until the table is clear. Count the left pile by tens and the right pile by fives, then add." Seven 10c coins and six 5c coins give 70c and 30c, which is $1.00 altogether.

Function machines: input, rule, output

By Year 6 many classes use function machines: a box with a hidden rule. A number goes in, the rule is applied, and a new number comes out.

If the rule is "multiply by 3, then add 1":

  • input 2 gives 7
  • input 5 gives 16
  • input 10 gives 31

Children can play it forwards (apply the rule) and backwards (work out the rule from a few input/output pairs). Running it backwards means using the inverse steps in reverse order: from an output of 16, subtract 1 to get 15, then divide by 3 to get 5. Order matters here. Multiplying by 3 and then adding 1 is not the same as adding 1 and then multiplying by 3, which turns an input of 2 into 9 instead of 7. That observation links to order of operations and the way brackets remove ambiguity.

Function machines are a gentle step into algebra, where the rule eventually gets written as something like 3 × n + 1.

Worked examples to try together

1. Follow it. "Start at 50. Subtract 6. Write the number. Is it less than 10? If no, subtract 6 again." Your child should write 44, 38, 32, 26, 20, 14, 8 and stop at 8. Ask: "What do all the numbers have in common?" (Each one is 2 more than a multiple of 6.)

2. Fix it. Show this broken algorithm: "Start at 2. Add 2. Write the number. Go back to Add 2." Ask what goes wrong. (It never stops.) Then ask your child to add a stopping question, such as "Is the number 20? Yes: stop."

3. Spot the trick. The curriculum offers this algorithm for the three times table: "To multiply by 3, double the number and add one more of it." Try 3 × 6: double 6 is 12, add 6 more is 18. Try 3 × 9: double 9 is 18, add 9 is 27. Ask why it works. (Three lots is two lots plus one more lot.) Families who have read our number properties guide will recognise the splitting idea underneath.

4. Write the recipe. Ask your child to write an algorithm a younger sibling could follow to count by fives from 5 to 50. Then follow it exactly as written, deliberately misreading anything vague. Good-humoured literal reading is the fastest way to teach precision.

5. Race the rules. Starting at 3, compare "add 10" with "double". After four steps: add 10 gives 13, 23, 33, 43; double gives 6, 12, 24, 48. Doubling has just overtaken. Ask: "At which step did that happen?" (The fourth.)

6. A written method as an algorithm. Do 46 + 37 in columns and narrate each step as an instruction: add the ones, 6 + 7 = 13, write 3, carry 1 ten; add the tens, 4 + 3 + 1 = 8; answer 83.

Algorithms in the Australian Curriculum

Algorithms get their own content descriptions in v9 of the national maths framework, one in each year from Year 3 to Year 6:

  • Year 3: students follow and create algorithms involving a sequence of steps and decisions to investigate numbers, and describe any emerging patterns (AC9M3N07). The elaborations include doubling and halving patterns, deciding whether a number is a multiple of 2, 5 or 10, and sorting 5 cent and 10 cent coins. Exploring algorithms for repeated addition also appears in the elaborations for building the 3, 4, 5 and 10 multiplication facts (AC9M3A03). Official wording: AC Year 3. For the whole year, read what Year 3 maths covers.
  • Year 4: students follow and create algorithms that use addition or multiplication to generate sets of numbers and describe the patterns (AC9M4N09). Elaborations mention basic flow charts and a spreadsheet "fill down" that multiplies a column of numbers by 4. Curriculum source: AC Year 4; the broader picture is in our Year 4 maths overview.
  • Year 5: students create and use algorithms, with digital tools, to experiment with factors, multiples and divisibility (AC9M5N10). Elaborations include flow charts with yes/no branches and finding that the lowest common multiple of 6 and 9 is 18 while their highest common factor is 3. Check the AC Year 5 page, or browse the Year 5 maths essentials on Ziado.
  • Year 6: students create and use algorithms that apply rules to generate sets of numbers, and explain the patterns (AC9M6A03). Elaborations include function machines with inputs and outputs, and comparing a "add 2" rule with a "multiply by 2" rule. Details: AC Year 6, plus everything in Year 6 maths for context.

Schools choose when in the year to teach this, and some cover it inside Digital Technologies lessons as well. Victoria's curriculum closely follows the national one. Calculators or spreadsheets may appear, but the maths goal stays the same: precise steps and an explained pattern.

Slip-ups teachers see often

Vague steps. "Do the adding bit, then finish." Ask: "Could someone who has never met this problem follow your instructions?" If not, it needs more detail.

Steps in the wrong order. Writing the answer before calculating it, or checking whether to stop before doing the step. Acting the algorithm out with a partner makes order problems obvious.

Loops with no exit. A repeat with no stopping question, or a stopping question that can never be true, such as "stop when the number equals 25" while counting up in twos from 0 (25 never appears). Ask your child to predict where the loop will end before running it.

One-sided decisions. A diamond with only a "yes" arrow. Every yes/no question needs both paths.

Testing only one number. An algorithm that works for 12 may fail for 7. Encourage testing with at least three very different inputs, including an awkward one.

Listing without noticing. Generating 4, 8, 12, 16, 20 but saying nothing about it. The curriculum asks children to describe emerging patterns, so prompt with: "What do you notice? What would come next? Why?"

Games and habits for home

  • Robot parent. Your child gives you step-by-step instructions to make a sandwich or walk to the letterbox, and you follow them exactly.
  • Kitchen algorithms. Next time you cook, ask your child to read the recipe and spot the steps, any decisions ("if the mixture is too thick, add milk") and any loops ("stir until smooth").
  • Number chains in the car. Pick a start and a rule ("start at 4, add 9") and take turns saying the next number, then swap to "double".
  • Shopping checks. Write a three-step algorithm for checking change, then use it at the shops. The money maths guide has more ideas for real-world practice.

If maths is a source of stress, try the maths anxiety page or the homework without tears routines, and the mental maths strategies guide covers the quick calculations that make pattern spotting easier.

When to look a bit closer

Early attempts at writing algorithms are almost always messy, and that's fine. It could be worth checking further if, around Years 4 to 6, your child:

  • can't continue a simple add-the-same-amount pattern like 5, 10, 15, 20
  • needs to count from one to add small numbers, so every step of an algorithm takes a long time
  • finds following a short list of instructions in order very hard, in maths and elsewhere
  • has trouble explaining even one feature of a pattern after seeing it written out

These are more often signs of shaky number facts or working-memory strain than a problem with algorithms in particular. Ziado's pages on spotting a child falling behind in maths and maths concerns that need attention can help you weigh things up, and the class teacher is well placed to say how things look at school.

FAQ

What is an algorithm in maths for kids?

A step-by-step set of instructions that always gives the right result when followed exactly. Recipes, written methods like column addition, and flow charts that sort numbers are all algorithms.

Is this the same as coding?

Related but not the same. Coding is one way to give an algorithm to a computer. In primary maths, algorithms are mostly written as steps or flow charts on paper and tested by people.

What year do children learn algorithms in Australia?

The v9 maths curriculum names them in Year 3 (AC9M3N07), Year 4 (AC9M4N09), Year 5 (AC9M5N10) and Year 6 (AC9M6A03).

What is a flow chart in maths?

A diagram of an algorithm. Ovals mark the start and end, rectangles hold actions, diamonds hold yes/no questions, and arrows show the order.

Try this tonight

Write "Start at 1. Multiply by 2. Write the number. Is it bigger than 100? If no, go back to Multiply by 2. If yes, stop." on a scrap of paper and hand it over. Your child should list 2, 4, 8, 16, 32, 64, 128 and stop at 128. Then ask them to change one step so the algorithm produces a different list, and predict the new numbers before testing.

To see how the number skills underneath these patterns are going overall, Ziado's free check runs for around ten minutes in any web browser on a phone, tablet or computer. There's no app to install and no card details are needed before your child begins, and when they finish you'll get an early picture of their strengths and the next things to work on. The maths check spans Foundation to Level 6 and looks at number skills rather than flow charts, and it isn't designed to forecast NAPLAN or to diagnose. How Ziado supports everyday practice is described on the maths page, while the pricing page explains the available plans if you decide to continue.

Curious how the number skills behind these patterns are tracking?

Ziado's free check is a one-off, roughly 10-minute adaptive diagnostic with partial results only - no account, no card. The full placement unlocks after signup.

Start the free maths check

Parent guides

Explore our topics

Learning At Home

Practical, parent-friendly reads on learning at home.

View articles

Maths Help

Practical, parent-friendly reads on maths help.

View articles

Reading Help

Practical, parent-friendly reads on reading help.

View articles

Recent articles

Questions about your child's learning?

Send us a note - we're a small Australian team and we genuinely read every message.

Start the free maths check