Bachelor's · Stanford, California
Is Computer Science at Stanford University worth it?
High confidence High confidence: 100+ graduates behind the earnings figures.
The verdict · all families, in-state, half paid with loans
Pays back fast: graduates typically recover the cost in about 0.6 years.
- Earnings 1 year after graduating
- $169,457
- Treasury AY2020-21, AY2021-22 pooled earnings cohort measured in CY2022, CY2023, inflation adjusted to 2024 dollars
- Earnings 4 years after graduating
- $230,836
- Treasury AY2017-2018, AY2018-2019 pooled earnings cohort measured in CY2022, CY2023, inflation adjusted to 2024 dollars
- Typical federal debt at graduation
- $12,000
- NSLDS pooled AY2022-23, AY2023-24 cohort
- Net cost to graduate, all families
- $54k (likely $52k – $73k)
- AcadYr 2024-25, reported in IPEDS DCY2025-26
- Earnings bump, year 4
- $191k a year vs high-school graduates aged 25–34 in CA
- 2023 ACS 5-year pooled, adjusted to 2024 dollars
- Payback
- 0.6 years (likely 0.5–0.7)
- Bump vs net cost plus loan interest
- 10-year net return
- $1.61M (likely $1.42M – $1.83M)
- Today's dollars
- 20-year net return
- $3.85M (likely $3.32M – $4.40M)
- Today's dollars
- Odds of finishing (school-wide)
- 92%
- Fall 2019 or AcadYr 2019-20 cohort (differs by institutional calendar), reported in IPEDS DCY2025-26
Change income, residency or loans Compare Computer Science at other schools
Other majors at Stanford University
- Business Administration, Management and Operations (Master's)$261,816
- Law (First professional)$259,944
- Computer Science (Master's)$255,667
- Electrical, Electronics, and Communications Engineering (Doctoral)$231,917
- Medical Illustration and Informatics (Master's)$230,298
- Mechanical Engineering (Doctoral)$218,808
- Engineering-Related Fields (Master's)$206,093
- Management Sciences and Quantitative Methods (Master's)$206,046
- Electrical, Electronics, and Communications Engineering (Master's)$181,705
- Chemistry (Doctoral)$170,898
- Mechanical Engineering (Master's)$167,632
- Allied Health Diagnostic, Intervention, and Treatment Professions (Master's)$162,219
Computer Science at other schools in California
- Pomona College$217,051
- University of California-Berkeley$204,379
- California Institute of Technology$200,511
- Harvey Mudd College$198,257
- University of Southern California$192,897
- University of California-San Diego$159,487
- California Polytechnic State University-San Luis Obispo$154,784
- University of San Francisco$150,341
- University of San Diego$149,847
- University of California-Santa Barbara$149,190