Clear evidence. Transparent sources. Practical guidance. Our evidence policyContact
Food Health Lab
HomeHealth optimization › Sleep

Sleep Optimization: the Food & Supplements That Actually Help

Without sleep, everything else in your health falls apart. Here is a plain-language, evidence-based look at how what you eat — and a short list of supplements — can help you fall asleep faster and wake up more rested.

Reviewed by Bodil Isaksson, Licensed Biomedical Scientist (Sweden) Updated June 2026 8 min read

Nutrition Supplements Evidence based

Good sleep is not a luxury — it is when your body repairs tissue, balances hormones, clears the brain and consolidates memory. If you regularly sleep poorly, no diet or supplement plan will work to its full potential. The good news: a few targeted changes to your evening food and a small, well-chosen set of supplements can make a real, measurable difference for most people.

This guide is split into two parts — food first, supplements second — because food is the foundation, and most people can improve their sleep before they buy a single capsule.

Part 1 — Food and drink that shape your sleep

What to favor in the evening

  • Protein with tryptophan — turkey, eggs, dairy, soy and pumpkin seeds supply tryptophan, the building block your body uses to make serotonin and melatonin, the hormones that wind you down.
  • Complex carbohydrates — a modest portion of oats, whole grains or sweet potato in the evening helps tryptophan reach the brain. A small carb portion at dinner can support sleep; a sugar binge does the opposite.
  • Magnesium-rich foods — leafy greens, nuts, seeds, legumes and whole grains. Magnesium supports the nervous system's "calm down" pathways (more on supplementing it below).
  • Tart cherries & kiwi — among the few whole foods with small human trials suggesting a sleep benefit, likely via natural melatonin and antioxidants.

What to limit — and when

  • Caffeine — has a half-life of roughly 5–6 hours, so an afternoon coffee can still be in your system at bedtime. A practical rule: no caffeine after about 2 p.m. if you're sensitive.
  • Alcohol — it may help you fall asleep, but it delays and reduces REM sleep and fragments the second half of the night as it is metabolised. (It actually increases deep sleep early in the night, which is part of why the damage is so easy to miss.) It is one of the most common hidden causes of "I slept 8 hours but feel exhausted."
  • Large, heavy or very spicy meals close to bedtime — they can cause reflux and raise core body temperature, both of which work against sleep. Aim to finish a big meal 2–3 hours before bed.
  • Too much fluid right before bed — to reduce night-time waking to use the bathroom.

The 80/20 of sleep nutrition: consistent caffeine timing, going easy on alcohol, and a modest balanced dinner finished a couple of hours before bed will do more for most people than any supplement on this page.

Part 2 — Supplements worth knowing about

These are the supplements with the most credible human evidence for sleep. They are tools, not magic — they work best on top of the food and habit foundation above. Start with one at a time so you can tell what actually helps you.

L-tryptophan

Studied: ≥1 g, before bed Evidence: specific but limited

Tryptophan is the amino-acid precursor your body turns into serotonin and then melatonin. It does reach the brain — it's carried across the blood–brain barrier — but it has to compete with other amino acids for that transporter, so it works best taken with some carbohydrate and away from a high-protein meal. 2 3 A meta-analysis of randomized trials found doses of 1 g or more shortened the time spent awake after falling asleep (WASO), but did not significantly change how fast people fell asleep or their total sleep time. 1 So: a real but narrow effect, honestly stated.

Caution: do not combine with antidepressants (SSRIs/MAOIs) without medical advice — risk of serotonin excess.

Magnesium (glycinate or bisglycinate)

Studied: 500 mg/day, elderly Evidence: limited & low-quality

Magnesium supports the GABA system that calms the nervous system, and many people are mildly low in it. An 8-week double-blind trial in older adults with insomnia found improvements in sleep efficiency, sleep onset and insomnia severity, 7 and a meta-analysis estimated roughly 17 minutes faster sleep onset versus placebo — but rated the underlying trials as low quality and at moderate-to-high risk of bias. 8 So: plausible and low-risk, not proven. The glycinate form is gentle on the stomach.

Caution: can cause loose stools at higher doses. Talk to a professional if you have kidney problems or take certain heart/blood-pressure medications.

Glycine

Studied: 3 g, before bed Evidence: moderate (small trials)

An amino acid studied in small randomized trials: 3 g before bed improved subjective sleep quality and next-day fatigue, 5 and a polysomnography study found it shortened the time to fall asleep and reduced daytime sleepiness, partly by gently lowering core body temperature. 4 Inexpensive and well tolerated, though the trials are small.

L-theanine

Studied: 200 mg/day Evidence: moderate

An amino acid from green tea that promotes calm without sedation. In a randomized controlled trial, 200 mg/day for 4 weeks lowered stress scores and improved several sleep-quality measures (sleep latency, disturbance, use of sleep medication). 6 Most useful for people whose sleep problem is really a racing, anxious mind at bedtime. Pairs well with magnesium.

Melatonin

Typical: 0.5–1 mg, ~1–2 h before bed Evidence: strong for timing

Melatonin is a timing signal, not a sleeping pill. It shines for jet lag and shift work, and for people whose body clock runs late. A dose-response meta-analysis of randomized trials found low physiological doses (0.5–1 mg) effective, with timing — about 2–3 hours before target bedtime — mattering as much as the dose; very large 5–10 mg tablets add little and cause more next-day grogginess. 9

Microdoses can be enough. A classic controlled study found that a tiny physiological dose of 0.3 mg restored sleep efficiency in adults over 50 — performing as well as, or better than, a 3 mg dose, because it lifts melatonin only into its natural night-time range. Higher doses left melatonin elevated into the morning, which can cause daytime grogginess. For many people, less really is more. 16

Is long-term use safe? For adults, the evidence is broadly reassuring: systematic reviews find side effects are mild and similar to placebo (most often headache, dizziness, daytime drowsiness), and — unlike sleeping pills — melatonin shows very little tolerance or dependence. The honest caveat is that good data mostly cover use up to about two years; truly long-term (5+ years) safety is under-studied. 14 In children and teenagers the picture is less settled — a 2023 review raised a very-low-certainty signal of possible delayed puberty with prolonged use, so it should only be used under medical guidance. 15

Practical takeaway: use the lowest effective dose, and for circadian problems rather than as a nightly crutch. Rules differ by country (prescription-only in some countries). Always involve a doctor for ongoing use, for children/teens, in pregnancy, or alongside other medication.

Herbal options: valerian & passionflower

Traditional sleep herbs Evidence: weak–mixed (subjective)

Valerian: meta-analyses of randomized trials suggest it can improve subjective sleep quality (about 1.8× more likely to report better sleep than placebo), but the benefit has not been confirmed on objective measures, and the trials vary widely in dose and quality. 10 11

Passionflower (Passiflora incarnata): acts on the same calming GABA-A system. Small double-blind trials found better subjective sleep quality from a low-dose tea, 12 and a more recent placebo-controlled trial in people with stress and poor sleep reported increased total sleep time and lower stress. 13 Promising but still small studies.

Caution: avoid combining sedative herbs with each other or with sleep/anti-anxiety medication, and during pregnancy, without professional advice.

Other names you'll see

Tart cherry extract (a natural melatonin source) and apigenin (a flavonoid found in chamomile and also sold as a pure supplement) also have a following, but the human evidence is thinner. Our apigenin guide explains why chamomile studies cannot be treated as trials of isolated apigenin. Worth considering only after the better-studied options above.

Safety & interactions matter. Supplements are not automatically "safe because they're natural." Sleep aids can interact with sedatives, antidepressants, blood-pressure and blood-thinning medication. If you take any prescription medicine, are pregnant or breastfeeding, always check with your doctor or pharmacist first.

Your simple sleep starter plan

  • Set a consistent wake time — even on weekends
  • Last caffeine by early afternoon
  • Keep alcohol occasional, not nightly
  • Finish a larger dinner 2–3 hours before bed
  • Get daylight in the morning; dim screens at night
  • If trying a supplement, start with one (magnesium glycinate is a sensible first step) and give it 1–2 weeks
Bodil Isaksson, Licensed Biomedical Scientist (Sweden)

At Food Health Lab we explain what the science says in plain language, and we cite our sources so you can check for yourself.

References

Doses listed are ranges studied in the research below, not personal prescriptions — your needs may differ. Every claim above links to its source.

  1. Sutanto CN, et al. The impact of tryptophan supplementation on sleep quality: a systematic review, meta-analysis, and meta-regression. Nutrition Reviews, 2022. PMC8181612
  2. Richard DM, et al. L-Tryptophan: basic metabolic functions, behavioral research and therapeutic indications. Int J Tryptophan Res, 2009. PMC2908021
  3. Höglund E, et al. L-tryptophan administration and increase in cerebral serotonin levels: systematic review. Eur J Pharmacol, 2019. ScienceDirect
  4. Yamadera W, et al. Glycine ingestion improves subjective sleep quality in human volunteers, correlating with polysomnographic changes. Sleep Biol Rhythms, 2007. Wiley
  5. Inagawa K, et al. Subjective effects of glycine ingestion before bedtime on sleep quality. Sleep Biol Rhythms, 2006. Wiley
  6. Hidese S, et al. Effects of L-theanine administration on stress-related symptoms and cognitive functions in healthy adults: a randomized controlled trial. Nutrients, 2019. PMC6836118
  7. Abbasi B, et al. The effect of magnesium supplementation on primary insomnia in elderly: a double-blind placebo-controlled clinical trial. J Res Med Sci, 2012. PMC3703169
  8. Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a systematic review & meta-analysis. BMC Complement Med Ther, 2021. PubMed 33865376
  9. Wei S, et al. Optimizing the time and dose of melatonin as a sleep-promoting drug: a systematic review of RCTs and dose–response meta-analysis. J Pineal Res, 2024. Wiley (jpi.12985)
  10. Bent S, et al. Valerian for sleep: a systematic review and meta-analysis. Am J Med, 2006. Am J Med
  11. Fernández-San-Martín MI, et al. Effectiveness of valerian on insomnia: a meta-analysis of randomized placebo-controlled trials. Sleep Med, 2010. PubMed 20347389
  12. Ngan A, Conduit R. A double-blind, placebo-controlled investigation of the effects of Passiflora incarnata (passionflower) herbal tea on subjective sleep quality. Phytother Res, 2011. PubMed 21294203
  13. Lee J, et al. Randomized, double-blind, placebo-controlled clinical study of Passiflora incarnata in participants with stress and sleep problems. Cureus, 2024. PMC11026993
  14. Menczel Schrire Z, et al. Safety of higher doses of melatonin in adults: a systematic review and meta-analysis. J Pineal Res, 2022. PubMed 34923676
  15. Händel MN, et al. The short- and long-term adverse effects of melatonin treatment in children and adolescents: a systematic review and GRADE assessment. eClinicalMedicine, 2023. PMC10359736
  16. Zhdanova IV, et al. Melatonin treatment for age-related insomnia. J Clin Endocrinol Metab, 2001. JCEM 86(10):4727

This article summarizes peer-reviewed nutrition and sleep research for education. It is not a substitute for individual medical advice.

Read next