What affects sleep quality according to research
Sleep quality is influenced by behaviour, environment and timing. The clearest evidence points to caffeine, alcohol, artificial light at night and environmental noise as sleep disruptors, while regular exercise generally improves sleep. Excessive heat, stress, irregular sleep schedules and heavy screen use are also associated with poorer sleep. Diet quality and meal timing are plausible influences, but the evidence is less causal and more mixed.
What the evidence shows
Evidence behind each factor
Caffeine3 evidence sources
What the evidence addsTwo meta-analyses of controlled studies reach the same conclusion, and randomized timing studies show that meaningful sleep disruption can persist even when caffeine is taken several hours before bed.
- Age- and dose-specific effects of caffeine on sleep: A meta-analysis of controlled crossover trials
Caffeine reduced total sleep time by about 35 minutes, lowered sleep efficiency by 4.74 percentage points and prolonged sleep-onset latency by about 8 minutes. High doses also reduced slow-wave sleep.
- The effect of caffeine on subsequent sleep: A systematic review and meta-analysis
Across 24 studies, caffeine reduced total sleep time by about 45 minutes and sleep efficiency by 7%, while increasing sleep-onset latency and wake after sleep onset. The analysis also found less deep sleep.
- Dose and timing effects of caffeine on subsequent sleep: a randomized clinical crossover trial
A randomized crossover trial found clear dose- and timing-dependent sleep effects, reinforcing that both how much caffeine is consumed and how close it is to bedtime matter.
Alcohol3 evidence sources
What the evidence addsA 27-study meta-analysis found REM disruption even at relatively low doses. Cohort evidence also does not support alcohol as a sleep aid and links drinking with greater incidence of sleep problems.
- The effect of alcohol on subsequent sleep in healthy adults: A systematic review and meta-analysis
Alcohol delayed REM onset and reduced REM duration. REM disruption was evident at low doses and became larger with increasing intake; only high doses reliably shortened sleep-onset latency.
- Alcohol consumption and incidence of sleep disorder: A systematic review and meta-analysis of cohort studies
General alcohol drinking was associated with a higher incidence of sleep disorder in pooled cohort data. The review found no evidence that drinking reduced sleep problems.
- Altered sleep architecture following consecutive nights of presleep alcohol
Across three consecutive alcohol nights, presleep alcohol reduced total REM sleep and changed the normal accumulation of REM and slow-wave sleep.
Regular exercise3 evidence sources
What the evidence addsThe direction is unusually consistent across large randomized-trial reviews, but certainty is not uniformly high because exercise type, population and sleep measurement vary widely.
- Determinants and interrelations of exercise effects on sleep quality: A multimethod meta-analysis
Exercise improved subjective sleep quality; 20 trials with objective data also showed a small significant improvement in sleep efficiency. The review nevertheless rated overall certainty very low.
- The optimal exercise intervention for sleep quality in adults: A systematic review and network meta-analysis
Multiple exercise modalities improved sleep quality compared with no-exercise controls in the network meta-analysis.
- Optimal exercise type and dose to improve sleep quality in older adults: a systematic review and network meta-analysis
Exercise significantly improved sleep quality in older adults, with clinically meaningful improvements possible from around five weeks.
Artificial light at night3 evidence sources
What the evidence addsTwo large meta-analyses independently found more sleep problems with greater nighttime-light exposure. Indoor light appears particularly relevant.
- The effect of exposure to artificial light at night (ALAN) on sleep disturbance: a systematic review and meta-analysis
People in the highest artificial-light-at-night exposure group had a 27% higher prevalence of sleep disturbance than those with low or no exposure.
- Association between exposure to light at night (LAN) and sleep problems: A systematic review and meta-analysis of observational studies
Higher light-at-night exposure was associated with 22% greater prevalence of sleep problems. The pooled association was larger for indoor than outdoor light.
- Interventions to reduce short-wavelength (blue) light exposure at night and their effects on sleep: A systematic review and meta-analysis
Reducing short-wavelength light showed some improvement in total sleep time and subjective sleep quality, although effects were mixed and strongest in selected clinical populations.
Environmental noise3 evidence sources
What the evidence addsTwo large systematic reviews and meta-analyses, including an update to the WHO evidence base, show consistent negative associations for aircraft, road and rail noise.
- Environmental Noise Exposure and the Risk of Sleep Disturbance: A Systematic Review and Meta-Analysis
Traffic noise was significantly associated with sleep disturbance, with larger pooled effects for aircraft and railway noise than road traffic noise and evidence of a dose-response relationship.
- Environmental Noise and Effects on Sleep: An Update to the WHO Systematic Review and Meta-Analysis
Higher nighttime aircraft, road and railway noise was associated with greater self-reported sleep disturbance, with exposure-response relationships across traffic types.
- Daily associations between the physical environment and sleep among a diverse, national sample of young adults
Nights reported as too noisy were associated with lower sleep-maintenance efficiency and substantially lower odds of good self-reported sleep quality.
Excessive heat3 evidence sources
What the evidence addsThe most consistent finding is that excessive heat is harmful. Evidence that active cooling products reliably improve sleep is much weaker.
- A systematic review of ambient heat and sleep in a warming climate
Higher indoor or outdoor temperatures were generally associated with worse sleep quality and quantity, with stronger effects during hotter periods and in vulnerable populations.
- Does body cooling facilitated by bedding compared to control condition improve sleep among adults? A systematic review and meta-analysis
Cooling-oriented bedding lowered body temperature in some studies but did not produce reliable pooled improvements in sleep onset, efficiency, stages, wake after sleep onset or total sleep time.
- Daily associations between the physical environment and sleep among a diverse, national sample of young adults
A too-hot sleep environment was associated with lower sleep-maintenance efficiency and lower odds of good sleep quality on the same night.
Stress, worry and rumination3 evidence sources
What the evidence addsThe relationship is not just cross-sectional: a longitudinal meta-analysis found perceived stress predicted later sleep disturbance, partly through worry and rumination.
- Perseverative Cognition as a Mediator Between Perceived Stress and Sleep Disturbance: A Structural Equation Modeling Meta-analysis
Perceived stress predicted subsequent sleep disturbance both directly and indirectly through perseverative cognition such as worry and rumination.
- The association between worry and rumination with sleep in non-clinical populations: a systematic review and meta-analysis
Higher worry and rumination were associated with poorer sleep quality, shorter sleep duration and longer sleep-onset latency.
- Association Between Occupational Stress and Sleep Quality: A Systematic Review
Across occupational groups, higher work stress was consistently associated with poorer sleep quality, although most included studies were cross-sectional.
Sleep regularity3 evidence sources
What the evidence addsA 59-study systematic review supports sleep regularity as a distinct dimension of sleep health. Large longitudinal data link chronic irregularity with lower sleep efficiency and more wake time, while athlete data also associate greater regularity with higher sleep efficiency.
- Sleep regularity as an important component of sleep hygiene: a systematic review
The review found consistent moderate-certainty evidence linking irregular sleep timing with poorer mental, cardiometabolic and other health outcomes, independent of sleep duration and quality in many studies.
- Chronic Sleep Irregularity Is Common, Persistent, and Associated With Poorer Sleep Health
Chronically irregular sleepers had 8% lower sleep efficiency and about 40 more minutes awake after sleep onset than participants with consistently regular sleep.
- Sleep Regularity and Predictors of Sleep Efficiency and Sleep Duration in Elite Team Sport Athletes
Regular sleepers had significantly greater sleep efficiency and less night-to-night variability. Earlier bedtimes and more consistent sleep-onset times were important predictors of sleep efficiency.
Screen and electronic media use3 evidence sources
What the evidence addsLarge meta-analyses show a consistent relationship, but the average sleep-duration effect per additional hour of screen use is modest.
- The association of screen time and the risk of sleep outcomes: a systematic review and meta-analysis
Each additional daily hour of screen time was associated with roughly 3 to 5 minutes less sleep, higher odds of short sleep, later bedtime and more difficulty initiating sleep.
- Electronic Media Use and Sleep Quality: Updated Systematic Review and Meta-Analysis
Both general and problematic electronic-media use were associated with poorer sleep quality and more sleep problems across more than 20 countries.
- Electronic Screen Use and Sleep Duration and Timing in Adults
Daily screen use in the hour before bed was associated with 33% higher prevalence of poor sleep quality, later bedtimes and modestly shorter sleep duration.
Diet quality3 evidence sources
What the evidence addsThe association has now been reproduced across several large systematic reviews, but reverse causation is a major limitation because poor sleep can also change food choices and appetite.
- Dietary patterns and insomnia symptoms: A systematic review and meta-analysis
Mediterranean, high-quality and empirically healthy dietary patterns were associated with fewer insomnia symptoms, while higher glycaemic load and unhealthy patterns were associated with more.
- Sleep and the Mediterranean diet: A systematic review and meta-analysis
Good-quality sleep and sufficient sleep were associated with higher Mediterranean-diet adherence, but the authors emphasized that longitudinal and intervention studies are needed to establish direction and causality.
- Association between diet and sleep quality: A systematic review
Healthy foods and dietary patterns were generally associated with better sleep, while processed and free-sugar-rich foods were associated with worse sleep features. Study quality was mostly poor to fair.
Meal timing4 evidence sources
What the evidence addsThis is the clearest example of why study design matters: observational studies often favour earlier or more regular eating, while controlled time-restricted-eating analyses show small, null or context-dependent effects.
- Chrono-nutrition and sleep: lessons from the temporal feature of eating patterns in human studies - A systematic scoping review
The review found preliminary links between meal timing, irregular eating and sleep health, but concluded that the evidence was not yet strong enough for firm chrono-nutrition guidelines.
- The Effect of Time-Restricted Eating on Sleep: A Systematic Review and Meta-analysis
Single-arm analyses suggested small improvements in sleep duration and PSQI, but controlled-trial analyses found no significant differences in sleep duration or sleep quality.
- Effects of time restricted feeding on sleep: A systematic review and meta-analysis
Effects differed by the type of fasting. Ramadan fasting generally reduced sleep duration and worsened subjective sleep quality, while non-Ramadan time-restricted feeding showed different or null patterns.
- Chronobiological perspectives: Association between meal timing and sleep quality
Later first, midpoint and final meal timing and more frequent eating occasions were associated with worse Pittsburgh Sleep Quality Index scores.