Objective To investigate the psychological status of patients with functional gastrointestinal disorder (FGID) and its correlation with the severity of gastrointestinal symptoms. Methods A total of 119 FGID patients hospitalized in the First Affiliated Hospital of Guangxi Medical University from January 1st, 2021, to December 31st, 2022, were selected, among whom 67 patients with functional dyspepsia (FD) were assigned to the FD group and 52 patients with irritable bowel syndrome (IBS) to the IBS group; additionally, 53 healthy physical examinees were randomly selected as the control group. The Hamilton Anxiety Scale (HAMA), Hamilton Depression Scale (HAMD), and Symptom CheckList-90 (SCL-90) were used to evaluate the psychological status of the research subjects; the Pittsburgh sleep quality index (PSQI) was used to assess their sleep quality; and the Gastrointestinal Symptom Rating Scale (GSRS) was used to evaluate the severity of gastrointestinal symptoms in FGID patients. Pearson correlation analysis was applied to explore the correlation between psychological status and the severity of gastrointestinal symptoms in FGID patients. Results There were statistically significant differences among the three groups in the severity of anxiety, anxiety detection rate, severity of depression, depression detection rate, sleep disorder detection rate, and the detection rates of 9 factors in SCL-90 except the paranoid factor (all P<0.05). More specifically, the severity of anxiety and depression, as well as detection rates of anxiety, depression, and sleep disorder, in the FD group and IBS group were all higher than those in the control group; the detection rates of 9 factors in SCL-90 except the paranoid factor in the FD group were higher than those in the control group, and the detection rates of 8 factors in SCL-90 except the interpersonal sensitivity and paranoid factors in the IBS group were higher than those in the control group (all P<0.05). However, there was no statistically significant difference in the severity of anxiety or depression, or the detection rate of anxiety, depression, sleep disorder, or each factor in SCL-90 between the FD group and IBS group(all P>0.05). The total scores of HAMA and HAMD were positively correlated with the total score of GSRS in FGID patients (all P<0.05). Conclusion Patients with FD and IBS have poor psychological status and sleep quality, and their anxiety and depression are correlated with the severity of gastrointestinal symptoms. Paying attention to the psychological characteristics of FGID patients and alleviating their anxiety and depression may be of certain significance for reducing their symptoms and improving their quality of life.