Research on the potential association between life-ever gallstones and depressive symptoms is limited. This study aims to evaluate whether the presence of gallstone disease is associated with depressive symptoms. In this cross-sectional study, we analyzed data from the National Health and Nutrition Examination Survey (NHANES) 2017-March 2020 cycles. The presence of depressive symptoms and gallstone disease was assessed using questionnaire responses. Adjusted odds ratios (OR) were calculated using a multivariate logistic regression model, with adjustments made for age, sex, race, body mass index, history of cardiovascular disease, hypertension, arthritis, and pulmonary disease across different models. Subgroup and sensitivity analyses were conducted to ensure the stability of the results. This study included 6201 adults aged 20 years and above, with 539(8.7%) experiencing depressive symptoms. After adjusting for age, sex, race, body mass index, CVD history, hypertension, arthritis, pulmonary disease, depressive symptoms were possibly associated with life-ever gallstones (OR 1.37, 95% CI 0.91–2.08).When depressive symptoms were categorized as mild, moderate, moderately severe, and severe,life-ever gallstones was possibly associated with mild depressive symptoms (OR 1.12, 95% CI 0.81–1.56), moderate depressive symptoms (OR 1.37, 95% CI 0.89–2.12), moderately severe depressive symptoms (OR 1.93, 95% CI 0.93–3.99), and severe depressive symptoms (OR 0.67, 95% CI 0.16–2.88).As a continuous variable, life-ever gallstones was associated with the PHQ-9 score (OR 0.42, 95% CI 0.02–0.83). The results remained stable after multiple imputation for all missing data. This cross-sectional study demonstrates no significant association between life-ever gallstones and depressive symptoms in US adults.