In a new Forbes ranking of the Best Value Colleges UCLA outperformed 298 other private and public institutions, placing second in the nation.

Other University of California campuses included in Top 25 were Berkeley (No. 1), UC Irvine (No. 8), UC Davis (No. 9) UC San Diego (No. 11) and UC Santa Barbara (No 22).

Forbes evaluated colleges and universities on quality (25 percent), alumni earnings (20 percent), median student debt (20 percent), on-time graduation (15 percent), drop-out risk (10 percent) and Pell Grant recipients (10 percent). The total was divided by gross tuition and fees to reach a value.

“Knowing where you can get the most quality for each tuition dollar spent is the goal of this year’s Best Value ranking,” Forbes wrote.