Evidence-based · Sleep · Optimization

The Sleep Stack

Four compounds. One protocol. Meaningfully better sleep — without melatonin dependency or morning grogginess.

Most sleep supplements either don't work or work by knocking you out — not the same thing as quality sleep. This stack is built around compounds with solid mechanistic evidence: they support the pathways that produce deep, restorative sleep rather than sedating you into it. It's the protocol popularized by Andrew Huberman and validated across several sleep researchers' work, broken down so you actually understand what you're taking and why.

"The goal isn't to fall asleep faster. It's to spend more time in the deep and REM stages that actually do the repair work."

01 At a Glance

What the stack costs, what it targets, and how long before you'll notice a difference.

Core compounds

4

Magnesium glycinate, apigenin, L-theanine, and glycine.

Monthly cost

~$18

Full stack, buying mid-tier brands with reasonable dosing.

Time to notice effect

3–7 days

Most people report noticeably deeper sleep within a week.

Melatonin in this stack

0 mg

Deliberately excluded. Here's why in Section 05.

02 The Core Four

These are the compounds with the strongest evidence-to-cost ratio. Take all four together, 30–60 minutes before bed.

Core 1 of 4

Magnesium Glycinate

300–400 mg

Magnesium is a cofactor for over 300 enzymatic reactions, including those that regulate the nervous system's transition to rest. The glycinate form (bound to glycine, an amino acid) is gentler on the gut than magnesium oxide or citrate and crosses the blood-brain barrier more effectively. It directly reduces cortisol activity and supports GABA — the primary inhibitory neurotransmitter that calms neural firing.

🕙 30–60 min before bed
Core 2 of 4

Apigenin

50 mg

A flavonoid found in chamomile, apigenin binds to GABA-A receptors — the same receptor family targeted by benzodiazepines, but with much lower potency and no dependency risk. It promotes anxiolysis (a quiet, settled feeling) without sedation. At 50 mg it has a measurable effect on sleep onset latency in studies. Note: if you're trying to conceive, discuss with your doctor first — there's a theoretical estrogen-modulating effect at high doses.

🕙 30–60 min before bed
Core 3 of 4

L-Theanine

100–200 mg

An amino acid in green tea that increases alpha brainwave activity — the relaxed-but-alert state associated with meditation. At sleep doses it shifts the brain toward a calmer pattern without inducing drowsiness during the day. It pairs synergistically with magnesium glycinate: magnesium addresses the body's stress response, theanine addresses the mind's. People who wake in the night often find this the most impactful compound.

🕙 30–60 min before bed
Core 4 of 4

Glycine

2,000 mg (2 g)

An inhibitory amino acid that lowers core body temperature — one of the key physiological signals that triggers deep sleep onset. Studies show 3g of glycine taken before bed reduces fatigue the following day and increases slow-wave (deep) sleep time. It's inexpensive in bulk powder form, mildly sweet, and mixes well into a glass of water. The magnesium glycinate above also contributes glycine, but this dose goes further.

🕙 30–60 min before bed · Mix in water

03 Timing Protocol

Sequence matters. The stack works best within a broader evening wind-down — the compounds amplify habits, not replace them.

Evening protocol · Working backwards from bedtime

8–10 hrs before bed Last caffeine

Caffeine's half-life is 5–6 hours. A 3pm coffee is still 50% active at 9pm. Cutting earlier is the single highest-leverage sleep lever most people ignore.

1–2 hrs before bed Dim the lights

Bright light suppresses melatonin production. Shift to lamps, avoid overhead lighting, and get off blue-light screens or use blue-light blocking glasses.

60 min before bed Take the stack

Magnesium glycinate (300–400 mg) + Apigenin (50 mg) + L-Theanine (100–200 mg) + Glycine (2 g dissolved in water). All together, once daily.

30 min before bed Lower your body temperature

A cool (not cold) shower, or simply turning the thermostat down. Core body temp needs to drop ~1–2°F to initiate sleep — you're accelerating that process.

Bedtime Dark, cool, quiet

The compounds are active. The environment needs to meet them halfway. 65–68°F (18–20°C), blackout dark, and quiet enough to stay asleep.

04 Optional Additions

These compounds have good evidence but lower confidence or more individual variability. Add one at a time, not all at once.

Optional

Ashwagandha (KSM-66)

300–600 mg

An adaptogen that measurably lowers cortisol over time. KSM-66 is the most studied extract — it works on a weekly/monthly timescale rather than acutely, so it's less "take tonight" and more "take consistently for 8 weeks." Good for people whose main problem is stress-driven wakefulness or racing thoughts at bedtime. Cycle off every 2–3 months.

🕙 With dinner or at bedtime · Cycle 8 weeks on / 4 weeks off
Optional

Melatonin (micro-dose)

0.3 mg — not 3–10 mg

Most melatonin sold in the US is 3–10 mg — that's 10–30× the physiological dose your brain actually produces. At 0.3 mg it's a timing signal (tells your brain it's night); at 3+ mg it's a pharmacological dose that causes grogginess and disrupts natural production over time. If you use melatonin, use a 0.3 mg product. Useful for jet lag and schedule shifts, less useful for ongoing nightly use.

🕙 30 min before target bedtime · Jet lag / travel only

05 What to Cut

No stack overcomes bad inputs. These are the most common things that neutralize the benefit.

Late caffeine

Caffeine blocks adenosine receptors — the buildup of adenosine is what creates sleep pressure. Even if you "fall asleep fine," caffeine reduces deep sleep duration measurably. Cut off by 1–2pm for most people.

Cutoff: 1–2pm
🍷

Alcohol

Alcohol sedates but doesn't produce sleep — it suppresses REM dramatically. You'll fall asleep faster but wake fragmented in the second half of the night as the alcohol is metabolized. It's the biggest silent killer of sleep quality.

None within 3 hrs of bed
📱

Bright screens after 9pm

Blue and green wavelength light (~480 nm) suppresses melanopsin-containing cells in the retina, which signal the SCN to pause melatonin production. Even at low brightness, ceiling lights and phone screens are bright enough to matter.

Dim / warm-only after sunset
🌡️

Warm bedroom

Core body temperature needs to fall to initiate and maintain deep sleep. A warm room fights this directly. The sweet spot is 65–68°F (18–20°C). If you share a bed, a cooling mattress pad on your side is a legitimate tool.

Target: 65–68°F (18–20°C)
🍔

Large meals within 2 hrs of bed

Digestion raises core body temperature and keeps the digestive system active. This doesn't prevent sleep onset so much as it reduces deep sleep proportion and can cause acid reflux that fragments the night.

Last meal: 2–3 hrs before bed

Inconsistent sleep schedule

Your circadian clock is the master regulator — all of the above compounds are modulating a signal that the clock interprets. Going to bed 2 hours later on weekends introduces a kind of social jet lag that takes days to recover from. Consistency is more powerful than any supplement.

Same bedtime ± 30 min 7 days/week

06 Sleep Environment

The stack works best when the environment cooperates. These are the highest-leverage physical changes.

🌑

Total darkness

Even small amounts of light through closed eyelids (streetlight, standby LEDs, charging cables) have been shown to elevate cortisol and fragment sleep architecture. Blackout curtains or a sleep mask.

High impact
❄️

Cool temperature

Set the thermostat to 65–68°F before bed. If your partner runs hot or cold differently, a dual-zone mattress pad (Eight Sleep, BedJet) solves this without nightly negotiation.

High impact
🔇

Sound masking

Brown or pink noise (more natural than white noise) masks intermittent sounds — the wake trigger is usually the change in sound level, not the volume itself. A fan often does the job.

Medium impact
📵

Phone out of bedroom

The cognitive pull of a nearby phone — even face-down — has been shown to modestly impair sleep quality and next-day focus. Charge it outside the room; use a separate alarm clock.

Medium impact
Morning anchor Get 2–10 minutes of direct outdoor sunlight within 30–60 minutes of waking. This resets the circadian clock's start time, making it easier to feel sleepy at your target bedtime. It's the other half of the light protocol.

07 Shopping List

The four core compounds and a few optional additions, with affiliate links that support this project.

Core Stack

Take all four together, 30–60 minutes before bed. This is the complete evidence-based protocol.

300–400 mg · Nightly

Magnesium Glycinate

Doctor's Best High Absorption Magnesium — the glycinate form specifically, not oxide. 200 tablets per bottle lasts 3+ months.

View →
50 mg · Nightly

Apigenin

Swanson Apigenin 50mg — standardized chamomile extract. Hard to find at this dose; Swanson has consistent quality control.

View →
200 mg · Nightly

L-Theanine

NOW Foods L-Theanine 200mg — double-strength capsules, well-sourced and third-party tested. Start at 100mg if you're sensitive.

View →
2–3 g · Nightly in water

Glycine Powder

Bulk Supplements Glycine — buy powder, not capsules. At 2–3g/night a capsule form is impractical. Mild sweetness, dissolves easily.

View →
Add Core Stack to Cart

Optional Additions

Add one at a time. Ashwagandha is best as a multi-week commitment; melatonin is for travel only.

300–600 mg · With dinner · Cycle 8 wks on/off

Ashwagandha KSM-66

Nutricost Ashwagandha with KSM-66 extract — the most-studied ashwagandha form. For cortisol reduction over time, not acute sleep onset.

View →
0.3 mg · Travel and jet lag only

Melatonin 0.3 mg

Life Extension Melatonin 0.3mg — the physiological dose, not the pharmacological one. If you can only find 1mg, cut the tablet in thirds.

View →
Add Optionals to Cart

Affiliate links — support this site at no extra cost to you

This is not medical advice These compounds are generally well-tolerated but interact with medications and aren't appropriate for everyone. If you're pregnant, breastfeeding, on SSRIs or anti-anxiety medication, or dealing with a sleep disorder, talk to your doctor before starting. Apigenin in particular has estrogen-modulating properties at high doses — mentioned above, worth knowing.

08 The Takeaway

The sleep stack isn't magic, and it isn't a substitute for basic sleep hygiene — consistent bedtime, cool room, dark space, no alcohol close to bed. What it does is lower the floor. For most people, the compounds smooth out the rougher nights, reduce middle-of-night wakefulness, and slightly extend time in slow-wave and REM. At ~$18/month for the core four, the cost-benefit is hard to argue with.

Start with just magnesium glycinate for a week if you want to test compounds individually. Most people notice glycine's effect quickly (it's hard not to when you're sleeping more deeply). The full protocol takes about two weeks to stabilize.

"The supplements don't create sleep. They remove the obstacles. Your brain already knows how to do the rest."