Foods that help you sleep are best thought of as small, practical supports—not something that will make you fall asleep instantly. Kiwifruit, tart cherries, oats, nuts and seeds, leafy greens, dairy, and protein foods with tryptophan can fit into a sleep-friendly eating pattern; what matters just as much is avoiding the late caffeine, alcohol, large meals, and trigger foods that keep you awake.
Choose an ordinary, comfortable food or drink that suits you, and do not expect one snack to replace a steady sleep routine or care for persistent sleep problems.
Which foods can help you sleep better?
These are 11 reasonable options to rotate through. They overlap because many contain melatonin, tryptophan, magnesium, fiber, or carbohydrates that may support sleep-related processes. That does not make any one of them the “best” food for every person.
| Food or drink | Why it is on the list | A simple way to use it |
|---|---|---|
| Tart cherries or unsweetened tart cherry juice | Cherries are a natural source of melatonin, the hormone involved in sleep timing. | Choose it as an evening drink if its tart flavor works for you. |
| Kiwifruit | A light, nutritious fruit with fiber and antioxidants; Healthline notes more scientific evidence is needed on its effects on sleep. | Have kiwi as a light evening fruit. |
| Almonds | They provide magnesium and melatonin. Healthline describes a 2019, 14-day study in which people eating 10 sweet almonds daily reported less insomnia. | A small handful is an easy snack. |
| Walnuts or pistachios | These nuts contain melatonin and provide unsaturated fats. | Try a modest portion rather than a heavy dessert. |
| Pumpkin seeds | They provide magnesium and tryptophan. | Sprinkle them on yogurt or oats. |
| Spinach and other leafy greens | They are food sources of magnesium. | Add them to dinner instead of making bedtime eating a project. |
| Oats or other whole grains | They provide complex carbohydrates and can contribute magnesium and tryptophan. | Oatmeal or whole-wheat toast can be a light option. |
| Milk or plain yogurt | Dairy supplies tryptophan; milk also contains melatonin. | A warm milky drink may be comforting if dairy agrees with you. |
| Eggs | Eggs contain melatonin and protein. | They may fit better with dinner than as a large late meal. |
| Turkey, chicken, or fish | These foods supply tryptophan. Turkey alone is unlikely to create the familiar post-meal drowsiness; pairing tryptophan foods with carbohydrates may matter. | Use them as part of a balanced meal. |
| Tofu, edamame, or soy foods | They provide tryptophan; Ohio State Health & Discovery notes a 2015 Nutrition Journal study in which adults consuming two or more soy servings a day reported longer and higher-quality sleep. | Use tofu or edamame when you prefer a plant-based meal. |
The ingredients in the table are not a prescription. If you already eat several of these foods, the useful next question is whether your evening pattern includes the things most likely to disrupt sleep.
What should you eat or drink 2 to 3 hours before bed?
If you are hungry, keep it light and familiar: kiwi, a small handful of nuts or seeds, plain yogurt, a little oatmeal, or warm milk are practical choices. For a drink, an herbal tea such as chamomile or a warm milky drink can be a calming ritual. The NHS sleep guidance specifically suggests warm milk or herbal tea as alternatives to caffeinated drinks.
Chamomile is worth separating from the ritual itself. Healthline reports that a 2024 analysis of 10 earlier studies found chamomile improved sleep, particularly awakenings, while it did not improve sleep duration, sleep efficiency, or daytime fatigue. Preparations differed across those studies, so a cup of tea is not interchangeable with every chamomile product.
For “deep sleep,” no drink can promise a particular sleep stage. A warm non-caffeinated drink may be the better fit when your goal is to wind down without adding caffeine, alcohol, or a large meal.
What foods and drinks are worst before bedtime?
The clearest food decision is often what to move earlier in the day. Johns Hopkins Medicine advises limiting caffeine, alcohol, spicy foods, and high-fat or high-protein meals near bedtime. It notes that alcohol may make you fall asleep faster at first, then wake you during important restorative stages of sleep.
| Limit near bedtime | Why it can get in the way | Practical swap |
|---|---|---|
| Coffee, regular tea, energy drinks, cola, and chocolate | Caffeine can keep you alert. Johns Hopkins notes that even decaffeinated coffee or tea can contain caffeine. | Choose water, warm milk, or herbal tea. |
| Alcohol | It can lead to disrupted sleep later in the night. | Save a nonalcoholic drink for your wind-down. |
| Large, fatty meals | They can feel uncomfortable and may interfere with sleep. | Eat dinner earlier or choose a lighter snack if hungry. |
| Spicy, tomato-based, or other acidic foods that trigger heartburn | Heartburn and reflux can be worse when you lie down. | Move them earlier if they bother you. |
| High-sugar foods | Sleep Foundation links high sugar intake with shorter, more interrupted, less restorative sleep. | Choose a whole-food snack instead. |
Timing is personal. Healthline notes that some research places meals four to six hours before bed, while its food list may be best used two to three hours beforehand to reduce digestive irritation. Let comfort guide the final choice.
What does the research actually add?
Food research can point to useful patterns, but it is not a contest to find an instant sleep food. The Sleep Foundation explains that melatonin helps regulate sleep timing, tryptophan is converted into serotonin and melatonin, and magnesium participates in sleep-related regulation. Healthline notes that kiwi may contain serotonin, but more scientific evidence is needed on its effects on sleep.
Magnesium is one reason leafy greens, legumes, nuts, seeds, whole grains, and fish often appear on sleep-food lists. A 2025 review in Nature and Science of Sleep describes a mixed research picture, including observational work and clinical trials with different results. For a food-first overview, see magnesium benefits; the key point is that a food containing magnesium is not the same thing as a guaranteed sleep aid.
The National Institute of Arthritis and Musculoskeletal and Skin Diseases lists milk and other dairy, fish, leafy greens, and calcium-set tofu among food sources of calcium in its calcium food guide. Those foods can support your overall diet while you choose an evening meal that does not leave you overly full or uncomfortable.
What if stress or anxiety is keeping you awake?
Food can be one small part of a calmer evening, but it is not the whole answer when your mind is racing. The NHS says worry, stress, and anxiety can make sleep harder and suggests writing down next-day tasks before bed, talking with someone you trust, relaxation, and a quiet, dark, cool bedroom. Its guidance also suggests getting up for a relaxing activity if you are still awake after around 20 minutes, then returning to bed when sleepy.
If you are comparing non-food approaches, this guide to non cannabis options for pain sleep and anxiety explains how to read those choices. For supplements, keep the decision separate from dinner: supplements for better sleep covers melatonin and other options, while this page stays focused on everyday foods.
Can food help with ongoing insomnia?
Food can support a routine, but it cannot tell you why sleep has become difficult. The NHS says ongoing trouble falling asleep or staying asleep can be discussed with a GP or pharmacist, and its sleep guidance points readers to insomnia support. Bring a simple record of your usual bedtime, wake time, caffeine, alcohol, meals, and night waking; it gives a clinician a clearer starting point than trying a different snack every night.
That is especially important if you are considering a supplement or taking medicines. Do not start, stop, or change medication based on a sleep-food list; a clinician can help you make that decision in context.
Before you change your bedtime food routine
- Pick one light option you already enjoy instead of chasing an “instant sleep” food.
- Move caffeine, alcohol, large meals, and foods that trigger heartburn earlier.
- Try the change consistently enough to notice whether it helps your comfort at night.
- If sleep trouble is persistent or affecting your days, use your food-and-sleep notes in a clinician conversation.
By the Clinical Research Explained Editorial Team
This article is for general information purposes only and does not constitute medical advice. Consult your doctor or qualified healthcare provider before making changes to your health routine.