AI Index Report 2025

Teachers want to teach AI. Almost nobody trained them.

Chapter 7 of the AI Index 2025 — prepared with the Kapor Foundation, CSTA, and PIT-UN — looks at who actually gets to learn how AI works. Access to computer science has widened, master's degrees in AI have surged, and the gaps that have always defined computing education have not closed. The numbers:

60% of US public high schools offering foundational CS in 2023–24 (35% in 2017–18)
81% of US CS teachers who say AI belongs in foundational CS
46% of US high school CS teachers who feel equipped to teach AI (34% in elementary)
243thousand AP computer science exams taken in 2023 (19,390 in 2007)
935AI master's degrees awarded in the US in 2023 (104 bachelor's)
34% of primary schools in sub-Saharan Africa with electricity in 2023

7.2 — Access is up. Enrollment barely moved.

Since 'Computer Science for All' launched in 2016, the share of US high schools offering computer science has risen from about a third to three in five. The share of students actually taking it is 6.4%.

In the 2017–18 academic year, 35% of US high schools offered computer science. By 2023–24 that had reached 60%. But the national average hides how differently states prioritize it: 100% of high schools in Arkansas and Maryland offer CS, against 31% in Montana. Participation tells a flatter story — across 41 states with data, 5.1% of high school students took a CS course in 2020–21 and 6.4% did in 2023–24. South Carolina reaches 26%; Florida, Arizona, and Idaho sit at 2%.

Who gets offered the course

  • School size is the sharpest divide: 91.2% of large schools offer foundational CS, against 76.4% of medium and just 43.1% of small ones.
  • Income matters too. Schools where fewer than 25% of students qualify for free or reduced-price lunch offer CS at 65.0%; where more than 75% qualify, the rate falls to 50.0%.
  • Geography cuts both ways — suburban schools lead at 70.1%, with urban (58.2%) and rural (56.1%) close together at the bottom.
  • By race and ethnicity, Asian students have the highest access at 91.6%, followed by Native Hawaiian (83.3%), students of two or more races (83.0%), white (82.5%), Hispanic/Latino (80.4%), and Black students (79.7%). Native American students are last at 66.3%.

Who actually enrolls

Comparing CS enrollment against each group's share of the student population produces a ratio where 1.00 means proportional. Asian students sit at 2.60 — more than two and a half times their share. Black students (1.13), Native American/Alaskan students (1.00), and white students (1.00) are at or above parity nationally, though data gaps in nine states warrant caution. Hispanic/Latino students (0.69), Native Hawaiian/Pacific Islander students (0.75), and students of two or more races (0.80) remain underrepresented. So do girls (0.65), English language learners (0.64), students with IEPs (0.67), and economically disadvantaged students (0.72). Students with 504 plans are the one subgroup that is overrepresented, at 1.33.

Advanced coursework grew twelvefold

AP computer science exams went from 19,390 in 2007 to 243,180 in 2023. AP CS Principles, designed to attract a broader class of students, covers some AI content areas even though AP CS A does not. But the growth has not evened out participation: in 2023, 91,216 exams were taken by white students and 69,695 by Asian students, against 43,083 Hispanic/Latino, 16,351 Black, 11,238 multiracial, 801 Native American, and 321 Native Hawaiian/Pacific Islander. Asian students, white boys, and multiracial students are overrepresented among AP CS test-takers; every other group is underrepresented.

AP computer science exams taken, 2007–23

In thousands. The count grew more than twelvefold in sixteen years, with the steepest climb between 2016 and 2019 — the years AP CS Principles scaled up.

AP computer science exams taken, 2007–232007: 19.3919.3920072013: 29.5529.5520132017: 99.8799.8720172020: 179.19179.1920202022: 201.61201.6120222023: 243.18243.182023

The willingness is there. The preparation is not.

The Computer Science Teacher Landscape Survey collected data from 2,901 pre-K through 12 CS teachers nationally. It found a workforce that has already started teaching AI without being trained to.

81% of CS teachers believe that using AI and learning about AI should be part of a foundational CS learning experience. Fewer than half feel equipped to teach it — 46% in high school, 44% in middle school, and just 34% in elementary school. The gap widens as students get younger, which is the opposite of what an equitable pipeline would need.

They teach it anyway

  • Over two-thirds of middle and high school CS teachers say they cover AI specifically, despite the lack of an explicit definition in CS standards; 65% of elementary teachers do the same.
  • Of the 2,245 teachers who did spend class time on AI, most spent fewer than five hours per course. Elementary teachers spent the least — 70% spent only one to two hours.
  • In a separate 2024 survey of 364 CS teachers, 88% identified a need for more resources for AI-related professional development. Asked what specifically, they named AI literacy: how AI works, how to use it, and its ethical impacts.
  • Teachers named their greatest benefits as improved productivity, differentiating student learning, better academic support, and preparing students for the future. Their greatest concerns were misuse tied to academic integrity, AI limiting student learning or engagement, overreliance, misinformation and replicated bias, and student privacy.

The standards have not caught up

The CSTA K–12 standards were last published in 2017 and contain only two standards, both at the advanced high school level, that specifically require AI knowledge. State-adopted K–12 CS standards average 97% coverage of the same subconcepts as the CSTA standards, indicating strong national coherence — but coherence around a framework that predates the generative AI era. Of the 44 states that have adopted K–12 CS standards, 33 have AI-specific standards, generally minimal and focused on high school grades. Four states have adopted more substantial AI-specific standards spanning K–12: Colorado (2024), Florida (2024), Ohio (2022), and Virginia (2024). Arkansas has defined standards for a high school AI and machine learning course.

Federal guidance so far has been about AI in education rather than AI education — the distinction the chapter opens with. The Department of Education's Office of Educational Technology released a series of reports in 2023 and 2024, the most recent in October 2024 offering guidance on safe and effective implementation of AI in K–12 schools. As of January 2025, 26 states have issued guidance on AI in education.

Share of countries offering CS education, by continent, 2024

Every region gained ground since 2019, when the figures were Europe 63.5%, Latin America and the Caribbean 29.5%, Asia 24.5%, and Africa 9.4%. Latin America added the most (+40.9 points), Africa close behind (+39.7).

Share of countries offering CS education, by continent, 2024Europe: 88.8888.88EuropeLatin America & Caribbean: 70.4570.45Latin America & CaribbeanAsia: 57.8957.89AsiaAfrica: 49.0549.05Africa

7.3 — The master's degree is where AI showed up first

Bachelor's degrees move on a four-year cycle, so they lag. Master's degrees respond within a year — and between 2022 and 2023 the number of AI master's graduates in the US nearly doubled.

In 2023 US institutions produced 87,435 new computing bachelor's graduates, 52,107 master's, 20,725 associate degrees, and 2,540 PhDs. Bachelor's degrees in computing have grown 22% over the past decade; master's degrees grew 26% between 2022 and 2023 alone, and 83% over the decade. AI-specific programs, tracked under the CIP code created for them in 2016, are much smaller but moving faster: 935 AI master's degrees and 104 AI bachelor's degrees were awarded in 2023. The number of US institutions offering an AI-specific bachelor's degree nearly doubled between 2022 and 2023 to 19; 45 institutions offered an AI master's.

Carnegie Mellon and everyone else

Until recently Carnegie Mellon was one of the only universities offering dedicated AI programs, and it still graduates more AI majors than anyone: 32 bachelor's, 178 master's, and 28 PhDs in 2023, having doubled its bachelor's output. The next AI master's producers are the University of Pennsylvania (98), the University of North Texas (76), Northeastern (55), and San Jose State (52). At the PhD level the entire national list is Carnegie Mellon (28), Capitol Technology University (4), and the University of Pittsburgh (1). Penn State graduated its first AI class in 2022.

Who is in the classroom

  • Women earned 22% of computing bachelor's degrees, 23% of associate degrees, 24% of PhDs, and 32% of master's degrees in 2023 — even though women graduate from college at higher rates than men overall.
  • Black students earned 8% of computing bachelor's and master's degrees and 7% of PhDs. Hispanic students earned 13% of bachelor's, 8% of master's, and 4% of PhDs. White students earned 46% of bachelor's and 52% of PhDs; Asian students 23% of bachelor's, 28% of master's, and 17% of PhDs.
  • Graduate computing programs in the US run on international students. In 2023 nonresidents accounted for 67% of master's graduates and 60% of PhD graduates. International CS master's students more than doubled between 2022 and 2023, from 15,811 to 34,850.
  • Two countries dominate that flow. Among international CS master's students in US universities in 2022, India sent 72,020 and China 13,190; among PhD students, China sent 5,130 and India 2,760.

Globally, the US leads and Turkey is the outlier

Using OECD data on ICT graduates — informatics, communication technologies, and computer science — the United States produces more graduates than any other country at every level, and more than twice as many at the associate, master's, and PhD levels as the next country. In 2022 it awarded 116,401 ICT bachelor's degrees against Brazil's 61,760 and Mexico's 32,738; 55,706 master's against the UK's 21,688; and 2,759 PhDs against the UK's 1,156 and Germany's 1,008. On gender parity the ordering inverts. Women average roughly a quarter of ICT graduates at the associate, bachelor's, and PhD levels and closer to a third at master's level — in the US, 24% of bachelor's, 35% of master's, and 26% of PhDs. Turkey is the exception, where women make up at least half of ICT graduates at all four levels.

Six questions about AI in the classroom

What the chapter distinguishes, measures, and admits it cannot measure.

What is the difference between AI in education and AI education?
AI in education is the use of AI tools in teaching and learning. AI literacy is a foundational understanding of AI — how it works, how to use it, and the risks of using it. AI education is AI literacy plus the technical skills to build AI: the data analysis underneath the technology, identifying and mitigating data bias, and so on. This chapter's data covers AI education. The distinction matters because policy has overwhelmingly gone to the first category: federal guidance, state guidance, and most university policy is about how students and teachers may use AI tools, not about teaching students to build them.
Why does the chapter use computer science data as a proxy for AI?
Because AI has historically been studied under computer science, and AI-specific data mostly does not exist yet. Globally the situation is worse: AI education has usually been subsumed under CS or ICT education, so CS and ICT tracking serves as the proxy. The chapter warns that even this is unreliable — CS and ICT education are sometimes conflated with digital or computer literacy, which are different things, and the lack of standardized data collection, language barriers, and infrequent implementation updates make cross-country tracking hard.
How many countries actually teach computer science?
About two-thirds offered or planned to offer CS education in 2024, double the share in 2019. It is mandatory in primary and/or secondary schools in 30% of countries, with Europe holding the highest concentration of those. Very few countries — Ghana, South Korea, and the Netherlands among them — include AI education explicitly in their curricula; most flag its importance in national education strategy conversations without a detailed implementation plan.
What is holding African countries back?
Electricity. Africa made the second-largest gain of any continent between 2019 and 2024, going from 9.4% to 49.1% of countries offering CS education. But students in African countries remain the least likely to have access, and the chapter attributes this to infrastructure: in 2023 only 34% of primary schools in sub-Saharan Africa had access to electricity. Without power there is no computer literacy, let alone CS or AI education.
Are universities ready?
Usage has outrun policy. 86% of students use AI in their studies and 61% of faculty use AI in their teaching, but as of early 2025 only 39% of institutions have an AI-related acceptable use policy — up 16 percentage points from 2024, so the direction is right and the base is low. Larger universities with more than 10,000 students are more likely to have one than institutions under 5,000. Guidance on AI education itself, as opposed to AI usage, is mostly relegated to the department level and mostly to computing departments.
Is there a curriculum framework anyone can use?
Several, and they are converging. AI4K12 released K–12 AI education standards organized around 'Five Big Ideas in AI.' UNESCO published AI competency frameworks for both students and teachers; the student framework has four core competencies — a human-centered mindset, ethics of AI, AI techniques and applications, and AI system design — with students progressing from understanding to applying to creating. In the EU many countries rely on DigComp 2.2, which now includes recommended knowledge, skills, and attitudes for interacting with AI, though not for building AI systems. As of November 2024, 10 countries had issued guidance on AI in education: Australia, Belgium, Canada, Japan, New Zealand, South Korea, Ukraine, the United Kingdom, the United States, and Uruguay.

The chapter in five lines

Headline findings from Chapter 7 · Education.

81% of CS teachers agree AI should be part of foundational computer science. Fewer than half of high school CS teachers feel equipped to teach it.
— Chapter 7 · Education
Two-thirds of countries worldwide offer or plan to offer K–12 computer science education — double the share in 2019.
— Chapter 7 · Education
In 2023 only 34% of primary schools in sub-Saharan Africa had access to electricity — before computer literacy, let alone AI education, is even possible.
— Chapter 7 · Education
AI master's graduates in the US nearly doubled between 2022 and 2023, to 935 — against 104 bachelor's degrees.
— Chapter 7 · Education
91.2% of large US high schools offer foundational computer science. Only 43.1% of small ones do.
— Chapter 7 · Education

Read the full Education chapter

Chapter 7 (sections 7.1–7.4) with every figure and citation is free from Stanford HAI. Or head back to the report highlights and eight-chapter overview.

Open the AI Index Report 2025 →