The Covid-19 pandemic that spreads in Indonesia causes health, economic, and social problems in the community, including mental health. Of course, this mental health problem also hit students. Seeing these conditions, we conducted research on students of the Faculty of Computer Science, University of Singaperbangsa Karawang using the Patient Health Questionnaire-9 which measures a person's level of depression. In this study, we used Extreme Gradient Boost or XGBoost to classify students' depression tendencies. We break down the dataset into training data and testing data with 4 data sharing combinations, they are 80 : 20, 50 : 50, 90 : 10, 70 : 30. The combination of 90 : 10 data sharing has the best performance with accuracy, precision, recall, and F1-scores respectively 92.86%, 94.29%, 92.86% , and 92.06%. This method also has better performance than K-Nearest Neighbor, Random Forest, Multi Layer Perception, Support Vector Machine and Decision Tree .