Advertisement
Lifestyle 10 min read

Sleep and Food: What to Eat (and What to Skip) Before Bed

The turkey-tryptophan thing is mostly wrong. But some foods genuinely help.

Kevin Li
Kevin Li Sleep Science Writer
Published
Healthy evening snack on nightstand next to bed in dim lighting

Key Takeaways

  • The turkey-tryptophan myth is mostly wrong — it's the large carb-heavy Thanksgiving meal that makes you drowsy, not turkey specifically
  • Kiwi, tart cherry juice, and fatty fish have the most actual research support for improving sleep quality
  • Meal timing matters — eating a large meal within 2-3 hours of bed increases GERD risk and delays sleep onset
  • The ideal pre-bed snack is a small combination of complex carbs and protein, consumed 30-60 minutes before bed
  • Caffeine hides in unexpected places — dark chocolate, decaf coffee, and some teas can delay sleep even eaten in the afternoon

I spent years as someone who'd eat dinner at 9pm, go to bed at 11, and wonder why I slept terribly. When I started actually looking at the food-sleep research, the first thing I found is that most popular beliefs in this space are wrong or overblown. The turkey thing, the warm milk thing, the "don't eat after 8pm" thing — none of it is quite what people think.

The good news is that there are foods with actual evidence behind them, and the timing research is clearer than I expected. The food-sleep connection is real — it's just not where most people are looking.

01 The Tryptophan Myth (And What's Actually True)

Every Thanksgiving, someone explains that the post-dinner drowsiness comes from turkey's tryptophan. This story has been repeated so many times it feels like established fact. It's mostly not.

Tryptophan is an amino acid that the brain uses to produce serotonin and then melatonin. In theory, more tryptophan means more melatonin means more sleep. The problem is that turkey doesn't have meaningfully more tryptophan than chicken, pork, cheese, eggs, or nuts. The drowsiness after Thanksgiving dinner comes from a combination of: a large high-carbohydrate meal diverting blood flow to digestion, alcohol (often present), time of day, and the social permission to relax. It's not the turkey specifically.

Tryptophan Content per 100g Protein

Turkey (cooked)
~290mg
Chicken (cooked)
~280mg
Cheddar cheese
~360mg
Pumpkin seeds
~576mg

Turkey is not an exceptional tryptophan source. Pumpkin seeds and cheese beat it easily.

That said, tryptophan supplementation does show real effects on sleep latency in clinical studies, separate from dietary sources. The difference is that supplements deliver tryptophan in a context where it doesn't compete with other amino acids for brain uptake (they all use the same transporter). Getting tryptophan from food, in combination with other proteins, means a relatively small fraction crosses the blood-brain barrier.

The carbohydrate connection is real, though, and it works through tryptophan indirectly. High-carb meals cause insulin release, which clears other amino acids from the blood, temporarily giving tryptophan a higher relative concentration and easier brain access. This is probably why the classic "complex carbs before bed" advice has some merit, even if the turkey story is wrong.

02 Foods That Actually Have Research Behind Them

These are not "a nutritionist said this might help" claims. These are foods that have been tested in actual trials where people ate them and their sleep was measured:

Strong Evidence

Kiwi

In a 2011 Taiwan study, adults who ate two kiwis one hour before bed for four weeks fell asleep faster (35% reduction in sleep onset time), slept longer, and showed better sleep efficiency[1]. The mechanism is thought to involve kiwi's high serotonin content and antioxidants. This is one of the better-designed diet-sleep trials.

Two kiwis, 1 hour before bed. Effect size was meaningful.
Strong Evidence

Tart Cherry Juice

Tart (Montmorency) cherries are one of the few natural dietary sources of melatonin. A 2010 trial found that participants who drank tart cherry juice twice daily slept about 25 minutes longer than those drinking placebo[2]. Effects were more pronounced in older adults and people with insomnia. A second trial in 2012 replicated the results.

~240ml twice daily. Also contains tryptophan and anthocyanins.
Moderate Evidence

Fatty Fish

A 2014 Norwegian trial found that men who ate Atlantic salmon three times per week for six months showed improved sleep quality and reduced next-day fatigue compared to those eating chicken, pork, or beef[3]. Fatty fish is rich in omega-3s and vitamin D, both of which are involved in serotonin regulation. The effect was strongest in winter months.

Mechanism likely involves omega-3s and vitamin D. 3x/week was the tested dose.
Moderate Evidence

Nuts and Seeds (Magnesium)

Magnesium deficiency is associated with insomnia and poor sleep quality. Nuts, seeds, and leafy greens are dietary magnesium sources. Supplementation trials show magnesium reduces insomnia severity, particularly in older adults. Whether dietary magnesium from food alone moves the needle isn't as clear, but magnesium-rich foods (almonds, pumpkin seeds, cashews) are generally worth including.

Magnesium glycinate supplements show stronger effects than diet alone.

03 Foods That Work Against You

The don't-eat list is more intuitive than the do-eat list, but there are some surprises in the details:

🌶️

Spicy Food

Spicy foods raise core body temperature through capsaicin, which counteracts the body's need to cool down for sleep. They also increase risk of GERD (acid reflux), which is miserable to have while horizontal. The temperature effect alone can delay sleep onset by 30+ minutes in some people.

🍕

High-Fat Meals

Fat slows gastric emptying substantially. A high-fat meal 2-3 hours before bed means your digestive system is still working hard when you're trying to sleep. Research links high dietary fat intake to more awakenings, less slow-wave sleep, and worse overall sleep quality — independent of total calories.

🍬

High Sugar

Sugar before bed causes blood glucose swings. The initial spike is followed by a drop that can trigger micro-awakenings as the body tries to regulate. Evening sugar intake is also associated with more time in lighter sleep stages and less deep sleep overall.

🍺

Alcohol

Discussed in depth in another post — but briefly: alcohol helps you fall asleep and destroys your sleep quality in the second half of the night. The sedation is real; the restoration is not. Even one drink close to bedtime measurably reduces REM sleep.

04 Meal Timing: The 2-3 Hour Rule

When you eat matters almost as much as what you eat, and the research here is more consistent than I expected. Eating a large meal within 2-3 hours of bedtime increases GERD risk substantially — lying horizontal with a full stomach means stomach acid has an easier time moving up into the esophagus. Even people without diagnosed reflux experience this. The burning, uncomfortable feeling is a real sleep disruptor.

0-2 hours before bed Avoid large meals. Small snacks acceptable. High GERD risk if lying flat soon after eating.
2-3 hours before bed Last chance for a real meal. Keep it moderate in size, avoid spicy/fatty foods, limit alcohol.
3+ hours before bed Normal meal timing. Most options acceptable. Digestion largely complete before sleep.

At the other extreme, going to bed hungry is also bad. Low blood sugar can trigger nighttime cortisol release as your body tries to maintain blood glucose levels, which promotes arousal. This is why a small snack before bed is sometimes genuinely helpful rather than counterproductive.

The optimal pre-bed snack is small (150-200 calories), contains both complex carbohydrates and protein (for that indirect tryptophan access effect), and is easy to digest. Examples that fit: whole grain crackers with almond butter, a small bowl of oatmeal, Greek yogurt with a handful of berries, a banana with a few walnuts.

05 Hidden Caffeine and the Intermittent Fasting Question

Most people know to avoid coffee in the afternoon. Fewer know that caffeine turns up in some unexpected places:

~25-50mg per oz Dark chocolate (70%+) A standard 3oz bar can have 80-150mg of caffeine — similar to a small coffee
~10-25mg per cup Decaf coffee "Decaf" removes most but not all caffeine. Sensitive individuals feel it.
~15-30mg per cup Green tea Less than black tea, but not zero. Evening cups can affect sleep onset.
~5-15mg per cup Herbal teas (some) Yerba mate, guayusa, and some "herbal blends" contain real caffeine. Read labels.

Caffeine has a half-life of 5-7 hours in most people (up to 9-10 hours in some). A standard 200mg coffee at 2pm still has 100mg active at 7-9pm for most adults. The afternoon cutoff most sleep researchers recommend is 2pm for caffeine-sensitive people; some extend this to 1pm. Dark chocolate eaten after dinner is frequently overlooked as a sleep disruptor.

Intermittent fasting and sleep

Intermittent fasting (IF) has become widely practiced, and its interaction with sleep is worth addressing. The research is mixed but leaning positive: time-restricted eating aligned with circadian rhythms (eating earlier in the day) tends to improve sleep quality in some studies. The mechanism is thought to involve synchronizing the digestive system's circadian cues with the brain's.

The catch is timing. IF protocols that compress eating into early windows (stopping eating by 6pm or so) align well with sleep. Protocols that allow late eating, or that leave people significantly hungry by bedtime, can increase nighttime cortisol and awakenings. The fasting itself doesn't improve sleep — the earlier eating timing does.

The practical summary

The most important food-sleep interventions in rough order of impact: finish large meals at least 3 hours before bed, avoid spicy and high-fat foods in the evening, cut caffeine before 2pm (including dark chocolate), and if you need a late snack, make it small and include both carbs and protein.

For the foods that actually help: tart cherry juice and kiwi are the most convincingly studied. Fatty fish three times a week is a longer-game intervention. Magnesium-rich foods are worth adding if you're not getting much already. None of these is a silver bullet, but together they move the needle more than most people expect.

The thing I find most useful is thinking about food's effect on sleep as something that builds over weeks, not nights. One late pizza isn't the problem. A consistent pattern of large late meals, evening chocolate, and alcohol three nights a week — that's where the damage accumulates. The improvements from changing those patterns also accumulate over weeks, not days. Give it time.

Sources & Further Reading

  1. Lin, H. H., Tsai, P. S., Fang, S. C., & Liu, J. F. "Effect of kiwifruit consumption on sleep quality in adults with sleep problems." Asia Pacific Journal of Clinical Nutrition, 20(2), 169–174. (2011) PubMed →
  2. Pigeon, W. R., Carr, M., Gorman, C., & Perlis, M. L. "Effects of a tart cherry juice beverage on the sleep of older adults with insomnia: a pilot study." Journal of Medicinal Food, 13(3), 579–583. (2010) PubMed →
  3. Hansen, A. L., Dahl, L., Olson, G., Thornton, D., Graff, I. E., Frøyland, L., Pallesen, S. "Fish consumption, sleep, daily functioning, and heart rate variability." Journal of Clinical Sleep Medicine, 10(5), 567–575. (2014) PubMed →
  4. Abbasi, B., Kimiagar, M., Sadeghniiat, K., Shirazi, M. M., Hedayati, M., & Rashidkhani, B. "The effect of magnesium supplementation on primary insomnia in elderly." Journal of Research in Medical Sciences, 17(12), 1161–1169. (2012) PubMed →
  5. St-Onge, M. P., Mikic, A., & Pietrolungo, C. E. "Effects of diet on sleep quality." Advances in Nutrition, 7(5), 938–949. (2016) PubMed →
Kevin Li
Written by

Kevin Li

Sleep Science Writer

Former 4-hours-a-night tech guy. Burned out at 31, spent two years fixing my sleep. Built this calculator because all the existing ones looked like they were made in 2005.

Advertisement 728x90
Advertisement