Computer science degrees can be 2-year or 4-year programs, it depends on the level of degree you're pursuing. An Associate's degree in computer science is typically a 2-year program, while a Bachelor's degree in computer science is a 4-year program. There are also Master's and Doctoral degrees that can take 1-2 years and 3-5 years or more to complete.