Hong Kong · Primary 1 to Primary 6 · Coding and early AI

Coding for primary students in Hong Kong

A P1 child and a P6 child are almost different species when it comes to code. One is still learning to read instructions; the other can plan a small program, test it and explain why it broke. We teach Hong Kong primary children one to one, live and in English, and we start from the year your child is in, not from page one of a textbook.

Teaching since 2020 · 10,000+ students worldwide · Hong Kong primary children learn one to one, live, in English

The short answer

Coding for primary students in Hong Kong works best when it follows the school year. Modern Age Coders teaches P1 to P6 children live online, one to one and in English, with each child paired to a mentor in India and lessons set at an hour that suits the family in Hong Kong. P1 to P3 children begin with Scratch, where blocks click together into games, because their school timetable usually has no coding yet. P4 to P6 children, who now get 10 to 14 hours of coding a year at local schools, go further: longer projects, debugging and, by P5 or P6, typed Python. The first class is free.

Courses first

Which coding course should a primary student start with?

These three cover nearly every Hong Kong primary child we meet. The mentor picks the entry point after the free class, because a strong P3 reader and a hesitant P5 child may need the same first step.

Primary 1 to Primary 6

What does a Hong Kong primary student learn about coding in each school year?

Less in the first three years than parents often expect, and a steady amount in the last three. The Education Bureau's coding guidance is written for upper primary; the newer AI strand reaches down to P2. Here is each year with the EDB's own enrolment figures beside it.

Hong Kong primary years: pupils, usual age and what EDB guidance describes
YearPupils, September 2025Largest age groupWhat EDB guidance describes for this year
P149,7236 or underNo coding hours set; computational ideas met through games and daily life
P250,1217Pilot AI strand: spotting AI in everyday life, by demonstration
P352,6508Pilot AI strand: telling AI apart from ordinary IT
P454,7009Coding module: abstraction, algorithm, automation; 10 to 14 hours a year
P555,22310Coding module, second level; 10 to 14 hours; IA results begin to count for SSPA
P654,81611Coding module, third level: projects that solve real-life problems; SSPA year

Pupil numbers: EDB, Student Enrolment Statistics 2025/26, "Student Enrolment in Primary Schools by Grade, Sex and Age, 2025" (figures as at mid-September 2025; the age column is the largest single-age group in each grade). Coding hours: EDB, Computational Thinking: Coding Education supplement (2020) and EDBCM No. 109/2023. P4, P5 and P6 modules: EDBCM No. 109/2023, 32/2024 and 152/2024. AI strand: EDB pilot primary AI strand (2026, Chinese edition). SSPA: EDB SSPA 2027 briefing. All read 23 November 2026. The right-hand column is our summary.

Reading the table

The numbers are about 50,000 to 55,000 children in each year group, which tells you something useful: whatever your child is doing at school, tens of thousands of others are doing the same unit in the same term. A one-to-one class is where your child can do something different.

The ages are a guide only. The EDB counts by age within each grade, and most P4 pupils are 9, but every grade has a spread. We place children by what they can do, not by the number on their birthday cake.

International schools

If your child is at an international school, P1 roughly matches Year 2 in British-style schools or Grade 1 in American-style ones, and the Hong Kong coding modules may not apply at all. Each school follows its own curriculum, so ask the class teacher what computing looks like this year.

The table is still useful as a yardstick: by the end of P6, a child at a local school has typically spent three years meeting loops, conditions and small projects in class.

P1 to P3, then P4 to P6

Why does coding at a Hong Kong primary school start in P4?

Because the EDB's coding guidance is written for key stage 2, which is P4 to P6. Its own heading says so: "Learning Elements (Applicable to Key Stage 2)". Younger pupils are not ignored, but they meet the ideas through play rather than through programs.

Key stage 1: P1, P2 and P3

The 2020 supplement points out that "most regulations in the games, sports and music activities have already involved the concepts of sequence and condition in computational thinking", and suggests that schools give daily-life experiences at different key stages so that coding later feels familiar. In practice, a P2 class might line up by height or follow a dance routine, which is an algorithm with no computer.

The pilot AI strand that the EDB released for trial teaching in July 2026 keeps the same tone for younger pupils. For its first learning stage it says teaching works 「主要通過示範與體驗活動」, mainly through demonstration and hands-on experience (our translation), and at P3 it asks children to tell AI apart from ordinary information technology.

Key stage 2: P4, P5 and P6

From P4, publicly funded schools follow three coding modules, one per year, adapted from CoolThink@JC. The EDB says the P4 module "covers basic computational thinking concepts, namely abstraction, algorithm and automation", and the P6 module asks pupils to apply programming constructs "to write programs through project activities to solve real-life problems" (EDBCM No. 152/2024, 11 July 2024).

The same documents are clear about the aim. In the supplement's words: "The goal of implementing computational thinking and coding education at upper primary level is not to train and nurture computer programmers." That is a fair aim for a class of thirty, and it leaves room at home for a child who wants more.

P1 to P3 at home

Scratch blocks, story-making and simple games. Reading is helped; the mentor reads instructions aloud.

P4 to P6 at home

Longer projects than school allows, plus the habit of testing and fixing, then typed Python.

Across all six years

Explaining a plan in words before building it, which helps every subject.

Our page on the best age to start coding looks at readiness in more depth, and the online coding classes for Hong Kong kids page shows how a live lesson runs, minute by minute.

A primary lesson, in full

Can a primary student write real code? A lesson on shapes that close

Yes, and geometry is a friendly place to start because children can predict the answer before the computer draws it. This is a lesson we use with P4 to P6 children ready for Python; P2 and P3 children play the same game with Scratch pen blocks and a paper protractor.

  1. Walk a square. The child stands up and walks a square on the floor: four steps forward, turn, four times. How far did you turn in total? One full turn, 360 degrees.
  2. Tell the computer. In code, a shape is a repeat block: move forward, turn, and do it again. The program below walks each shape and measures the gap between where it started and where it stopped.
  3. Predict first. Before running, the child writes "closes" or "open" next to each line in the list. The triangle with a turn of 60 is the trap: 60 degrees is the corner of an equilateral triangle, so it feels right.
  4. Run and compare. The triangle with turn 60 makes half a hexagon and ends 200 steps away from home. The real triangle needs a turn of 120, the outside angle, not the inside one.
  5. Find the rule. Every closed shape turned through 360 or 720 degrees in total. The child writes the rule in their own words: a shape closes when the turning adds up to whole circles.
Turtle turns: which shapes close and which stay openPython
# Does the shape close? Our own primary lesson.
import math

def walk(repeats, turn, step=100):
    x, y, heading = 0.0, 0.0, 0.0
    for _ in range(repeats):
        x = x + step * math.cos(math.radians(heading))
        y = y + step * math.sin(math.radians(heading))
        heading = heading + turn
    return round(math.hypot(x, y), 1)

tests = [
    ("square", 4, 90),
    ("triangle", 3, 120),
    ("hexagon", 6, 60),
    ("triangle, turn 60", 3, 60),
    ("star", 5, 144),
    ("star, turn 140", 5, 140),
]
for name, repeats, turn in tests:
    gap = walk(repeats, turn)
    total = repeats * turn
    verdict = "closes" if gap < 0.5 else "open"
    print(name, "| repeat", repeats, "turn", turn, "| total turn", total, "| gap", gap, "|", verdict)

We chose the shapes and the step length ourselves. The program uses only the standard library, so any Python 3 setup will run it; what follows is its output, copied unchanged.

OutputOutput
square | repeat 4 turn 90 | total turn 360 | gap 0.0 | closes
triangle | repeat 3 turn 120 | total turn 360 | gap 0.0 | closes
hexagon | repeat 6 turn 60 | total turn 360 | gap 0.0 | closes
triangle, turn 60 | repeat 3 turn 60 | total turn 180 | gap 200.0 | open
star | repeat 5 turn 144 | total turn 720 | gap 0.0 | closes
star, turn 140 | repeat 5 turn 140 | total turn 700 | gap 18.5 | open

Four shapes come home with a gap of 0.0. The triangle that turns 60 ends 200 steps away, and the star that turns 140 instead of 144 misses by 18.5 steps, because its total turn of 700 degrees is 20 short of two whole circles.

What the child is learning

Repetition: four sides is the same instruction four times, so it becomes one repeat block. That is the iteration idea the EDB's supplement lists for upper primary, met in a shape the child can see.

Debugging by prediction: a child who wrote "closes" next to the 60-degree triangle now has a reason to look again. The computer did exactly what it was told, and the bug was in the angle, not the code.

Where it links to school maths

Angles on a straight line, angles in a polygon and full turns all appear in primary maths. Here they stop being facts to remember and become a rule the child discovered, then tested on a star that turns twice.

A child who enjoys this usually enjoys our Maths Through Coding course, which carries the same habit into fractions, patterns and chance. For a parent's view of the thinking behind it, see how to think like a programmer.

  1. Fix the star. Change one number so the 140 star closes. Can you find a second number that also works?
  2. Make an octagon. How many repeats, and what turn? Predict, then add a line to the list and run it.
  3. A seven-pointed star. Try 7 repeats with a turn of 1080 divided by 7. Does it close? Why might it?
  4. Explain it to someone. Tell a parent, in two sentences, why the 60-degree triangle went wrong.

Secondary allocation

Does coding count for SSPA banding or the move to secondary school?

No, not directly. Banding for Secondary School Places Allocation is built from internal assessment marks in a fixed list of school subjects, and coding is not on it. We say this plainly because some parents are told otherwise.

What the EDB counts

The EDB's SSPA 2027 briefing lists the subjects primary schools submit scores for: "Chinese Language, English Language, Mathematics, General Studies, Visual Arts, Music", with Religious Education and Putonghua as optional extras. Computer or coding lessons are not in the list.

Timing matters too. The briefing says "IA results at the end of Primary 5 (P5), and both in mid-year and at the end of P6 will be standardised", so the marks that shape banding come from the last two years of primary school.

Where coding can still help

Coding trains careful reading, planning and checking, which show up in maths and in English comprehension. We would not promise a mark, but a child who is used to testing their own work tends to check a maths answer too.

For the Discretionary Places stage, families apply to schools directly; for 2027 the application period is 4 to 18 January 2027 and results come out on 6 July 2027 (EDB SSPA page). Some families mention a coding project in a school interview. That is their choice; we never claim it changes an outcome.

P5 and P6 in Hong Kong: what counts for allocation and where coding sits
ItemWhat the EDB saysCoding's place
Subjects scored for bandingChinese, English, Maths, General Studies, Visual Arts, Music (Religious Education and Putonghua optional)Not included
Marks usedEnd of P5, mid-year P6 and end of P6, standardisedCoding lessons are not part of the IA
Discretionary Places applications, S1 20274 to 18 January 2027A project may be mentioned by the family; no effect promised
Results released6 July 2027None

Sources: EDB, Secondary School Places Allocation 2025/2027 cycle briefing slides; EDB SSPA general information page, read 23 November 2026. DSS and private schools set their own admission criteria. This is general information, not advice on a particular application.

Our routes by year

Which of our courses fits each primary year?

A rough guide that the free first class turns into a real plan. Year matters less than reading level, attention span and whether the child has met blocks at school already.

Modern Age Coders courses for Hong Kong primary students, by year
YearUsual starting courseWhy this one
P1 and P2Scratch Coding for KidsShort, playful steps; the mentor reads aloud
P2 and P3Problem Solving and Computational ThinkingPatterns and plans, with or without a screen
P3 and P4Minecraft Coding for KidsRepeats and if-blocks inside a familiar game world
P4 and P5Python and AI for KidsThe step from blocks to typing, with drawings first
P5 and P6AI Literacy for KidsHow a machine learns, tested by the child
P5 and P6Maths Through CodingPrimary maths topics explored in Python

The year bands are our placement habits, not an official standard. Children who join from an international school are placed the same way, by what they can already do.

Signs a younger child is ready

Look for a child who carries out a short spoken instruction in order, enjoys puzzles or building sets, and wonders aloud how a game decides things. A P1 child does not need to read fluently: Scratch blocks are colour-coded and the mentor reads every word out loud.

Short attention is normal at six. The mentor changes activity every few minutes, and the first lessons are deliberately small: make a cat walk, then make it talk, then make it walk and talk.

Signs an older child wants more

They finish school coding tasks early, start their own Scratch projects at home, or ask whether "real programmers" use blocks. That is the moment for typed Python, and most P5 and P6 children make the move within a few weeks.

Contest-minded children sometimes aim at the HKOI primary olympiad, whose two events use Blockly. For 2026/27 its heat window opens on 7 December and closes on 18 December 2026, with the final on Saturday 20 February 2027. We prepare children for the thinking, never for a promised result. For AI at this age, see our AI course for kids in Hong Kong.

Language and format

Can a primary student learn coding in English if school is in Cantonese?

Yes. Coding words are few, short and the same in every country, and a one-to-one mentor slows down, repeats and shows. Most children settle within a few lessons.

Words a child already half knows

Scratch says "repeat", "if", "forever" and "when clicked". Python says "for", "print" and "while". A child learns these once, in the language the tools use, and meets them again in every later course.

Our mentors type each new word in the chat and ask the child to say what a block does in their own words, which is good English practice that never feels like an English lesson. More on this in coding classes taught in English in Hong Kong.

Why one to one for this age

A primary child stuck on a bug in a group class usually waits, then gives up. One to one, the mentor notices the pause and asks a small question before frustration sets in.

In Hong Kong we only teach private lessons, and your child keeps one mentor from month to month. The mentor learns how your child thinks, which matters more at seven than at seventeen. Our Hong Kong coding classes page lists every course on offer here.

Progress

How do primary students progress in our classes?

Six stages we use for primary children, loosely matched to school years but never tied to them. They are our own, not an EDB level.

Primary coding: our stages
StageThe child canTypical years
1. StepsPut instructions in order and watch them runP1 and P2
2. RepeatsTurn repeated steps into one repeat blockP2 and P3
3. ChoicesUse if and else to make a program reactP3 and P4
4. MemoryKeep a score or a count in a variableP4 and P5
5. CheckingPredict output, test it and fix the differenceP5
6. TypingWrite and debug short Python programs aloneP5 and P6

For children

Guess first, then run it. A wrong guess is a clue.

If you wrote the same block three times, a repeat can do it for you.

For parents

A short note each month says what your child built and what comes next.

Moving from stage 5 to 6 is where most children start saying "let me check" without being asked.

More courses

Nine more courses for primary students in Hong Kong

Live and in English; for families in Hong Kong, always one to one.

I

P1 to P3

Blocks and play

CPS / KS1 / 01

Coding for Kids: Scratch to Apps

A long block road that ends in small apps.

Open the syllabus

CPS / KS1 / 02

Game Development for Kids

Rules, levels and scores a sibling can test.

Open the syllabus

CPS / KS1 / 03

Mental Maths for Kids

Number sense that makes later coding easier.

Open the syllabus
II

P3 to P5

Bigger projects

CPS / KS2 / 01

Roblox Game Coding

Typed Luau scripts inside a game they know.

Open the syllabus

CPS / KS2 / 02

App Making for Kids

Apps built from blocks, tested on a tablet.

Open the syllabus

CPS / KS2 / 03

Vibe Coding for Kids

Describe a game, then check what was built.

Open the syllabus
III

P5 and P6

Typed code

CPS / UP / 02

Web Development for Kids

Real web pages, built and shown to family.

Open the syllabus

CPS / UP / 03

Hackathon Prep for Kids

An idea pitched, built and demoed against the clock.

Open the syllabus

Timing and setup

When can a primary student take the class, and what is needed?

Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. The mentor is in India, two and a half hours behind Hong Kong all year, so after-school hours here are early afternoon there.

Straight after school

3:45 pm in Hong Kong is 1:15 pm for the mentor.

Before dinner

A 5:30 pm start is 3 pm in India.

Saturday morning

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

A laptop or desktop

With a camera and microphone; a tablet works for the youngest only.

A grown-up nearby

For P1 and P2, someone close for the first few lessons.

Nothing to buy

Scratch runs in a browser; Python installs free.

The same mentor

One mentor for your child, month after month.

Exam weeks

Move or pause lessons around school tests.

A monthly note

What was built, what was hard, what comes next.

Student work

Projects from children in our classes

Work from our longer courses, by children of primary age and older; more on the student labs page.

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 primary coding classes

The fee is monthly and shown in Hong Kong dollars on the card below. You pay for one month, then the next if you want to carry on; nothing is collected in advance for later months. If the payment gateway adds a charge, you see it on the checkout page before paying.

Free first class

Free

no card required

  • A first class that costs nothing
  • Your child makes a small program in it
  • No card needed to book
Book it

One to one

$1,200 HKD

a month, eight live classes

  • A private mentor for your child
  • A starting point set by their school year
  • Times that fit your week
Start here

What families say

Rated 4.9 across 547 Google reviews

Parents and students, in their own words 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

Primary parents ask

Coding for primary students: questions from Hong Kong parents

What age or year should my child start coding?

Many children start happily in P1 or P2 with Scratch blocks, as long as lessons stay short and playful. Typed Python usually works from about P4 or P5. The free class shows which fits.

Does my child already learn coding at a Hong Kong primary school?

At a local school, usually from P4: the EDB asks for 10 to 14 hours of coding a year at P4, P5 and P6. P1 to P3 usually have no coding lessons as such. International schools set their own computing plans.

Will coding help with SSPA banding?

Not directly. The EDB lists Chinese, English, Maths, General Studies, Visual Arts and Music (with two optional extras) for the internal assessment used in banding. Coding is not on that list, and we never promise an allocation outcome.

Are the classes live or recorded?

Live. Your child and the mentor are on video together for the whole lesson, sharing one screen, so the mentor sees each block or line as it is made.

What language are the classes in?

English, spoken slowly and clearly by mentors based in India. Coding words are English already. We do not teach in Cantonese or Mandarin.

Is it one to one or a group?

One to one, always, for Hong Kong families: one child and one mentor.

When can lessons happen?

Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. Hong Kong is two and a half hours ahead of India all year, so a 4 pm lesson for your child is 1:30 pm for the mentor.

My child is in P6 and busy with tests. Should we wait?

You can pause around test weeks and pick up again, or keep a lighter lesson going. Many families find a weekly coding hour a welcome break from revision.

Do you help with school coding or AI projects?

We help a child understand the ideas and plan their own approach. We do not do school work for a child, with or without AI.

How do fees work?

Month by month, shown in Hong Kong dollars, with any gateway charge displayed before you pay. The first class is free.

Is there a certificate?

Yes, our own certificate when a course is completed. It is not a school, EDB or government qualification.

Related

More for Hong Kong primary families

Next questions, answered.

Coding classes in Hong Kong

Every course we offer here, by age.

AI for kids in Hong Kong

What AI is, at a child's level.

Minecraft coding, Hong Kong

Real code inside the game.

Choosing a kids' coding class

Ten checks before you pay.

Coding for 10 year olds

What a ten year old can build.

Coding roadmap

From first blocks to real projects.

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 · 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 · Guides for families: After-school coding · School holidays: AI summer course · Districts and areas: Causeway Bay

Start here

Book a free first class for your primary child

Tell us your child's school year. In the free class the mentor tries a short task at two levels, your child builds something small, and you hear which course and starting point make sense.

Prefer to read first? Each course in our course list has a full syllabus, and how we teach explains the lesson style.

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

Live, online, one to one, in English. Mentors are based in India. WhatsApp reaches us fastest.

No card is asked for. The first class is free.

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