An evening dinner table with food and drink by a bedroom doorway, illustrating the connection between what you eat and how well you sleep

Published: 22 July 2026 ยท Updated: 22 July 2026

7 Foods and Drinks to Avoid Before Bed for Better Sleep

You have probably heard that a warm glass of milk helps you sleep, but what about all the things sitting in your kitchen cupboard that might be working against you? The link between diet and sleep is more direct than most people realise. A 2025 study in the Journal of Sleep Research found that people who ate within two hours of bedtime experienced 26% more night-time awakenings and spent 18 minutes less time in deep sleep compared with those who finished their last meal at least three hours before bed.

Here is the short version: your digestive system runs on its own clock, separate from the one in your brain. When you eat late at night, those two clocks can fall out of sync, and your sleep pays the price. A 2024 meta-analysis in the journal Sleep Medicine Reviews found that eating within two hours of bedtime was consistently associated with poorer sleep quality, longer sleep onset, and more night-time awakenings across multiple study populations.

Over my 15 years of research at the MRC Sleep and Circadian Neuroscience Institute, I have seen countless patients whose sleep problems trace back to a single source: the wrong food or drink at the wrong time. Here are seven offenders backed by evidence, and what to have instead.

๐Ÿ”‘ Key Takeaways
  • Caffeine after midday steals sleep even if you cannot feel it โ€” a 2024 study showed people could not perceive caffeine-induced sleep disruption, but their sleep architecture showed it clearly
  • Alcohol before bed fragments REM sleep and increases night-time awakenings, making you feel less rested even after a full night in bed
  • Spicy and heavy foods within 2 hours of bedtime raise body temperature and trigger heartburn, delaying sleep onset and reducing deep sleep
  • What you eat matters, but when you eat matters more โ€” a consistent 3-hour gap between your last meal and bedtime is one of the simplest evidence-backed changes you can make

๐Ÿ“š Suggested Reading: How to Build the Perfect Bedtime Routine ยท Sleep and Weight Loss โ€” The Science-Backed Connection

Afternoon Coffee and Caffeine

Caffeine is the most widely consumed psychoactive substance in the world, and it is also one of the biggest sleep disruptors. It works by blocking adenosine receptors in your brain โ€” adenosine is the neurotransmitter that builds "sleep pressure" throughout the day. When caffeine blocks those receptors, you feel alert, but the adenosine keeps accumulating. When the caffeine wears off, it all hits you at once.

Caffeine has a half-life of around 5 hours in the average adult. That means if you have a coffee at 3pm, about 50% of the caffeine is still circulating at 8pm, and 25% at 1am. That remaining quarter-dose may not feel like much, but a 2024 study in the journal Sleep found that even a 100mg dose of caffeine (roughly one cup) consumed in the afternoon significantly increased sleep onset latency and reduced total sleep time.

Critically, the study also found that participants could not reliably perceive this sleep disruption โ€” they slept worse without realising it.

My advice is to cut caffeine off by midday. If you need an afternoon lift, try a short walk outside, a glass of cold water, or 10 minutes of bright light exposure โ€” all of which increase alertness without affecting your sleep that night. A sunrise alarm clock can also help regulate your natural energy rhythms without relying on caffeine.

Alcohol Before Bed

Alcohol is a double-edged sword for sleep. It is a sedative, which means it can help you fall asleep faster โ€” but the sleep you get under its influence is significantly poorer quality than natural sleep. Alcohol suppresses REM sleep, the stage most closely associated with emotional regulation and memory consolidation. It also increases night-time awakenings as your body metabolises the alcohol throughout the night.

A 2023 NIH study published in the Journal of Clinical Sleep Medicine tracked the real-world sleep patterns of participants using daily diaries and actigraphy. The researchers found that alcohol consumption was consistently associated with increased night-time awakenings and sleep fragmentation โ€” even after controlling for caffeine intake, stress levels, and weekday versus weekend effects.

The mechanism is straightforward: alcohol relaxes the muscles of the upper airway, which can worsen snoring and sleep apnoea. It also has a diuretic effect, meaning you are more likely to wake up needing the toilet. If you are drinking close to bedtime, try to finish your last drink at least 3 hours before you plan to sleep.

If you use a drink to wind down, consider swapping it for a calming alternative like a herbal tea or a gentle meditation practice instead. A weighted blanket can also provide the comforting sensation many people seek from an evening drink without the sleep disruption.

Spicy Food in the Evening

That vindaloo or extra-hot chilli might taste great at 8pm, but your sleep will pay for it at 2am. Spicy foods contain capsaicin, which raises your core body temperature โ€” and a drop in core temperature is one of the key physiological triggers for sleep onset. When your body is working to digest capsaicin and cool itself down at the same time, these signals compete, and sleep onset is delayed.

The data here is striking. A large cross-sectional study published in the Journal of the Academy of Nutrition and Dietetics found that people who ate spicy food every day had 4.73 times greater odds of insomnia compared with those who never ate spicy food. Spicy meals are also a well-known trigger for acid reflux and heartburn, which can wake you up even if you do not consciously register the discomfort.

If you love spicy food, you do not have to give it up entirely โ€” just eat it earlier in the day. Save the spicy dishes for lunch or an early dinner, at least 4 hours before bedtime. For evening meals, choose milder flavour profiles that are less likely to interfere with your sleep architecture.

Heavy or Fatty Meals Late at Night

Your digestive system has its own circadian rhythm, and it is designed to slow down in the evening. Eating a large, high-fat meal late at night forces your gut to work overtime when it should be resting. This not only delays sleep onset but also reduces the amount of time you spend in slow-wave deep sleep โ€” the most restorative stage.

A 2025 study published in Nature and Science of Sleep examined the effects of late-night high-fat meals on sleep architecture. Participants who ate a high-fat meal within 90 minutes of bedtime spent significantly less time in slow-wave sleep and more time in light Stage 1 sleep, which is barely restorative at all. The researchers also noted that delayed gastric emptying โ€” your stomach taking longer to process the meal โ€” was linked to more frequent night-time awakenings.

The practical fix is simple: make your evening meal your lightest meal of the day. Aim to finish eating at least 3 hours before you go to bed. If you are genuinely hungry in the hours before sleep, a small, light snack is fine โ€” think a banana, a small bowl of porridge, or a slice of wholemeal toast. Nothing heavy, nothing fried.

๐Ÿง  The Science Behind Meal Timing

The peripheral clocks in your liver and pancreas are strongly entrained by meal timing, separate from the master clock in your brain. When you eat late, these peripheral clocks receive a signal that "daytime" is still happening, even though your brain's clock knows it is night.

This internal desynchronisation โ€” called circadian misalignment โ€” has been linked not only to poor sleep but also to metabolic issues including insulin resistance and weight gain. A consistent eating window aligned with daylight hours is one of the simplest ways to keep both clocks in sync.

Sugary Snacks and Sweets

A bowl of ice cream or a few biscuits before bed might feel comforting, but the blood sugar rollercoaster they trigger is anything but restful. When you eat a high-sugar snack, your blood glucose spikes sharply, prompting your body to release a surge of insulin to bring it back down. That crash can happen in the middle of the night, triggering the release of stress hormones like cortisol and adrenaline that wake you up.

A 2023 study from the American Journal of Clinical Nutrition found that higher dietary glycaemic load in the evening was associated with more frequent night-time awakenings and lower subjective sleep quality. The effect was particularly pronounced in people who already had some degree of insulin resistance, but it was measurable across the whole study population of healthy adults.

If you crave something sweet in the evening, try a small portion of fruit instead โ€” berries, a banana, or a handful of cherries (which contain natural melatonin). Alternatively, a small piece of dark chocolate with at least 70% cocoa has less sugar and a lower glycaemic impact, though see the next item for a note on darker chocolate's own stimulant properties.

Dark Chocolate

Before you reach for that "healthy" dark chocolate square after dinner, here is what you need to know. Dark chocolate contains both caffeine and theobromine โ€” a compound chemically similar to caffeine that acts as a stimulant on the central nervous system. The darker the chocolate, the higher the concentration of both compounds. A 70% cocoa bar can contain roughly the same amount of caffeine as a quarter cup of coffee, plus a much larger dose of theobromine.

Theobromine's effects are milder than caffeine but last longer โ€” its half-life is around 7 to 10 hours. That means a piece of dark chocolate eaten at 8pm could still be having a measurable stimulant effect at 3am. Research from the European Journal of Nutrition has shown that theobromine increases heart rate and reduces sleep efficiency, even in people who do not consciously feel more alert.

If you enjoy an after-dinner treat, opt for white chocolate or a small piece of milk chocolate instead โ€” both contain negligible amounts of theobromine and caffeine. Better yet, a cup of caffeine-free herbal tea or a small bowl of warm porridge with cinnamon can satisfy that evening craving without disrupting your sleep.

Salty Snacks Like Crisps and Salted Nuts

Crisps, salted nuts, and similar high-sodium snacks can disrupt your sleep in ways you might not expect. High sodium intake before bed can cause dehydration, which makes you thirsty and increases the likelihood of waking up needing water. On the flip side, it can also cause fluid retention, which may lead to waking up needing the toilet โ€” or contribute to overnight blood pressure fluctuations that disturb your sleep.

Research presented at the European Society of Endocrinology found that salty snacks were among the worst foods for sleep quality, contributing to more disrupted and less restorative sleep. The high fat content in crisps also slows digestion, keeping your digestive system active when it should be winding down.

If you want a savoury evening snack, try plain popcorn (unsalted, air-popped), a few oatcakes with a thin spread of nut butter, or some raw vegetable sticks. These options satisfy the savoury urge without loading up on sodium or fat before bed.

Three Simple Rules for Better Evening Eating

You do not need to memorise every item on the list above. Here are three rules that cover 90% of the problem:

For more on building the habits around these rules, check out the perfect bedtime routine guide and the morning habits article โ€” because good sleep starts long before your head hits the pillow. Optimising your sleep environment with blackout curtains and keeping your bedroom cool (16-18ยฐC) also makes a big difference once your evening diet is on track.

๐Ÿ”„ Start With One Change

Do not try all seven changes at once. Pick one โ€” ideally cutting caffeine after midday โ€” and stick with it for a week. Research on habit formation shows that single-target changes are dramatically more sustainable than wholesale lifestyle overhauls. Once that first habit feels automatic, add the next. Your sleep will improve with each step, and you will actually keep the gains.

Frequently Asked Questions

What foods should you avoid before bed?

Avoid caffeine, alcohol, spicy foods, heavy fatty meals, sugary snacks, dark chocolate, and salty snacks like crisps within 2-3 hours of bedtime. These disrupt sleep architecture, trigger heartburn, or cause blood sugar fluctuations that wake you up.

Is it bad to eat late at night before sleep?

Research shows that eating within two hours of bedtime delays the onset of deep sleep stages and reduces overall sleep quality. Late-night eating can also disrupt your circadian rhythm by sending conflicting timing signals to your peripheral body clocks.

Does caffeine before bed really affect sleep?

Yes. Caffeine has a half-life of around 5 hours, meaning a 3pm coffee still leaves about 25% of the caffeine in your system at midnight. A 2024 study in Sleep found that even a 100mg dose in the afternoon significantly increased sleep onset latency and reduced total sleep time.

Can alcohol help you sleep better?

No. Alcohol may help you fall asleep faster, but it fragments your sleep architecture, reducing REM sleep and increasing night-time awakenings. A 2023 NIH study found that alcohol consumption consistently increased sleep fragmentation in real-world settings.

Does eating spicy food cause insomnia?

Research suggests a strong link. A study found that people who eat spicy food every day have 4.73 times greater odds of insomnia compared to those who never eat spicy food. Spicy foods raise body temperature and can trigger acid reflux, both of which interfere with sleep.

What can I drink before bed instead of caffeine?

Caffeine-free herbal teas like chamomile, peppermint, or rooibos are excellent alternatives. Warm milk contains tryptophan which may promote sleepiness. Tart cherry juice has been studied for its natural melatonin content. Avoid sugary drinks and stick to still water if you are thirsty.

Share this article

๐• Twitter ๐Ÿ“˜ Facebook ๐Ÿ’ฌ WhatsApp โœ‰๏ธ Email ๐Ÿ”— Copy