Skip to content
Commonwealth of Virginia, United States

Coding and AI classes in Virginia

Does computer science count toward a Virginia high school diploma?

It can. Code of Virginia § 22.1-253.13:4 tells the Board of Education to treat every computer science credit as a science, mathematics or career and technical education credit, and the Standards of Learning must include computer science and computational thinking, including computer coding. Modern Age Coders teaches that same ground live online, from Scratch in kindergarten to AP Computer Science A in Java.

Virginia took an unusual route. Rather than adding a separate computer science course to the list every student must pass, the General Assembly wrote coding into the law that defines what public schools teach, then let a CS credit stand in for credits a student already needs. That makes the subject flexible, and it also makes it easy to miss: a ninth grader can reach a diploma without ever choosing it. Below, the statute and the diploma regulation as the Legislative Information System publishes them, how many Virginia high schools offered computer science in the most recent year with data, and a data project built on Fairfax County’s own trail and bike lane records.

Facts last verified 18 October 2026. Teaching is online; no Virginia branch is claimed.

Course picks for Virginia

Four courses Virginia families ask about first

Each card is a full course with its own syllabus. The free first lesson decides which one fits, so nobody has to guess.

Browse the course atlas for more than one hundred options and use the coding roadmap to check prerequisites.

The four we are known for

Python, AI, vibe coding and agentic coding

These run underneath everything above. Every one is live and online, placed by ability rather than by age, and the first class is free.

What the law says

Three lines of the Code of Virginia every CS student should know

The Virginia Department of Education site refused our request on 17 October 2026, so this section quotes the law itself, from the General Assembly’s Legislative Information System, read the same week.

Computer science in the Standards of Quality, Code of Virginia, Title 22.1, Chapter 13.2 (quoted from the statute)
SectionWhat the statute saysWhat it means for a student (our reading)
§ 22.1-253.13:1, Standard 1The Standards of Learning shall include computer science and computational thinking, including computer codingCoding is part of the content every public school is expected to teach, not an optional extra
§ 22.1-253.13:1, subsection CLocal school boards shall emphasize the same subject in a program of instruction for grades K through 12The expectation runs from kindergarten, not only in high school
§ 22.1-253.13:4, D 14The Board shall consider all computer science course credits to be science, mathematics, or career and technical education credits, and develop guidelines on how they satisfy graduation requirementsA CS class can fill a slot a student must fill anyway
§ 22.1-253.13:4, D 19An English language learner with a qualifying AP, IB or SAT II foreign language score may substitute computer coding course credit for a foreign language credit, except where an advanced studies provider requires the language creditA narrow route, for students who have already shown a second language
§ 22.1-253.13:4, D 20A student pursuing an advanced studies diploma whose IEP specifies a world language credit accommodation may substitute two standard units in computer science for two in a world language, with notice from the school counselor about college entranceAnother narrow route, with a warning attached

No stand-alone CS course on the list

Virginia does not add computer science as its own line in the diploma table. It folds the subject into the Standards of Learning and lets the credit travel, so whether a student takes CS depends on the choices made in eighth and ninth grade.

A counselor conversation matters

The law itself requires a counselor to warn families about possible college entrance effects before a CS credit replaces a world language credit. That is a good habit for every substitution, not only the ones the statute names.

Guidelines sit with the Board

Item 14 hands the details to the Board of Education, which publishes them on the department site we could not reach. Ask your school which approved courses count as a mathematics or science credit in your division.

The diploma table

Where a CS credit can land in the 22 and 26 credit diplomas

Regulation 8VAC20-132-51 applies to students who entered ninth grade in 2018 to 2019 or later. Its current text took effect on September 25, 2024, according to the Virginia Register note on the section.

Standard units of credit required, 8VAC20-132-51 (the right-hand column is ours, based on the regulation’s own footnotes)
Discipline areaStandard DiplomaAdvanced Studies DiplomaCan a CS credit count here?
English (reading and writing)44No
Mathematics34Yes, per the footnote citing the Standards of Quality
Laboratory Science34Yes, per the footnote
History and Social Science34No
World LanguageShared slot below3Only through the IEP accommodation route
World Language, Fine Arts, or Career and Technical Education2Fine Arts or CTE: 1Yes, as a CTE credit
Health and Physical Education22No
Economics and Personal Finance11No
Electives43Any CS course can be an elective
Total22 standard units, 5 verified credits26 standard units, 5 verified credits

Read the footnotes slowly. Each says a computer science credit “may be considered” a mathematics, science or CTE credit, and each points back to the Standards of Quality. The regulation also says the board approves the courses that satisfy each requirement, so the practical answer for any one class lives in your school division’s program of studies. Our column is a reading of the published text, not legal advice and not a ruling for any particular course.

A seventh grader planning ahead

If a student already loves coding, the question for the middle school counselor is which high school CS course counts as a mathematics or laboratory science credit in your division, and in which grade it can be taken.

A ninth grader on the advanced track

With four mathematics and four laboratory science credits to earn for an advanced studies diploma, an approved CS course in one of those slots can make room in a crowded timetable.

A junior heading for AP

AP Computer Science A or Principles adds college-level work. Whether the school counts it as mathematics, science, CTE or an elective is the division’s decision under the Board’s guidelines.

The published figures

How many Virginia high schools offer computer science, and how many students enroll

Virginia figures from the Code.org (2025) State of AI + CS Education data and from the College Board, as published.

Share of Virginia public high schools offering foundational computer science (Code.org, 2025)
School yearShare offering CSNote
2018 to 201973%
2019 to 202073%
2020 to 2021No figure publishedThe sheet shows a dash
2021 to 202275%
2022 to 202374%
2023 to 202468.4%229 of 335 high schools, reported by the State Education Agency
Enrollment and AP in Virginia, as published
MeasureVirginiaSource
High school students enrolled in CS, 2022 to 202319,801 of 400,497, or 4.94%Code.org (2025); student total from NCES, fall 2022
CS enrollment share, 2020 to 2021 and 2021 to 20226.5% and 5.7%Code.org (2025)
Schools with AP exams, 2023 and 2024455 in 2023, 453 in 2024College Board, School Report of AP Exams by State 2023-24
Of those, public schools325 in 2023, 324 in 2024College Board
Of those, non-public schools130 in 2023, 129 in 2024College Board

Three things stand out, and none of them needs a guess about causes. First, Virginia’s access share was in the low to mid seventies for four reported years, then 68.4% in 2023 to 2024. Second, the enrollment share fell in each of the three years published, from 6.5% to 4.94%. Third, the two measures are years apart: the newest enrollment figure is 2022 to 2023, the newest access figure 2023 to 2024, so do not divide one by the other. We report the pattern; the data alone does not say why it moved.

Suggested citation for the access and enrollment figures: Code.org (2025). 2025 State of AI + CS Education. We quote individual Virginia values from the raw sheet’s access and participation tabs and do not republish the dataset.

Signature project

Cleaning Fairfax County’s trail and bike lane records before ranking them

Fairfax County publishes its Existing Bicycle and Pedestrian Network as open GIS data. We downloaded every record on 18 October 2026. Before a student can rank anything, the labels have to be made consistent.

Records by TREATMENT_TYPE, and our mileage from the Shape__Length field (our calculation, not county figures)
Treatment type in the dataRecordsOur miles
ShareRoad2,335574.9
Trail2,571533.6
BikeLane555145.8
Path16964.4
Sidewalk40150.8
Sharrow13628.1
UnmarkedCross and MarkedCross560 and 3447.1 and 6.1

Step 1: count before you trust

The service reported 7,237 records and allowed 2,000 per request, so the download took four pages. Students check that the rows they hold equal the count the server reports before calculating anything. Ours matched exactly.

Step 2: make the labels agree

The CONDITION field holds both “Poor” and “POOR”, both “Excellent” and “EXCELLENT”, and dozens of entries that are a single space. MAINTENANCE has “Unknown” 1,246 times and “UNKNOWN” 56 times. Stripping spaces and upper-casing fixes the counting.

Step 3: filter, then rank

Keep only Trail records, total the length for each FACILITY_NAME, sort from longest to shortest. The layer stores lengths in US feet, so dividing by 5,280 gives miles. Fairfax County Parkway Trail comes first in our run, at 20.26 miles across 43 segments.

Top named trails after filtering to TREATMENT_TYPE = Trail (our sums of Shape__Length, labelled ours)
FACILITY_NAMESegmentsOur miles
Fairfax County Parkway Trail4320.26
Cross County Trail3520.24
Cross Country Trail1814.70
Ox Rd Trail E2211.22
Mount Vernon Trail149.50

One trail or two?

Look at rows two and three. “Cross County Trail” and “Cross Country Trail” might be one trail entered with two spellings, or two different things. Merging them would make it the longest trail in our table; leaving them apart keeps it second. The data cannot settle that, so a careful analyst writes the question down instead of quietly merging. That habit is worth more than the ranking itself.

There is more to question. The largest single name in the Trail rows is not a name at all: “Unnamed Trail” covers 691 segments, and 74 records list two supervisor districts separated by a semicolon, which breaks any simple count by district. Fairfax County says it makes no warranties about the accuracy or completeness of its GIS data, so every mile above is our arithmetic on one download, never an official trail length. A student who can explain each of those caveats has learned more about data than any ranking can show.

In class, the cleanup step is one line of pandas, df["CONDITION"].fillna("").str.strip().str.upper(), followed by a value_counts() before and after so the student can see exactly which labels collapsed together. The ranking is a filter with df[df.TREATMENT_TYPE == "Trail"], a groupby on the name and a sort. Short code, but every line carries a decision the student must defend.

Class times

Eastern Time from Chincoteague to Cumberland Gap

The whole Commonwealth uses the IANA zone America/New_York, which the time zone database describes as “Eastern (most areas)”.

One zone, one schedule

Arlington, Richmond, Roanoke and Norfolk all keep the same clock, so a mixed batch of Virginia students never has to translate times between themselves.

The teachers’ side

Our teachers work on India time, which has no daylight saving. The gap to Virginia therefore widens by an hour in winter, and we always write class times in Eastern Time so parents do not have to do the arithmetic.

This school year’s changes

The IANA rule for the United States moves clocks back on the first Sunday in November and forward on the second Sunday in March: November 1, 2026 and March 14, 2027 for this school year.

A bug to write on purpose

Students who store a class time as a fixed offset from India time watch it drift by an hour across November 1, 2026. Rewriting the reminder with the America/New_York zone teaches why programmers never hard-code an offset.

Learning ladder

A Virginia path from kindergarten blocks to AP Java

Grade bands are a rough guide; the free first lesson places each student by what they can already do.

Grades K to 5

Blocks and stories

Sequencing, loops and events in Scratch, then small games that make computational thinking visible.

Scratch Coding for KidsCoding for Kids
Grades 6 to 8

Typed code

Python and simple web pages, chosen so a high school CS course feels familiar on day one.

Python and AI for KidsHTML & CSS for Beginners
Grades 9 to 10

Real data and bigger programs

Python with files and pandas, and projects built on public data like the Fairfax trails layer.

Python for TeensData Science for Teens
Grades 11 to 12

AP and machine learning

AP Computer Science A in Java, or AI models trained and checked on data the student understands.

AP Computer Science AAI and Machine Learning for Teens
Coding and AI

Could a chatbot have cleaned the Fairfax data for you?

It could write the code. It could not tell you which choices the code was making.

Ask an AI assistant to rank Fairfax trails and it will happily produce a script. It may or may not upper-case the labels, it will not notice that two trail names differ by one letter, and it will not warn you that 691 segments have no name. Each of those silent choices changes the answer, and a student who has never cleaned data by hand has no way to spot them.

That is why Virginia’s law speaks of computational thinking alongside computer coding. Thinking means knowing what a step does to the data before running it. In our AI units students use assistants openly, then audit what they produced line by line, the same way they audit their own code.

Assistants make typing faster; judging the output is still the student’s job, and it is the part schools and colleges actually assess. The longer argument is in why coding still matters when AI writes code.

Delivery

From Northern Virginia to Hampton Roads, the same live classroom

Distance from a coding center stops mattering when the class comes to the kitchen table.

Learn from home

A student in Loudoun and one in Danville can sit in the same live session, each at their own computer, with no commute after school or practice.

Virginia school calendar

Teachers work in US grade levels and plan around semesters, SOL testing windows and AP exam season. Graded school assignments always remain the student’s own work.

Free first lesson

A real coding task with a teacher, then a recommendation for level, course and time. No payment details are requested at this point.

Matched batches

Groups of fifteen to twenty students at the same stage, drawn from Virginia and other states.

One to one

A dedicated teacher for students preparing for AP, catching up after a missed unit, or simply moving faster than any group.

Scheduling

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

Online only

Every Modern Age Coders class is taught live over video from India. We have no office or classroom in Virginia and do not claim one. A laptop or desktop, headphones and a steady connection are all a student needs.

Fees

Fees for Virginia families

The figures below are the whole price list.

First classUSD 0

One full lesson at no charge, ending with a recommended course, level and class time.

Group tuitionUSD 100

A month of live classes in a group of fifteen to twenty students at a similar level.

Private tuitionUSD 150

A month of live classes with a teacher working with one student only.

Families in the United States pay in US dollars, and a student in Fairfax pays what a student in Abingdon pays. Nothing is billed until after the free lesson, once course and time are agreed; the pricing page covers holidays and missed sessions.

Reviews

Reviews from parents and students on Google

Rated 4.9 across 547 Google reviews. These are real reviews, reproduced as written.

★★★★★

"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

Free placement class

Book a free first lesson for your Virginia student

Tell us the grade and what the student enjoys. A second grader might start with a Scratch animation, an eighth grader with a first Python program, and a junior with the Fairfax trail data.

+1

FAQ

Virginia computer science questions from parents

Short answers, each tied to the source named on this page.

Is computer science required to graduate in Virginia?

Not as a separate course in the diploma table of 8VAC20-132-51. Instead, Code of Virginia section 22.1-253.13:4 says computer science credits are to be considered science, mathematics or career and technical education credits.

Can a CS class count as a math credit in Virginia?

The diploma regulation says a computer science course credit may be considered a mathematics credit, citing the Standards of Quality. Which specific courses count is set by the Board and your school division, so confirm with the school counselor.

Do Virginia schools have to teach coding?

The Standards of Learning must include computer science and computational thinking, including computer coding, under section 22.1-253.13:1, and local school boards must emphasize it in a K through 12 program of instruction.

How many credits does a Virginia diploma need?

Under 8VAC20-132-51, a Standard Diploma needs 22 standard units of credit and an Advanced Studies Diploma 26 standard units, each with 5 verified credits.

Can computer science replace a world language credit?

Only in two narrow cases in the statute: certain English language learners with a qualifying language exam score, and advanced studies students whose IEP specifies a world language accommodation. A counselor must explain possible college entrance effects.

How many Virginia high schools offer computer science?

Code.org reports 229 of 335 Virginia high schools, or 68.4%, offering foundational computer science in 2023 to 2024, with 4.94% of high school students enrolled in 2022 to 2023.

Will your classes give my child a school credit?

No. Credits come only from courses approved by the Board and the school division. Our classes build skill, projects and AP readiness alongside school, and graded school work stays the student's own.

When do classes run for Virginia students?

Weekdays or weekends, flexible: choose your batch, or for a very personalised plan choose 1-on-1 at your convenience, weekend mornings or weekdays. Every time is confirmed in Eastern Time.

Do you have a location in Virginia?

No. There is no Virginia office or classroom, and none is claimed. Every class is live online with a teacher in India.

Where are the prices?

They are in the fees section of this page: a free first lesson, then a monthly group option and a monthly one-to-one option, with billing only after the free lesson.

Explore the United States

Where Virginia students go from here

Juniors aiming at the Java exam can read about AP Computer Science A classes, and students choosing between the two AP courses can start with AP Computer Science Principles coaching. High schoolers planning a portfolio can browse coding classes for high school students and the Congressional App Challenge guide. For another state’s approach, see North Carolina, or return to the United States hub.

Free classPriority demoCall us

Keep exploring Modern Age Coders

Coding classes in nearby places

Learn more

Free resources

From the blog

Start here