Explore the Times Higher Education rankings for the best US universities for computer science in 2025.
The list of 130 ranked US schools is drawn from data collected for the World University Rankings by Subject 2025, published in January. It provides valuable insight into the top institutions for computer science.
US universities are scored on areas such as teaching, research and international outlook for computer science studies. Times Higher Education uses a rigorous methodology, designed by an in-house data team, that is trusted by students, educators, policymakers and industry leaders worldwide.
Highlights of the 2025 US Computer Science Rankings
The Massachusetts Institute of Technology takes the top spot for the best US school for computer science. MIT ranks third in the overall 2025 World University Rankings by Subject.
California is the most represented state among the schools included in the rankings, with Stanford University in second place, followed by the University of California, Berkeley, and the California Institute of Technology.
The list also includes eight Ivy League universities, led by Harvard University, which ranks sixth in the United States for computer science.
Three public universities are ranked among the top 10 schools in the country for computer science: University of California, Berkeley; University of California, Los Angeles; University of Washington.
Choosing the Right U.S. University for Computer Science
The information in the table provides valuable insight for students considering undergraduate or graduate programs in computer science in the United States.
The results are calculated using 18 performance indicators underlying five metrics: research environment, teaching (learning environment), research quality, industry, and international outlook. For more insights and a detailed breakdown of our ranking methodology, visit our methodology page.
Best UK Universities for Computer Science 2025
Discover the UK Computer Science Rankings, comprising 63 universities across the UK. The UK rankings are taken from the Times Higher Education University Rankings by Subject 2025: Computer Science, published in January 2025.
The list is based on a comprehensive assessment that scores the top UK universities for computer science across areas such as teaching, research and international outlook for studying computer science. The methodology has been designed by Times Higher Education’s in-house data team and is trusted by students, academics, policymakers and industry leaders worldwide.