Background: The current situation due COVID-19 may cause an eminent impact on mental health because the confinement restrictions. Aims: The aim of this study was to analyze and compare perceived stress, resilience, depression symptoms and coping strategies on the members of University of Campinas, in Brazil, before and during the outbreak of the COVID-19. Methods: Volunteers over 18 years of both sexes, members of the University of Campinas (Unicamp) in Brazil answered instruments related to perceived stress, depression, resilience and coping strategies during final exams at the end of semester during 2018 to 2020. Results: We obtained 1,135 responses (893 before COVID-19 and 242 during COVID-19). The volunteers did not show significant differences for perceived stress, depressive signs and resilience before and during the pandemic. In both periods, men exhibited lower scores for perceived stress and depression and higher scores for resilience when compared to women. Undergraduate and graduate students exhibited higher perceived stress scores, more pronounced depressive signs and lower resilience, and employees and professors presented lower scores for perceived stress, depressive signs and greater resilience. Conclusions: These first months of confinement did not directly affect the scores of perceived stress, depression and resilience, however, each subgroup adapted to the new routine by changing the coping strategy used. This study suggests the importance of monitoring the mental health of member in the university, especially in times of epidemic, in the search for policies that aim to improve the resilience of the population and seek positive and effective coping strategies within the university environment.