Background Following external situation reports, individuals perceive risks, experience different emotional reactions, and further change their behaviors. Therefor people's psychological state will also be affected by the change after the adjustment of COVID-19 epidemic prevention and control policy, and it remains unknown what kind of coping behaviors will be produced due to emotional reactions. This study focuses on assessing the prevalence of negative emotions in the Chinese population after policy adjustments and explores how negative emotions affect people's coping behaviors.Methods A cross-sectional online survey was conducted during 21–28 December 2022, included sociodemographic characteristics, COVID-19 infection and irrational purchase behavior, psychological assessment, and opinion polling. Depression and anxiety status are assessed by PHQ-9 and GAD-7, Coping behavior is defined as " medical behavior and irrational consumption behavior after the adjustment of COVID-19 epidemic prevention and control policy in China". The relationship between anxiety, depression and coping behavior was analyzed by Pearson χ2 test, Fisher's exact test and logistic regression.Results A total of 3995 participants who reported infection with COVID-19 were included in this study, of which 2363 (59.1%) and 1194 (29.9%) had symptoms of depression and anxiety, respectively. According to the results of the Pearson χ2 test, there was a significant difference in clinical treatment (such as self- medication, seeking professional treatment, using online services of medical institutions) and irrational purchase behavior (such as large-scale purchases of medicines, masks) between different level of depression and anxiety. Logistic regression results show that depression was a risk factor for self- medication (OR = 1.254, 95%CI: 1.124 ~ 1.399), seeking professional treatment (OR = 1.215, 95%CI: 1.017 ~ 1.451), using online services of medical institutions (OR = 1.320, 95%CI: 1.159 ~ 1.503), large-scale purchases of medicines (OR = 1.154, 95%CI: 1.083 ~ 1.230) and masks (OR = 1.096, 95%CI: 1.005 ~ 1.196). Anxiety was a risk factor for seeking professional treatment(OR = 1.285, 95%CI: 1.009 ~ 1.636) and large-scale purchases of masks (OR = 1.168, 95%CI: 1.028 ~ 1.327).Conclusion Affected by depression, COVID-19 patients are more likely to have medical behaviors such as self- medication, seeking professional treatment, and using online services of medical institutions, which may also trigger their storage behaviors of medicines and masks; on the other hand, anxiety will trigger the coping behavior of patients to seek professional treatment and store masks in large quantities. Attention should be paid to expand mental health screening and guidance in community health institutions, and to carry out COVID-19 health education for depressed or anxious people, in order to reduce adverse drug reactions, avoid panic seeking professional treatment and irrational purchase behavior, and protect the mental health of the public.Trial registration: This study has been approved by the Medical Ethics Committee of Capital Medical University (2023SY086), and informed consent was obtained from the study subjects before the investigation.