To calculate the rankings, the website used data from the federal Department of Education, Payscale.com , an online compensation aggregator, and the Carnegie Foundation, which classifies U.S. colleges and universities based on factors including research and degrees offered.