Hong Kong · Guide · Ages 3 to 16

What age should my child start coding?

There is no single right birthday. A four-year-old can learn that order matters by arranging picture cards, a seven-year-old can snap blocks together, and most children can write real typed code once reading and typing stop being a struggle. This guide sets those stages against the Hong Kong school years, from K1 to S6, so you can see what school will cover, what it leaves to families, and where a few lessons at home would actually help.

Teaching since 2020 · 10,000+ students worldwide · Hong Kong lessons from age 6, one to one, live online in English

The short answer

Most children can start coding at 5 to 7 with picture blocks (ScratchJr is built for ages 5 to 7), move to Scratch at about 8, and to typed Python when reading and typing are easy, often 9 to 11. Hong Kong schools add formal coding at P4. Before five, play matters more than screens. Modern Age Coders teaches children from 6, live online, one to one, in English, at times that suit Hong Kong families.

Where to begin

Which course fits which age?

Three first courses, one for each stage of the guide below. A mentor checks the level in the free first class and can move a child up or down.

The answer by stage

What age should a child start coding in Hong Kong?

Think in stages, not birthdays. Each stage below lines up with Hong Kong school years and with what the main tools say about their own age range.

Coding stages by age and Hong Kong school year (our guide, tool ages from their makers)
AgeSchool yearWhat fitsWhat school offers
3 to 5K1 to K3Play: sorting, sequencing, giving and following directions; no lessons neededKindergarten play; no coding subject
5 to 7K3 to P2Picture blocks (ScratchJr is made for ages 5 to 7); short sessions with an adultVaries by school; nothing required
8 to 10P3 to P5Scratch (designed mainly for 8 to 16); games, stories, loops and eventsFormal coding begins at P4 in most schools
9 to 12P4 to P6First typed language, usually Python, once typing is comfortable10 to 14 hours of coding a year at each of P4, P5 and P6
12 to 15S1 to S3Python in depth; C++ for contest-minded students; how AI works10 to 14 hours of AI learning across junior secondary
15 to 18S4 to S6Exam languages (Python, C++), projects, or a fresh startDSE ICT for those who choose it as an elective

Sources: EDB, Hong Kong Education at a Glance (kindergarten ages); EDB circular EDBCM 109/2023 (coding hours at upper primary and AI hours at junior secondary); ScratchJr, About page; Scratch Team, information for parents. The “What fits” column is our own teaching view, not an official standard. All read 23 November 2026.

Why stages beat a fixed age

Two eight-year-olds can be years apart in reading, patience and fine motor control. A child who reads English comfortably can use Scratch blocks at seven; a child still decoding words may need picture blocks a little longer. Neither is behind.

The useful question is which stage your child is at now. The readiness signs further down this page help you decide without a test.

What usually decides the move

From picture blocks to Scratch: reading short labels like “repeat” or “when clicked” without help.

From Scratch to Python: typing a line without searching for every key, and caring about exact spelling. A child who finds a missing bracket frustrating but fixable is ready; one who finds it upsetting may need a few more months of blocks.

What school teaches

When does coding start at Hong Kong schools?

At upper primary. The Education Bureau asks publicly funded schools for 10 to 14 hours of coding at each of P4, P5 and P6, then 10 to 14 hours of AI learning at junior secondary. Before P4, any coding is up to the school.

Coding and AI in the Hong Kong school years, from EDB documents
StageWhat EDB documents saySource
Kindergarten“Kindergarten education in Hong Kong is for children from three to six years old.”EDB, Education at a Glance
Primary One, September 2027A child must reach 5 years 8 months on entry (born on or before 31 December 2021)EDB, P1 admission information note
School by law“Parents are required by law to send their children aged six or above to school.”EDB, P1 admission information note
P1 to P3Everyday activities that build the ideas, to prepare for coding “at a later stage”CDC coding supplement, 2020
P4 to P6“10 to 14 hours of enriched coding education for all upper primary students at each level every year”EDBCM 109/2023
S1 to S310 to 14 hours of AI learning at junior secondary, in Technology EducationEDBCM 109/2023
S4 to S6ICT is an elective; its programming languages are Python and C++EDB, ICT Curriculum and Assessment Guide

Sources: EDB, Hong Kong Education at a Glance; EDB, Primary One Admission information note for September 2027; Curriculum Development Council, Computational Thinking: Coding Education, Supplement to the Primary Curriculum (2020); EDB circular memorandum 109/2023 (19 June 2023); EDB, ICT Curriculum and Assessment Guide (S4 to 6), 2021. Read 23 November 2026.

What the P4 to P6 hours look like

The supplement suggests one lesson a week of 35 or 40 minutes at each upper primary level, or a block of double lessons in one term. Across a year that is 10 to 14 hours: enough to meet sequence, loops, conditions and a little hardware, not enough to become fluent.

The Jockey Club's CoolThink programme, whose materials EDB adapted, describes its own offer as “14+ hours of computational thinking and coding education in formal ICT lessons annually to P4-6 students”.

What the supplement says coding is for

Plainly, that the aim at upper primary “is not to train and nurture computer programmers”: it is hands-on problem solving. That is a sensible aim for school, and a useful reminder at home that an eight-year-old does not need a career plan.

For lower primary, it points to everyday life: “Most regulations in the games, sports and music activities have already involved the concepts of sequence and condition in computational thinking.”

A new primary curriculum framework for information technology is being introduced from the 2026/27 school year, with a pilot AI strand that schools may trial; the year-by-year detail for every school has not been fixed in the EDB documents we read. For a full picture of what Hong Kong children learn about AI, see our AI course for kids in Hong Kong page.

Very young children

Is five too young to start coding?

Not for the ideas; often yes for screens and formal lessons. A five-year-old can learn sequence and repetition through games and picture blocks. A weekly screen lesson is rarely the right way to do it.

What the kindergarten guide says

EDB's Kindergarten Education Curriculum Guide (2017) puts play first: “Play is an effective way of learning that best suits the developmental characteristics of children.” On technology it is careful: “IT cannot take the place of learning activities or play”.

That matches what we see. The thinking behind coding (do this, then this; repeat; if this, then that) grows well in board games, songs with repeated verses, cooking with a recipe and treasure hunts with written clues.

What the tool makers say

ScratchJr, from the team behind Scratch, describes itself as a language that “enables young children (ages 5-7) to create their own interactive stories and games”. It uses picture blocks, so a child does not need to read.

Scratch itself is pitched older. Its parents' page says: “While Scratch is primarily designed for 8 to 16 year olds, it is also used by people of all ages, including younger children with their parents.” Note the last four words: young children use it most safely with an adult beside them.

  1. Under 5. Skip lessons. Play sequencing games, follow and give directions (“three steps forward, turn left”), sort toys by a rule.
  2. 5 to 6. Try picture blocks together for short sessions. Stop while it is still fun. If you want a teacher, look for one who keeps lessons short and active.
  3. 6 to 7. One-to-one lessons can start if the child enjoys it. Ours run with a mentor who changes activity often and keeps the parent close by for the first weeks.
  4. 7 and up. Scratch with growing independence; reading block labels is the signal.

Sources: EDB, Kindergarten Education Curriculum Guide (2017); ScratchJr, About page; Scratch Team, information for parents. Read 23 November 2026. The numbered steps are our own advice.

Blocks or typing

When should my child move from Scratch to Python?

When typing is no longer the hard part. Python itself is not harder to think in than Scratch; what changes is that every bracket, colon and capital letter matters. Children who type easily usually cope from about 9 to 11.

Signs for the move from blocks to typed code (our checklist)
SignReadyNot yet
TypingTypes a short sentence without looking for each keyHunts for most letters
Reading errorsReads a short English message and acts on itIgnores or fears red text
Scratch habitsUses variables and repeat-until loops unpromptedMostly uses motion blocks
Patience with detailChecks spelling when something failsWants it to work without checking
Own ideasAsks for things blocks cannot easily doStill finding new blocks

Our own checklist from teaching children one to one. Three or more signs in the “Ready” column usually means Python will feel like progress rather than punishment.

Why not start with Python at six?

Some six-year-olds can copy typed code. Few can fix it when one character is wrong, and fixing is where the learning happens. Blocks remove spelling errors, so a young child spends lesson time on the idea, not the keyboard.

Scratch is free and runs in a browser. There is nothing to lose by starting there; we look at the pros and cons in more depth on our Scratch classes for kids page.

Why not stay with blocks for ever?

Blocks hide the text that real programs are made of. Hong Kong's secondary exams and contests use text languages: the HKDSE ICT guide lists Python and C++, and the primary informatics contest (HKPSOI) uses Blockly precisely because it is “suitable to primary students”.

A child who has outgrown blocks shows it by asking for things blocks make awkward: saving scores, reading a file, longer programs. That is the moment, whatever the age.

One task, three ages

What does coding look like at 6, at 9 and at 13?

The same small problem, solved the way a child at each stage would meet it: first as steps to act out, then as a loop that knows when to stop, then as a rule checked against the loop. The idea grows; the problem does not change.

The frog that hops three stonesPython
# One small task written three ways, for three stages. Our own example.
# A frog hops 3 stones at a time along stones 0 to 20. Where does it land?

# Stage 1 (about 5 to 7): steps a child could act out on the floor
steps = ["hop", "hop", "hop", "hop", "hop", "hop"]
stone = 0
for step in steps:
    stone = stone + 3
print("Stage 1, six hops acted out, frog ends on stone", stone)

# Stage 2 (about 8 to 11): a loop with a stop rule
landed = []
stone = 0
while stone <= 20:
    landed.append(stone)
    stone = stone + 3
print("Stage 2, loop until past 20:", landed)

# Stage 3 (about 12 and up): a rule, tested against the loop
def lands_on(n, hop=3):
    return n % hop == 0

by_rule = [n for n in range(21) if lands_on(n)]
print("Stage 3, remainder rule:   ", by_rule)
print("Lands on 20?", lands_on(20), "| lands on 18?", lands_on(18))
print("Loop and rule agree:", by_rule == landed)

Our own example, written for this page. A six-year-old does stage 1 on the floor or with picture blocks, not in Python; we show all three stages as Python so you can run them side by side. The output panel shows what Python 3 printed when we ran it.

OutputOutput
Stage 1, six hops acted out, frog ends on stone 18
Stage 2, loop until past 20: [0, 3, 6, 9, 12, 15, 18]
Stage 3, remainder rule:    [0, 3, 6, 9, 12, 15, 18]
Lands on 20? False | lands on 18? True
Loop and rule agree: True

Stage 1 counts hops one by one and ends on 18. Stage 2 lists every landing stone and stops itself before passing 20. Stage 3 finds a rule (a stone is a landing stone if dividing by 3 leaves no remainder) and checks that the rule gives exactly the same list as the loop.

At 6: order and repetition

The child hops and counts aloud. The lesson is that six identical steps can be described as “hop, six times”. That is the first idea of a loop, met with the body before a screen.

At 9: knowing when to stop

The loop must stop on its own. Children at this stage meet their first endless loop and learn why the stop rule matters. In Scratch this is the repeat-until block.

At 13: a rule and a test

The teenager spots that landing stones are multiples of three, writes it as a remainder rule, and proves the rule right by comparing it with the slow method. That habit (check a clever answer against a simple one) lasts a lifetime.

  1. Try it at 6. Chalk stones on the floor numbered 0 to 20. Hop three at a time and say each number.
  2. Try it at 9. Change the hop to 4. Before running it, predict the list. Does the frog land on 20?
  3. Try it at 13. Start the frog on stone 1 instead of 0. Which rule now gives the landing stones, and does it still agree with the loop?

Starting later

Is it too late to start coding at 12, 14 or 16?

No. Older beginners move faster, because reading, typing and abstract thinking are already in place. A motivated fourteen-year-old can often cover in months what takes a younger child a couple of years.

Contests start at secondary

Hong Kong's informatics olympiad is a secondary-school event: its rules say “The competition is open strictly to registered day secondary schools in Hong Kong”. A child who starts typed code at 12 has time to prepare for it; our HKOI Junior Group page explains who may enter.

Primary pupils have their own contest, HKPSOI, which uses Blockly blocks; it is a pleasant goal, not a requirement.

Exams come later still

HKDSE ICT is chosen in senior secondary and taught from S4. A student who starts Python at 14 or 15 reaches it with the basics in place. If that is your child, our page on DSE ICT programming in Python shows what the exam expects.

Adults start too. The youngest learner we teach is six; the oldest have been in their sixties.

AI and age

What age can a child start learning AI?

Ideas about AI can come early; AI tools come later, because their makers set minimum ages. Hong Kong schools add an AI module at junior secondary.

Two well-known AI chatbots: their makers' age terms and Hong Kong availability
ToolMinimum age in its termsOffered in Hong Kong by its maker?
ChatGPT (OpenAI)13, and a parent's or guardian's permission under 18No: Hong Kong is not on OpenAI's list of supported countries and territories
Claude (Anthropic)18, or higher where local law requiresNo: Hong Kong is not on Anthropic's list of supported regions

Sources: our AI tool age audit, which quotes each vendor's own terms (see the full AI tools age guide); OpenAI Help Center, supported countries and territories; Anthropic, Supported Regions Policy; both lists read 23 November 2026. School AI hours: EDB circular memorandum 109/2023.

We name these two only so parents know where they stand; we do not use them in Hong Kong lessons, and we never suggest ways around a maker's country list. Children can learn how AI works without any chatbot: that it learns from examples, that it can be confidently wrong, and that a person must check it. Where a tool is used, it is one offered in Hong Kong or provided by the learner's school. Our guide to thinking with AI instead of copying it explains the approach for older children.

Readiness signs

How do I know my child is ready for coding lessons?

Five signs we look for in a free first class. None needs a test, and a child who shows two or three is usually ready to begin.

  1. Enjoys puzzles with rules. Mazes, building toys with instructions, card games with turns.
  2. Can sit with one task for 15 to 20 minutes. Our younger lessons change activity often, but each piece needs that much focus.
  3. Asks how things work. Why the lift knows which floor; how a game remembers a score.
  4. Recovers from mistakes. Coding is mostly fixing. A child who can laugh at a bug is ready; tears are fine at first, and fade.
  5. Understands spoken English well enough to follow a game. Our lessons are in English; fluent reading is not needed for blocks.

If your child is not ready yet

Wait three to six months and keep playing the games above. Starting later costs nothing; starting too early can make a child decide coding is “not for me”.

For a wider, non-Hong Kong view of the same question, see our article on the age to start coding and our coding milestones by age.

How our first class checks it

The mentor plays a short sequencing game, then a block task, then (for older children) a few lines of typed code. Within the class it is usually clear which stage fits.

You get a plain recommendation afterwards, including “wait a few months” if that is the honest answer.

Practical details

Are online lessons in English right for a young Hong Kong child?

For most children who use English at school or at home, yes, and the coding words are English anyway. Lessons are live and one to one, so the mentor slows down whenever needed.

Lesson times on both clocks: examples for younger children
Hong Kong timeIndia timeOften suits
4:30 pm, weekday2:00 pmAfter school, before homework
6:00 pm, weekday3:30 pmAfter an activity, before dinner
10:00 am, Saturday7:30 amA fresh weekend morning

Hong Kong is on UTC+8 and India on UTC+5:30 all year; neither uses summer time, so Hong Kong is always 2 hours 30 minutes ahead. The rows are our own conversions, given as examples.

Short, live and one to one

A six-year-old cannot be taught well in a crowd on a screen. In Hong Kong we only teach one to one, so the mentor sees at once when attention drifts and changes the activity. See how a lesson runs on our online coding classes for kids in Hong Kong page.

Taught in English

Every lesson is in English, with new words typed into the chat. We do not teach in Cantonese or Mandarin. Many Hong Kong parents value the daily English practice; more on that in coding classes taught in English.

A path by age

What might the first years of coding look like?

Our own sketch of a path for a child who starts at 6 and keeps going. Children move faster or slower; the order matters more than the ages.

A coding path from 6 to 15 (our sketch, not an official standard)
Around ageWorking onA typical project
6 to 7Sequence and repetition with blocksA character that walks, jumps and says hello
8 to 9Events, loops and variables in ScratchA catch game with a score
9 to 10Lists and conditions; first typed linesA times-table quiz in Python
10 to 12Functions and files in PythonA word game that saves high scores
12 to 14Algorithms; how AI learns from dataA simple classifier trained on their own examples
14 to 15Exam or contest languagesPractice tasks for HKOI or DSE ICT

For children

Finish small things. A tiny game that works beats a big one that does not.

Show someone at home what you made each week.

For parents

Ask what broke this week and how it was fixed. That question teaches more than praise.

Pause if the fun stops. A month off is not a failure.

More courses

Nine more courses, grouped by age

All live online and in English; in Hong Kong every one is taught one to one.

I

Younger children

About 6 to 9

WAS / YOUNG / 01

Coding for Kids with Blocks

From first blocks to small games and apps.

Open the syllabus

WAS / YOUNG / 02

Minecraft Coding for Kids

Loops and logic in a world they already love.

Open the syllabus

WAS / YOUNG / 03

Vibe Coding for Kids

Describe a game, build it, then test it properly.

Open the syllabus
II

Older children

About 9 to 12

WAS / OLDER / 01

Roblox Game Coding

Typed Luau inside a game they play.

Open the syllabus

WAS / OLDER / 02

AI Literacy for Kids

How AI learns, and when not to trust it.

Open the syllabus

WAS / OLDER / 03

Maths Through Coding

Number patterns and puzzles in Python.

Open the syllabus
III

Teenagers

13 to 18

WAS / TEEN / 01

C++ for Teens

The main language of informatics contests.

Open the syllabus

WAS / TEEN / 02

AI and Machine Learning for Teens

Models in Python, within tool age rules.

Open the syllabus

WAS / TEEN / 03

Competitive Programming

Algorithms against the clock, step by step.

Open the syllabus

How lessons run

When are lessons, and how are they shaped for each age?

Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. Younger children get shorter activities inside each lesson; the mentor teaches live from India, two and a half hours behind Hong Kong.

After school

Hong Kong 4:30 pm is 2 pm for the mentor.

Early evening

Hong Kong 6 pm matches 3:30 pm in India.

Weekend mornings

Saturday 10 am Hong Kong is 7:30 am in India.

Pace by age

Short bursts for six-year-olds, longer builds for teenagers.

Parent nearby

For the youngest, an adult close by in the first weeks.

Blocks or text

The mentor picks the tool that fits the stage.

Plain English

Slow, clear speech, with new words written in the chat.

Projects kept

Every game and program stays with the child.

Move up any time

From blocks to Python when the signs are there.

Student work

Made by children in our courses

Projects from learners who started at different ages. More are in the student labs.

NutriLife AI nutrition coach project screenshot

AI and ML

NutriLife

An AI nutrition coach that reads what you eat and works you toward a target.

by Bhavya · Open it

Misti AI chatbot for maths and coding screenshot

AI and ML

Misti

A chatbot that answers mathematics and programming questions, built and deployed by a student.

by Harshit · Open it

GuardianX AI internet safety assistant screenshot

AI and ML

GuardianX

An assistant that helps a young person recognise unsafe situations online.

by Vivaan · Open it

SkyCast weather forecast application screenshot

Web app

SkyCast

A weather forecasting site with live conditions for any location.

by Krish

Fees

Fees for Hong Kong families

The fee is the same whatever your child's age: a monthly amount in Hong Kong dollars, paid a month at a time, never as a term or package in advance. Card and wallet payments carry a gateway charge, which appears on the payment screen before you confirm.

Free first class

Free

no card required

  • A free first class, one to one
  • A readiness and level check
  • An honest view, even if it is wait
Book it

One to one

$1,200 HKD

a month, eight live classes

  • Eight live classes a month
  • A mentor matched to your child's stage
  • Times that suit your family
Start here

What families say

Rated 4.9 across 547 Google reviews

What parents of younger and older learners have written about us on Google.

★★★★★

"The one step solution for my son. Modern Age Coders make learning coding so simple that kids love it. The teachers explain complex concepts clearly with practical exercises and interactive content."

Ria Mukherjee

Parent

★★★★★

"Modern Age Coders has been a game-changer for me. I struggled to grasp IT concepts and coding before joining, but their classes transformed everything. I can now confidently write complex programs with ease."

Samriddha Mondal

Student

★★★★★

"One of the most wonderful education centres out there. Education is not limited to school syllabus but focuses on skill development."

Vansh Agarwal

Student

★★★★★

"My child Dhairya is really enjoying the Modern Age Coders classes. This is his first online class and he eagerly looks forward to it. I can already see his improvement, and the teachers are very cooperative."

Sonam Oswal

Parent of Dhairya

★★★★★

"Modern Age Coders have wonderful teachers who teach in a clear, easy and practical way. The teacher boosts students' confidence and inspires them to learn without hesitation."

Sonu Goyal

Parent

★★★★★

"I highly recommend this computer coding class! The teachers are incredibly knowledgeable and passionate about coding."

Ritu Kedia

Parent

Questions parents ask

Starting age: questions and answers

What is the best age to start coding?

There is no single age. Most children can use picture blocks at 5 to 7, Scratch from about 8, and typed Python once reading and typing are easy, often 9 to 11. Readiness signs matter more than the birthday.

Can a 5-year-old learn coding?

The ideas, yes, mostly through play: sequencing games, directions, patterns. ScratchJr is designed for ages 5 to 7. We start one-to-one lessons at 6, and for five-year-olds we usually suggest play at home first.

When do Hong Kong schools start teaching coding?

Formally at upper primary. EDB asks publicly funded schools for 10 to 14 hours of coding at each of P4, P5 and P6, and 10 to 14 hours of AI learning at junior secondary. Earlier coding depends on the school.

Should my child learn Scratch or Python first?

Scratch first for most children under 9 or 10, because blocks remove spelling errors and let the child focus on the idea. Move to Python when typing is comfortable and the child wants to build things blocks make awkward.

Is 12 or 14 too late to start?

No. Older beginners usually move faster, because reading, typing and abstract thinking are in place. Hong Kong's HKOI is a secondary-school contest and DSE ICT is taught from S4, so there is plenty of time.

Can my child use ChatGPT for coding?

OpenAI does not list Hong Kong among its supported countries and territories, and its terms set 13 as the minimum age with a parent's permission under 18. We do not use it in Hong Kong lessons; we teach how AI works with tools offered in Hong Kong or provided by the child's school.

How long are lessons for young children?

Each lesson is a normal length, but for younger children the mentor splits it into short activities of a few minutes each, with movement and talk between them. A parent nearby helps in the first weeks.

Does my child need to read English well?

Not for block coding: understanding spoken English well enough to follow a game is enough. For typed code, reading short error messages helps, and the lessons build that steadily.

When are classes held?

Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. A 4:30 pm lesson in Hong Kong is 2 pm in India, where the mentor is.

How do I find out whether my child is ready?

Book the free first class. The mentor tries a short game, a block task and, for older children, some typed code, then tells you which stage fits, including if waiting a few months would be better.

Related

Where to read next

Pages for the questions that usually follow this one.

Coding classes in Hong Kong

Every course we offer Hong Kong families, by age.

Online coding for kids

How a live one-to-one lesson runs from home.

AI course for kids

What children can learn about AI, and when.

Coding milestones by age

A year-by-year view, not tied to one country.

AI tools age guide

Each tool's minimum age, from its own terms.

Free or priority demo

Two ways to try a first class.

More pages for Hong Kong

Part of the guide: Every Hong Kong page

More guides: Coding and AI classes in Hong Kong · 中文:英文授課編程課程 · Start here: Online coding for kids · AI, vibe coding and AI agents: AI agents course · Coding subjects and courses: App development · By age and school level: Adults · HKDSE ICT and maths: DSE ICT elective guide · IB, IGCSE, A-level and SAT: A level Computer Science tutor · Olympiads and competitions: AMC 10 preparation · School holidays: AI summer course · Districts and areas: Causeway Bay

Start here

Not sure yet? Let a mentor see

The free first class doubles as a readiness check: a game, a block task and, for older children, a few typed lines. You leave with a clear stage and course, or a suggestion to wait.

Prefer to read first? Browse the course list or how we teach.

WhatsApp us · +91 91233 66161 · connect@modernagecoders.com

Lessons are live online, one to one, in English, with mentors based in India. Questions about age are welcome on WhatsApp.

Free, no card, no commitment.

Want a class sooner? Book a priority demo

A priority demo is a full class of about 45 to 60 minutes. After the class the mentor sends a written skill report and a personal learning roadmap on WhatsApp. If you enrol, the demo fee is adjusted against your first month's fee. Share your demo Order ID with us on WhatsApp and we take it off.

Book a priority demo

Keep exploring Modern Age Coders

Related courses and guides

Learn more

Free resources

From the blog

Start here

Free classPriority demoCall us