Food, Drink, and Substances

What Goes In Affects What Happens at Night

Your diet has a direct, measurable impact on your sleep. Not in a vague "eat healthy, sleep better" way — in specific, actionable ways that you can start adjusting today.

This chapter covers the substances that matter most: caffeine, alcohol, food timing, and supplements. For each one, you'll get the science and the practical takeaway.

Caffeine: The Sleep Thief You Invited In

Caffeine is the most widely used psychoactive substance on Earth, and most people dramatically underestimate how long it affects their sleep.

How Caffeine Works

Caffeine blocks adenosine receptors in your brain. Adenosine is the chemical that creates sleep pressure — the drowsy feeling that builds throughout the day. By blocking it, caffeine makes you feel alert.

The problem: caffeine doesn't eliminate adenosine. It just prevents you from feeling it. The adenosine keeps accumulating behind the blockade. When the caffeine wears off, all that built-up adenosine hits at once — the "crash."

The Half-Life Problem

Caffeine's half-life is approximately 5–6 hours. That means if you drink a coffee containing 200mg of caffeine at 2 PM, you still have 100mg in your system at 7–8 PM, and 50mg at midnight.

For context, 50mg is roughly the amount in a cup of green tea. So that afternoon coffee is equivalent to drinking tea at midnight in terms of circadian disruption.

Some people metabolize caffeine faster or slower based on genetics. If you've ever thought "caffeine doesn't affect me" — it almost certainly does. You've just become habituated to sleeping with caffeine in your system, which means you're sleeping worse than you would without it, but you've lost the comparison point.

The Practical Rules

Set a caffeine cutoff. For most people, 1–2 PM is a reasonable deadline. If you're particularly sensitive, noon. If you're a fast metabolizer and sleep data confirms no impact, 3 PM might work — but verify with your sleep tracker.

Count all sources. Coffee is obvious. But caffeine is also in tea, chocolate, energy drinks, pre-workout supplements, some medications (especially headache pills), and some sodas.

Watch the dose. A standard drip coffee is 95mg. A large coffee-shop coffee can be 300–400mg. Espresso is concentrated but typically contains less total caffeine (63mg per shot) than a full cup of drip coffee.

BeverageApproximate Caffeine
Drip coffee (250ml)95mg
Espresso (single shot)63mg
Black tea (250ml)47mg
Green tea (250ml)28mg
Cola (355ml)34mg
Energy drink (250ml)80–160mg
Dark chocolate (30g)20mg
Decaf coffee (250ml)2–15mg

AI Prompt: Caffeine Audit

Help me audit my caffeine intake and its impact on sleep.

My caffeine consumption:
- Morning: [what, how much, what time]
- Afternoon: [what, how much, what time]
- Evening: [anything?]
- Other sources I might be missing: [chocolate, tea, supplements, medications]

My sleep patterns:
- Target bedtime: [time]
- Time to fall asleep: [minutes]
- Wake-ups during the night: [frequency]

Based on caffeine half-life, how much caffeine is likely in my system at bedtime?
What would you recommend as my cutoff time?
If I want to reduce intake, what's a gradual plan that avoids withdrawal headaches?

Alcohol: The False Friend

Alcohol is the most common self-prescribed sleep aid in the world. It's also one of the most effective sleep disruptors.

The Paradox

Alcohol is a sedative. It does help you fall asleep faster. This is why people believe it helps — the evidence of their own experience seems clear.

But sedation is not sleep. Alcohol-induced unconsciousness lacks the normal sleep architecture your brain needs. Specifically:

It suppresses REM sleep. Alcohol significantly reduces REM in the first half of the night. Since REM is crucial for emotional processing and memory consolidation, this is a meaningful loss.

It causes rebound wakefulness. As your body metabolizes alcohol (typically 3–5 hours after drinking), your nervous system rebounds. This often causes waking in the second half of the night, frequently with anxiety and inability to fall back asleep.

It fragments sleep. Even if you don't fully wake, alcohol causes more frequent micro-awakenings that you may not remember. You spend less time in restorative deep sleep.

It worsens snoring and sleep apnea. Alcohol relaxes throat muscles, increasing airway obstruction.

The Practical Rules

The best number of drinks for sleep is zero. This is unambiguous in the research.

If you do drink: Stop at least 3–4 hours before bed. Eat food with alcohol. Drink water between drinks. Keep it to 1–2 drinks maximum.

Track the correlation. Use your sleep diary or wearable to compare nights with and without alcohol. The difference in resting heart rate and HRV is typically dramatic and hard to argue with.

Food Timing and Composition

When to Eat

Finish your last substantial meal 2–3 hours before bed. This gives your digestive system time to do the heavy work before you lie down.

Eating too close to bed raises core temperature, can cause acid reflux (especially if you eat and then lie flat), and keeps your metabolic rate elevated.

What to Eat for Better Sleep

Certain foods contain nutrients that support sleep:

Tryptophan-rich foods — turkey, eggs, cheese, nuts, seeds. Tryptophan is a precursor to serotonin, which converts to melatonin. The effect is modest but real.

Complex carbohydrates — whole grains, sweet potatoes, oats. These help tryptophan cross the blood-brain barrier more effectively. This is why a small carb-rich snack before bed can promote drowsiness.

Magnesium-rich foods — dark leafy greens, nuts, seeds, dark chocolate. Magnesium supports muscle relaxation and nervous system calming.

Tart cherry juice — one of the few foods with research specifically supporting sleep improvement. It contains small amounts of melatonin and anti-inflammatory compounds.

What to Avoid Before Bed

Spicy foods — can cause heartburn and raise core temperature.

High-sugar foods — can cause blood sugar spikes and crashes that disrupt sleep.

Large, heavy meals — your body prioritizes digestion over sleep restoration.

Excessive fluids — too much liquid before bed means bathroom trips that fragment sleep.

The Bedtime Snack

If you're genuinely hungry at bedtime, a small snack is better than trying to sleep hungry (hunger itself disrupts sleep). Good options: a small handful of nuts, a banana, yogurt, a piece of toast with nut butter. Keep it under 200 calories.

Supplements: What Works, What Doesn't

The sleep supplement market is enormous and mostly disappointing. Here's what the evidence actually supports:

Melatonin

What it does: Melatonin is a hormone that signals nighttime to your body. Supplemental melatonin can shift your circadian timing.

When it helps: Jet lag, delayed sleep phase (you can't fall asleep until very late), shift work. It's a timing signal, not a sedative.

Dose: Most supplements are massively overdosed. Research supports 0.3–1mg, taken 1–2 hours before desired sleep time. The 5–10mg pills common in stores are far more than your body naturally produces and can cause grogginess and dependency.

Important: Melatonin supplements are unregulated in many countries. Studies have found actual content varies dramatically from what's on the label.

Magnesium

What it does: Supports nervous system function and muscle relaxation. Many people are mildly deficient.

When it helps: If you're deficient (common with modern diets), supplementing can improve sleep quality. Magnesium glycinate is the best-absorbed form for sleep.

Dose: 200–400mg of magnesium glycinate, taken 30–60 minutes before bed.

L-Theanine

What it does: An amino acid found in tea that promotes relaxation without drowsiness.

When it helps: Can reduce anxiety at bedtime without sedation. Works well combined with magnesium.

Dose: 100–200mg before bed.

What Doesn't Have Strong Evidence

Valerian root, chamomile supplements, CBD, ashwagandha, GABA supplements, lavender capsules — these have weak, inconsistent, or insufficient evidence for sleep improvement. Some may provide a placebo benefit, which is still a benefit, but don't expect dramatic results.

AI Prompt: Supplement Evaluation

I'm considering taking supplements to improve my sleep.

My current sleep issues:
[Describe problems]

Supplements I'm considering:
[List them]

Medications I currently take:
[List all — this is important for interaction checks]

Health conditions:
[Any relevant conditions]

Please evaluate:
1. Which supplements have evidence for my specific issue
2. Appropriate dosages
3. Potential interactions with my medications
4. What order to try them in (one at a time to isolate effects)
5. How long to trial each before judging effectiveness

Nicotine

Nicotine is a stimulant. Smokers and vapers often experience disrupted sleep, especially if they use nicotine close to bedtime. Nicotine withdrawal during the night can also cause wakefulness — a particular problem for heavy users.

If you use nicotine and have sleep problems, this is almost certainly a contributing factor. Quitting is the best thing you can do for your sleep (and everything else), but even shifting consumption earlier in the day can help.

Cannabis

Cannabis is commonly used as a sleep aid, but the picture is complicated.

THC can help you fall asleep faster, but like alcohol, it suppresses REM sleep. Regular use leads to tolerance and can worsen sleep quality over time. Withdrawal from regular use often causes severe insomnia for days to weeks.

CBD has less clear sleep evidence. Some research suggests it may reduce anxiety, which indirectly improves sleep. The quality and consistency of CBD products vary enormously.

If you're using cannabis for sleep, you're likely masking an underlying issue rather than solving it.

The Bigger Picture

Your dietary choices are one piece of a larger puzzle. Many people find that fixing caffeine timing alone produces a noticeable improvement. Others need to address alcohol or meal timing. A few need supplement support.

The key is identifying which factors apply to you — which is where your sleep diary (Chapter 3) becomes invaluable. Track what you consume and when, correlate it with your sleep quality, and let the data guide your changes.

Next, we'll look at how your body's physical state — exercise, stress, mental health — interacts with sleep.