254,800
▲ 4.8% vs 2023
AP computer science exams taken in the US, 2024
20072024

What the chart shows

US high school students took 254,800 Advanced Placement computer science exams in 2024, up 4.8% on 2023 (243,180) and 13 times the 19,390 of 2007.

Growth has been uneven. The number of exams nearly doubled between 2016 and 2017, from 54,380 to 99,870, and rose 21% between 2022 and 2023. It was almost flat during the pandemic, rising 1.0% between 2020 and 2021.

Key numbers

MeasureValue
2024254,800
2023243,180
2022201,610
201799,870
201654,380
200719,390

How to read it

  • AP computer science exams taken in the US, as compiled by Code.org. The data is in thousands to two decimal places, so counts are exact to the nearest 10.
  • The AI Index notes that AP computer science does not include AI-specific content.
Source: Code.org, 2025, via the AI Index Report 2026 (Stanford HAI), figure 7.3.13: Number of AP computer science exams taken, 2007–24. Chart and text by AI Adoption.
Numbers checked against the published data on 20 October 2026.
Download the data (CSV) · Cite this chart