Stanford University majors and salaries by major

The most popular major at Stanford University is Computer Science: 446 of the 2,117 bachelor’s degrees awarded in 2024-25 (21.1%), counting each graduate’s first major. Among majors with reported earnings, Computer Science graduates had the highest median pay four years after graduating: $214,907 a year.

Graduate counts reported by the college to the U.S. Department of Education (IPEDS); earnings and debt from the Department’s College Scorecard. Each column shows its own year.

Bachelor’s degrees by major, largest first. Majors are the U.S. Department of Education’s program groups (CIP codes); the college’s own program names can differ.

Graduates: 2024-25 graduates Pay after 1 year: 2020‑21 and 2021‑22 graduates Pay after 4 years: 2017‑18 and 2018‑19 graduates Federal debt: 2022‑23 and 2023‑24 graduates

MajorGraduatesShare of allMedian pay after 1 yearMedian pay after 4 yearsMedian federal debt
Computer Science44621.1%$157,763$214,907$12,000
Human Biology1416.7%$52,843$81,529$12,000
Cognitive Science1135.3%$105,925$131,650$8,420
Economics1125.3%$108,498$112,700not reported
Engineering, Other894.2%$72,063$115,206not reported
Mathematics823.9%not reportednot reportednot reported
International Relations and National Security Studies793.7%not reported$91,075not reported
Science, Technology and Society743.5%$85,484$107,375not reported
Biology713.4%not reportednot reportednot reported
Research and Experimental Psychology713.4%$40,983not reportednot reported
Engineering-Related Fields693.3%$110,280not reportednot reported
Political Science and Government693.3%$47,352not reported$10,917
Mechanical Engineering572.7%not reported$117,072not reported
Electrical, Electronics, and Communications Engineering532.5%not reportednot reportednot reported
Systems Science and Theory502.4%not reportednot reportednot reported
All other majors (34), with graduates in 2024-25 graduates

Majors with the highest reported pay

Median yearly earnings four years after graduating, highest first, next to the national median for graduates of the same major at all colleges.

Pay: 2017‑18 and 2018‑19 graduates Graduates: 2024-25 graduates

MajorMedian pay after 4 yearsNational median, same majorGraduates
Computer Science$214,907$107,009446
Cognitive Science$131,650$81,496113
Mechanical Engineering$117,072$92,13557
Engineering, Other$115,206$93,98989
Economics$112,700$82,686112
Science, Technology and Society$107,375$67,45274
International Relations and National Security Studies$91,075$66,59679
English Language and Literature$82,036$48,59037
Human Biology$81,529$64,732141
Ethnic, Cultural Minority, Gender, and Group Studies$45,519$51,71039

How to read these numbers

Salary pages for popular majors

FAQ

What is the most popular major at Stanford University?

Computer Science: 446 of 2,117 bachelor’s degrees awarded in 2024-25 graduates (21.1%), counting first majors, as reported to the U.S. Department of Education.

How many bachelor’s degrees does Stanford University award?

2,117 in 2024-25 (bachelor’s degrees awarded July 1, 2024, to June 30, 2025).

Which major pays the most at Stanford University?

Among majors with reported earnings, Computer Science graduates had the highest median pay four years after graduating: $214,907 a year (graduates of 2017-18 and 2018-19, earnings measured in 2022–2023, in 2024 dollars). Pay depends on the job, the region and the person, not only the major.

Sources

Listed by the U.S. Department of Education as “Stanford University” (IPEDS unit ID 243744).

Files downloaded and checked 2026-11-18. How we check them: methods.

Facts, not advice. CollegeFacts shows figures colleges report to the U.S. Department of Education. It does not predict admission and gives no admissions, financial-aid or loan advice. Averages describe past students; your own result depends on your application and your family’s finances. Check current figures with each college.