**Much of the evidence here is about when people sleep, not what they take** (PMID 37738616, 36229362, 33054339).
In accelerometer data from about 61,000 adults, sleep regularity was a stronger predictor of all-cause mortality than sleep duration (PMID 37738616).
Higher regularity was associated with lower all-cause, cancer and cardiometabolic mortality (PMID 37738616).
A Japanese cohort of about 81,000 adults found self-reported irregular sleep was associated with higher all-cause mortality, regardless of sleep duration (PMID 36229362).
A systematic review found later sleep timing and greater sleep variability were generally associated with adverse health outcomes (PMID 33054339).
It rated the evidence very low to moderate (PMID 33054339).
These findings are associations, not the effect of changing a sleep schedule (PMID 37738616, 36229362, 33054339).
**Caffeine timing has trial evidence** (PMID 24235903, 39377163).
In a randomised trial, a moderate dose of caffeine disturbed sleep compared with placebo when taken at bedtime, 3 hours before or 6 hours before (PMID 24235903).
A meta-analysis of 24 studies found caffeine reduced total sleep time by 45 minutes and sleep efficiency by 7% (PMID 36870101).
For a single cup of coffee, it estimated that drinking it at least 8.8 hours before bedtime avoids a reduction in total sleep time (PMID 36870101).
In a crossover trial in 23 young men, a typical dose had no significant effect on sleep, while a high dose disturbed sleep when taken within 12 hours of bedtime (PMID 39377163).
**Melatonin improved a sleep quality score in adults with various conditions** (PMID 33417003). Heterogeneity between the 23 randomised trials was high (PMID 33417003).
The benefit appeared in respiratory diseases, metabolic disorders and sleep disorders, but not in mental disorders or neurodegenerative diseases (PMID 33417003).
**The magnesium evidence is uncertain** (PMID 35184264, 21199787).
A systematic review found observational studies linked magnesium status with sleep quality, while randomised trials gave contradictory findings (PMID 35184264).
In a trial in adults over 51 with poor sleep, sleep quality scores improved with magnesium and placebo alike (PMID 21199787).
**Light therapy for insomnia disorder improved time awake after sleep onset, but not sleep latency, total sleep time or sleep efficiency** (PMID 37002704).
In that review, morning light advanced sleep-wake rhythms, and evening light delayed them (PMID 37002704).
Steps
1. **Sleep regularity had a stronger association with mortality than sleep duration** (PMID 37738616).
Consistent bedtimes and wake-up times are favourably associated with health (PMID 33054339).
2. **In a trial, a moderate dose of caffeine disturbed sleep even when taken six hours before bed** (PMID 24235903).
3. **In insomnia disorder, morning light exposure advanced sleep-wake rhythms** (PMID 37002704).
4. **For supplements, melatonin improved a sleep quality score in adults with various conditions** (PMID 33417003).
Anyone on prescribed medicines is best advised to tell the prescriber about a supplement.
Duration
Where the research supports a timeframe, the first caffeine trial measured sleep on the **same night** (PMID 24235903).
The magnesium trial gave the supplement for **seven weeks** (PMID 21199787), and the magnesium review called for trials longer than **12 weeks** (PMID 35184264).
The regularity cohorts followed people for a mean of about **six years** (PMID 37738616) and **nine years** (PMID 36229362).
Limitations
- **The regularity evidence is observational** (PMID 37738616, 36229362). It reports associations, not the effect of changing a sleep schedule.
- **The light therapy evidence is in insomnia disorder** (PMID 37002704). The review notes that heterogeneity and publication bias limit interpretation of a possible light dose-response.
- **The melatonin trials were in adults with various diseases** (PMID 33417003), with high heterogeneity between them.
- **In the magnesium trial, sleep quality improved with placebo as well** (PMID 21199787).
- **No dose appears in this guide.** Dosing is a clinical decision and is held for clinician review rather than published here.
- **Three of the interventions named have no canonical Avelor entity yet**, so they cannot be linked to interaction checking, as the ID list below records.
- **This guide has not been reviewed by a clinician.**
Cautions
- **Melatonin is a hormone, not a nutrient.** Starting it is a question for **the clinician who prescribes any current medicines**.
That matters particularly during pregnancy or breastfeeding, on an anticoagulant or an immunosuppressant, or with a seizure disorder. Avelor does not recommend a dose.
- **Cutting caffeine abruptly matters for anyone taking lithium.** In one case report, lithium tremor worsened in two patients when coffee was eliminated (PMID 3338980).
A reduction in renal lithium clearance is the suggested mechanism (PMID 3338980).
Another case report describes serum lithium rising to a supratherapeutic level after a sudden reduction in caffeine intake (PMID 38621222).
Any planned change is a question for **the prescriber who manages the lithium**.
- **Persistent sleep problems are a reason to see a clinician**, not a reason to add another supplement.
Loud snoring with daytime sleepiness in particular is a reason to see **a doctor**, because it may indicate sleep apnoea, which needs its own assessment.
Frequent loud snoring and daytime sleepiness are among the symptoms of sleep apnea, and a sleep study may be needed to diagnose it (NHLBI).
Sources
| PMID | Title |
| --- | --- |
| 37738616 | "Sleep regularity is a stronger predictor of mortality risk than sleep duration: A prospective cohort study" |
| 36229362 | "Irregular sleep and all-cause mortality: A large prospective cohort study" |
| 33054339 | "Sleep timing, sleep consistency, and health in adults: a systematic review" |
| 24235903 | "Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed" |
| 36870101 | "The effect of caffeine on subsequent sleep: A systematic review and meta-analysis" |
| 39377163 | "Dose and timing effects of caffeine on subsequent sleep: a randomized clinical crossover trial" |
| 33417003 | "Effect of melatonin supplementation on sleep quality: a systematic review and meta-analysis of randomized controlled trials" |
| 35184264 | "The Role of Magnesium in Sleep Health: a Systematic Review of Available Literature" |
| 21199787 | "Magnesium supplementation improves indicators of low magnesium status and inflammatory stress in adults older than 51 years with poor quality sleep" |
| 37002704 | "Light therapy in insomnia disorder: A systematic review and meta-analysis" |
| 38621222 | "Sudden Reduction in Caffeine Intake Increases Serum Lithium Concentration to Supratherapeutic Level: A Case Report" |
| 3338980 | "Lithium tremor and caffeine intake: two cases of drinking less and shaking more" |
| NIH | "NHLBI, Sleep Apnea - Symptoms, retrieved 2026-11-12" |