BackgroundThis study aims to investigate the association between sleep duration, sleep quality, and the risk of low back pain (LBP) among middle-aged and elderly individuals in China. MethodsUtilizing data from the China Health and Retirement Longitudinal Study spanning 2011 to 2020, we categorized sleep duration into long, medium, and short categories, and sleep quality into good, fair, and poor levels. LBP status was determined based on self-reported information by participants. Multivariable logistic regression analysis was employed to assess the relationship between sleep duration, sleep quality, with the risk of LBP. ResultsA total of 6750 individuals were included in the longitudinal study. After 9 years of follow-up, the prevalence of LBP was 25.69 %. In the fully adjusted model, compared to individuals with medium sleep duration, those with short sleep duration had a 28 % increased risk of developing LBP (OR = 1.28, 95%CI: 1.12, 1.46). Additionally, when compared to individuals with good sleep quality, those with fair and poor sleep quality had a 35 % (OR = 1.35, 95%CI: 1.19, 1.54) and 33 % (OR = 1.33, 95%CI: 1.12, 1.58) increased risk of LBP, respectively. Joint analysis of both factors revealed that individuals with poor sleep quality and short sleep duration had the highest risk of LBP. ConclusionAmong middle-aged and elderly individuals in China, short sleep duration and poor sleep quality were associated with an increased risk of LBP. Future studies should further explore the mechanisms underlying this association and validate the findings through randomized controlled trials.