Science

AP’s Newest Computer Science Course Has Attracted More Diverse Students

By Sarah Schwartz — April 15, 2025 5 min read
Side view of young  African girl programming electric toys and robots at classroom.
  • Save to favorites
  • Print

Encouraging students to pursue higher-level science, technology, engineering, and math courses requires deliberate planning, especially for those students historically underrepresented in those fields.

Schools can’t put more advanced courses on the schedule without teachers who feel confident taking on the material. And even then, simply offering such classes doesn’t necessarily mean students will enroll in them—or succeed.

But one Advanced Placement STEM course has overcome many of these barriers, a new study finds.

When schools offered the relatively new AP Computer Science Principles course, more students took any AP computer science exam at the end of the year—and the number of female, Black, and Hispanic exam-takers more than quadrupled, concludes the research from Stanford University.

“What we’re seeing here strikes me as a really notable success in education policy,” said Thomas Dee, a professor at Stanford University’s Graduate School of Education, and an author of the study. “It suggests the promise of really intentional course design that instantiates high expectations and gets academically rigorous content in front of our kids.”

The College Board, the organization that runs the AP program, launched AP Computer Science Principles, or AP CSP, during the 2016-17 year, aiming to bring more Black, Latino, and female students into the field. It serves as an introduction to the discipline, exploring the core concepts that underlie computer science and its real-world applications—in contrast to the longer-standing AP Computer Science A course, which focuses more squarely on hands-on programming.

AP CSP has been one of the fastest-growing AP options over the past few years. Students who take it are more likely to declare STEM majors in college compared to their peers who didn’t have AP CSP available to them, the College Board has reported.

Now, the Stanford study shows that, at least in Massachusetts where the study was conducted, this rapid growth comes from more students who wouldn’t have otherwise taken computer science courses entering the discipline—not from kids who would have taken AP Computer Science A opting to take the CSP course instead.

It’s possible, the researchers said, that offering AP CSP could have introduced new inequities into schools. Girls, and Black and Latino students, might have switched into—or been routed into—the CSP course instead of Computer Science A. The former is more introductory and contains less technical content.

“There’s a long history of worry about exactly that—the in-school stratification that can happen when there are different pathways to academic rigor,” said Dee.

But that’s not what happened. The number of students taking AP Computer Science A remained mostly unchanged, while the number of kids taking the AP CSP test rose, the researchers found.

“If that continues, that’s hundreds of thousands, maybe millions, of kids who are exposed to rigorous computer science in high school,” said Daniela Ganelin, a PhD student at Stanford and the lead author on the study.

How AP’s two computer science courses differ

The researchers compared two sets of schools in Massachusetts: 172 schools that offered at least one course in AP CSP, and 115 schools that only offered AP CSA. They examined the number of students who took any AP computer science exam—CSP or CSA—between the 2016-17 school year and the 2020-21 school year.

They found that in schools that offered AP CSP, schools reported on average an additional 16 computer science exams taken each year. These test-takers are a more diverse group than before, with more girls, Black students, and Hispanic students represented.

Still, the overall numbers of historically underrepresented students taking AP exams in the subject are small, said Dee. For example, in a typical AP CSA course in Massachusetts, data show one or two girls enrolled, compared to five girls in an AP CSP course.

“It’s a change that’s substantial, but often a very low base,” he said.

The researchers also found an unexpected bonus: Schools that offered AP CSP saw more AP exam participation overall—over and above the increase due to computer science exams alone.

Massachusetts—which the researchers chose because of the state’s department of education’s detailed data on AP participation—has higher AP participation in general than other states. The effect of offering AP CSP could vary in other places.

The study didn’t investigate why exam-taking increased, but Ganelin offered some hypotheses. The designers of the course were “very intentional” about making it accessible to all students, regardless of prior programming experience, she said. The College Board has also offered summer training programs for teachers to prepare them for the class—slightly more than half of educators teaching AP CSP don’t have a background in the subject.

“I think this is all very positive,” said Doug Havard, an assistant professor of quantitative methods in the Attallah College of Educational Studies at Chapman University in Orange, Calif., whose research compares the two AP computer science offerings. (He was not involved with the Stanford study.)

Still, he offered some caution in assuming that students in AP CSP are receiving the same access to, and preparation for, STEM education as their peers in AP CSA, because of some of the design choices the course’s creators made.

Students in the AP CSP course don’t learn a designated programming language—which differs from AP CSA, in which students work in Java, a commonly used programming language.

An AP CSP teacher at one school might use Scratch, a beginner language aimed at teaching kids and teens how to code, Havard said. Another teacher at a different school might teach students to work in Python, a general-purpose programming language that’s used by many large tech companies and government agencies.

Both groups of students might do well in the course, but they would leave it with different levels of preparation for college and the workforce, he said.

“The way that AP Computer Science Principles is written,” Havard said, “it could look very different in the same school setting with two different teachers.”

A version of this article appeared in the April 30, 2025 edition of Education Week as AP’s Newest Computer Science Course Has Attracted More Diverse Students

Events

School & District Management Webinar Squeeze More Learning Time Out of the School Day
Learn how to increase learning time for your students by identifying and minimizing classroom disruptions.
This content is provided by our sponsor. It is not written by and does not necessarily reflect the views of Education Week's editorial staff.
Sponsor
Reading & Literacy Webinar
Improve Reading Comprehension: Three Tools for Working Memory Challenges
Discover three working memory workarounds to help your students improve reading comprehension and empower them on their reading journey.
Content provided by Solution Tree
Recruitment & Retention Webinar EdRecruiter 2026 Survey Results: How School Districts are Finding and Keeping Talent
Discover the latest K-12 hiring trends from EdWeek’s nationwide survey of job seekers and district HR professionals.

EdWeek Top School Jobs

Teacher Jobs
Search over ten thousand teaching jobs nationwide — elementary, middle, high school and more.
View Jobs
Principal Jobs
Find hundreds of jobs for principals, assistant principals, and other school leadership roles.
View Jobs
Administrator Jobs
Over a thousand district-level jobs: superintendents, directors, more.
View Jobs
Support Staff Jobs
Search thousands of jobs, from paraprofessionals to counselors and more.
View Jobs

Read Next

This content is provided by our sponsor. It is not written by and does not necessarily reflect the views of Education Week's editorial staff.
Sponsor
Science Quiz
Quiz Yourself: Evaluating Effective Science Instruction in Your District
Answer 7 questions about evaluating effective science instruction in your district.
Science Opinion Science Scores Are Down. But We Know What Would Improve Them
The when, where, and how of science instruction needs rethinking.
Emma Banay, Christine Cunningham & James Ryan
4 min read
Flat vibrant vector illustration depicting science education and learning concept. Illustration is showing different ways of learning: listening, watching, observing, exploring, experimenting, asking questions, talking and communicating, reading, drawing, and writing. The female teacher is placed on the right side and there are also two pupils each one representing different theme; one girl asking question and learning by listening  and a boy holding a hand up to answer a question.
DigitalVision Vectors/Getty
Science What's Behind the Drop in Students' Science Scores on NAEP?
Survey results from the National Assessment of Educational Progress show 8th graders do less scientific inquiry now than five years ago.
4 min read
Middle school students learn about the value and shape of matter while building containers to hold liquid during an 8th grade science class at Boys’ Latin School of Maryland on Oct. 24, 2024 in Baltimore, Md.
Eighth graders learn about the value and shape of matter while building containers to hold liquid during a science class at Boys’ Latin School of Maryland on Oct. 24, 2024, in Baltimore. Nationally, 8th graders lost ground in science, according to the 2024 National Assessment of Educational Progress.
Jaclyn Borowski/Education Week
Science Opinion Science Is Losing the Battle for America’s Trust. How Schools Can Help
I grew up a creationist and became a science educator. Here’s what I know about building trust in science.
Amanda L. Townley
8 min read
A diverse group of people building a hall of science using scientific tools, blocks, and symbols.
Islenia Mil for Education Week