What to Eat for Better Sleep
Diets rich in certain nutrients can support better sleep, while others don’t. Eating the right things is one of the simplest ways to improve your sleep.
Key Takeaways
- Even a small coffee (around 100mg caffeine) must be consumed at least 9 hours before bed; a large one requires at least 13 hours.
- High-fibre diets promote deeper slow-wave sleep; diets high in saturated fat and sugar consistently produce lighter, more fragmented sleep.
- Even one beer or a small glass of wine measurably impairs sleep quality — including REM suppression — throughout the night.
Sleep is influenced by what you eat and drink, yet many people overlook the impact of their diet. This article looks at what foods and drinks are good and what to avoid for good sleep. We’ll also cover the science behind how specific nutrients, supplements, and dietary patterns affect your sleep.
Your diet plays a more important role in your sleep quality than you may think. The foods you eat throughout the day (and especially in the evening) influence your ability to fall asleep, stay asleep, and sleep well.
What Foods Help You Sleep Better?
The Mediterranean Diet
Mediterranean-style eating patterns are strongly associated with better sleep quality and quantity1. It’s rich in vegetables, fruits, whole grains, legumes, nuts, olive oil, and fish, which support sleep by reducing inflammation, improving gut health, and providing enough of the essential “sleep-promoting” nutrients.
The Mediterranean diet isn't about individual "superfoods" but a “holistic” approach that is based on eating minimally processed, nutrient-dense foods with plenty of fibre and healthy fats (usually from olive oil).
Tryptophan-Rich Foods
Tryptophan is an essential amino acid your body uses to produce serotonin and melatonin, two "neurotransmitters" that are needed to regulate your sleep-wake cycles. Foods rich in tryptophan include dairy products (like milk, cheese, yoghurt), poultry (turkey, chicken), fish, eggs, soy products, nuts, and seeds.
Tryptophan supplementation at doses exceeding one gram per day can help improve sleep quality2. That said, food sources provide more modest amounts, but regular consumption of tryptophan-rich foods can still offer benefits.
A specific dairy protein called 'alpha-lactalbumin' (found in dairy products) has been shown to increase tryptophan when consumed in the evening, and it goes on to improve alertness and attention when you wake up.
Tip #1: Combine tryptophan-rich protein with complex carbohydrates in your evening meal, as carbohydrates facilitate tryptophan's transport to the brain, where it helps you sleep.
Melatonin-Rich Foods
Several foods naturally contain melatonin or other substances that increase melatonin. Melatonin-rich tart cherry juice has been shown to improve both sleep quality and quantity3. Other melatonin-rich food options are milk, kiwi, and some cereals. Several studies have shown that eating these foods in the evening, around an hour before bed, can improve sleep.
Melatonin supplements (typically 0.5 to 3 mg taken 30 to 60 minutes before bed) can also improve sleep quality, particularly in adults with respiratory conditions, metabolic diseases, and sleep disorders. However, the benefits of melatonin supplementation on sleep in healthy people are less certain4.
Fatty Fish, Omega-3s & Vitamin D
Salmon, mackerel, trout, and other fatty fish contain high levels of omega-3 fatty acids and vitamin D, which influence sleep quality by increasing serotonin production and reducing inflammation. Studies show that regular consumption of oily fish is associated with better sleep quality and daytime functioning.
While evidence for omega-3 supplementation shows mixed results by itself, including fatty fish in your diet 2 to 3 times per week provides these nutrients that are good for your sleep and for your overall health.
High-Fibre Food
High-fibre diets rich in fruits, vegetables, and whole grains are associated with deeper “slow-wave” sleep (the most important stage of sleep)5. Higher intake of saturated fat and sugar predicts lighter, more fragmented sleep; things not usually found in high-fibre foods. Eating fibre-rich foods can help you sleep by controlling your blood sugar levels overnight and promoting a healthy gut microbiome that helps you sleep.
To improve your fibre intake: start your day with porridge or whole-grain cereals with fruit. Eat a large portion of salad and vegetables with your dinner. Choose whole grains over refined carbohydrates. Add beans and lentils to soups, stews, and broths. Snack on fruit or vegetable sticks with hummus.
Zinc-Rich Foods
Zinc-rich seafood (especially oysters) is shown to help you get to sleep faster and sleep better6. The beneficial effects of zinc may relate to its role in sleep-regulating the 'neurotransmitters' in your brain, like serotonin, melatonin and GABA.
Good sources of dietary zinc include: oysters and other shellfish, red meat, beans and pulses, pumpkin seeds, cashew nuts and almonds. The sleep improvements from zinc appear most pronounced when addressing deficiency or inadequate intake (which is surprisingly common).
Other Vitamins and Minerals for Sleep
Multiple vitamins and minerals are important for sleep. So deficiencies in these nutrients are commonly found in people reporting poor sleep. These include:
- Magnesium, which is involved in producing melatonin and supports 'GABA' (helps you relax). Good sources include whole grains, nuts, seeds, legumes, and leafy greens.
- B vitamins (particularly B1 and folate), vitamin D, vitamin C, and minerals like selenium, calcium, iron, and phosphorus have all been associated with better sleep. People who sleep poorly generally have lower intakes of these micronutrients.
Tip #2: Rather than worrying about getting dozens of individual nutrients at a time, it is easier to focus on eating a varied, nutrient-dense diet to ensure adequate micronutrient intake supporting sleep.
Eat Breakfast for Better Sleep
Regularly eating breakfast is associated with better sleep7. Breakfast eaters have better control of their appetite throughout the day and better sleep quality compared to those who routinely skip their morning meal.
The sleep benefits of eating breakfast regularly are thought to be related to maintaining consistent circadian eating patterns and avoiding the metabolic disruptions that come with prolonged morning fasting.
What to Avoid for Better Sleep
Caffeine
Caffeine is probably the most powerful dietary disruptor of sleep; it can reduce total sleep time by approximately 45 minutes, it worsens how well you sleep and makes it more difficult to get to sleep8.You don’t have to give up caffeine entirely, but timing your intake is critical if you want to improve your sleep. Here's what the research recommends:
A small coffee (~100 mg caffeine) should be consumed at least 9 hours before bedtime. A stronger or larger coffee or pre-workout supplement (over 200 mg) requires at least 13 hours before bed to avoid sleep disruption. This means if you aim to sleep at 10 PM, you should avoid caffeine after 1 PM for a small coffee, or after 9 AM for stronger sources of caffeine.
Caffeine lurks in obvious places (like coffee and energy drinks), but it is also in tea (especially black and green), many sodas, chocolate, some medications, and pre-workout supplements. Read the labels and get your timing right if you want to optimise your sleep.
Alcohol
While alcohol may make you feel sleepy initially and may help you fall asleep faster, it disrupts sleep quality throughout the night. Alcohol suppresses 'REM sleep' (the stage associated with memory and emotional processing), fragments your sleep, and causes more awakenings in the second half of the night.
Even low to moderate alcohol intake (e.g., 1 beer or a small glass of wine) affects your sleep quality. For restful, restorative sleep, reduce alcohol consumption pretty much to zero, and avoid drinking within 3 hours of bed.
Nicotine
Nicotine from smoking, vaping, nicotine pouches, or gum also reduces sleep quality. Smokers and nicotine users commonly have more difficulty getting to sleep, waking up more often, and getting less restorative sleep.
Like caffeine, the stimulant effects of nicotine interfere with your ability to fall asleep and maintain deep sleep stages. If you use nicotine products, avoiding them for several hours before bedtime can help minimise sleep disruption, though avoiding them entirely and reducing the amount you use them will provide the greatest benefits to your sleep.
Cannabis & THC
Despite many people using cannabis to help with sleep, researchers group it with alcohol, nicotine, and caffeine as substances that reduce sleep quality.
While the evidence isn’t as conclusive, habitual cannabis use is associated with poorer sleep. However, some people with health conditions, who severely struggle with their sleep (e.g., sleep disorders, chronic pain, PTSD, multiple sclerosis), have reported positive effects of cannabis use on sleep.
Ultra-Processed Foods, Sugar, and Saturated Fat
Diets high in saturated fat, added sugars, and ultra-processed foods are linked with lighter, less restorative sleep and insomnia9. People with poor sleep consume more ultra-processed foods compared to good sleepers.
These foods may impair sleep by destabilising blood sugar levels, increasing inflammation, and worsening your gut microbiome, body weight and hormonal health. Skip the soft drinks, energy drinks, packaged foods, fast food, instant and microwave foods, sweets and confectionery, or keep it to a minimum.
Late-Night Eating
Eating large meals close to bedtime or consuming high-fat, high-carbohydrate snacks in the evening disrupts your “nighttime metabolism”10. It’s linked to poorer health and sleep outcomes. Late-night eating can interfere with the body's natural “circadian rhythm” and the processes that should occur just before and during sleep.
People who eat most of their calories later in the day have a higher risk of obesity and metabolic diseases. The evidence suggests “front-loading” calories earlier in the day is better for your health and sleep quality. The high-salt intake from processed foods is also associated with poorer sleep quality, by affecting blood pressure and fluid balance, that disrupt comfort when in bed.
What Supplements Are Good (or Not So Good) For Sleep
- Ashwagandha extract has demonstrated small but measurable improvements in both sleep quantity and quality in adults with insomnia or poor baseline sleep11. While the effects are modest, it is one of the better-studied herbal supplements for sleep.
- Creatine: Although we’ve heard of anecdotal reports, we’re not aware of any high-quality research showing that creatine affects sleep in any profound way.
- Chamomile & Herbal Teas: While they may not robustly promote sleep, caffeine-free herbal teas serve as reasonable, cheap, safe bedtime drink that can be part of a relaxing routine. They're definately preferable to caffeinated drinks.
Putting It All Into Practice
Throughout the Day:
- Mediterranean-style meals centred on vegetables, whole grains, legumes, fish, and olive oil
- Adequate protein from diverse sources, including fatty fish 2-3 times weekly
- Plenty of fruits, vegetables, nuts, and seeds for micronutrients and fibre
- Eat breakfast to support circadian eating patterns
- Whole food sources rich in tryptophan and melatonin
In The Evening:
- Include tryptophan-rich protein at dinner (like fish, poultry, dairy, eggs, tofu)
- Consider melatonin-rich options: a small glass of milk or tart cherry juice, kiwifruit for dessert
- Keep evening meals moderate in size — avoid large, heavy late-night eating
- Choose complex carbohydrates paired with protein
- “Front-load” calories earlier in the day rather than eating most food late at night.
Minimise or Avoid (Especially After Midday):
- All caffeine sources after early afternoon (at least 9-13 hours before bed)
- Alcohol, particularly close to bedtime
- Nicotine products, especially evening use
- High-sugar snacks and drinks
- Heavily processed, salty fast foods
- Large meals within 2-3 hours of bedtime
What is the 10-3-2-1-0 Rule?
- 10 hours before bed: Stop consuming caffeine (coffee, tea, soda).
- 3 hours before bed: Stop eating large meals and drinking alcohol.
- 2 hours before bed: Stop working, checking email, or doing stressful tasks.
- 1 hour before bed: Turn off all screens (phones, TV, computers).
- 0 is the number of times you hit the snooze button in the morning.
It's a nice, memorable rule to keep in mind, which is supported by science.
Summary
✅Beneficial for Sleep
- Mediterranean diet
- Eating breakfast
- Eat tryptophan-rich foods
- Eat melatonin-rich foods
- Eat zinc, magnesium, vitamin B & D rich foods
↔️Not Beneficial or Harmful
- Creatine & Herbals Teas
❌Avoid for Better Sleep
- Eating Large Meals Late at Night
- Skipping Breakfast
- Ultra processed foods & drinks
- Caffeine
- Alchohol
- Nicotine
Bottom Line
The relationship between diet and sleep is “bidirectional” — meaning poor sleep also worsens dietary choices, increasing cravings for sugar, caffeine, and processed foods. This can create a vicious cycle, or downwards spiral, where bad sleep leads to poor eating, which goes on to further wreck your sleep.
Most nutrient and dietary changes only modestly affect sleep, and they are most effective when correcting deficiencies rather than taking super-doses, which are unlikely to improve sleep (and may carry other risks).
Lastly, while nutrition and diet are important, they are only one piece to the puzzle; light exposure, your sleep schedule, bedroom environment, stress management, and screen time are also important. Improving your sleep via your diet isn’t that complicated for most people: eat whole, minimally processed foods, eat breakfast and more calories earlier in the day, eat enough sleep-supporting nutrients in your evening meal, avoid caffeine, alcohol and nicotine in the hours leading up to bedtime.
Sources
- Scoditti E et al. Mediterranean Diet on Sleep: A Health Alliance. Nutrients. 2022 Jul 21;14(14):2998. PMID: 35889954
- Sutanto CN et al. The impact of tryptophan supplementation on sleep quality: a systematic review, meta-analysis, and meta-regression. Nutr Rev. 2022 Jan 10;80(2):306-316. PMID: 33942088
- Howatson G et al. Effect of tart cherry juice (Prunus cerasus) on melatonin levels and enhanced sleep quality. Eur J Nutr. 2012 Dec;51(8):909-16. Epub 2011 Oct 30. PMID: 22038497
- Costello RB et al. The effectiveness of melatonin for promoting healthy sleep: a rapid evidence assessment of the literature. Nutr J. 2014 Nov 7;13:106. PMID: 25380732
- Wilson K et al. Diet Composition and Objectively Assessed Sleep Quality: A Narrative Review. J Acad Nutr Diet. 2022 Jun;122(6):1182-1195. PMID: 35063665; PMCID: PMC9124688.
- Saito H et al. Zinc-rich oysters as well as zinc-yeast- and astaxanthin-enriched food improved sleep efficiency and sleep onset in a randomized controlled trial of healthy individuals. Mol Nutr Food Res. 2017 May;61(5). PMID: 28019085.
- Gwin JA, Leidy HJ. Breakfast Consumption Augments Appetite, Eating Behavior, and Exploratory Markers of Sleep Quality Compared with Skipping Breakfast in Healthy Young Adults. Curr Dev Nutr. 2018 Aug 28;2(11):nzy074. PMID: 30402594
- Gardiner C et al. The effect of caffeine on subsequent sleep: A systematic review and meta-analysis. Sleep Med Rev. 2023 Jun;69:101764. PMID: 36870101
- Godos J et al. Association between diet and sleep quality: A systematic review. Sleep Med Rev. 2021 Jun;57:101430. PMID: 33549913.
- Gu C et al. Metabolic Effects of Late Dinner in Healthy Volunteers-A Randomized Crossover Clinical Trial. J Clin Endocrinol Metab. 2020 Aug 1;105(8):2789–802. PMID: 32525525
- Cheah KL et al. Effect of Ashwagandha (Withania somnifera) extract on sleep: A systematic review and meta-analysis. PLoS One. 2021 Sep 24;16(9):e0257843. PMID: 34559859