Parent guides
How to teach kids coding: a plan by age, even if you can't code
Off-screen games first, then blocks, then typed code. A step-by-step plan by age, a weekly routine, free tools and a first session you can run tonight.
The Educifly team
·
13 min read

How to teach kids coding comes down to one order: off-screen games first, then block coding, then typed code. You don’t need to code yourself. Match each step to your child’s age, keep sessions short and let your child do the clicking. Below is a plan by age, a weekly routine and a first session to run tonight.
Key takeaways
Ages 5 to 7: off-screen games and ScratchJr picture blocks. No typing.
Ages 7 to 10: block coding in Scratch.
Ages 10 to 13: bigger projects and apps, then a first try at typed code.
Ages 13 and up: typed code, like Python or websites.
One small project a week, in short sessions, beats one long session.
Can you teach kids coding if you can’t code yourself?
Yes. Your job isn’t to know the answers. It’s to ask good questions and let your child find the fix.
Coding means giving a computer clear steps in the right order. Kids start by giving steps to people, then to a cat on a screen, then in typed words. For the basics, read what is coding for kids.
Knowing how to teach coding to kids is mostly about questions. When your child gets stuck, ask these three, in this order:
What did you want it to do?
What did it actually do?
Which step made it do that?
These questions work for a 6-year-old with picture blocks and a 15-year-old with Python. They make you the coach, not the fixer. And you never need to touch the mouse.
What’s the right order for teaching coding to kids?
The right order for teaching coding to kids is off-screen games, then blocks, then typed code. Each step teaches the same ideas in a harder form.
Off-screen games teach steps and fixing mistakes, with no device at all.
Block coding means snapping blocks together on a screen. There’s no typing, so kids focus on the idea.
Typed code means writing the steps as text, like Python. Spelling matters here.
Here is one idea, a square, at all three steps.
Step | How your child makes a square | What they learn |
|---|---|---|
Off-screen | Tells you “walk 3 steps, turn right” four times | Steps in order, and spotting a repeat |
Blocks (Scratch) |
| A loop does the repeat for them |
Typed code (Python) |
| The same loop, written as text |
A loop is a set of steps the computer repeats. Once a child gets loops off the screen, the blocks and the typed code make much more sense.
How to teach kids coding by age: a step-by-step plan
Start where your child’s age and reading fit. Move up when you see the signs for their age. Ages are only a guide.
Age | Off-screen games | Blocks | Typed code | Time per session |
|---|---|---|---|---|
5 to 7 | Most of the time | ScratchJr | Not yet | 10 to 15 minutes |
7 to 10 | A quick warm-up | Scratch, or Code.org courses | Not yet | 20 to 30 minutes |
10 to 13 | For each new idea | Bigger Scratch games, MIT App Inventor | A first try, often Python | 30 to 45 minutes |
13 and up | For planning on paper | Only for a quick start | Python, or websites | 45 to 60 minutes |
Ages 5 to 7: games first, then picture blocks
At 5 to 7, coding is mostly play. Start with the robot game. Your child gives you steps to reach a toy, and you do exactly what they say. Then try ScratchJr. Its makers say it’s a free app, made for ages 5 to 7. Kids snap picture blocks together to make characters move and hop.
If you’re working out how to start coding for kids this young, skip the screen for the first week. For more ideas, see coding for young kids.
Ready to move up when they can read short words like “move”, and they ask to make games.
Ages 7 to 10: block coding in Scratch
From about 7, move on to Scratch. It’s free and runs in a web browser. Scratch says it’s designed for ages 8 to 16, but younger kids use it too, often with a grown-up nearby.
Act out each new idea first. “If I clap, you jump” is an “if” block, acted out. Then make games, like a cat that chases the mouse pointer. For more on this stage, see Scratch coding for kids.
Ready to move up when they make games without a tutorial and use a variable, like a score. A variable is a named box that holds a value.
Ages 10 to 13: apps and first typed code
At 10 to 13, kids can stick with one project for a few weeks. MIT App Inventor lets them make phone apps with blocks and test them on a real phone. MIT says it’s free and runs in a web browser. It needs a sign-in, so for a child under 13, set up and keep the account yourself.
For a first try at typed code, make the same square in Python:
Python is free from python.org, and it comes with a simple editor called IDLE. In IDLE, choose File, then New File. Type the code and save it as square.py. Don’t call it turtle.py, or Python mixes it up with its own turtle tools. Then choose Run, then Run Module, or press F5. A small arrow draws a square. Now change 4 to 6 and 90 to 60. What shape do you get? To compare Python with other first languages, read our guide to kids coding languages.
Ready to move up when they fix their own typing mistakes and want to build things blocks can’t do.
Ages 13 and up: typed code from the start
Teens can start with typed code. A week of Scratch is fine for a total beginner, but more may feel babyish. Good first projects are a number guessing game in Python, or an “all about me” website in HTML and CSS. For more at this age, see our coding classes for teens.
Your first 20-minute coding session: a plan to run tonight
This first session is for ages 7 to 10, in Scratch on a laptop or computer. It has five parts: Hook, Play, Build, Remix and Show. You don’t need to know any code. Just read each step out loud.
Before you start: go to scratch.mit.edu and click Create. You’ll see a cat on a white stage. The blocks sit on the left, in colour groups.
Hook (2 minutes). Say, “Tonight you’re the boss of this cat. Can you make it walk in a square?”
Play: the robot game (4 minutes). Stand up. Your child tells you how to walk a square on the floor, and you do exactly what they say. Most kids say “walk 3 steps, turn right” four times. Point out the repeat. Coders call that a loop.
Build (9 minutes). Back at the laptop, your child does all the clicking.
Click the yellow Events group. Drag “when flag clicked” into the big empty space.
Click the blue Motion group. Snap “move 10 steps” under it. Change 10 to 100.
Snap the turn block with the clockwise arrow under that. Change 15 to 90.
Click the green flag four times. The cat walks one side per click and tips over at each turn. Kids love that.
Now make it one click. From the orange Control group, wrap “repeat 10” around both blocks. Change 10 to 4.
Click the flag. The cat just flickers. That’s your first bug, so ask the three questions.
The fix: the computer is too fast to see. From the Control group, snap “wait 1 seconds” inside the repeat, under the turn. Click again, and you’ll see every side.
Remix (3 minutes). Your child changes one thing. Make a triangle with repeat 3 and turn 120. Make the square bigger. Or add “play sound Meow until done” from the pink Sound group.
Show (2 minutes). Your child shows someone else and explains what each block does. Save it with File, then “Save to your computer”.
With a child aged 5 to 7, play the robot game, then move a character in ScratchJr. With a child of 11 or older, try the Python square instead.
What does a good weekly coding routine look like?
A good routine is one small project a week, touched three times: build it, change it, show it. Short and regular beats long and rare.
When | What you do | Ages 7 to 10 |
|---|---|---|
Day 1: Build | 5-minute off-screen warm-up, then start the project | 20 to 30 minutes |
Day 2: Remix | Same project. Change one thing or fix one bug | 20 to 30 minutes |
Weekend: Show | Your child shows the family and explains how it works | 5 to 10 minutes |
For other ages, use the session times in the plan by age. Keep the same days each week, like “Tuesday and Thursday after snack”, so there’s no daily debate. And stop while it’s fun. Write down what they want to add next, and start there next time.
What are some fun ways to teach coding to kids?
The best fun ways to teach coding to kids put your child in charge of the idea. They pick the theme, and code is how they make it real.
Start from what they love. A football game, a pet that does tricks, a dinosaur quiz.
Remix a project. Scratch lets kids open someone’s shared project and change it. Changing code that already works is an easy way in.
Cheer for bugs. Say “Great, a bug!” and track it down together. Kids who aren’t scared of mistakes keep going.
Code with a friend. One drives the mouse, one gives directions, then they swap.
When introducing kids to coding, fun matters more than speed. A child who loves it at 7 will learn the hard parts later.
Which free tools should you start with?
Pick one free tool for your child’s stage and stick with it. We checked each one on its own website before publishing. All five are free.
Tool | Ages | What your child does | What you need |
|---|---|---|---|
ScratchJr | 5 to 7 | Picture-block stories and games | A tablet, with the app from the App Store, Google Play or Amazon Appstore |
Code.org (now CodeAI) | 5 and up | Self-paced block coding courses | A web browser |
Scratch | 8 to 16, its makers say | Games and animations with blocks | A web browser, or the offline app |
MIT App Inventor | About 10 and up (MIT gives no age) | Phone apps with blocks | A Mac, Windows computer or Chromebook, plus an iPhone or Android phone |
Python | About 12 and up, some at 10 or 11 | Real typed code | A computer, and the IDLE editor that comes with Python |
Code.org now calls itself CodeAI, and its Hour of Code is now the Hour of AI. It has over 100 free activities that take about an hour each. It also has a self-paced course for children who can’t read yet.
Scratch has an online community where kids share projects. The Scratch Foundation moderates it, but sit nearby when younger kids share.
What mistakes do parents make when teaching kids coding?
The biggest mistake parents make when teaching kids coding is doing it for them. Here are six common mistakes, each with a fix.
Doing it for them. You grab the mouse to “just show them”. Fix: sit on your hands and ask the three questions.
Too many tools. A new app every week means new menus, not new skills. Fix: one tool per stage, until they outgrow it.
Skipping the “why”. Kids copy blocks without knowing what problem they solve. Fix: walk the square before you build the loop.
Sessions that run too long. An hour of struggle at age 7 kills the fun. Fix: stop while they still want more.
Copying tutorials. Following a video isn’t coding. Fix: after any tutorial, your child changes one thing alone.
Typed code too early, or too late. A 7-year-old gets stuck on spelling. A 14-year-old kept in blocks gets bored. Fix: watch the signs, not the calendar.
When does a coding mentor help, and when is it not needed?
You don’t need a mentor to start. Free tools and a parent who asks good questions can carry most kids through the block coding years.
A mentor starts to help when:
your child has been stuck on the same thing for weeks, and you can’t help
they’re ready for typed code, and you can’t read it
they’ve outgrown tutorials and want to build bigger projects of their own
your week is too busy for a steady routine
A class won’t always help. If your child is happily making Scratch games with you, keep going and save your money. If they still dislike coding after months of different projects, a class won’t change that.
Want a mentor? Our online coding classes for kids are live and one-to-one, for ages 5 to 18. Your child keeps one mentor for the whole level. Classes run in the same five parts as the first session. The mentor coaches and doesn’t build the project for your child.
Questions parents ask about teaching kids coding
How can I teach coding to my kids if I can’t code?
Learn alongside them. Pick one free tool that fits their age, like Scratch, which has a step-by-step guide built in. When your child gets stuck, ask what they wanted, what happened and which step caused it. You don’t need the answer to ask good questions.
How long should a coding session be?
Short and regular works best. Try 10 to 15 minutes at ages 5 to 7, 20 to 30 minutes at 7 to 10, and 30 to 45 minutes at 10 to 13. Teens can go for 45 to 60 minutes. Stop while your child still wants more, and start there next time.
What if my child gets bored or wants to quit?
Take a break, then come back with a project they pick, like a game about their favourite animal. Keep sessions short and stop while it’s still fun. If they still dislike coding after months of different projects, that’s fine. Not every child loves it.
How do I know if my child is making progress?
Look at what they can do alone. Can they make a small project without a tutorial? Can they find and fix their own bugs? Can they explain how their code works when they show it? If yes, they’re moving up, whatever their age.
Should my child use AI to help them code?
Under 13, keep AI out of it and let them fix their own bugs. That’s where the learning happens. Check each chat tool’s age rules first. OpenAI’s terms say ChatGPT users must be 13 or older, and under-18s need a parent’s permission. At Educifly, it’s the same idea. AI chat tools come in only for ages 13 and up. Teens can use AI with one rule: they write the code, and AI only explains errors.
Want a mentor to take it from here?
If you’d like help, start with a free trial class. It’s 40 minutes, live and one-to-one. Your child builds a mini-project with a mentor, and you’re welcome to watch. In the free class, the mentor finds the right starting level. No payment, no card.
Related class
Online coding classes for kids, ages 5 to 18
Keep reading

Projects
MIT App Inventor tutorial for kids: build a first app, then try 8 projects
Build a first phone app with MIT App Inventor, step by step, then try 8 projects. Plus iPhone vs Android, setup fixes and how to share the app.
·
10 min read

Coding
Best coding tools for kids: 11 coding websites and apps by age
Eleven coding websites and apps for kids, sorted by age, from ScratchJr to Python. What's free, what's paid, and the account rules each site sets.
·
12 min read

AI
AI projects for kids: 11 free ideas by age, with a step-by-step first project
Eleven free AI projects for kids, sorted by age, from Quick, Draw! to Python. Plus a step-by-step Teachable Machine project and a 5-point check for good work.
·
10 min read
See what your child can build in 40 minutes
Book the free class. Your child meets their mentor and builds a small project. You get the right starting level and the exact price. Then you decide.
Ages 5–18 · Live and one-to-one · No payment needed