Your Kid's CS Education Depends on Their Zip Code. The State Data.
Table of Contents

Your Kid's CS Education Depends on Their Zip Code. The State Data.

Computer science education in US schools varies wildly by state. Some require CS for graduation; others have near-zero access. Here's the state-by-state data and what parents can do.

Why Your Kid’s CS Education Depends on Their Zip Code — The State-by-State Breakdown

In 2023, a high school junior in Arkansas was required to take at least one computer science credit to graduate. That same year, a kid in the same grade in Montana could spend all four years of high school without ever sitting in a CS class—because fewer than 10% of Montana schools offered one.

Neither kid did anything different. One happened to live somewhere where lawmakers decided computing was essential. The other didn’t.

Computer science education in US schools is a patchwork—some states have mandated it, funded it, and built teacher pipelines for it. Others have left it entirely optional, underfunded it, or simply never started. Your child’s exposure to the most important technical skill set of the next 50 years is, in most states, determined by their zip code. Not by their ability. Not by their interest. By geography.

Here’s what the data shows about where the gaps are, who they hurt most, and what parents can actually do about it.

The CS Mandate Map: Which States Require CS and Which Don’t

As of 2024, Code.org’s annual State of Computer Science Education report shows:

  • 35 states have a CS education policy that sets K–12 standards
  • 25 states require that every public school offers CS
  • Only 10 states require CS as a graduation requirement for high school
  • No federal law mandates CS education at any grade level

The states with the strongest CS mandates include Arkansas, which has required CS for graduation since 2015 and saw a dramatic rise in the number of students taking CS courses—from fewer than 2,000 per year before the mandate to over 12,000 per year after. Texas, Virginia, and Maryland have strong policy frameworks that make CS broadly accessible. Arkansas is the most studied example because its mandate was early and clear.

At the other end: several states have no CS standards, no requirement that schools offer CS, and no dedicated teacher pipeline. Montana, Wyoming, and Alaska have among the lowest rates of school CS access. In some of these states, a motivated student might find a single AP Computer Science course at one school in the district—or nothing.

This isn’t about rural vs. urban in a simple way, either. Rural Arkansas has better CS access than suburban Montana. Policy decisions, not demographics, drive the variation.

What “Required CS” vs. “Optional CS” Means for Your Kid’s Pipeline

The difference between a CS mandate and optional availability isn’t just about whether your child takes a class. It’s about what kind of educational and career pipeline opens up afterward.

Research by the Computer Science Teachers Association (CSTA, 2023) shows that students who take CS courses in high school are significantly more likely to pursue CS majors in college, more likely to enter technology careers, and—critically—more likely to understand that those pathways are open to them. The awareness problem is real: in states without CS requirements, surveys consistently find that girls, students from low-income households, and students of color are far less likely to seek out CS electives even when they exist. Mandates solve the discovery problem by making the exposure automatic.

The pipeline effect compounds over time. A student who writes their first loop in 6th grade and debugs their first program in 8th grade arrives at high school programming with a foundation. A student who first encounters computing in an optional 11th grade elective (if one exists) is starting from zero while their peers from CS-strong states are years ahead.

This directly parallels the national AI curriculum gap—the US has no federal mandate for AI literacy education either, which our article on China’s mandatory AI education vs. the US approach covers in depth.

How the CS Gap Breaks Down by Income and Race

The CS access problem is not evenly distributed. According to CSTA’s 2023 equity data and NSF CS education reports:

Group% of CS courses taken (2022–23)% of overall HS enrollmentGap
White students58%47%Overrepresented
Asian students16%5%Overrepresented
Hispanic students17%27%Underrepresented
Black students9%15%Underrepresented
Low-income schools (Title I)~30% offer CS~50% of all schoolsMajor access gap
Non-Title I schools~60% offer CS~50% of all schoolsMeaningful advantage
Girls (all groups)31% of AP CS A test takers50% of HS enrollmentSubstantial gap

Sources: CSTA (2023) State of CS Education; NSF Science & Engineering Indicators 2023; College Board AP data 2023

Jane Margolis, whose book Stuck in the Shallow End (2008) examined CS equity in Los Angeles Unified School District, documented the mechanisms behind these patterns: schools with wealthier, whiter student populations got the newer computers, the qualified CS teachers, and the course offerings. Schools with predominantly Black and Hispanic students got the basic digital literacy courses—if they got anything computing-related at all. That pattern from 2008 persists in the 2024 data in states without mandates.

Mandates matter most for equity. When Arkansas required CS for all graduates, the demographic mix of CS students changed: girls’ enrollment in CS courses rose sharply, and the gap between affluent and low-income school CS participation narrowed substantially. The mandate didn’t eliminate the gap, but it cut it significantly.

What States With Strong CS Mandates Actually See in Outcomes

Arkansas is the most-studied case. Before its 2015 mandate, CS was an elective taken by a small, self-selected group of students—disproportionately male, white, and from higher-income families. After the mandate:

  • Total CS enrollment increased by approximately 6x
  • Female enrollment in CS nearly tripled
  • Students from rural and low-income districts enrolled in CS at rates approaching urban/suburban peers
  • The percentage of Arkansas high school graduates reporting comfort with programming concepts rose substantially in follow-up surveys

Virginia launched a K–12 CS framework in 2020 with dedicated teacher certification pathways and per-pupil CS funding. Early data shows teacher supply increasing and school-level CS offerings broadening.

Texas—the state with the largest absolute number of CS students in the country—doesn’t have a graduation requirement, but its combination of CS endorsements for teachers, state-funded CS professional development, and strong university partnerships has produced broad access without a mandate. The Texas approach shows that mandates aren’t the only path, but they require substantial substitute investment.

The pattern is clear: policy without funding and teacher pipeline produces paperwork, not outcomes. States that mandate CS without building teacher pipelines find themselves in the same place—requirements on paper, no one qualified to teach the classes.

For the bigger picture of where the US sits globally on computing skills and education competitiveness, see our PISA 2022 analysis.

What Parents Can Do If Their State Has No CS Requirement

Most parents reading this can’t change their state’s CS policy alone. But there are concrete moves at the household and school level that matter.

Find out what your school actually offers

Code.org publishes a publicly accessible state policy map at code.org/advocacy. Start there to understand what your state requires. Then ask your school’s guidance counselor directly: “What CS or computing courses does this school offer, and when can students take them?” The answer might surprise you—some schools have CS offerings that students never discover because nobody mentions them.

Push for CS in middle school specifically

The research is consistent: CS engagement before 9th grade predicts later CS participation more reliably than anything else. If your child’s middle school has no CS offering, that’s a gap worth raising at the school board level. Middle school CS doesn’t require AP-level rigor—coding integrated into math or science classes counts.

Use free structured curricula outside school

This is practical and works. Code.org’s Courses A–F for ages 4–11, Harvard’s CS50 (free, online, genuinely rigorous), and Khan Academy Computing are all free, self-paced, and legitimate. A motivated 8th grader can finish CS50 at home and arrive at high school with the equivalent of a semester of college CS. This doesn’t fix the equity problem for kids without time and stable internet access—but for families with those resources, it bypasses the state lottery entirely.

Advocate at the state level

This actually moves policy. Arkansas’s mandate came from sustained advocacy by the Winthrop Rockefeller Foundation and local educators. Code.org and CSTA both maintain advocacy toolkits specifically designed for parents who want to push their state legislature. A parent who shows up to a school board meeting with state-level data is more influential than most people assume.

The National AI Curriculum Gap: What No Federal Mandate Means

If the state-by-state CS patchwork is concerning, the AI education gap is more so. As of 2025, no US state mandates AI literacy education as a K–12 graduation requirement, and only a handful have incorporated AI concepts into CS standards at all.

The federal government funds some AI education research through NSF and DARPA, but there is no national curriculum, no national standard, and no requirement that any student encounter AI concepts before graduation. Meanwhile, China mandated AI education for all K–12 students in 2018, has published national AI textbooks, and has been rolling out mandatory AI courses at the middle and high school levels for years.

The ACM K–12 CS Framework (developed by CSTA, ACM, and Code.org collaboratively) includes AI as a component of computer science that all students should encounter, but frameworks are recommendations, not requirements. Without a policy mechanism to translate frameworks into classroom time, frameworks remain aspirational documents.

The equity implications are significant: without a mandate, AI literacy will be learned primarily by students in well-resourced schools, in states with forward-looking CS policies, with parents who know to seek it out. The kids in schools with no CS access won’t just lag in CS—they’ll lack the vocabulary to understand the AI tools that will define their professional lives.

What to Watch for Over the Next School Year

  • This fall: Ask your child’s school directly whether CS is offered and in what form. “Do you teach any computing or coding?” is a start.
  • By January: If your state has no CS mandate, check whether your state legislature has any CS bills in session. CSTA posts this at csteachers.org. Contacting your representative takes 10 minutes and costs nothing.
  • By spring: If your child has shown any interest in computing—games, apps, anything digital—explore one free resource with them (Code.org, Scratch, CS50). The goal isn’t to build a programmer; it’s to show them the door is open regardless of what their school does or doesn’t offer.

Frequently Asked Questions

Does my state require computer science for graduation?

As of 2024, only 10 states require CS as a high school graduation requirement: Arkansas, Virginia, Georgia, South Carolina, Nevada, Oklahoma, Louisiana, Idaho, Mississippi, and Alabama have some form of CS graduation requirement. Check Code.org’s state policy map (code.org/advocacy) for the most current status for your state.

What’s the difference between digital literacy and computer science?

Digital literacy covers how to use tools—email, word processors, internet search, basic security practices. Computer science covers how to build and understand computational systems—programming, algorithms, data structures, AI concepts. Both matter, but they’re not the same. Many schools offer digital literacy and count it as technology education; it is not a substitute for actual CS.

My child’s school has CS, but only as an elective. Is that enough?

Better than nothing, but the research on elective-only access shows consistent demographic skew: boys, white students, and students from higher-income families disproportionately self-select into CS electives even when the courses are available. If the goal is your specific child’s exposure, an elective is sufficient—make sure they know it exists and can enroll.

How can I tell if a CS course is actually rigorous?

Look at what students produce, not just what the course is called. A rigorous CS course has students writing programs that do something, debugging code that doesn’t work the first time, and encountering at least one concept that requires genuine thinking (functions, loops, conditionals, data structures). AP CS Principles and AP CS A are the clearest national quality benchmarks. CS50 from Harvard is a freely available rigorous alternative.

Is coding the same as computer science?

Coding (writing programs in a specific language) is a subset of CS. Computer science also includes algorithm design, logic, data structures, computer organization, networking, AI, and software engineering. A kid who can write Python isn’t necessarily learning CS—they may be learning to use a tool. A kid who learns to think algorithmically and debug systematically is learning CS.

What if my child isn’t interested in being a programmer?

CS isn’t a programming track; it’s increasingly the language that underpins every professional field. A designer who understands data visualization code, a doctor who understands how diagnostic AI works, a journalist who can scrape public data—these aren’t programmers, but CS literacy shapes their professional possibilities. The goal isn’t to make all kids programmers; it’s to make sure the option isn’t foreclosed by a zip code.


About the author

Ricky Flores is the founder of HiWave Makers and an electrical engineer with 15+ years of experience building consumer technology at Apple, Samsung, and Texas Instruments. He writes about how kids learn to build, think, and create in a tech-saturated world. Read more at hiwavemakers.com.

Sources

  1. Code.org Advocacy Coalition. (2024). 2024 State of Computer Science Education: Laying the Foundation. https://advocacy.code.org/2024_state_of_cs.pdf
  2. Computer Science Teachers Association. (2023). CSTA K–12 CS Education Equity Report. https://csteachers.org/equity
  3. National Science Foundation. (2023). Science & Engineering Indicators: K–12 Computer Science Education. https://ncses.nsf.gov/pubs/nsb20231
  4. Margolis, J., et al. (2008). Stuck in the Shallow End: Education, Race, and Computing. MIT Press.
  5. ACM & CSTA. (2020). K–12 Computer Science Framework. https://k12cs.org/
  6. College Board. (2023). AP Computer Science A and Principles Participation Data. https://research.collegeboard.org/data
  7. Darling-Hammond, L., et al. (2020). “Implications of Opportunity to Learn for Accountability.” Education Policy Analysis Archives, 28(23). https://doi.org/10.14507/epaa.28.4723
Ricky Flores
Written by Ricky Flores

Founder of HiWave Makers and electrical engineer with 15+ years working on projects with Apple, Samsung, Texas Instruments, and other Fortune 500 companies. He writes about how kids learn to build, think, and create in a tech-driven world.