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.
Most popular majors, 2024-25 graduates
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.
| Major | Graduates | Share of all | Median pay after 1 year | Median pay after 4 years | Median federal debt |
|---|---|---|---|---|---|
| Computer Science | 446 | 21.1% | $157,763 | $214,907 | $12,000 |
| Human Biology | 141 | 6.7% | $52,843 | $81,529 | $12,000 |
| Cognitive Science | 113 | 5.3% | $105,925 | $131,650 | $8,420 |
| Economics | 112 | 5.3% | $108,498 | $112,700 | not reported |
| Engineering, Other | 89 | 4.2% | $72,063 | $115,206 | not reported |
| Mathematics | 82 | 3.9% | not reported | not reported | not reported |
| International Relations and National Security Studies | 79 | 3.7% | not reported | $91,075 | not reported |
| Science, Technology and Society | 74 | 3.5% | $85,484 | $107,375 | not reported |
| Biology | 71 | 3.4% | not reported | not reported | not reported |
| Research and Experimental Psychology | 71 | 3.4% | $40,983 | not reported | not reported |
| Engineering-Related Fields | 69 | 3.3% | $110,280 | not reported | not reported |
| Political Science and Government | 69 | 3.3% | $47,352 | not reported | $10,917 |
| Mechanical Engineering | 57 | 2.7% | not reported | $117,072 | not reported |
| Electrical, Electronics, and Communications Engineering | 53 | 2.5% | not reported | not reported | not reported |
| Systems Science and Theory | 50 | 2.4% | not reported | not reported | not reported |
All other majors (34), with graduates in 2024-25 graduates
- Geological and Earth Sciences/Geosciences 43
- Biomedical/Medical Engineering 42
- Ethnic, Cultural Minority, Gender, and Group Studies 39
- English Language and Literature 37
- Applied Mathematics 35
- Sociology 34
- Physics 24
- Data Science 23
- Communication and Media Studies 22
- History 22
- Linguistic, Comparative, and Related Language Studies and Services 20
- Public Policy Analysis 19
- Aerospace, Aeronautical, and Astronautical/Space Engineering 17
- Philosophy 15
- Fine and Studio Arts 15
- Chemical Engineering 14
- Environmental/Environmental Health Engineering 14
- Materials Engineering 14
- Civil Engineering 13
- Urban Studies/Affairs 12
- Chemistry 11
- Area Studies 10
- Classics and Classical Languages, Literatures, and Linguistics 10
- Anthropology 7
- Music 6
- Religion/Religious Studies 4
- Archeology 4
- Germanic Languages, Literatures, and Linguistics 3
- Romance Languages, Literatures, and Linguistics 3
- Philosophy and Religious Studies, Other 3
- Drama/Theatre Arts and Stagecraft 3
- Energy Systems Engineering 1
- Slavic, Baltic and Albanian Languages, Literatures, and Linguistics 1
- Film/Video and Photographic Arts 1
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.
| Major | Median pay after 4 years | National median, same major | Graduates |
|---|---|---|---|
| Computer Science | $214,907 | $107,009 | 446 |
| Cognitive Science | $131,650 | $81,496 | 113 |
| Mechanical Engineering | $117,072 | $92,135 | 57 |
| Engineering, Other | $115,206 | $93,989 | 89 |
| Economics | $112,700 | $82,686 | 112 |
| Science, Technology and Society | $107,375 | $67,452 | 74 |
| International Relations and National Security Studies | $91,075 | $66,596 | 79 |
| English Language and Literature | $82,036 | $48,590 | 37 |
| Human Biology | $81,529 | $64,732 | 141 |
| Ethnic, Cultural Minority, Gender, and Group Studies | $45,519 | $51,710 | 39 |
How to read these numbers
- Graduates: bachelor’s degrees awarded July 1, 2024, to June 30, 2025 (IPEDS, provisional release), counting each graduate once, by first major. Double majors’ second majors aren’t counted.
- Median pay: the middle yearly earnings of graduates who received federal student aid and were working and not enrolled in school, one year after graduating (graduates of 2020-21 and 2021-22, earnings measured in 2022–2023, in 2024 dollars) and four years after (graduates of 2017-18 and 2018-19, earnings measured in 2022–2023, in 2024 dollars).
- Median federal debt: the middle amount of federal student loans borrowed at this college by borrowers who graduated in 2022-23 or 2023-24. Private and parent loans aren’t included.
- Not reported: the Department withholds a figure when too few graduates are in the group to protect their privacy, or when the major had no graduates in the cohort years. We never show it as zero.
Salary pages for popular majors
- Stanford University Human Biology salary
- Stanford University Cognitive Science salary
- Stanford University Economics salary
- Stanford University International Relations and National Security Studies salary
- Stanford University Science, Technology and Society salary
- Stanford University Research and Experimental Psychology salary
Next step
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.