Evidence-based · Recovery

Nutrition for Sleep: Carbs, Protein, and Timing
What and when you eat measurably shapes how you sleep. The evidence-based basics.
Part ofThe Recovery Guide→Sleep advice usually focuses on light, screens, and routine, and those matter. But what and when you eat is a real, often underrated input. The relationship is genuine and measurable, though it is also frequently overstated by people selling a specific food or supplement. The defensible version is more modest and more useful: a few dietary patterns reliably nudge sleep in the right or wrong direction.
What the evidence broadly supports
Across the research, a handful of themes recur with reasonable consistency. None of them is a magic switch, but together they form a sensible foundation.
The honest framing: diet influences sleep at the margins. It will not rescue a sleep schedule wrecked by stress or stimulants, but it can meaningfully help or hurt around the edges.
Carbohydrates and timing

Carbohydrates have a real but nuanced role, and at least one controlled study makes the point concretely. In a small randomized trial by Afaghi, O’Connor, and Chow (American Journal of Clinical Nutrition, 2007), 12 healthy men fell asleep faster after a high-glycemic-index meal eaten 4 hours before bed (9.0 minutes) than after a low-GI meal (17.5 minutes). Timing mattered: the same high-GI meal eaten just 1 hour before bed lost the benefit (14.6 minutes).
- Type and timing matter more than amount. A higher-GI carbohydrate meal a few hours before bed shortened time to fall asleep in that trial, but only with a buffer before lying down, not right at bedtime.
- Heavy, sugary, or very late meals tend to backfire, causing reflux and discomfort that fragment sleep.
The practical read is to leave a gap before bed and avoid large meals right at bedtime rather than to chase a perfect pre-bed carb ritual.

Protein and overall diet quality
Protein’s role is subtler. Diets adequate in protein support the building blocks the body uses to make sleep-regulating signals, and very low-quality diets tend to track with poorer sleep. But loading up on protein right before bed has no strong evidence of improving sleep and can sit heavily. The more reliable lever is overall diet quality across the day, not a single bedtime macronutrient trick.

Timing and the bigger levers
Beyond specific nutrients, when you eat interacts with your circadian rhythm:
- Leave a gap before bed. Finishing the last substantial meal a couple of hours before sleeping reduces reflux and discomfort that fragment the night, and, as above, may preserve the sleep-onset benefit of an earlier carbohydrate meal.
- Watch hidden stimulants. Caffeine has a long, variable half-life (roughly 3–6 hours, but 2–10 hours across individuals). In a controlled crossover study (Drake et al., Journal of Clinical Sleep Medicine, 2013), 400 mg of caffeine taken even 6 hours before bed cut total sleep time by 41 minutes. This is one of the most reliable diet-sleep findings of all.
- Mind alcohol. A 2024 systematic review and meta-analysis (Sleep Medicine Reviews) confirms it: alcohol speeds sleep onset but delays and reduces REM sleep, degrading sleep quality in the second half of the night, in a dose-dependent way.
- Avoid going to bed very hungry or very full. Both extremes disrupt sleep for many people.
The takeaway
Nutrition shapes sleep at the margins, and the evidence-based basics are unglamorous: avoid large meals right at bedtime; keep caffeine well away from bedtime (even 6 hours out measurably costs sleep); be honest about alcohol’s hit to sleep quality; and prioritize overall diet quality over any single pre-bed food trick. Carbohydrate timing may help some people modestly, but only with a buffer before lying down. Get the big inputs right and the rest is fine-tuning.
Sources
- High-glycemic-index carbohydrate meals shorten sleep onset (American Journal of Clinical Nutrition, 2007)
- Caffeine Effects on Sleep Taken 0, 3, or 6 Hours before Going to Bed (Journal of Clinical Sleep Medicine, 2013)
- The effect of alcohol on subsequent sleep in healthy adults: A systematic review and meta-analysis (Sleep Medicine Reviews, 2024)
Stay current
Get evidence-based briefings in your inbox.