Get my odds
Cambridge, MA · Computer science

Computer science at Harvard

Harvard graduates about 178 computer science majors a year, 9% of its graduating class. That puts it tied for 7th of 38 schools we rank for computer science, a standout program at 8.8 out of 10. Graduates in the major earn a median $203,000 four years out, 2.31× what the same major pays nationally. Research spending in the field runs about $26 million a year, a rough guide to how many labs and projects undergraduates can join.

Graduates a year1789% of the class
Median pay 4 years out$203,0002.31× the same major nationally
Research in the field$26Ma year, NSF
Admit rate4%whole school
SAT middle 50%1510–1580whole school

Around Harvard

A rack for locking electric scooters outside Cabot Science Library at Harvard Un
Electric scooter rack outside Cabot Science Library Harvard Feb 2025Photo: 4300streetcar · CC BY 4.0 · source
Cambridge, MA
Harvard Science Center (54941166095)Photo: ajay_suresh · CC BY 4.0 · source

Where computer science happens

Buildings on campus that fit the field: Engineering Sciences Lab, Laboratory for Integrated Science and Engineering.

Named buildings on the campus map: Academic 101 · Dorm 40 · Student housing 10 · Arts 6 · Library 5 · Chapel 4.

Open the full-screen campus map →

Nearby in the computer science ranking

  1. Cornell University 9.1
  2. University of Illinois Urbana-Champaign 8.8
  3. University of Washington 8.8
  4. California Institute of Technology 8.8
  5. University of Michigan–Ann Arbor 8.7
  6. Georgia Institute of Technology 8.7
  7. The University of Texas–Austin 8.6
  8. Columbia University 8.5

Other strong majors at Harvard

How the score works

The score is out of 10 and compares Harvard with every school we rank in computer science. It weighs its strength in the field: the department's faculty and standing in the discipline, the undergraduate program, and where its graduates go, as judged independently by three AI reviewers and averaged (85%), plus campus resources and comfort: library and endowment per student, dorms, campus upkeep, faculty pay and classmates' family income (15%). Reviewers chose among schools with at least 5 bachelor's graduates a year in the major; a school a reviewer left out of its top 40 counts just below that reviewer's 40th, and a school needs two of the three reviewers to be ranked. Graduates, pay and course counts are shown for context; they don't set the score. Scores run 0–10: 8.0+ is a standout program, 6.5+ strong, 4.5+ solid. Schools with the same score share a rank. Sources: US Department of Education (College Scorecard, IPEDS), NSF HERD, each school's current course catalog, OpenStreetMap and Wikimedia Commons.

See your odds at Harvard Everything about Harvard