For years, computer science was treated like a golden ticket — a degree that could all but guarantee a stable, high-paying job after graduation. But as artificial intelligence (AI) reshapes the tech industry, that promise is starting to crack.
Between 2008 and 2024, the number of four-year computer science degrees in the U.S. surged, rising roughly five times (1), outpacing growth in other high-paying fields like nursing and mechanical engineering, according to the Washington Post, citing data from the National Center for Education Statistics.
Now, there are signs that boom may be losing steam.
New data from the National Student Clearinghouse (2) shows undergraduate enrollment in computer science programs at four-year institutions dropped 8.1% — the steepest one-year decline of any major since at least 2020. Graduate enrollment fell even further, down 14%.
The shift hasn't gone unnoticed. The Atlantic (3) recently declared that, "The Computer-Science Bubble is Bursting," while Nobel Prize–winning economist Simon Johnson (4) said AI has "substantially wiped out" coding as a reliable source of opportunity.
So if the once-dominant major is losing momentum, where are students turning instead?
The value of coding skills is shifting
The issue isn't that coding skills no longer matter — it's how they're being used.
Investor Matt Shumer, who has spent years working in AI, said recent breakthroughs are fundamentally changing how work gets done.
"By late 2025, some of the best engineers in the world said they had handed over most of their coding work to AI," he wrote in an essay published on X (5).
The post, which racked up about 86 million views, wasn't meant to spark panic, Shumer later said on CNBC's Power Lunch (6). Instead, he said he was describing his own surprise at how AI can now handle many of the technical aspects of his job, a shift he believes professionals in fields like law, medicine and accounting may soon experience as well.
That anxiety may already be showing up in the job market. In recent years, new college graduates have had a harder time finding work, with their unemployment rate exceeding the overall U.S. rate for five straight years (7).
It's also starting to influence what students choose to study. At Princeton University (8), computer science became the most popular major between 2011 and 2017 and held that position through the Class of 2025. But more recent data suggests demand may be cooling: 74 students in the Class of 2028 declared a computer science B.S.E., down from 117 the year before and 150 the year prior.
"Part of this is we are adapting to a new world," Szymon Rusinkiewicz, chair of the department, told the Princeton Alumni Weekly (8). "We have definitely noticed that things have leveled off, that we weren't growing at that explosive pace anymore."
Must Read
- Dave Ramsey warns nearly 50% of Americans are making 1 big Social Security mistake — are you doing the same?
- Thanks to Jeff Bezos, you can now become a landlord for as little as $100 — and no, you don't have to deal with tenants or fix freezers. Here's how
- Robert Kiyosaki says this 1 asset will surge 400% in a year and begs investors not to miss this ‘explosion’
Join 250,000+ readers and get Moneywise’s best stories and exclusive interviews first — clear insights curated and delivered weekly. Subscribe now.
Students are rethinking the payoff
For many students, the appeal of computer science was simple: strong job prospects and high salaries. That calculation is starting to shift. Rusinkiewicz said it's less about jobs disappearing and more about how they're evolving.
"It's less a case of, 'AI is coming for your jobs,' but much more a case of AI is making people more efficient at their jobs," he said (8).
Companies are still offering high salaries but increasingly for roles that involve working alongside AI, not competing with it.
Anthropic recently listed a software engineering role offering up to $320,000 a year (9), focused on helping "understand new model capabilities and redefine what is possible" with large language models.
Students are taking note. Gavin O'Malley, a Houston-area college applicant, told the Washington Post (1) that he felt discouraged from pursuing computer science as only the top students at his high school were applying to the field and with hiring slowing at major tech firms, the payoff felt less certain.
Others are rethinking their motivations. Theo Urban, a senior majoring in AI at Carnegie Mellon University, told the news outlet that students today may be choosing the field less for job security and more out of genuine interest.
So what are the top majors now?
As interest in computer science cools, other technical fields are gaining ground. Enrollment in mechanical and electrical engineering has grown (1) by about 11% and 14%.
More broadly, a Coursera analysis (10) including data from the National Center for Education Statistics (11) shows that business, health, social sciences and history remain the most popular majors in the U.S., with computer science ranking seventh.
Michael Leamy, now chair of the mechanical engineering department at the University of Vermont, told the Washington Post (1) that he's seen that growth firsthand teaching at multiple universities. He and other engineers believe students may view mechanical engineering as a more flexible path in an AI-driven economy, with applications across industries like robotics, aerospace, drones and electric vehicles.
There's still plenty of uncertainty around how AI will reshape the job market but one theme is consistent: adaptability matters.
As the technology evolves, experts say students should focus less on chasing a "safe" major and more on building skills, including learning how AI applies to their field, to stay competitive as the nature of work continues to shift.
Article Sources
We rely only on vetted sources and credible third-party reporting. For details, see our ethics and guidelines.
Washington Post (1); National Student Clearinghouse (2); The Atlantic (3); Open to Debate/YouTube (4); @mattshumer_/X (5); CNBC (6); New York Times (7); Princeton Alumni Weekly (8); Greenhouse (9); Coursera (10); National Center for Education Statistics (11)
You May Also Like
- Turning 50 with $0 saved for retirement? Most people don’t realize they’re actually just entering their prime earning decade. Here are 6 ways to catch up fast
- Inside a $1B real estate fund offering access to thousands of income-producing rental properties — with flexible minimums starting at $10
- Vanguard’s outlook on U.S. stocks is raising alarm bells for retirees. Here’s why and how to protect yourself
- Here are 5 easy ways to own multiple properties like Bezos and Beyoncé. You can start with $10 (and no, you don’t have to manage a single thing)
Victoria Vesovski is a Toronto-based Staff Reporter at Moneywise, where she covers the intersection of personal finance, lifestyle and trending news. She holds an Honours Bachelor of Arts from the University of Toronto, a postgraduate certificate in Publishing from Toronto Metropolitan University and a Master’s degree in American Journalism from New York University’s Arthur L. Carter Journalism Institute. Her work has been featured in publications including Apple News, Yahoo Finance, MSN Money, Her Campus Media and The Click.
