The purpose of our study is to examine the correlation between sleep factors and the prevalence of kidney stones in US adults. A total of 34,679 participants from the National Health and Nutrition Examination Survey 2007 to 2018 were included in the analyses. Sleep data collection included: presleep factors (difficulty falling asleep, sleep onset latency), intra-sleep factors (risk index of obstructive sleep apnea, restless leg syndrome, difficulty maintaining sleep), post-sleep factors (daytime sleepiness, non-restorative sleep), sleep schedule and duration, and sleep quality. Logistic regression models were used to analyze the correlation between sleep factors and the prevalence of kidney stones. Among the 34,679 participants, the overall incidence of kidney stones was 9.3%. The presence of presleep factors (difficulty falling asleep [odds ratios [OR], 1.680; 95% CI, 1.310–2.150], prolonged sleep onset latency [OR, 1.320; 95% CI, 1.020–1.700]), intra-sleep factors (higher risk index of obstructive sleep apnea [OR, 1.750; 95% CI, 1.500–2.050], restless leg syndrome [OR, 1.520; 95% CI, 1.150–1.990], difficulty maintaining sleep [OR, 1.430; 95% CI, 1.130–1.810]), post-sleep factors (daytime sleepiness [OR, 1.430; 95% CI, 1.220–1.680], non-restorative sleep [OR, 1.400; 95% CI, 1.110–1.760]), short sleep duration (OR, 1.190; 95% CI, 1.080–1.310), mediate sleep quality (OR, 1.140; 95% CI, 1.020–1.290), and poor sleep quality (OR, 1.500; 95% CI, 1.310–1.720) are linked to the occurrence of kidney stones. However, short sleep onset latency, bedtime and wake-up time were not significantly associated with the prevalence of kidney stones. These findings showed positive associations between higher kidney stone prevalence and poor sleep factors.