Dig Deeper into AP Computer Science

The AP Computer Science exams are widely accepted by the computer science education community as one of the most reliable measures of high school computer science course-taking patterns. The College Board’s rigorous methodology and data gathering has enabled us to see trends in AP Computer Science A exam-taking over time, by state, by gender, and by racial/ethnic group; as well as the impact of AP Computer Science Principles course, which launched in the 2016-17 school year. This page contains a summary of that data.

This data comes directly from the public spreadsheets available on a per-state basis from the College Board.

AP Computer Science Over Time

When evaluating data and trends, it is important to recognize that for the 2020 exam data, COVID-19 likely impacted AP test taking in significant ways that we do not yet completely understand.

Change in race/ethnicity categories: In 2016, the College Board changed the race/ethnicity categories that they report. Prior to 2016, they reported on “American Indian” students; we include this data under the current category of American Indian/Alaska Native (labeled in our chart as Native American/Alaskan). Prior to 2016, they also reported on Mexican American, Puerto Rican, and Other Hispanic students; we include this data under the current category of Hispanic/Latino/Latina. The racial group of Native Hawaiian/Other Pacific Islander was added after 2016.

In order to download the raw data, click the download icon (a square with an arrow pointing downward) in the bottom right corner of the figure. Be sure to click somewhere on the figure before clicking this icon -- otherwise, the "Data" option will be grayed out. Click "Data," then select the "Full data" tab. Click "Download all rows as text file" to download the data as a CSV.

2021 Outcomes

General

The total number of exams taken in CS increased as compared to 2020, although the number of CSP exams taken dropped slightly:

  • CSA: +2,632 exams, or +4%
  • CSP: -745 exams, or -0.6%
  • All CS Exams: +1,887 exams, or +1%

22 states saw an increase in the number of total CS exams taken in 2020:

  • CSA: 21 states saw a decrease in CS A exams
  • CSP: 29 states saw a decrease in CS P exams

Female student participation

Female student participation in CS increased as compared to 2020, although female student participation in CSP dropped:

  • CSA: +922 exams, or +6%
  • CSP: -475 exams, or -1%
  • All CS Exams: +447 exams, or +1%

Gender gaps in CSA passing rates (score 3+) widened as female student passing rates dropped below those of male students on each exam.

  • CSA: female student passing rate was 61% (-2% as compared to males). This is similar to the gap in 2020.
  • CSP: female student passing rate was 64% (-3% as compared to males). In 2020, the female student passing rate surpassed that of male students for the first time.
  • All CS Exams: female student passing rate was 63% (-3% as compared to males). This is a pretty significant drop from the 74% female student passing rate in 2020.

Underrepresented student participation

For 2021 College Board data, we consider the following racial/ethnic group categories to be underrepresented groups in CS: Native American/Alaskan, Black/African American, Hispanic/Latino/Latina, and Native Hawaiian/Pacific Islander. (Other categories reported by the College Board are Asian, white, two or more races, other, and no response.) Note that until 2016, the College Board reported demographics using different categories; for those years, the following racial/ethnic group categories are considered to be underrepresented groups: American Indian, Black, Mexican American, Puerto Rican, and Other Hispanic. (Other ethnic categories reported by the College Board include Asian, white, other, and not stated.) The majority is defined as White and Asian students.

Native American/Alaskan student participation in CS increased as compared to 2020:

  • CSA: +132 exams, or +71%
  • CSP: +118 exams, or +19%, CS P has the highest rate of Native American student participation across STEM AP exams
  • All CS Exams: +250 exams, or +30%

Black/African American student participation in CS increased as compared to 2020:

  • CSA: +584 exams, or +3%
  • CSP: +236 exams, or +3%, CS P has the highest rate of Black student participation across STEM AP exams
  • All CS Exams: +820 exams, or +8%

Hispanic/Latino/Latina student participation in CS increased as compared to 2020, however Hispanic/Latino/Latina student participation decreased in CSP:

  • CSA: +770 exams, or +11%
  • CSP: -348 exams, or -2%, CS P has the 2nd highest rate of Hispanic/Latino/Latina student participation across STEM AP exams
  • All CS Exams: +422 exams, or +2%

Native Hawaiian/Pacific Island student participation in CS increased as compared to 2019, however Native Hawaiian/Pacific Island student participation decreased in CSP:

  • CSA: +12 exams, or +20%
  • CSP: -9 exams, or -5%, CS P has the highest rate of Native Hawaiian/Pacific Island student participation across STEM AP exams
  • All CS Exams: +3 exams, or 1%

Deep Historical Analysis of State Data by Barb Ericson

  • Barb Ericson at the University of Michigan has been doing much deeper analyses of these AP Computer Science exam data for many years. If you're interested in the really deep dive, check out her AP Data Page.

Downloads

  • Download the state-by-state data over time powering the map above: In order to download the raw data, click the download icon (a square with an arrow pointing downward) in the bottom right corner of the figure. Be sure to click somewhere on the figure before clicking this icon -- otherwise, the "Data" option will be grayed out. Click "Data," then select the "Full data" tab. Click "Download all rows as text file" to download the data as a CSV.

Code.org performed calculations and analysis on the data as provided on the public College Board AP data reports.