Sleep is the single most important intervention for longevity. A decade of research has consistently shown that chronically poor sleep — less than 6 hours per night, irregular timing, or fragmented sleep — is associated with higher all-cause mortality, accelerated cognitive aging, impaired immune function, and increased risk of cardiovascular disease, diabetes, and cancer. Sleep is when your brain clears beta-amyloid (via the glymphatic system), when your muscles repair, when your immune system consolidates memory and clears infections.
The foundation of good sleep is behavioral: consistent sleep and wake times, dark and cool bedroom, no screens in the final hour, no caffeine after noon, no alcohol before bed. No supplement can fix a sleep-destroying lifestyle. But once the behavioral foundation is solid, the right supplements can meaningfully deepen sleep, reduce sleep onset latency, and improve subjective sleep quality.
This guide covers the sleep supplements with the best evidence: magnesium glycinate, L-theanine, apigenin, GABA, glycine, and melatonin. We also cover Andrew Huberman's popular sleep stack and how to think about combining supplements. The short version: most people should start with magnesium glycinate + L-theanine, add apigenin if needed, and use melatonin sparingly for jet lag or shift work rather than nightly use.
On this page
- The Huberman sleep stack explained
- Why melatonin isn't always the answer
- Magnesium glycinate: the foundation
- L-theanine: calm the racing mind
- Apigenin: the chamomile compound
- GABA: the debate
- Glycine: body temperature and deep sleep
- Ashwagandha: cortisol regulation
- Our recommended stack
- How to take sleep supplements
- The bottom line
The Huberman sleep stack explained
Stanford neuroscientist Andrew Huberman popularized a simple sleep stack on his podcast: magnesium threonate or glycinate (200–400mg), L-theanine (200mg), and apigenin (50mg), taken 30–60 minutes before bed. The rationale is mechanistic: each compound acts on a different pathway involved in sleep onset and sleep depth.
- Magnesium glycinate/threonate: Magnesium supports GABA receptor function (the brain's calming neurotransmitter) and helps quiet the nervous system. Glycinate is well-absorbed and the glycine component itself supports sleep. Threonate crosses the blood-brain barrier for cognitive effects.
- L-theanine: An amino acid from tea that increases alpha brain waves (the calm, relaxed state of meditation) and modulates GABA. Particularly useful for people whose minds race at bedtime.
- Apigenin: A flavonoid from chamomile that binds to GABA receptors (similar mechanism to benzodiazepines, but much weaker) and supports sleep onset.
The Huberman stack is a reasonable starting point and most users tolerate it well. The main caution: magnesium threonate is expensive and not necessary for sleep alone (it's chosen for cognitive benefits). Magnesium glycinate is equally effective for sleep and much cheaper.
Why melatonin isn't always the answer
Melatonin is the hormone your pineal gland produces in response to darkness. It signals to your body that it's nighttime and helps shift you into sleep mode. As a supplement, melatonin is genuinely useful for two specific situations: jet lag (shifting your circadian rhythm to a new time zone) and shift work (sleeping at unconventional times).
But melatonin is widely overused as a nightly sleep aid. The reasons to be cautious:
- Doses are typically too high. Your body naturally produces about 0.3mg of melatonin per night. Most supplements contain 3–10mg — 10–30x physiological dose. High doses can cause grogginess the next morning, vivid/bizarre dreams, and receptor downregulation (your body produces less melatonin naturally).
- It doesn't deepen sleep. Melatonin helps you fall asleep but doesn't significantly improve sleep architecture (deep sleep, REM). Magnesium, glycine, and L-theanine have better evidence for sleep quality.
- Timing matters more than dose. Melatonin taken at the wrong time (e.g., 30 minutes before bed when your body is already producing its own) is largely useless. The right protocol is 0.3–1mg taken 2–3 hours before your target bedtime, mimicking the natural rise.
- Long-term safety is uncertain. Melatonin is generally considered safe, but nightly use for years hasn't been rigorously studied. Some researchers worry about receptor downregulation and effects on puberty in adolescents.
For most users, melatonin should be a jet-lag and shift-work tool, not a nightly sleep aid. For nightly use, magnesium glycinate + L-theanine + apigenin is a better foundation.
Magnesium glycinate: the foundation
Magnesium is the single most important sleep supplement for most adults. Magnesium deficiency is widespread (an estimated 50% of US adults are suboptimal), and magnesium supports GABA receptor function, muscle relaxation, and the regulation of the HPA axis (the stress response system). Low magnesium is associated with poor sleep quality, restless leg syndrome, and nighttime muscle cramps.
Among magnesium forms, glycinate is our top choice for sleep:
- Well-absorbed and well-tolerated (no laxative effect, unlike citrate or oxide).
- The glycine component itself supports sleep — glycine is an inhibitory neurotransmitter that lowers core body temperature and promotes deep sleep.
- Cost-effective compared to threonate.
Dose: 200–400mg of elemental magnesium (typically 1000–2000mg of magnesium glycinate powder) taken 30–60 minutes before bed. See our magnesium guide for the full breakdown of forms and dosing.
Pure Encapsulations Magnesium Glycinate
By Pure Encapsulations · ASIN B07P5K7DQP
Hypoallergenic magnesium glycinate from a practitioner-grade brand. Highly absorbable and gentle on the stomach — ideal for sleep, muscle recovery, and metabolic support.
- Hypoallergenic, practitioner-grade
- Glycinate form = gentle + well-absorbed
- Supports sleep and recovery
- Third-party tested
- Premium price
- Lower elemental magnesium per capsule
Best for: Sensitive-stomach users who want premium magnesium for sleep
L-theanine: calm the racing mind
L-theanine is an amino acid found in tea (especially green tea) that increases alpha brain wave activity — the brain state associated with calm, relaxed wakefulness (the same state induced by meditation). It also modulates GABA and dampens the stimulant effects of caffeine. For sleep, L-theanine is particularly useful for the "racing mind" phenomenon — when your body is tired but your thoughts keep spinning.
The evidence for L-theanine and sleep is modest but consistent. Multiple small trials show 200mg of L-theanine before bed improves subjective sleep quality, reduces sleep onset latency, and improves perceived restfulness. The effect is subtle (L-theanine is not a sedative) but most users report noticeable benefits within a few nights.
Dose: 200mg, 30–60 minutes before bed. Pair with caffeine during the day for calm focus without drowsiness. See our L-theanine guide for more.
Nature's Trove L-Theanine 200mg (120 vegetarian capsules)
By Nature's Trove · ASIN B01D1YQBOK
200mg L-theanine per capsule — the dose used in studies for calm focus. Pairs perfectly with caffeine (1:1 ratio) for jitter-free energy. 120-capsule bottle is excellent value.
- 200mg clinical dose
- 120 capsules = 4-month supply
- Vegetarian capsules
- Excellent value
- Single-ingredient only (some prefer combination formulas)
Best for: Calm focus, anxiety reduction, and stacking with caffeine
Apigenin: the chamomile compound
Apigenin is a flavonoid found in chamomile, parsley, and celery. It binds to GABA-A receptors (the same target as benzodiazepines like Valium, but with much weaker affinity — enough to support relaxation, not enough to be a sedative). It's the compound largely responsible for chamomile's traditional use as a sleep aid.
The clinical evidence for apigenin as an isolated supplement is limited but suggestive. A 2011 trial showed improved sleep quality in adults with chronic insomnia. For most users, the effect is subtle but noticeable when stacked with magnesium and L-theanine.
Dose: 50mg, 30–60 minutes before bed. Apigenin is fat-soluble — take with a small amount of fat (a few nuts, a spoon of olive oil) for better absorption. See our apigenin guide for more.
Apigenin Supplement 50mg (120 capsules)
By Apigenin · ASIN B09DGTBBSF
50mg apigenin per capsule — the dose recommended by Andrew Huberman for sleep support. 120-capsule bottle delivers a 4-month supply at a very accessible price.
- 50mg Huberman-recommended dose
- 120 capsules = 4-month supply
- Affordable
- Easy-to-swallow capsules
- Generic brand
- Limited third-party testing info
Best for: Anyone following the Huberman sleep stack on a budget
GABA: the debate
GABA (gamma-aminobutyric acid) is the brain's main inhibitory neurotransmitter. Theoretically, supplementing GABA should calm the brain and support sleep. The catch: pure GABA doesn't cross the blood-brain barrier in meaningful amounts — most of what you swallow stays in the periphery.
The debate: there's some evidence that peripheral GABA (in the gut) signals to the brain via the gut-brain axis, and that GABA supplements can reduce stress and improve sleep despite not crossing the BBB. Several small Japanese trials show GABA supplementation reduces sleep onset latency and improves subjective sleep quality. The mechanism may involve the enteric nervous system rather than direct brain effects.
For users who haven't tried GABA, it's worth a 2-week trial — some people respond strongly, others notice nothing. Dose: 100–300mg, 30–60 minutes before bed. Avoid combining with benzodiazepines or other GABA-ergic medications without medical supervision.
NOW GABA 750mg (100 capsules)
By NOW Foods · ASIN B0013OVZAG
750mg GABA per capsule. GABA is the brain's primary inhibitory neurotransmitter — supplementing may support relaxation and stress reduction. Whether it crosses the blood-brain barrier is debated.
- 750mg high dose
- Affordable NOW Foods brand
- 100-capsule bottle
- Supports relaxation
- Blood-brain barrier crossing debated
- Effects vary widely between individuals
Best for: Stress reduction and relaxation support
Glycine: body temperature and deep sleep
Glycine is the simplest amino acid and one of the most underrated sleep supplements. The mechanism is interesting: glycine lowers core body temperature (a necessary physiological shift for sleep onset — your body temperature drops by about 1°F as you fall asleep) and increases the time spent in deep (slow-wave) sleep.
A 2012 Japanese trial showed 3g of glycine before bed improved subjective sleep quality, reduced sleep onset latency, and improved next-day cognitive performance. The effect is subtle but consistent across studies. Glycine is also extremely cheap and well-tolerated.
Dose: 3g (3000mg) of glycine powder before bed. See our glycine guide for more.
Ashwagandha: cortisol regulation
Ashwagandha is an adaptogenic herb with consistent evidence for reducing cortisol (the stress hormone) and supporting sleep. Multiple trials show 300–600mg of KSM-66 ashwagandha extract reduces perceived stress, anxiety, and improves sleep quality over 4–8 weeks of use. The effect is gradual rather than acute — ashwagandha works through HPA axis regulation, not direct sedation.
For users whose sleep is disrupted by stress (racing mind, tension, elevated evening cortisol), ashwagandha can be particularly effective. Pair with magnesium glycinate at night for compounded stress-reduction effects. See our adaptogens guide for more.
Life Extension Optimized Ashwagandha (150 veg capsules)
By Life Extension · ASIN B0BRTNXX65
Standardized ashwagandha extract from Life Extension, optimized for withanolide content. 150-capsule bottle delivers a 75-day supply at 2 capsules daily. Best taken in the evening for cortisol reduction and sleep support.
- Standardized withanolide content
- 150 capsules = 75-day supply
- Trusted longevity brand
- Vegetarian capsules
- Not KSM-66 (some users prefer this specific extract)
- Effects take 2-4 weeks to manifest
Best for: Evening cortisol reduction and sleep support
Our recommended stack
For most users, we recommend starting with a simple two-supplement stack and adding only if needed:
Tier 1: The foundation (start here)
- Magnesium glycinate 300mg, 30–60 minutes before bed
- L-theanine 200mg, 30–60 minutes before bed
This covers most users. If after 2 weeks you still have sleep issues, add Tier 2.
Tier 2: The Huberman stack additions
- Apigenin 50mg, 30–60 minutes before bed
- Glycine 3g, 30 minutes before bed
Tier 3: For stress-driven sleep issues
- Ashwagandha KSM-66 300–600mg, in the evening
- GABA 100–200mg, 30 minutes before bed (try for 2 weeks, evaluate)
Tier 4: For jet lag and shift work only
- Melatonin 0.3–1mg, 2–3 hours before target bedtime (not for nightly use)
Carlyle Melatonin Gummies 3mg (90 count)
By Carlyle · ASIN B0BNNXF7L7
3mg melatonin gummies — a gentle, low dose for occasional sleep support. Lower doses (3mg) work better than high doses for most people. 90-count bottle is excellent value.
- 3mg gentle dose (better than high doses)
- 90-count bottle
- Tasty gummies
- Affordable
- Contains added sugar
- Not for nightly long-term use
Best for: Occasional jet lag or short-term sleep reset
How to take sleep supplements
- Take 30–60 minutes before bed: Most sleep supplements need time to absorb and act. Taking them right as you get into bed is too late.
- Pair with behavioral wind-down: Dim lights, no screens, gentle stretching or reading. Supplements amplify the behavioral signal; they don't replace it.
- Try one new supplement at a time: Don't add four things on the same night. Add magnesium first, evaluate for a week, then add L-theanine, etc.
- Take magnesium glycinate with food: Better absorbed and gentler on the stomach.
- Cycle if needed: Most sleep supplements can be taken nightly, but cycling (5 nights on, 2 off) is reasonable if you're concerned about tolerance.
- Don't combine with prescription sleep meds: Talk to your doctor before combining sleep supplements with prescription sedatives (Ambien, Lunesta, benzodiazepines) — the combinations can be additive and dangerous.
The bottom line
Sleep is the foundation of longevity, and supplements play a supporting role — not a starring one. The behavioral basics (consistent schedule, dark/cool room, no screens before bed, no late caffeine) are non-negotiable. Once those are in place, the right supplement stack can deepen sleep, reduce onset latency, and improve subjective quality.
For most users, start with magnesium glycinate + L-theanine. Add apigenin and glycine if needed. Use ashwagandha if stress is the dominant issue. Use melatonin sparingly for jet lag and shift work rather than nightly use. GABA is worth a trial but response varies.
This stack fits into the broader framework in our sleep optimization guide — read that first for the behavioral foundation. For tracking your sleep, see our wearables guide (especially Oura and Whoop, both of which excel at sleep tracking). Stress-driven sleep issues connect to our stress reduction techniques guide. And for the integrated supplement picture, sleep supplements belong in the foundational layer of our supplement stack guide, alongside magnesium and omega-3. For a deeper look at any single supplement, see our L-theanine guide, apigenin guide, glycine guide, and adaptogens guide.