60%
▲ 25 pts since 2017–18
US public high schools teaching foundational computer science, 2024–25
20172024

What the chart shows

Code.org counts 60% of US public high schools teaching foundational computer science in the 2024–25 school year, up from 35% in 2017–18. The share rose every year until 2024–25, when it held at 60%.

The largest jump came between 2017–18 and 2018–19, from 35% to 45%; since then annual gains have been 2 to 5 percentage points. The AI Index notes growth in many states and declines in a few, which it says may reflect budget cuts or other priorities.

Key numbers

MeasureValue
2024–2560%
2023–2460%
2022–2358%
2018–1945%
2017–1835%

How to read it

  • Foundational computer science courses as counted by Code.org, in US public high schools only.
  • The AI Index uses computer science as a stand-in because there is little standardised data on AI courses in US schools.
  • The 2022–23 value is stored as 57.99999999999999 in the file, a rounding artefact; we show 58%.
Source: Code.org, 2025, via the AI Index Report 2026 (Stanford HAI), figure 7.3.1: Public high schools teaching foundational CS, 2017–18 to 2024–25. Chart and text by AI Adoption.
Numbers checked against the published data on 20 October 2026.
Download the data (CSV) · Cite this chart