United States · Grades 6 to 8 · Ages 11 to 14

Coding classes for middle school students

Modern Age Coders teaches live online coding for middle school students in grades 6 to 8, ages 11 to 14, in a batch or one to one. These are the years to move from block coding to typed Python or JavaScript, write functions that can be reused, and build projects for real users. This page sets out what grade 8 should look like.

Live teaching since 2020 · 10,000+ students · Typed code from sixth grade

In short

By the end of grade 8, the K-12 Computer Science Framework expects students to write readable programs that combine loops, events and conditionals, name variables meaningfully, organise code into procedures with parameters, and test whether a solution meets its criteria. A middle school coding class should get a student typing real code, usually Python, and building projects for other people. Modern Age Coders teaches this live online for US students, in a batch or one to one, and the first class is free.

Start here

Three courses for the middle school years

Middle school straddles our kids and teens courses, so we place each student by age and experience.

Grades 6 to 8

Middle school in the US, and where our courses fit

Middle school is the hinge between children’s and teenagers’ coding. A sixth grader and an eighth grader can be in the same building and need quite different classes.

How NCES defines it

The National Center for Education Statistics defines a middle school as "A school that offers more of grades 5 through 8 than higher or lower grades but does not offer both kindergarten through grade 4 and grades 9 through 12."

Middle school usually means grades 6 to 8, though some districts start it at grade 5 and some run grade 7 to 8 junior highs. The Congressional App Challenge rules say the same thing in plain words: "Middle school varies by region but typically encompasses 6th-8th grades".

Kids course or teens course?

Our courses for kids run to age 12 and our teen courses start at 13, so the line falls inside middle school. Most sixth graders join a kids course; most eighth graders are ready for the teen version; seventh grade can go either way.

We decide in the free first lesson by looking at typing speed, reading level and what the student has already built, not birthday alone. A confident twelve-year-old who has finished a lot of Scratch may start straight in a teen course.

Middle school grades, typical ages and where a student usually starts with us (ours)
GradeTypical age during the yearUsual starting pointWhat they build
6th grade11 to 12Python for kids, or Scratch if new to codingText games, quizzes, turtle drawings
7th grade12 to 13Python for kids or for teens, by levelPrograms split into functions, simple web pages
8th grade13 to 14Python or JavaScript for teensApps for a real user, data projects, contest problems

Sources: NCES glossary and the Congressional App Challenge 2026 rules, read 17 October 2026. The ages and starting points are ours. We are not connected with NCES or the Congressional App Challenge.

By the end of grade 8

What the K-12 Computer Science Framework expects by eighth grade

The K-12 Computer Science Framework, which states may use to develop their own standards, sets an endpoint for grade 8. Read together, its programming statements describe a student who writes code other people can read and reuse.

The grade 8 endpoint, word for word from the framework (k12cs.org, 17 October 2026)
Idea in the frameworkGrade 8 statementSeen in class as
Algorithms"Algorithms that are readable are easier to follow, test, and debug."Rewriting a messy solution so a classmate can follow it
Variables"A meaningful identifier is assigned to each variable to access and perform operations on the value by name."lives_left, not x
Control"Programmers select and combine control structures, such as loops, event handlers, and conditionals, to create more complex program behavior."A loop inside a condition inside an event
Modularity"Programs use procedures to organize code, hide implementation details, and make code easier to reuse."Writing a function once and calling it many times
Parameters"Defining parameters for procedures can generalize behavior and increase reusability."The same function working for any message or any number
Troubleshooting"A systematic process will identify the source of a problem"Testing one change at a time and reading error messages
Online safety"People can be tricked into revealing personal information when more public information is available about them online."Thinking before posting a project with a real name or school

The shift from elementary

In the elementary statements the emphasis is on following and creating instructions. By grade 8 the emphasis moves to other people: readable algorithms, meaningful names, and solutions designed by "defining a problem’s criteria and constraints" and testing whether they were met.

That is a big change in mindset. A sixth grader often writes code only they understand; an eighth grader who meets these statements writes code a teacher, a teammate or their future self can pick up.

Where privacy and security come in

The grade 8 statements also bring in protection of information "such as encryption to maintain its confidentiality", which is why our example program below is a simple cipher.

They connect it to students’ own lives as well: the more that is public about someone online, the easier it is to trick them. We talk about that directly when students publish their first projects.

Quoted from the statements-by-grade-band page on k12cs.org, which we checked on 17 October 2026; short extracts only, as its licence allows. The framework sets grade-band endpoints, not a lesson for each grade; your state’s standards decide the detail.

What schools are changing to

From CS Discoveries to AI Discoveries: the middle school course is being rebuilt

Code.org says its CS Discoveries course "introduced hundreds of thousands of middle schoolers to computer science." For the 2026 to 2027 school year, Code.org (now presenting its site as CodeAI) recommends a replacement built around AI.

Code.org middle school courses, as listed on its curriculum pages (read 17 October 2026)
PointCS DiscoveriesAI Discoveries
Grades listed6, 7, 8, 9, 106, 7, 8
StatusStill available to teachers using it; Code.org calls AI Discoveries "the new version of this course"Ready for the 2026 to 2027 school year
LengthA full year over 7 units, or single unitsFull Year (36 weeks), Semester (18 weeks) or Quarter (9 weeks)
First unitNot stated on the course page"Thinking Critically About AI"
AI contentAn AI and Machine Learning unitAI and Machine Learning moves to Unit 2
Tools namedGame Lab, App Lab, AI Lab, Web LabAI Chat Lab, Web Lab, Game Lab, App Lab, Sketch Lab
DevicesComputer, ChromebookChromebook, computer

What this means for your student

If your child’s school adopts AI Discoveries, their first unit of computer science may be about evaluating AI systems, bias and misinformation before they write much code. That is a sensible order, and it raises a question families ask us: will they still learn to program?

They will meet programming in later units, but a school elective is often a quarter or a semester. A weekly class outside school is where students go further with typed code and longer projects.

How we line up with it

We teach the same ideas in a different order: programming first, then AI, then the two together. A student who has written their own small classifier understands far better why an AI system can be confidently wrong.

Code.org and CodeAI have no connection with us. Their catalogue simply shows what many US middle schools teach, so we can start new students in the right place.

Sources: Computer Science Discoveries, AI Discoveries and the curriculum catalogue (which lists AI Discoveries as 8 units for grades 6 to 8), read 17 October 2026.

A real program

A Caesar cipher in Python: one function, two parameters

This is a program we write with middle schoolers in their first month of typed code. It is short, it does something they want (secret messages), and it meets two of the grade 8 statements head on: procedures that organise code, and parameters that make it reusable.

Python · a Caesar cipherpython
# Caesar cipher (ours): one procedure, two parameters, used twice
def shift_message(message, shift):
    result = ""
    for letter in message:
        if letter.isalpha():
            start = ord("A") if letter.isupper() else ord("a")
            result += chr((ord(letter) - start + shift) % 26 + start)
        else:
            result += letter
    return result

secret = shift_message("Meet at the library", 3)
print(secret)                     # Phhw dw wkh oleudub
print(shift_message(secret, -3))  # Meet at the library

Ours. We ran it with Python 3.13 before printing it, and the two comment lines show its real output. The % 26 wraps the alphabet round, so a letter shifted past z comes back to a.

The procedure

def shift_message wraps the whole idea in one named block that hides the detail from the code that calls it.

The parameters

message and shift let the same function encrypt with 3 and decrypt with -3.

The condition

isalpha() leaves spaces and punctuation alone, a decision students usually add after their first bug.

Predict the output before you run it: four practice calls (ours; answers checked by running the function)
CallWhat it printsWhat it tests
shift_message("xyz", 3)abcWrapping past the end of the alphabet
shift_message("Zoo!", 1)App!Capitals and punctuation
shift_message("abc", 26)abcA full turn of the alphabet changes nothing
shift_message("Hi", -1)GhA negative shift goes backwards

The honest limitation

A Caesar cipher is easy to break: there are only 25 useful shifts, so a program can try them all in an instant. Students usually discover this themselves, and writing that brute-force loop is the next lesson.

That discovery is worth more than the cipher. It shows why real encryption is mathematical and why the grade 8 framework talks about protecting information rather than hiding it.

Where it leads

From here students write a function that counts letters, then use the counts to guess the shift automatically. That is their first taste of using data to make a decision.

Older middle schoolers take the same idea into JavaScript and put it on a web page their friends can use, which is a project for a real user, exactly what the framework asks for.

Which language

Choosing a first typed language in middle school

Parents often ask which language a middle schooler should learn. There is no single right answer, but there is a sensible order for most students, and it depends on what they want to make.

A first typed language for grades 6 to 8 (ours)
If your student wants toStart withWhy
Learn programming properly, any directionPythonShort, readable code; the same ideas carry to every other language
Make websites and things friends can openJavaScript with HTML and CSSRuns in any browser; instant results on screen
Make games in a world they already playLuau in Roblox StudioEvent-driven code with a built-in audience
Take AP Computer Science A laterPython first, then Java in high schoolJava is the AP CSA language; Python makes the first year gentler
Enter coding competitionsPython, then C++ if they get seriousPython to learn problem solving, C++ for speed in contests

Typing matters more than the language

The real jump in middle school is from dragging blocks to typing exact syntax. A missing bracket or a wrong indent stops a program, and students need a few weeks of patient practice before that stops being frustrating.

Whichever language a student picks, the first month should be full of small programs that work, so the frustration never wins.

What about AI tools?

Many AI services set a minimum age in their terms, and those rules change. We never ask a student to create an account on a service that does not allow their age, and in class AI is something students study and test, not a shortcut.

Code.org lists an AI Chat Lab among the tools in its AI Discoveries course. If your student uses one at school, ask them to show you how they check its answers.

A first semester

What eighteen weeks of weekly classes can look like

Families like to know where the time goes. This is the outline we use for a middle schooler starting typed Python, written as six blocks of three weeks. Fast students finish early and move to a bigger project; nobody is pushed past a block they have not understood.

A first semester of Python for grades 6 to 8 (ours)
WeeksBlockWhat the student can do at the end
1 to 3Printing, input and variablesWrite a short quiz that asks questions and keeps a score
4 to 6Conditions and loopsBuild a number-guessing game with hints and a limited number of tries
7 to 9Functions and parametersWrite the Caesar cipher above and reuse it to decode
10 to 12Lists and stringsStore a list of words, search it, and count letters
13 to 15A project for a real userInterview a family member, then build a small tool they asked for
16 to 18Testing and presentingFix bugs found by the user, then explain the code in five minutes

Why a real user in week 13

The grade 8 framework statement on program development is about solutions for other people. Building for a grandparent, a younger sibling or a club teaches more about clear design than any exercise, because real users press the wrong buttons.

The projects students remember are often tiny: a chore tracker, a spelling quiz for a little brother, a scoreboard for a family board game.

What the presentation is for

Explaining code out loud is how we check understanding. A student who can say why a function takes a parameter, in their own words, owns that idea.

Parents are welcome at the presentation lesson. It is usually the moment a family sees how much has changed since week one.

Beyond class

Contests and projects open to middle schoolers

Middle school is when students can start entering real competitions, and a project with a deadline is a strong reason to keep coding.

The Congressional App Challenge

Under the 2026 rules, students must be enrolled in middle school or high school on October 26th, 2026 to enter. Students compete in a congressional district that is hosting the challenge, where they live or where they go to school, and entries are judged by that district’s Member of Congress and their office, so the competition is local even though it runs across the country.

Our Congressional App Challenge guide covers the rules, the demo video and a ten-week build plan.

Other ways to stretch

Students who like puzzles can start on contest-style problems, and our USACO preparation page explains how that path works. Those who like making things can enter school science fairs with a coding project.

Our page on computer science extracurriculars lists more options, most of which open up in the last year of middle school.

Grade 6 to grade 8

Four stages through middle school coding

Where most students are when they join, and where they can be by the end of eighth grade.

Stages of a middle school coder (ours)
StageSigns of it
1. Block expertBuilds big Scratch projects, finds typing slow and fiddly
2. TypistWrites short Python programs with loops and conditions, fixes syntax errors alone
3. OrganiserSplits programs into functions with parameters, names things clearly
4. Builder for othersMakes a tool or game for a real user, tests it with them, improves it

For parents

Stage 2 is the hardest month. Encourage short, frequent practice rather than long weekend sessions.

Ask who the project is for. A student who can answer that is thinking at stage 4.

For students

Every error message is a clue. Read the line number first, then the last line of the message.

Write the function name before the function. If you cannot name it, you have not decided what it does yet.

The catalogue

Nine more courses for grades 6 to 8

Live classes with a steady teacher; the ages listed belong to each course.

I

Sixth and seventh grade

Up to age 12

MS / KID / 01

Scratch, done properly

For a sixth grader who has never coded.

Open the syllabus

MS / KID / 02

Hackathon prep for kids

Ages 8 to 12. Build fast, pitch clearly.

Open the syllabus
II

Teen tracks

From 13

MS / TEN / 01

JavaScript for teens

Interactive pages and browser games.

Open the syllabus

MS / TEN / 02

Game development for teens

Unity and C#, step by step.

Open the syllabus

MS / TEN / 03

Front-end development

HTML, CSS and JavaScript done well.

Open the syllabus
III

Thinking and security

From 13

MS / THK / 01

Problem solving and DSA

Algorithms explained from zero.

Open the syllabus

MS / THK / 02

Competitive programming

For students who already write programs.

Open the syllabus

MS / THK / 03

Cybersecurity for teens

Defensive and ethical, no coding needed.

Open the syllabus

How lessons run

Live classes around a busier middle school week

Weekdays or weekends, flexible: choose your batch, or for a very personalised plan choose 1-on-1 at your convenience, weekend mornings or weekdays.

Weekdays

After-school batches across US time zones.

Weekends

Mornings that avoid sports and practice.

1-on-1

Booked at your convenience.

A steady teacher

The same teacher follows each student’s progress.

Placed by level

Kids or teen course, decided in the first lesson.

Real typing

Students write every line themselves.

Code reviewed

The teacher reads the code, not just the result.

Projects for users

Built for a friend, a club or the family.

Two formats

Join a batch of fifteen to twenty, or book one to one.

Student work

What our students have built

A few projects by learners who began with the same first programs. 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

Fees are monthly and shown in US dollars. Nothing locks you in for the school year: if a month finishes and you want to stop, you stop.

Free first class

USD 0

no card required

  • A free first lesson
  • Placement in kids or teen course
  • No card details
Book it

Group batch

USD 100

a month, billed in US dollars

  • Fifteen to twenty learners
  • Students placed by level
  • One regular teacher
  • Monthly
Start here

One to one

USD 150

a month, billed in US dollars

  • A teacher to yourself
  • Times that fit your week
  • Your own projects
Enquire

What families say

Rated 4.9 across 547 Google reviews

Copied word for word from parents’ Google reviews.

★★★★★

"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 from families

Coding for middle schoolers: common questions

What coding should a middle school student learn?

By the end of grade 8 the K-12 Computer Science Framework expects readable programs that combine loops, events and conditionals, meaningful variable names, and procedures with parameters. In practice that means typed code, usually Python or JavaScript, and projects built for other people.

Is middle school too late to start coding?

No. Many students start in sixth or seventh grade and catch up quickly, because they read and type well. A beginner in middle school can go from first program to functions with parameters within a few months of weekly classes.

Should a middle schooler learn Python or JavaScript?

We start most students on Python: the code is short, it reads clearly, and what they learn transfers to any other language. JavaScript suits students who mainly want to build websites. Many learn Python first and add JavaScript in eighth grade.

What grades are middle school in the US?

Usually grades 6 to 8. NCES defines a middle school as one offering more of grades 5 through 8 than other grades, so some districts start middle school at grade 5 or use a grade 7 and 8 junior high.

What is AI Discoveries?

A Code.org middle school course for grades 6 to 8 that replaces CS Discoveries for the 2026 to 2027 school year. Its first unit is Thinking Critically About AI, and it can run as a full year, a semester or a quarter.

Can middle school students enter the Congressional App Challenge?

Yes. The 2026 rules say students must be enrolled in middle school or high school on October 26th, 2026. Our Congressional App Challenge guide covers the rules and a build plan.

Does my child join a kids course or a teen course?

Our kids courses run to age 12 and teen courses start at 13. Most sixth graders join a kids course and most eighth graders a teen course; we decide in the free first lesson by level, not birthday alone.

What times are classes for US families?

Weekdays or weekends, flexible. Choose your batch, or for a very personalised plan choose 1-on-1 at your convenience, weekend mornings or weekdays.

How big are the classes?

Batches are fifteen to twenty students with one teacher who stays with them. If you want a teacher just for your child, 1-on-1 lessons are available too.

How much do middle school coding classes cost?

You pay nothing for the first lesson. After it a fee is charged each month, and the amount appears in US dollars in the fees section above.

Elsewhere on this site

Related pages

More for US middle schoolers and their parents.

Coding classes in the USA

Where all our US guides start.

Congressional App Challenge

Rules and a ten-week plan.

Coding for 12 year olds

The sixth and seventh grade year.

Coding for 13 year olds

Moving into teen courses.

CS extracurriculars

Clubs, contests and projects.

How we teach

One class, described in full.

Coding classes for high school students

Coding for high schoolers: CS access data, AP CSP and AP CSA in 2027, and a four-year plan.

Coding milestones by age

Coding milestones by age, with a checklist for 8 to 10 year olds.

AI literacy for elementary students

AI literacy for K-5: what it means, what standards expect, and two activities.

Start here

Book a free first lesson

Share your child’s grade and any coding they have done, even a few weeks of it at school. The first lesson doubles as placement, so they start at the right level.

Before booking you can read how our teachers run a class, or browse the course catalogue with full syllabuses.

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

Our teachers are based in India and teach every class live on video, so families anywhere in the US join the same way. WhatsApp gets the fastest answer.

Free first lesson. No card asked for.

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