The preferred GPA for a computer science PhD is 3.5 or above. Keep in mind that meeting the minimum requirement doesn’t guarantee acceptance. The higher you can get your GPA during your bachelor’s and master’s, the more likely it is you will be accepted to the PhD program of your choice.