Computer science departments across the United States are reporting significant enrollment declines, even as demand for AI-related programs surges. The trend suggests students are not losing interest in technology — they are redefining what kind of technology career they want.
The Numbers
The data is stark. University of California campuses have seen computer science enrollment drop by approximately 6% year over year, and the trend is accelerating. A recent survey found that 62% of computing programs nationwide reported declining enrollment in traditional CS tracks.
At the same time, AI-specific degree programs and concentrations are experiencing explosive growth. Universities that have launched dedicated AI majors report waitlists and oversubscribed courses. Stanford, MIT, and Carnegie Mellon have all expanded their AI-focused offerings to meet demand.
The pattern is consistent: students are choosing AI over general-purpose computer science.
Why Students Are Shifting
Several factors are driving the migration:
- Career perception — Students see AI roles as higher-paying and more future-proof than traditional software engineering
- AI coding tools — The rise of AI-assisted development has made some students question the value of learning to code from scratch
- Media influence — Constant coverage of AI breakthroughs makes the field appear more exciting and impactful
- Industry signals — Companies like Spotify, where engineers have stopped writing code by hand, and IBM are publicly redefining engineering roles around AI, reinforcing the narrative
The irony is not lost on educators: AI tools that help people write code without deep CS knowledge may be undermining the very programs that produce the researchers who build those tools.
What Universities Are Doing
Universities are responding in different ways. Some are redesigning their CS curricula to integrate AI throughout, arguing that the distinction between CS and AI is artificial. Others are launching standalone AI programs to capture student interest while maintaining traditional CS tracks.
A third approach is emerging at schools that emphasize the foundational nature of computer science. Their argument: AI is built on CS fundamentals — algorithms, data structures, systems design, and mathematics. Students who skip these foundations may find their AI knowledge shallow.
The Industry Perspective
Tech companies are watching the trend with mixed reactions. On one hand, they need AI specialists and welcome the growing pipeline. On the other, they still need software engineers who understand systems, infrastructure, and the unglamorous work of keeping production systems running.
Some hiring managers have expressed concern that the pendulum is swinging too far. "Everyone wants to train models," one engineering director noted. "Nobody wants to build the infrastructure those models run on."
What Comes Next
The enrollment shift is likely to continue as AI dominates both public discourse and corporate strategy. The question is whether it represents a permanent restructuring of tech education or a cyclical trend that will correct as the AI hype cycle matures.
For now, computer science departments are facing an uncomfortable reality: the discipline that created AI may be losing students to it. Meanwhile, sky-high AI salaries are draining faculty from the very departments trying to adapt. For anyone considering entering the field, these free AI courses for beginners offer a practical starting point.


