Students in the online master’s in computer science program are required to take ten classes (30 credit hours). On average, students can earn their degree in less than two years. This timeline may vary depending on how many credits are taken each semester.