Here is an overview of the program, including rankings, popularity, diversity, and earnings. Find out how Stanford University compares to other colleges that offer computer science.
Jump to any of the following sections:
Stanford University is in the top 5% of the country for computer science. Specifically, it ranked #2 out of 466 schools by College Factual. It is also ranked #1 in California.
| Ranking Type | Rank |
|---|---|
| Best Computer Science Bachelor’s Degree Schools in California | 1 |
| Best Computer Science Bachelor’s Degree Schools in the Far Western US Region | 1 |
| Best Computer Science Bachelor’s Degree Schools | 2 |
| Best Computer Science Schools in California | 2 |
| Best Computer Science Schools in the Far Western US Region | 2 |
| College Major Top Ranked | 2 |
| College Major Top Ranked | 2 |
| Best Computer Science Master’s Degree Schools in California | 4 |
| Best Computer Science Master’s Degree Schools in the Far Western US Region | 4 |
| Best Computer Science Schools | 7 |
| College Major Top Ranked | 7 |
| Best Computer Science Master’s Degree Schools | 9 |
For the most recent IPEDS reporting year, Stanford University handed out 341 bachelor’s degrees in computer science.
Computer Science students who finish a bachelor’s at Stanford University report a median salary of $220,644 a year. This is higher than $153,326, the median for all majors at Stanford University.
To complete a bachelor’s at Stanford University, computer science graduates take on a median debt of $10,399 in student loans. This is below $10,492, the typical median for all majors at Stanford University.
Average full-time tuition and fees are listed in the table below.
| In State | Out of State | |
|---|---|---|
| Tuition | $55,473 | $65,127 |
| Fees | $783 | $783 |
Find out more about Stanford University tuition and fees.
For the most recent academic year available, 69% of computer science bachelor’s degrees went to men and 31% went to women.
The majority of computer science bachelor’s degree graduates at Stanford University are Asian. About 42% of graduates fell into this category.
The following table and chart show the ethnic background for students who recently graduated from Stanford University with a bachelor’s in computer science.
| Ethnic Background | Number of Students |
|---|---|
| Asian | 144 |
| Black or African American | 15 |
| Hispanic or Latino | 41 |
| White | 57 |
| Non-Resident Aliens | 48 |
| Other Races | 36 |
For the most recent academic year available, 65% of computer science master’s degrees went to men and 35% went to women.
The largest share of computer science master’s degree graduates at Stanford University are Asian. Roughly 41% of graduates fell into this category.
The following table and chart show the ethnic background for students who recently graduated from Stanford University with a master’s in computer science.
| Ethnic Background | Number of Students |
|---|---|
| Asian | 180 |
| Black or African American | 10 |
| Hispanic or Latino | 27 |
| White | 73 |
| Non-Resident Aliens | 110 |
| Other Races | 34 |
For the most recent academic year available, 74% of computer science doctoral degrees went to men and 26% went to women.
The majority of computer science doctoral degree graduates at Stanford University are Non-Resident Alien. About 45% of graduates fell into this category.
The following table and chart show the ethnic background for students who recently graduated from Stanford University with a doctoral in computer science.
| Ethnic Background | Number of Students |
|---|---|
| Asian | 14 |
| Black or African American | 0 |
| Hispanic or Latino | 0 |
| White | 13 |
| Non-Resident Aliens | 24 |
| Other Races | 2 |
Review the following statistics on the composition of the computer science majors at Stanford University.