Key takeaways
- Behavioral foundation first. Consistent bedtime within a 30-minute window, morning bright light, no screens 60 min pre-bed, no alcohol within 3 hours of bed. Supplements are leverage on this, not a substitute.
- Magnesium is the cleanest single-ingredient starting point. Glycinate or L-threonate, 200 to 400 mg elemental magnesium, 30 to 60 minutes before bed.
- Ashwagandha (KSM-66 600 mg or Sensoril 250 mg) for racing-thoughts presentations specifically. Effect builds over 4 to 8 weeks, not acute.
- Skip melatonin at over-the-counter doses (typically 5 to 10 mg). Trials use 0.3 to 1 mg. The OTC dose is 10x trial dose with no upside and a residual grogginess risk.
- L-Theanine 200 mg is a quiet option for sleep-onset anxiety. Stacks cleanly with magnesium.
- Glycine 3 g pre-bed if subjective restfulness is the issue and magnesium alone has not moved it.
- The journal is more valuable than any supplement. One line per night for 4 weeks beats any subjective recall.
Who this is for
Readers whose sleep quality is the binding constraint on focus, mood, and energy. Aimed at: knowledge workers averaging 7-8 hours but waking unrested; readers with racing thoughts at sleep onset; people who want to test magnesium or ashwagandha but do not know which form, dose, or stack to start with; readers tired of melatonin gummies that leave them groggy. Not aimed at: people sleeping under 6 hours where the issue is sleep quantity rather than quality (no supplement outperforms an extra hour of bedtime); people with chronic insomnia, sleep apnea, restless legs, or sleep-onset issues that persist over months (those are clinician conversations, not supplement decisions); people unwilling to fix the behavioral foundation (consistent bedtime, dark room, no screens 60 min pre-bed, no alcohol within 3 hours of bed) because supplements are leverage on that foundation, not a replacement.
What to look for
Top recommendations
FAQ
Should I start with magnesium or ashwagandha?
Magnesium. The evidence is broader (works for the most common sleep-quality issues regardless of cause) and the effect builds faster (often within 1-2 weeks). Add ashwagandha at week 4 only if your primary issue is racing thoughts at sleep onset and magnesium alone has not moved the needle.
Why do you not recommend melatonin?
Two reasons. One: most over-the-counter melatonin is dosed at 5-10 mg, while sleep trials use 0.3-1 mg. The OTC dose is 10x trial dose with no upside. Two: high-dose melatonin frequently produces residual grogginess in the 4-6 hours after waking. There is a legitimate use case for low-dose melatonin (0.3-1 mg) for circadian-shift problems like jet lag or shift work, but for primary sleep-quality issues, magnesium is cleaner. If you want melatonin, look for 0.3-1 mg dosing specifically.
How long until I notice an effect?
Magnesium: 1-2 weeks for subjective sleep quality, often faster for restless-legs presentations. Ashwagandha: 4-8 weeks for the cortisol-reduction effect to build. L-Theanine: same-night effect for sleep-onset anxiety. Plan for at least 4 weeks of consistent dosing before judging any of them. The journal is the only honest way to evaluate trend.
Is glycine worth adding?
Yes if magnesium alone has not moved subjective restfulness after 4 weeks. Glycine at 3 g pre-bed has a smaller but consistent effect on subjective rest in trials, and it stacks cleanly with magnesium glycinate (which is partly glycine anyway). Diminishing returns above 5 g.
Can I take this stack with prescription sleep medication?
Ask a pharmacist. Magnesium and ashwagandha can interact with thyroid medications, antibiotics (tetracyclines, quinolones - separate by 2 hours), and certain blood thinners. Specific concerns at sleep doses: ashwagandha and lithium (theoretical), magnesium and digoxin, melatonin and warfarin. Most prescription sleep medications (zolpidem, eszopiclone, doxepin) have their own watch-out lists. The pharmacist is paid for this and will usually answer the question for free; use them.
What about CBD for sleep?
We do not recommend CBD as a primary sleep tool right now. The trial data for sleep specifically is mixed and the supplement-grade CBD market has serious dose-disclosure and contamination problems (multiple ConsumerLab reports show products containing fractions of labeled CBD, sometimes with measurable THC). If you want to try CBD, only buy from brands that publish per-batch COAs from an ISO 17025-accredited lab and that disclose CBD content in milligrams, not just 'broad spectrum'.
How much should I expect to spend monthly?
USD 10-20/month for magnesium glycinate or L-threonate at trial-tested dose from a transparent brand. USD 20-35/month for KSM-66 or Sensoril ashwagandha. USD 5-10/month for L-Theanine. The full stack lands at USD 35-65/month, which is the upper range of useful spend in this niche. Anything more than that is premium positioning or proprietary-blend markup.
Should I take the supplements with food?
Magnesium: with or without food, but with water. Ashwagandha: with food (better absorption and gentler on the stomach). L-Theanine: either, fast onset either way. The bigger consistency lever is timing relative to bedtime, not relative to food: magnesium 30-60 min pre-bed, ashwagandha any time but consistently, L-Theanine 30 min pre-bed.
What if my issue is waking up at 3 AM, not falling asleep?
That is a different pattern. Magnesium can help (especially L-threonate, which seems to support deeper sleep maintenance in some readers). Ashwagandha can help if cortisol elevation in the second half of the night is the cause. But sleep-maintenance issues are also a strong signal for stress, alcohol use within 3 hours of bed, or untreated sleep apnea. If 3 AM wake-ups persist for more than 4 weeks despite supplement and behavioral interventions, the next move is a sleep-medicine consult, not a different supplement.
Can I cycle the stack?
Magnesium: no need to cycle, well-tolerated indefinitely. Ashwagandha: traditionally cycled 8 weeks on, 2-4 weeks off, partly to preserve the cortisol-reduction effect and partly because long-term human safety data is thinner than for shorter durations. L-Theanine: no cycling needed. If you build a stack of all three, cycle the ashwagandha specifically and keep the others running.
Key sources
Direct citations for the claims above. Click through to the original.
- Abbasi et al. (2012) - Magnesium supplementation in primary insomnia
Double-blind placebo-controlled RCT of magnesium 500 mg/day for 8 weeks in older adults with insomnia. Significant improvement on ISI, sleep efficiency, and sleep onset.
- Salve et al. (2019) - Ashwagandha for stress and sleep
Randomized double-blind trial of KSM-66 ashwagandha 600 mg/day for 8 weeks. Significant reduction in cortisol and improvement in sleep quality on PSQI.
- Yamadera et al. (2007) - Glycine ingestion improves subjective sleep quality
Glycine 3 g pre-bed improved subjective sleep quality and reduced daytime sleepiness across multiple sleep-related measures.
- Brzezinski et al. (2005) - Effects of exogenous melatonin on sleep: meta-analysis
Foundational meta-analysis showing modest effects of melatonin on sleep-onset latency at 0.3-1 mg dosing. The OTC 5-10 mg dose was not what the trials used.
- USP General Chapter <2023> - Microbial limits for dietary supplements
Pharmacopeial standard for microbial limits referenced on credible supplement COAs.