Objective To investigate the current situation of anxiety and depression in patients with acute exacerbation of chronic obstructive pulmonary disease (AECOPD) and analyze the related influencing factors. Methods A questionnaire survey was conducted among AECOPD patients admitted to the Department of Respiratory and Critical Care Medicine, the Second Affiliated Hospital of Anhui Medical University from August 2022 to October 2023. The survey included basic demographic information, anxiety and depression scores, quality of life and dyspnea symptoms in the AECOPD patients. The clinical data of patients in the electronic medical record system were also collected. According to the anxiety score or depression score, the patients were divided into an anxiety group and a non-anxiety group, or a depression group and a non-depression group. The indicators between two groups were compared and the influencing factors were analyzed. Results Among the 164 patients with AECOPD, 123 patients (75.0%) were complicated with anxiety, 125 patients (76.2%) were complicated with depression, and 105 patients (64.0%) were complicated with anxiety and depression. Education level, place of residence, monthly income, smoking index, and chronic obstructive pulmonary disease assessment test (CAT) score were associated with AECOPD and anxiety (P<0.05). Higher CAT score was an independent risk factor for anxiety in the patients with AECOPD. Residence, monthly income, smoking index, CAT score, modified British Medical Research Council (mMRC) dyspnea questionnaire rating, actual bicarbonate, neutrophilic granulocyte percentage (NEU%), lymphocyte percentage (LYM%), basophile percentage (BASO%), alkaline phosphatase, total carbon dioxide concentration, neutrophil to lymphocyte ratio (NLR) and platelet to lymphocyte ratio (PLR) were associated with AECOPD and depression (P<0.05). Among them, higher CAT score and PLR value were independent risk factors of AECOPD and depression. Conclusion Anxiety and depression have higher prevalence in AECOPD patients, and the influencing factors include quality of life, dyspnea symptoms, education level, place of residence, monthly income, smoking index, acid base balance, NEU%, LYM%, BASO%, NLR和PLR, etc.