The CS enrollment cooldown
U.S. undergrad CS enrollment fell 11% in a year, tracking a softening entry-level coding market.
Chapter 7 of the AI Index 2026 surveys AI and computer-science education from PhD to kindergarten, and into the workforce. Students are already using AI in large numbers; coursework, teacher training, and policy are still catching up. The numbers:
Generative AI and a softer entry-level coding market are reshaping the value of a CS degree — even as AI-specific majors and PhDs keep growing.
Between 2024 and 2025, enrollment in CS as an undergraduate major at U.S. four-year universities declined 11%, mirroring a labor market where employment among the youngest software developers has fallen since 2024. But because degree completion lags enrollment by several years, the full effect will take time to surface. Meanwhile, AI-relevant majors keep gaining: AI-software master's graduates rose 17% from 2023 to 2024 (and 82% since 2022).
Foundational CS access has more than doubled since 2017, but AI-specific instruction, standards, and teacher support lag well behind student demand.
The share of U.S. public high schools offering foundational CS rose from 35% in 2017–18 to 60% in 2023–24, holding at 60% in 2024–25. Access is deeply uneven by school size — 91% of large high schools offer CS versus just 44% of small ones — and only 6.1% of students were enrolled in CS in 2024–25.
As AI reshapes jobs, upskilling and reskilling have moved to the center of lifelong learning — through certificates, online courses, and on-the-job experience.
LinkedIn's relative AI skill-penetration rate measures how prominently AI skills appear in a country's member profiles versus the global average. India leads at 3.0 — almost three times the global average — followed by the U.S. at 2.0 and Germany at 1.8. A persistent gender gap shows up everywhere: in India, men list AI skills at 3.1 versus 1.9 for women.
LinkedIn's new AI Skills Diffusion Index separates AI literacy (familiarity with AI tools) from AI engineering (building and deploying systems). In most countries, including India and the U.S., literacy skills are growing faster than engineering skills. The exceptions are the United Arab Emirates, Chile, and South Africa, where engineering-oriented AI skills show steeper growth since 2022. In the U.S., the fastest-growing literacy skills were AI prompting and Microsoft Copilot Studio; the fastest-growing engineering skills were AI agents, AI productivity, and AI strategy.
From the lecture hall to the workforce. Tap any card for the full trend and its numbers.
U.S. undergrad CS enrollment fell 11% in a year, tracking a softening entry-level coding market.
AI-software master's graduates rose 17% in a year and 82% since 2022.
New AI PhDs rose 22% (2022–24); all the growth went to academia, not industry.
80% of university students now use GenAI for study — double the 2023 share.
Only half of schools have an AI policy, and just 6% of teachers call those policies clear.
China and the UAE both mandated AI education from the 2025–26 school year.
AI literacy is outpacing engineering skills — except in the UAE, Chile, and South Africa.
Headline findings from Chapter 7 · Education.
CS enrollment fell 11% at U.S. four-year universities between 2024 and 2025, even as AI-software master's graduates rose 17%.
Four out of five U.S. high-school and college students now use AI for schoolwork, but school policies have not kept pace.
Only half of middle and high schools have AI policies, and just 6% of teachers say those policies are clear.
More than 90% of countries now offer computer science to students, and China and the UAE mandated AI education starting in 2025–26.
New AI PhDs in the U.S. and Canada rose 22% from 2022 to 2024 — and all of that growth went to academia.
Chapter 7 (sections 7.1–7.4) with every figure and citation is free from Stanford HAI. Or head back to the 15 takeaways and nine-chapter overview.
Open Chapter 7 · Education →