Koding Kids

Home › Blog · Lire en français

Does coding help with math? What the research says

By Kawthar Bouachrine ·

Yes, coding helps with math for specific skills: logic, coordinates and variables. Research also shows the effect does not happen on its own, does not reliably raise grades, and depends mostly on whether the teacher connects coding to math.

Does coding help with math, according to research?

The broadest answer comes from a team led by the University of Oslo, who pulled together 105 studies and 539 results on students learning to code. Learning to code went hand in hand with a medium-sized gain in skills other than coding, and math was among the areas with the clearest gains, alongside reasoning, creative thinking and spatial skills.

The same researchers add two limits. The gains are smaller in the strictest studies, where the comparison group also does a demanding activity. And the jump from code to math does not happen by itself: it has to be taught and practised on purpose, with enough time and trained teachers.

Why do some studies find no effect on math grades?

In England, the ScratchMaths program was tested in 110 schools with 6,232 pupils aged 9 to 11, with schools assigned at random. The Education Endowment Foundation reported that pupils improved in computational thinking, but there was no evidence of an effect on their national math test at the end of primary school. It did not lower their math results either.

A study published in December 2022 in the journal Learning and Instruction went further. Some fourth- and fifth-grade classes worked on division, number decomposition and fractions with Scratch; others used regular math activities. The Scratch classes made slightly less progress on those three topics.

Put together, these studies give parents a clear message: swapping a math lesson for a coding lesson will not raise math scores. Coding builds other skills, and those skills can help in math when someone connects the two.

Which math ideas does coding make concrete?

Three ideas show up in almost every kid's project, from Scratch to Python.

There is also a habit math teachers love: hunting for the mistake. A program that does not work gets fixed step by step, checking each line. That is exactly what we want from a student checking a calculation.

Does my child need to be good at math to learn to code?

No. A University of Washington study published in Scientific Reports in 2020 followed about thirty adults learning Python for the first time. Numeracy explained only about 2% of the differences between them. Language aptitude, reasoning and working memory mattered far more.

These were adults, and the study was small. Still, it is enough to drop a common belief: a child who says they are "bad at math" may well enjoy coding and find another way into logic.

How can you tell if a coding class helps with math?

Since the effect depends on teaching, here are four simple questions to ask a school or a teacher:

  1. Does the teacher name the math idea when it shows up ("here you are using a variable", "here you are working out an angle")?
  2. Do kids explain out loud why their program works, or do they copy blocks?
  3. Is the class regular, across the whole year, rather than a one-off workshop?
  4. Are mistakes treated as a normal step, fixed together?

At home, one habit is enough: ask your child to show you their latest project and explain what each part does. If they say "the variable goes up by one every time I touch the star", they are doing math, whether they know it or not.

What about Koding Kids?

Since 2017, Koding Kids has taught more than 1,000 children aged 7 to 18, live, online and in small groups, in French or in English. The program moves up one level a year, from Scratch to Python, and mathematical logic (variables, coordinates, loops) is part of the curriculum. We are not a math tutoring service, and we do not promise better grades: the studies above show that no honest coding class can promise that.

My view, after years of teaching kids to code: coding helps with math when someone takes the time to connect what a child builds with what they see at school. Without that link, they learn to code, which is already a lot. With it, they also see why math is useful.

If you are choosing a first language, read Scratch vs Python for kids: which language should your child learn first?. For AI, see how to explain AI to kids.

Sources: R. Scherer, F. Siddiq and B. Sánchez-Scherer, "Some Evidence on the Cognitive Benefits of Learning to Code", Frontiers in Psychology, 9 September 2021 (pmc.ncbi.nlm.nih.gov); Education Endowment Foundation, "ScratchMaths", trial completed December 2018 (educationendowmentfoundation.org.uk); M. Laurent et al., "Impact of programming on primary mathematics learning", Learning and Instruction, December 2022 (abstract, and summary on Slashdot, 11 September 2022); Futura, 1 December 2020, on C. Prat et al., Scientific Reports, 2020 (futura-sciences.com, in French). Pages accessed 22 November 2026.

Frequently asked questions

Does coding help with math at age 7?

The two classroom trials cited here involve children aged 9 to 11. At 7, Scratch already has kids working with positions, repetition and changing quantities, but none of the studies opened here measures an effect on grades at that age.

Can coding replace math tutoring?

No. A 2022 study found that replacing math activities with Scratch led to slightly less progress on the topics taught. Coding is best added on top of math.

My child doesn't like math. Can they still learn to code?

Yes. In adult beginners, numeracy explained only about 2% of the differences in learning Python. Reasoning, language aptitude and working memory mattered more.

Which math ideas show up in coding?

Mostly coordinates, variables, angles and repetition. The teacher needs to name these ideas so the child links them to school math.

Is your child between 7 and 18? They can learn to code and understand AI, live, online and in small groups, with classes in English or French.

Enrol my child