In a significant development for higher education, a recent study by a Stanford economist has revealed that enrollment in computer science programs saw its first decrease in approximately twenty years during the 2025-2026 academic period. This unexpected reversal follows a prolonged era of substantial growth in the field, drawing attention to the potential implications of artificial intelligence technologies, particularly generative AI, on student interest and academic trajectories. The findings suggest a possible shift in how students perceive the relevance and future prospects of computer science degrees amidst evolving technological landscapes.
The economist, Jacob Light from Stanford University's Hoover Institution, spearheaded this research, analyzing an extensive dataset encompassing over 50 million course registrations from more than a thousand U.S. colleges and universities since 1996. His analysis highlighted a clear "flattening and reversal" in the trend of computer science enrollment share. While the study did not quantify the precise drop, corroborating data from the National Student Clearinghouse Research Center indicated an 8.1% year-over-year decrease in undergraduate enrollment for Computer and Information Sciences and Support Services at four-year institutions in the fall of 2025.
This downturn directly aligns with the widespread adoption of generative AI tools, such as ChatGPT, which gained prominence around the same timeframe. These AI applications are increasingly capable of performing tasks traditionally associated with computer science professionals, including code generation, debugging, and technical assignment completion. This raises crucial questions about the perceived value of a computer science degree when AI can augment or even automate certain technical skills. However, Light emphasizes that while the timing is coincidental, the study's data provides a descriptive overview rather than a definitive causal link between AI and the enrollment decline.
For decades, computer science experienced a boom, fueled by high demand for software engineers and other tech roles. The number of bachelor's degrees awarded in computer and information sciences more than doubled between 2014 and 2024, reaching approximately 122,000. This sustained growth had made computer science one of the most sought-after college majors. The current shift prompts educators and policymakers to consider various factors, including changes in educational approaches influenced by AI, evolving student expectations regarding career returns, and broader shifts in the technology job market, some of which may or may not be directly tied to AI advancements. The long-term impact on students' academic and career choices remains a subject of ongoing observation.
The decrease in enrollment, as reported by the National Student Clearinghouse Research Center, saw the number of undergraduates in related fields fall from about 659,700 in 2024 to 606,100 in 2025. Despite this recent dip, the overall enrollment figures still remain considerably higher than levels observed in 2022, suggesting that the recent decline followed a period of significant expansion. The lingering question is whether this slowdown represents a temporary fluctuation or a more profound, lasting change in how students approach and value computer science as a field of study. Future academic cycles and career trends will offer further clarity on this evolving landscape.