Peptide Engineering
Neurotransmitter molecules in copper on black
Energy

Sleep Chemicals

Sleep runs on chemistry — two molecules decide when you're alert and when you crash, and a supplement aisle that mostly lies about both. Here's the actual neurochemistry, and the honest shortlist of what moves the needle.

Julian Caraulani · June 30, 2026 · 9 min read

Sleep isn't willpower — it's chemistry. A handful of molecules run a switch between awake and asleep, and once you understand them you stop fighting your own biology, stop being fooled by caffeine, and stop wasting money on most of the supplement aisle. Two molecules do almost all the work.

The pressure

Adenosine — why you get sleepy

Every hour you're awake, a molecule called adenosine builds up in your brain. It's an indicator of activity-dependent energy use — the more your neurons spend, the more it accumulates — and it creates sleep pressure: the longer you're up, the heavier it gets, until lying down feels irresistible. PET imaging confirms it: stay awake long enough and your brain visibly up-regulates its adenosine machinery. 1

Here's the trick most men never learn: caffeine doesn't give you energy. It's a competitive antagonist — it plugs the adenosine receptors so the sleep-pressure signal can't be felt. 2 The pressure is still building; you've just muted the alarm. When the caffeine clears, all that backed-up adenosine lands at once — the crash. And it lingers: caffeine's half-life is five to six hours, so an evening coffee is still half-active in the middle of the night.

ToolCaffeine half-life

What’s still in your blood at bedtime?

Caffeine’s half-life is ~5–6 hours, so half is still circulating long after the buzz fades. Slide your last cup and see what your brain is dealing with at lights-out.

Last cup120 mg · a brewed coffee
0400 mg
Before bed6h before lights-out
0h12h
56mg
still circulating at bedtime · A tax

Enough to quietly shave time off your deep sleep, even if you fall asleep fine.

BEDLAST CUP
Caffeine has an average half-life of five to seven hours. Have a coffee after dinner around 7:30 p.m. and by 1:30 a.m., 50 percent of that caffeine may still be circulating throughout your brain tissue.
Matthew Walker · “Why We Sleep”
The clock

Melatonin — the 'it's dark' signal

Melatonin is the hormone of darkness. As light fades, your pineal gland releases it as a message to the whole body: the sun is down. It's suppressed by light — especially the blue wavelengths in screens and overhead bulbs. Crucially, melatonin times sleep; it doesn't sedate it. That's why people say it 'doesn't work' — they're swallowing it like a sleeping pill when it's really a clock-setter.

And the dose on the shelf is backwards. MIT's Richard Wurtman showed that a physiologic 0.3 mg dose restored sleep efficiency just as well as 3 mg — but the bigger dose caused a drop in body temperature and left melatonin elevated into the next day, a chemical hangover. 3 Most products sell 5–10 mg. Less is more — and even then, melatonin helps you fall asleep, not stay asleep.

Melatonin will help you fall asleep, but it won’t help you stay asleep… the amount in a supplement can range from 15% of what’s on the label to 400 times more than what’s listed.
Andrew Huberman · Huberman Lab
The shortlist

Supplements, honestly graded

Most of the aisle is hope in a capsule. The few worth knowing, best first. Glycine (~3 g before bed) is the strongest of the boutique options — small trials show better sleep quality and less next-day fatigue, by gently dropping your core body temperature, which is itself a sleep trigger. 4 L-theanine delivers calm without sedation and is the best partner for caffeine (the 'calm-alert' pairing). 5 Magnesium (glycinate or threonate) is real but small, and mostly helps people who are deficient or sleeping badly — the form-superiority marketing is just that. 6 And apigenin — the trendy one — is the weakest: the chamomile trial it rests on actually missed its primary endpoints. 7 Popularity outran the proof.

The anti-list

Fix these before you buy anything

The strongest evidence on this entire page isn't for a supplement — it's against two things you probably do every day. Alcohol: it's a sedative, and sedation is not sleep. It knocks you out, then suppresses your REM and fragments the back half of the night — measurable from about two drinks. 8 Late caffeine: 400 mg even six hours before bed cuts measurable sleep, and quietly steals deep sleep even when you drop off fine. 9 Sort those two, then talk to me about glycine.

Alcohol is a sedative. It’s a class of drugs that we call the sedatives. And sedation is not sleep.
Matthew Walker · neuroscientist

Chemistry sets the table. Sleep itself is where the work happens.

Read: Sleep →

References

  1. 1Elmenhorst, E-M. et al. — "Cognitive impairments by alcohol and sleep deprivation… adenosine A1 receptor availability after extended wakefulness." PNAS, 2017. (See also Sims et al., Current Sleep Medicine Reports, 2014.)
  2. 2Cheng, D. et al. — caffeine as a competitive adenosine-receptor antagonist. Frontiers in Molecular Biosciences, 2021.
  3. 3Zhdanova, I.V., Wurtman, R.J. et al. — "Melatonin Treatment for Age-Related Insomnia." Journal of Clinical Endocrinology & Metabolism, 86(10), 2001. (0.3 mg restored sleep efficiency without the 3 mg side-effects.)
  4. 4Inagawa, K. et al. — glycine (3 g) and subjective sleep quality, double-blind crossover. Sleep & Biological Rhythms, 2006. Mechanism: Kawai, N. et al., Neuropsychopharmacology, 2015.
  5. 5Hidese, S. et al. — "Effects of L-Theanine Administration on Stress-Related Symptoms and Cognitive Functions." Nutrients, 11(10), 2019.
  6. 6Mah, J. & Pitre, T. — magnesium supplementation and sleep, meta-analysis. BMC Complementary Medicine and Therapies, 2021. (Evidence quality rated low.)
  7. 7Zick, S.M. et al. — chamomile extract for chronic insomnia, RCT (n=34) that missed its primary endpoints. BMC Complementary and Alternative Medicine, 2011.
  8. 8Ebrahim, I.O. et al. — "Alcohol and sleep I: effects on normal sleep." Alcoholism: Clinical & Experimental Research, 37(4), 2013.
  9. 9Drake, C. et al. — "Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed." Journal of Clinical Sleep Medicine, 9(11), 2013.
Engineer the rest.