The duration of a PhD program in computer science can vary depending on the specific university and program requirements. On average, it takes about 4 to 6 years to complete a PhD in computer science. This timeframe includes coursework, research, thesis preparation, and defense.

For specific information about universities offering PhD programs in computer science and their respective durations, you can explore the rankings and information provided by reputable sources like https://nuv.ac.in/e-brochure/phd/