Foods That Help You Sleep: What to Eat for Deeper, Easier Rest

Written by Daniel Hayes, Peremis Wellness Team
Published June 15, 2026
You did everything right. You went to bed at a reasonable hour, the room was dark, your phone was face down. Yet there you were at 1 a.m., wide awake and frustrated. Here is something most people overlook: the foods that help you sleep, and the ones quietly working against you, may matter just as much as your bedtime routine. What you put on your plate in the evening sends real chemical signals to your brain, and those signals can either ease you into deep rest or keep you wired for hours.
The good news is that you do not need a prescription or a complicated protocol. You need a short list of everyday foods, a sense of timing, and a few simple swaps. This guide walks you through exactly what to eat, when to eat it, and why it works, all backed by sleep research rather than wishful thinking.
What foods help you sleep?
The best foods that help you sleep are ones rich in tryptophan, melatonin, and magnesium. Strong choices include tart cherries, kiwi, turkey, eggs, almonds, pumpkin seeds, oats, and warm milk. These foods support the brain chemistry behind drowsiness and help your body wind down naturally, especially when eaten a couple of hours before bed.
Why what you eat shapes how you sleep
Sleep is not a switch you flip. It is a chemical handoff that begins hours before you close your eyes, and the raw materials for that handoff come from your diet. Three nutrients do most of the heavy lifting.
Tryptophan, the building block of calm
Tryptophan is an amino acid your body uses to make serotonin, which in turn becomes melatonin, the hormone that tells your brain it is time to sleep. You cannot make tryptophan on your own, so it has to come from food. Turkey, chicken, eggs, fish, dairy, tofu, and pumpkin seeds are all reliable sources. Pairing these with a small amount of carbohydrate, like oats or whole grain toast, helps tryptophan reach the brain more easily.
Melatonin you can eat
Melatonin is not only something your body produces. Certain foods contain it directly. Tart cherries are the standout. In one study, adults who drank tart cherry juice concentrate for seven days showed significantly elevated melatonin levels and longer total sleep time compared to a placebo group, as summarized by the Sleep Foundation. Pistachios, eggs, and milk also carry small amounts.
Magnesium, the relaxation mineral
Magnesium helps regulate the nervous system and supports the body's ability to settle into rest. Many adults fall short of the recommended intake, according to the National Institutes of Health Office of Dietary Supplements. Magnesium-rich foods include pumpkin seeds, almonds, spinach, black beans, and dark leafy greens. If you want to go deeper on this mineral, our guide to magnesium glycinate benefits breaks down which form is gentlest on the stomach.
The 12 best foods that help you sleep
Here is the short list worth keeping in your kitchen. Each one earns its place for a specific reason.
- Tart cherries: one of the few natural food sources of melatonin.
- Kiwi: rich in serotonin and antioxidants that support sleep quality.
- Turkey: a classic source of tryptophan.
- Eggs: tryptophan plus a touch of natural melatonin.
- Almonds: deliver magnesium and healthy fats.
- Pumpkin seeds: packed with both magnesium and tryptophan.
- Oats: gentle carbohydrates that help tryptophan do its job.
- Warm milk: tryptophan, calcium, and the comfort of a calming ritual.
- Fatty fish: salmon and mackerel offer vitamin D and omega-3s linked to better rest.
- Bananas: magnesium, potassium, and tryptophan in one easy snack.
- Walnuts: a plant source of melatonin and healthy fats.
- Chamomile tea: a caffeine-free drink tied to relaxation and easier sleep onset.
The kiwi worth knowing about
Kiwi deserves a special mention. In a study at Taipei Medical University, adults who ate two kiwis about an hour before bed for four weeks saw their total sleep time and sleep efficiency improve meaningfully. It is one of the most consistently supported fruits in the sleep research, and it makes an easy, low-effort bedtime snack.
Sleep foods at a glance
Use this quick table to match a food to the nutrient it provides and the best time to enjoy it.
| Food | Key sleep nutrient | Best time to eat |
|---|---|---|
| Tart cherries or juice | Melatonin | 1 to 2 hours before bed |
| Kiwi | Serotonin, antioxidants | About 1 hour before bed |
| Turkey or eggs | Tryptophan | Dinner |
| Pumpkin seeds or almonds | Magnesium | Evening snack |
| Oats with banana | Carbs plus tryptophan | Light evening snack |
| Chamomile tea | Relaxation compounds | 30 to 60 minutes before bed |
The winner for most people is a small combination rather than a single food. A handful of pumpkin seeds with a kiwi, or oats with banana and a few walnuts, covers tryptophan, magnesium, and melatonin in one easy snack.
Foods and drinks that quietly steal your sleep
Knowing what to avoid matters just as much. The villain here is the late-night habit that feels harmless but keeps your nervous system switched on. Watch out for these:
- Caffeine after early afternoon: it can linger in your system for hours and delay sleep onset.
- Alcohol before bed: it may help you doze off but fragments sleep later in the night.
- Heavy, fatty, or spicy meals: they sit in the stomach and can trigger discomfort or reflux when you lie down.
- Sugary desserts: a spike and crash in blood sugar can wake you in the small hours.
The Centers for Disease Control and Prevention recommends that most adults get at least seven hours of sleep, yet many of us fall short. Cleaning up your evening eating is one of the simplest levers you can pull.
A simple evening plan that works
You do not need to overhaul your whole diet. Here is a friction-free, three-step routine you can start tonight:
- Finish dinner two to three hours before bed so digestion is mostly done before you lie down.
- Choose one calming snack from the list above if you are hungry, such as kiwi with a few almonds or oats with banana.
- Swap the nightcap for a warm, caffeine-free drink like chamomile tea or warm milk, and dim the lights as you sip.
Do this consistently for a week or two and pay attention to how you feel in the morning. Small changes compound. If stress is the thing keeping your mind racing at night, food is only part of the picture. Some people pair an evening wind-down with a calming adaptogen like ashwagandha, which has a long history of use for stress and sleep support. You can read more in our deep dive on ashwagandha for stress and sleep, and on getting the most from any routine in our guide to the best time to take supplements.
Frequently asked questions
What is the best food to eat before bed for sleep?
There is no single magic food, but kiwi and tart cherries have the strongest research behind them. Kiwi is rich in serotonin, and tart cherries naturally contain melatonin. A small snack that pairs one of these with a magnesium source, such as pumpkin seeds or almonds, tends to work best about an hour before bed.
How long before bed should I stop eating?
Aim to finish a full meal two to three hours before bed so digestion is mostly complete by the time you lie down. A light, sleep-friendly snack closer to bedtime is fine and can even help. The goal is to avoid large, heavy, or spicy meals that can cause discomfort or reflux at night.
Does warm milk really help you sleep?
Warm milk contains tryptophan, the amino acid used to make sleep-related brain chemicals, and calcium that supports its use. The amounts are modest, so part of the benefit comes from the soothing ritual itself. As a caffeine-free, calming drink before bed, it remains a reasonable and comforting choice for many people.
Can certain foods keep me awake at night?
Yes. Caffeine from coffee, tea, soda, and chocolate can delay sleep for hours. Alcohol disrupts sleep later in the night even if it helps you fall asleep. Heavy, fatty, or spicy meals and sugary desserts close to bedtime can also cause discomfort or blood sugar swings that wake you up.
Are sleep supplements better than sleep foods?
Food and supplements serve different roles. A balanced evening diet supplies nutrients steadily and supports overall health, which is the foundation. Some people add targeted support, such as magnesium or an adaptogen, when food alone is not enough. Talk to your healthcare provider before starting any supplement, especially if you take medication.
The bottom line
Better sleep often starts at the dinner table, not just the bedroom. Lean on the foods that help you sleep, tart cherries, kiwi, turkey, eggs, nuts, seeds, oats, and a warm caffeine-free drink, while easing off late caffeine, alcohol, and heavy meals. Give it two weeks of consistency and let your mornings tell you the rest of the story.
This article is for educational purposes only and is not medical advice. These statements have not been evaluated by the Food and Drug Administration. Dietary supplements are not intended to diagnose, treat, cure, or prevent any disease. Speak with a qualified healthcare professional before making changes to your diet or supplement routine.
Written and reviewed against our editorial standards. We cite reputable sources and never make medical claims. Learn how we work →
