What research says about diet and sleep

St-Onge and colleagues reviewed studies on diet and sleep and found that what you eat and when you eat it can influence sleep. Many of the studies are small or observational, which means that links may reflect other habits too. Better sleepers often have healthier overall lives, so the picture is complex.

The most reliable advice is general. Eat a balanced pattern with plenty of plants, fibre and lean protein, avoid large late meals, and keep caffeine and alcohol in check.

Eating patterns linked to better sleep

  • Mediterranean style eating with vegetables, fruit, whole grains, fish and olive oil
  • Higher fibre intake, which is linked with more deep sleep in small studies
  • Less added sugar and less saturated fat in the evening
  • Regular meal times to support the body clock
  • Enough total food. Under eating can cause waking and poor sleep
Advertisements

Caffeine, the clearest villain

Drake and colleagues gave volunteers 400 mg of caffeine at 0, 3 or 6 hours before bed. Even the dose taken six hours before bed reduced total sleep by more than an hour as measured by a sleep study, though people did not feel it. Caffeine lasts: its half life is around five hours in many adults, with a wide range.

If you are sensitive, set a cut off around midday or early afternoon. Remember that tea, cola, energy drinks, chocolate and some pain tablets contain caffeine too.

Alcohol and sleep

Alcohol may help you drop off, but it tends to fragment the second half of the night and reduce REM sleep. It can also worsen snoring and breathing pauses. If you drink, keep it modest and finish several hours before bed.

Using alcohol as a sleep aid creates a cycle where you need more over time.

Meal timing in practice

  1. Eat breakfast and lunch at regular times.
  2. Finish a large dinner at least two to three hours before bed.
  3. If you are hungry later, choose a small snack with protein and carbohydrate, such as yoghurt and fruit or a slice of wholegrain toast with nut butter.
  4. Sip fluids in the last hour and avoid a large drink before bed.
  5. Avoid spicy, very fatty and heavily acidic foods late if you get reflux.

Foods and drinks people ask about

Small trials have tested kiwi fruit, tart cherry juice, fatty fish and milk. Some show modest gains in sleep time or quality, but the studies are small and not always repeated. Treat them as optional extras and not a cure. Magnesium and melatonin supplements are sold widely, yet the evidence is mixed, and industry articles on the future of sleep supplements do not prove that a product works.

If you want to try a supplement, talk to your doctor first, especially if you take medicines, are pregnant or have a health condition.

A simple evening plan

Eat an early balanced dinner with vegetables and protein. Keep the evening meal modest. Have water or herbal tea afterwards. If you need a snack, have a small one an hour before bed. Use the blue light taper timer for the evening routine and the bedtime calculator to choose a bedtime.

If you have diabetes, a digestive condition or an eating disorder, follow the advice of your clinician rather than a general guide. This page is general education and not medical advice. If you have ongoing sleep problems, loud snoring, breathing pauses or severe daytime sleepiness, speak to a doctor.

Advertisements

A simple shopping list for better sleep

  • Oats, wholegrain bread and brown rice
  • Beans, lentils and chickpeas
  • Leafy greens, berries and kiwi
  • Oily fish, eggs and plain yoghurt
  • Nuts and seeds in small portions
  • Herbal tea such as chamomile or peppermint
  • Water, with coffee kept to the morning

Eating when you work nights

Night workers face the hardest timing. Eat your main meal before the shift, a light snack in the middle and avoid heavy food in the last two hours before daytime sleep. Keep caffeine to the first half of the shift. The shift worker rotation adjuster sets sleep windows that fit this plan.

Frequently Asked Questions

What is the best food to eat before bed? ›

A small snack with protein and complex carbohydrate, such as yoghurt with fruit or toast with nut butter, suits many people.

Does turkey make you sleepy? ›

Turkey has tryptophan, but a normal serving does not make you drowsy by itself.

How long before bed should I stop eating? ›

Finish large meals two to three hours before bed.

Is coffee at 3 PM OK? ›

For many people, it can still affect night sleep. Try a cut off around midday if you sleep poorly.

Does magnesium help sleep? ›

Evidence is mixed and small, so talk to your doctor before you try it.

Does sugar affect sleep? ›

High sugar intake is linked with lighter, more broken sleep in small studies.

How this page was made

Written by and last updated on 5 November 2026. Claims are checked against the peer reviewed papers and public health sources listed below, and findings from small or early studies are labelled as such. We follow our editorial policy and explain how times and results are calculated in our methodology. Calculators run in your browser and store nothing. Found an error? Tell us and we will correct it.

Sources

This page gives general information for adults and is not medical advice. If you have ongoing sleep problems, loud snoring, breathing pauses or heavy daytime sleepiness, speak to a doctor. Times and results are estimates.