> ## Content Index
> Fetch the complete content index at: https://aiadoption.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# 254,800 AP computer science exams were taken in 2024, up 4.8%, after 21% growth the year before
- URL: https://aiadoption.org/data/ap-computer-science-exams-taken/
- Published: 2026-10-19T17:22:04.000Z
- Updated: 2026-10-21T06:05:41.000Z
- Description: US students took 254,800 AP computer science exams in 2024, 13 times as many as in 2007. Growth slowed to 4.8% from 21% between 2022 and 2023.
- Author: Manu
- Tags: Data, AI in Education, AI in the US, #chart, #ai-index-2026, #hub-education, #country-us

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

| Measure | Value   |
| ------- | ------- |
| 2024    | 254,800 |
| 2023    | 243,180 |
| 2022    | 201,610 |
| 2017    | 99,870  |
| 2016    | 54,380  |
| 2007    | 19,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](https://aiadoption.org/sources/#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)](https://charts.aiadoption.org/ai-index/csv/ap-computer-science-exams-taken.csv?ref=aiadoption.org) · [Cite this chart](#source)