Foods that help you sleep better at night
Around 1 in 3 American adults regularly sleep less than seven hours a night , according to the CDC — and one of the most overlooked levers for fixing that sits on your dinner plate.

Around 1 in 3 American adults regularly sleep less than seven hours a night, according to the CDC — and one of the most overlooked levers for fixing that sits on your dinner plate.
If falling asleep feels like a nightly negotiation, your last meal might be working against you. Research from Johns Hopkins, Columbia University, and the National Sleep Foundation shows that what — and when — you eat directly shapes the hormones that control your sleep cycle. The good news: a handful of well-chosen foods that help you sleep can quietly do more for your rest than another melatonin gummy ever will.
This guide breaks down the most evidence-backed foods that help you sleep better at night, the nutrients that make them work, what to avoid after dark, and how to turn the science into an actual weeknight dinner — without spending an hour planning it.
Why what you eat affects how well you sleep
Sleep is a hormonal process, and hormones are built from nutrients. Your body uses the amino acid tryptophan to make serotonin, a calming neurotransmitter, which then converts into melatonin, the hormone that signals your brain it's time to wind down. Magnesium, vitamin B6, calcium, and zinc are the cofactors that keep that pathway running smoothly.[1]
A 2021 review in Nutrients found a clear cyclical relationship: poor diet quality predicts poor sleep, and poor sleep predicts worse food choices the next day.[2] In other words, dinner is not just fuel — it's a sleep prescription you write for yourself every night.
The science of sleep-promoting nutrients
Before the food list, it helps to know exactly what you're hunting for on the plate. These are the four nutrients with the strongest research behind them.
Tryptophan
Tryptophan is an essential amino acid your body cannot make on its own. A meta-analysis published in Nutrition Reviews found that tryptophan supplementation of 1 gram or more shortened wake-after-sleep-onset by roughly 81 minutes per gram in adults with mild insomnia.[3] You don't need a supplement to get there — turkey, salmon, oats, pumpkin seeds, eggs, and tofu all deliver meaningful doses.
Melatonin
A few foods contain measurable melatonin themselves. Montmorency tart cherries are the most studied: a small clinical trial showed adults with insomnia who drank tart cherry juice extended sleep time by about 84 minutes per night compared to placebo.[4] Pistachios, eggs, milk, and certain mushrooms also contain naturally occurring melatonin.
Magnesium
Magnesium calms the nervous system and helps regulate melatonin. Low intake is linked to fragmented sleep and frequent night waking. Spinach, pumpkin seeds, almonds, black beans, and avocado are the easiest dietary sources.
Complex carbohydrates
A small portion of complex carbs at dinner — oats, whole-grain toast, sweet potato, brown rice — helps tryptophan cross the blood-brain barrier so it can actually become serotonin and melatonin. Johns Hopkins specifically recommends complex carbohydrates over high-fat or heavily processed options for better sleep.[5]
The best foods that help you sleep
Here are the most reliably sleep-supportive foods, what's in them, and how to actually eat them.
Tart cherries and tart cherry juice
Tart cherries are essentially nature's melatonin shot. Research suggests two ounces of tart cherry juice concentrate mixed with water about an hour before bed can improve both sleep length and quality in people with insomnia. Choose unsweetened versions — added sugar at night is counterproductive.
Kiwi
Kiwi punches well above its weight. A study from Taipei Medical University had adults with sleep complaints eat two kiwifruits an hour before bed for four weeks; participants fell asleep 35% faster and slept 13% longer than baseline. Kiwi is rich in serotonin, vitamin C, folate, and antioxidants.
Fatty fish: salmon, mackerel, and sardines
Fatty fish combine vitamin D and omega-3 fatty acids, two nutrients tied to higher serotonin and better sleep regulation. One study found people who ate salmon three times a week reported better daily functioning and faster sleep onset than those eating other proteins.[4] A 4-ounce salmon fillet at dinner delivers around 22 grams of protein and roughly 100% of your daily vitamin D.
Turkey, chicken, and lean poultry
Lean poultry is one of the densest dietary sources of tryptophan. A 4-ounce roasted turkey breast provides about 350 mg of tryptophan, more than enough to support evening serotonin production when paired with a small complex carb. Chicken thigh, eggs, and cottage cheese are close runners-up.
Almonds, walnuts, and pistachios
Nuts are the most convenient sleep snack on this list. Pistachios are particularly notable — one ounce contains about 6.5 mg of melatonin, more than any other commonly eaten food. Almonds add magnesium; walnuts add omega-3s. A small handful (about 20 to 25 g) an hour before bed is the sweet spot.
Oats and oatmeal
Oats hit the trifecta: complex carbs, melatonin, and a hit of tryptophan. A small bowl of plain oatmeal with milk and a few sliced bananas is one of the most evidence-aligned bedtime snacks you can build, and it digests slowly enough to keep blood sugar stable through the night.
Bananas
Bananas pack potassium, magnesium, and vitamin B6 — the cofactor that converts tryptophan into serotonin. They're also the easiest portable snack on the list. Pair half a banana with a tablespoon of almond butter for the perfect 150-calorie wind-down.
Dairy: warm milk, Greek yogurt, and cottage cheese
The warm-milk-before-bed cliché has science behind it. Milk delivers tryptophan, calcium (which helps the brain use tryptophan to make melatonin), and slow-digesting casein protein. Greek yogurt with sliced kiwi or cherries is essentially a sleep stack in a bowl.
Leafy greens and other magnesium-rich vegetables
Spinach, Swiss chard, and kale are the magnesium heavyweights. The Ohio State Wexner Medical Center notes that too little dietary magnesium makes it physically harder to stay asleep.[6] Roasting a tray of spinach, sweet potato, and salmon takes 25 minutes and delivers nearly every nutrient in this guide at once.
Chamomile tea and herbal blends
Chamomile contains apigenin, an antioxidant that binds to GABA receptors in the brain and produces a mild sedative effect. It's caffeine-free, low in calories, and one of the few sleep aids your body cannot become tolerant to. Passionflower and valerian root teas have similar — if stronger — effects.
What is the best thing to eat before bed for sleep?
The best pre-bed snack combines a small amount of tryptophan-rich protein with a complex carbohydrate, eaten 60 to 90 minutes before sleep. Think Greek yogurt with kiwi and a sprinkle of pumpkin seeds, or a slice of whole-grain toast with almond butter and half a banana. The carb helps tryptophan reach the brain; the protein supplies it; the timing keeps blood sugar steady through the first sleep cycle.
Keep the portion modest — roughly 150 to 250 calories. Anything heavier shifts blood flow to digestion and delays the drop in core body temperature that triggers deep sleep.
Foods and drinks to avoid before bed
The foods you cut matter as much as the ones you add.
Caffeine after 2 p.m. Caffeine has a half-life of around 5 hours, meaning a 3 p.m. coffee can still be 25% active at 11 p.m. Northwestern Medicine recommends a hard cutoff at least 6 hours before bed.[7]
Alcohol in the evening. Alcohol may help you fall asleep faster, but it suppresses REM sleep and increases nighttime waking, especially in the second half of the night.
Heavy, high-fat meals. Fried foods, deep-dish pizza, and creamy pastas take 4+ hours to digest and are associated with more vivid dreams and reflux.
Spicy foods. Capsaicin raises core body temperature, which works against the natural cool-down required for sleep onset.
Refined sugar and dessert spikes. A late blood-sugar spike often produces a 2 a.m. cortisol crash that wakes you.
Large fluid volumes within 90 minutes of bed. Hydrate during the day; taper at night to avoid bathroom trips.
How to build a sleep-supportive dinner (without overthinking it)
A simple framework most registered dietitians agree on:
A palm-sized portion of tryptophan-rich protein — salmon, turkey, chicken, tofu, or eggs.
A fist-sized portion of complex carbohydrate — quinoa, brown rice, sweet potato, oats, or whole-grain bread.
Two handfuls of magnesium-rich vegetables — spinach, broccoli, Swiss chard, or asparagus.
A small source of healthy fat — olive oil, avocado, or a sprinkle of nuts and seeds.
A sleep-friendly finisher 60–90 minutes later — chamomile tea, two ounces of tart cherry juice, or a few pistachios.
Finish eating at least 2 to 3 hours before bedtime so digestion isn't competing with sleep.
A sample sleep-friendly dinner you can cook tonight
Sheet-pan salmon with sweet potato, spinach, and pumpkin seeds. Roast a 4-oz salmon fillet and cubed sweet potato at 200°C / 400°F for 18 minutes. Toss in a generous handful of spinach for the last 3 minutes. Drizzle with olive oil and lemon, top with a tablespoon of pumpkin seeds. Total time: about 25 minutes. Approximate macros: 480 kcal, 32 g protein, 38 g carbs, 22 g fat — and a near-perfect dose of tryptophan, magnesium, omega-3s, and vitamin D in one tray.
How AI meal planning makes sleep-friendly eating automatic
Knowing which foods help you sleep is the easy part. Actually getting them onto your plate every weeknight — without decision fatigue, repetitive dinners, or a fridge full of forgotten produce — is where most people stall.
MealFrame, an AI-powered meal planning and nutrition tracking app, removes that friction. You set a preference like "prioritize sleep-supportive nutrients at dinner — high tryptophan, adequate magnesium, complex carbs, low caffeine" alongside your diet style, calorie target, and any allergies. MealFrame then builds a full week of dinners around foods like salmon, turkey, oats, leafy greens, and tart cherries, generates a grocery list organized by store aisle, and lets you swap any meal in one tap.
A few ways MealFrame turns this article into a routine instead of a one-off resolution:
Personalized weekly plans that automatically rotate sleep-friendly proteins, magnesium-rich vegetables, and complex carbs so dinner never gets boring.
Calorie and macro tracking by scanning food with your phone camera, so you see how a heavier or lighter dinner affected your sleep over time.
Smart grocery lists that prevent the "I had a long day, let's just order pizza" spiral that derails most healthy-eating plans.
Adjust on the fly — swap tonight's chicken for salmon, regenerate the day, or scale a recipe for the whole household.
For anyone who wants to actually eat more foods that help you sleep without spending Sundays meal-prepping, an AI-powered meal planning and nutrition tracking app like MealFrame is the most practical way to make it stick.
Frequently asked questions
What food makes you sleep instantly?
No food is a true instant sedative, but tart cherry juice, kiwi, and warm milk with honey are among the fastest-acting options because they combine melatonin or serotonin precursors with a gentle blood-sugar response. Most people notice an effect within 60 to 90 minutes.
Which fruit is best for sleep?
Kiwi has the strongest clinical evidence, followed closely by tart cherries (especially as unsweetened juice) and bananas. All three deliver some combination of serotonin, melatonin, magnesium, or vitamin B6.
Is it bad to eat right before bed?
Large meals within an hour of bedtime can disrupt sleep, trigger reflux, and delay the body's natural temperature drop. A small (150–250 calorie) sleep-friendly snack 60 to 90 minutes before bed, however, can actually improve sleep for people who tend to wake hungry.
What should I drink before bed for better sleep?
The most evidence-backed options are unsweetened tart cherry juice (about 2 oz of concentrate mixed with water), warm milk, and chamomile or passionflower tea. Avoid alcohol, sugary drinks, and anything caffeinated.
Do bananas really help you sleep?
Yes — modestly. Bananas supply potassium, magnesium, and vitamin B6, which together support tryptophan-to-serotonin conversion. They're especially effective paired with a small protein source like Greek yogurt or almond butter.
How long before bed should I stop eating?
Aim to finish your main dinner 2 to 3 hours before bed. A small, nutrient-dense snack 60 to 90 minutes before sleep is fine — and often helpful — for people whose hunger or blood-sugar dips wake them up at night.
The takeaway: sleep is built at dinner
You cannot supplement your way out of a poorly built dinner. The foods that help you sleep work because they supply the exact raw materials — tryptophan, melatonin, magnesium, complex carbs — your brain needs to dim the lights on its own. Add salmon, leafy greens, oats, bananas, and a handful of pistachios to your week. Cut the late caffeine, the second glass of wine, and the 10 p.m. fries. Then give your body two weeks to notice.
If the bottleneck is figuring out what to eat before bed night after night, that's exactly the problem MealFrame, an AI-powered meal planning and nutrition tracking app, was built to solve — turning sleep-supportive eating from a Pinterest board into a 25-minute weeknight dinner you actually look forward to.
This article is for educational purposes and is not medical advice. If you have persistent insomnia or a diagnosed sleep disorder, please consult a healthcare professional or registered dietitian.