The End of an Era? Analyzing the First Decline in U.S. Computer Science Enrollment in Two Decades

Introduction: The Cracks in the "Safe Bet"

For the better part of twenty years, the narrative surrounding higher education in the United States was singular and unwavering: if you want job security, a high starting salary, and a seat at the table of the future, you major in computer science. From the post-dot-com recovery of the early 2000s through the mobile app revolution and the cloud computing boom, computer science (CS) was viewed as the ultimate "safe bet." Enrollment numbers reflected this obsession, climbing year after year without fail.

However, new data suggests that the "infinite growth" phase of computer science education has officially reached a turning point. In the 2025-26 academic year, for the first time in roughly two decades, enrollment in computer science programs across the United States has declined. This reversal marks a significant cultural and economic shift, signaling that the once-unshakeable confidence in the "coding career" may be wavering in the face of rapid artificial intelligence (AI) advancement and a tightening labor market.


I. Main Facts: Measuring the Reversal

The evidence of this decline is not anecdotal; it is backed by vast datasets covering over a thousand institutions. The primary catalyst for this discussion is research conducted by Jacob Light, an economist at Stanford University’s Hoover Institution. Light’s study is comprehensive, analyzing more than 50 million course sections across 1,019 U.S. colleges dating back to 1996.

The Findings of Jacob Light

Light’s research reveals that at the average American college, enrollment in computer science classes dropped by approximately 4.6% year-on-year for the 2025-26 cycle. While a 4.6% dip might seem modest in isolation, it represents a historic deviation from a twenty-year upward trend. Because Light’s data looks at "course sections," it captures not only CS majors but also students from other disciplines who are choosing to bypass introductory coding or data structures classes—a sign that the general interest in "literacy in code" is cooling.

National Student Clearinghouse Data

Corroborating Light’s findings is the National Student Clearinghouse (NSC), which tracks undergraduate enrollment at four-year colleges. Their figures are even more stark. The NSC reported that undergraduate computer science enrollment fell by 8.1% in the autumn of 2025. In raw numbers, this translates to a drop from approximately 659,700 students to 606,100.

This 53,600-student decrease is the first significant contraction since the aftermath of the dot-com bubble burst in the early 2000s. It suggests that the "gold rush" mentality that characterized the last decade of tech education is being replaced by a more cautious, perhaps even skeptical, approach by prospective students.


II. Chronology: From the Boom to the "Wobble"

To understand why this decline is so significant, one must look at the meteoric rise that preceded it. The last decade was characterized by a "CS or bust" mentality that permeated high schools and universities alike.

The Decade of Hyper-Growth (2014–2024)

According to National Science Foundation (NSF) figures, the number of bachelor’s degrees awarded in computer science more than doubled in just ten years. In 2014, U.S. institutions produced approximately 56,000 CS graduates. By 2024, that number had skyrocketed to 122,000.

This growth was fueled by several factors:

  1. The "Learn to Code" Movement: Public policy and non-profits pushed coding as a basic literacy skill.
  2. The Startup Halo: The success of companies like Uber, Airbnb, and Stripe made "software engineer" the most coveted job title for Gen Z.
  3. The Pandemic Surge: During 2020 and 2021, as the world moved entirely online, the demand for tech talent reached a fever pitch, leading to inflated salaries and aggressive hiring.

The 2025 Pivot

The 2025-26 academic year marks the first "real crack" in this trajectory. The timing is impossible to separate from the mainstreaming of Generative AI. Between late 2022 and 2025, tools like ChatGPT, Claude, and GitHub Copilot transitioned from novelties to standard workplace utilities. These tools can now write, debug, and optimize code with a level of proficiency that rivals—and sometimes exceeds—that of a junior developer.

As these tools became ubiquitous in classrooms, the "value proposition" of spending four years learning to write syntax that an AI can generate in seconds began to face intense scrutiny from students and parents alike.


III. Supporting Data: The Drivers of Disenchantment

While AI is the most visible factor, Jacob Light and other economists point to a complex web of drivers that have contributed to this enrollment dip. The data suggests that five primary factors are converging to create a "perfect storm" for the discipline.

1. The Cooling Junior Developer Market

For years, a CS degree was a "guaranteed" ticket to a high-paying job. That guarantee has expired. Large-scale layoffs at firms like Google, Meta, and Amazon in 2023 and 2024 flooded the market with experienced engineers. Consequently, entry-level roles have become hyper-competitive. Many graduates from the class of 2024 and 2025 found themselves struggling to secure interviews, leading to a "word-of-mouth" cooling effect among younger students considering the major.

2. Doubts About Degree ROI

The cost of a four-year degree continues to rise, while the perceived value of a CS degree is being questioned. With the rise of "vibe coding"—a term describing the act of building applications using natural language prompts rather than manual coding—students are wondering if a specialized degree is necessary to participate in the tech economy.

3. Weakened Mathematical Preparation

Educators have noted a decline in math readiness among incoming college freshmen, a lingering side effect of pandemic-era learning disruptions. Since computer science is heavily reliant on discrete mathematics and calculus, the barrier to entry has become steeper for a generation of students who may feel ill-equipped for the rigors of the curriculum.

4. The Rise of Data Science and Specialized Majors

Some of the "missing" CS students haven’t left STEM entirely; they have migrated. Data science, cybersecurity, and AI-specific majors have emerged as distinct departments. Previously, a student interested in these fields would have majored in Computer Science. Now, they are opting for more specialized tracks, thinning the numbers of traditional CS programs.

5. Demographic and Immigration Shifts

Shifts in immigration policy and a general decline in international student applications—who historically make up a large percentage of CS cohorts—have also played a role in the softening of enrollment numbers.


IV. Official Responses and Industry Perspectives

The tech industry and academia are divided on whether this decline is a temporary "blip" or a fundamental "rethink" of the workforce.

The "Skeptic" View: Efficiency Over Headcount

Industry leaders have been vocal about the changing nature of tech employment. Jamie Dimon, CEO of JPMorgan Chase, recently noted that AI has already "erased" or significantly altered a third of the jobs in certain units of the bank. Similarly, Verizon and other telecommunications giants have undergone massive reorganizations, cutting thousands of roles as automation takes over routine maintenance and backend coding tasks. The message from the C-suite is clear: firms want "force multipliers"—engineers who can manage AI—rather than large teams of manual coders.

The "Optimist" View: The Value of Foundational STEM

Conversely, some of the world’s leading AI pioneers argue that a CS degree is more valuable than ever. Demis Hassabis, CEO of Google DeepMind, has stated that a formal STEM degree makes an individual far more effective at using AI. The argument is that while AI can write code, it cannot yet perform high-level architectural design or complex problem-solving. A student who understands the first principles of computation will be better equipped to "prompt" and "steer" the AI of the future.

Jacob Light, the researcher behind the Stanford study, agrees with this nuance. He treats the numbers as descriptive, not necessarily a prophecy of the field’s demise. He suggests that while the "easy" coding jobs are disappearing, the demand for "deep" engineering remains, though the path to getting there is becoming more intimidating for the average student.


V. Implications: A Shift in the Economic Paradigm

The decline in CS enrollment has ripple effects that extend far beyond the campus quad. It signals a potential realignment of the American labor market.

The Shift to Skilled Trades

One of the most surprising trends noted in the report is the migration of interest toward the "skilled trades." As white-collar "knowledge work" faces the threat of AI automation, many young people are looking toward careers that require physical presence and manual dexterity—jobs that are currently "AI-proof." Organizations like the Skilled Trades Alliance, backed by companies like Google and Ford, have seen an uptick in interest from students who might have previously chosen a desk job but now see more stability in becoming an electrician, a specialized mechanic, or a renewable energy technician.

The "Vibe Coding" Era

We are entering an era where the barrier to "building" has never been lower, but the barrier to "understanding" remains high. If the field of computer science continues to lose students, the industry faces a potential "innovation gap." The worry is that the very field building the AI tools of tomorrow is losing the human talent needed to maintain and evolve those tools. If the next generation of potential engineers opts for "vibe coding" (relying on AI to do the thinking) rather than "deep coding" (understanding the logic), the industry may suffer from a lack of foundational expertise in the decades to come.

Conclusion: A Blip or a Re-evaluation?

Is this a temporary market correction, or the beginning of a long-term decline? Computer science has historically been a boom-and-bust major, mirroring the volatility of the tech sector itself. The current dip brings enrollment back to roughly 2022 levels—which were still historically high.

However, the context of this dip is unique. Unlike the 2001 crash, which was caused by financial speculation, the 2025 decline is tied to a fundamental change in how software is created. As the next few years of intake data emerge, we will learn whether the university system can adapt its curriculum to remain relevant in the AI age, or if the "safe bet" of the 21st century has finally run its course. For now, the message to students is clear: the era of "learning to code" for the sake of a paycheck is over; the era of "learning to engineer" in partnership with machines has begun.