Medication & supplements
Foods That Help You Sleep: What Works and What Doesn't
By Angus Munro, Clinical Psychologist (AHPRA PSY0001626434) · Last clinically reviewed 2026-07-10 · 9 min read
If you have searched for foods that help you sleep, you have probably met the usual list: warm milk, turkey, kiwifruit, tart cherry juice, almonds, oily fish. They show up because each one contains a nutrient involved in the body's sleep machinery, usually tryptophan, magnesium, or a small amount of melatonin. Here is the honest version. A calm evening meal can support sleep. No single food overrides a nervous system that is still switched on. Food is part of the floor you sleep on, not the switch that turns sleep on.
I start there for a reason. Most people who ask what foods help you sleep are not curious about nutrition. They are tired, and hoping there is something on a shelf, a food that will help them sleep, that will do the work their body will not. That hope is reasonable. It is also, gently, aimed at the wrong target. Let me show you the mechanism first. Then you can decide what to keep.
What foods are said to help you sleep, and why
The logic behind almost every "sleep food" runs along one path. Certain foods contain tryptophan, an amino acid the body uses to make serotonin, then melatonin, the hormone that rises in the evening to signal night. Turkey, milk, eggs, oats, and nuts all carry tryptophan, so the reasoning goes that eating them should lift melatonin and bring on sleep.
Other foods get named for different reasons. Kiwifruit and tart cherry juice contain small amounts of melatonin directly. Almonds, leafy greens, and legumes carry magnesium, a mineral involved in the nervous system's "off" signalling. Oily fish brings omega-3s and vitamin D, which some research links, loosely, to sleep regulation. Grouped that way, the foods that help with sleep, at least in theory, cluster into a few tidy stories.
So the stories are plausible. That is the important word. Plausible is not the same as proven, and the gap between "this food contains a sleep-related nutrient" and "this food will get you to sleep tonight" is much wider than the marketing suggests.
What the evidence actually says about food for sleep
The direct evidence that any single food meaningfully treats insomnia is thin. Most of it is drawn from the nutrient, not the meal, and often from studies measuring a blood level rather than a night of sleep. When researchers look hard at the isolated compounds people hope to get from food, the results are sobering.
The clearest example is the American Academy of Sleep Medicine's clinical practice guideline. Using a formal grading system, it reviewed the very compounds at the centre of the "sleep food" idea, tryptophan and melatonin among them, and recommended against using them for chronic insomnia, because the evidence quality was low and the benefit over placebo small (Sateia et al., 2017). The same guideline gives even prescription sleeping tablets only weak, conditional recommendations. If the concentrated supplement struggles to clear that bar, a glass of milk is not the switch.
It helps to see where the strong evidence sits. Both major guidelines put a skill, not a substance, first. The European insomnia guideline names cognitive behavioural therapy for insomnia, or CBT-I, as the first-line treatment, with sleep medication reserved for short-term use when that is not enough (Riemann et al., 2023). It is a consensus guideline, so recommendation strengths vary, but the direction is consistent, and it is the foundation my own program is built on.
And even the drugs designed for this do less than people picture. A meta-analysis of the trial data submitted to the FDA found the newer "z-drug" hypnotics brought sleep onset forward by only about 22 minutes on average versus placebo, and a large share of even that was the placebo effect itself (Huedo-Medina et al., 2012). I mention it only to reset the scale. If a purpose-built medication moves the needle that modestly, the question "which food will fix this" is built on a hope no food can carry.
Melatonin-rich foods for sleep: the honest caveat
Melatonin deserves its own note. "Melatonin-rich foods for sleep" is one of the most common searches, and it is where hope and evidence part company most sharply.
Two things are true at once. Foods like tart cherries and kiwifruit do contain melatonin. The amounts are very small, far below what is in a supplement, and there is no good evidence that eating them raises your own melatonin enough to act like a sleeping aid.
Supplemental melatonin is a different object. It is a medicine, not a food, and in Australia most forms of it are prescription-only. As above, the AASM guideline did not recommend it for chronic insomnia (Sateia et al., 2017). If you are thinking about trying it, that is a conversation for your prescriber or pharmacist, not something to reverse-engineer from cherries. I am not going to hand you a dose, because the right answer depends on you and belongs with a clinician who knows your history.
Where food actually fits: the floor, not the treatment
None of this means diet is irrelevant. It means diet is the floor, not the treatment, in the same way sleep hygiene is the floor. It is not the cure, and treating it as the cure is part of what keeps people stuck.
The parts of eating that genuinely affect sleep are mostly subtractive, not additive. Caffeine has a long half-life and can sit in your system for hours, so an afternoon coffee is a more reliable sleep disruptor than any evening food is a sleep aid. Alcohol is the great impostor: it can make you drowsy at first and then fragment the back half of the night, so it borrows sleep and charges interest. A large, heavy meal close to bed can leave you lying down with active digestion and reflux. When you eat also interacts with your circadian rhythm, the clock that governs the timing of alertness and sleepiness.
If one nutrient is worth a closer, honest look, it is magnesium: it has at least a plausible mechanism and is often low in modern diets. Even there, keep expectations modest. I have written separately about magnesium bis-glycinate for sleep, including what it can and cannot reasonably do.
Notice the shape of all this. None of it is a food that makes you sleep. It is the removal of things that keep you awake. Worth doing, but not where the real leverage is.
What the food question is usually really about
Here is the part I most want you to hear.
When someone cannot sleep and reaches for a food as a sleep aid, a supplement, a tea, they are usually not short on tryptophan. They are wired. The body is in a low-grade state of activation, and no nutrient outvotes an activated nervous system. This is why the search itself can become part of the problem. Chasing the perfect sleep food is a form of effort, and sleep is the one domain where more effort makes the outcome worse. It is like drinking seawater when you are thirsty. Every sip feels like it should help. Every sip leaves you drier.
The real variable is arousal, not diet. That is the mechanism that actually maintains insomnia for most people, and it is what an effective approach has to address. It is also why most generic sleep advice underperforms: it hands you one calm-minute technique and expects it to work at every level of activation, when the tool has to match how wired you already are. That matching is the core of the program's arousal-matched approach, and it is a very different thing from a shopping list.
If you want to see your own pattern more clearly, the Sleep Clarity quiz is a structured place to start. It is a way to reflect, not a diagnosis.
When food isn't the issue: what to check with your GP
Sometimes poor sleep is not about arousal or diet at all, and it is worth ruling that out so you are not aiming the right tool at the wrong problem. Loud snoring with pauses in breathing, an irresistible urge to move the legs at night, unexplained daytime sleepiness, or signs that point to something like a thyroid problem all deserve a proper assessment. I am not saying you have any of these. I am saying they are checkable, and a GP is the person to check them. If daytime sleepiness is ever heavy enough to affect your driving, treat that as a safety issue and raise it promptly.
Medication sits in the same "prescriber conversation" category. Sleeping tablets can have a place, usually short-term, and the decision is yours to make with your doctor. It is worth knowing the trade-offs. In adults over 60, a meta-analysis found sedative hypnotics offered only a small improvement in sleep quality while roughly doubling to quadrupling side effects such as next-day grogginess and unsteadiness (Glass et al., 2005), and across most of these drugs the good long-term evidence is thin, since trials mostly run for weeks (De Crescenzo et al., 2022).
If you are already on a sleep medication and want to use less of it, please do not do that alone or abruptly. That is a taper conversation to have with your prescriber. Coming off tends to go better when it is paired with behavioural support: a randomised trial in older long-term users found that combining a supervised, gradual taper with CBT-I produced far higher medication-free rates than tapering by itself (Morin et al., 2004), and deprescribing guidelines recommend a slow, prescriber-guided reduction rather than a hard stop (Pottie et al., 2018). Behavioural support is exactly what my program is: the skill the evidence points to, refined for the sleep-anxiety and hyperarousal that keep the loop running.
Frequently asked questions
What are the best foods to eat before sleep?
A light, ordinary meal you digest comfortably, not too close to bedtime. The best foods to eat before sleep are less about a magic ingredient and more about not creating a disturbance, so lean toward moderate portions and away from a lot of caffeine or alcohol in the evening. No specific food has strong evidence as a sleep aid, so choose for comfort, not for a promised effect.
Do melatonin-rich foods actually work as a sleep aid?
There is no good evidence that melatonin-rich foods work as a reliable sleep aid. The melatonin in foods like cherries and kiwifruit is present in very small amounts, and a leading clinical guideline recommends against even supplemental melatonin for chronic insomnia (Sateia et al., 2017). If you are considering melatonin as a medicine, raise it with your prescriber or pharmacist.
Is there a single food for sleeplessness?
No, and I would be cautious of any source that promises one. Food can support good conditions, but it does not override an activated nervous system, which is what usually keeps a wired person awake. The more useful question is what is driving the arousal, not what to eat for it.
What foods should I avoid before bed?
This is where diet has the most reliable effect. Caffeine well into the afternoon, alcohol in the evening, and very large or rich meals close to bedtime are the common culprits. Removing a disruptor is more dependable than adding a so-called sleep food.
Can changing my diet cure my insomnia?
On its own, unlikely. Diet is part of the floor, alongside light and timing. Worth getting sane, but not the treatment. Chronic insomnia is maintained mostly by arousal and the habits built around it, which is what a CBT-I-informed approach is designed to change. If your sleep has been a struggle for a while, look at the pattern itself rather than the menu.
Frequently asked questions
What are the best foods to eat before sleep?
A light, ordinary meal you digest comfortably, not too close to bedtime. The best foods to eat before sleep are less about a magic ingredient and more about not creating a disturbance, so lean toward moderate portions and away from a lot of caffeine or alcohol in the evening. No specific food has strong evidence as a sleep aid, so choose for comfort, not for a promised effect.
Do melatonin-rich foods actually work as a sleep aid?
There is no good evidence that melatonin-rich foods work as a reliable sleep aid. The melatonin in foods like cherries and kiwifruit is present in very small amounts, and a leading clinical guideline recommends against even supplemental melatonin for chronic insomnia (Sateia et al., 2017). If you are considering melatonin as a medicine, raise it with your prescriber or pharmacist.
Is there a single food for sleeplessness?
No, and I would be cautious of any source that promises one. Food can support good conditions, but it does not override an activated nervous system, which is what usually keeps a wired person awake. The more useful question is what is driving the arousal, not what to eat for it.
What foods should I avoid before bed?
This is where diet has the most reliable effect. Caffeine well into the afternoon, alcohol in the evening, and very large or rich meals close to bedtime are the common culprits. Removing a disruptor is more dependable than adding a so-called sleep food.
Can changing my diet cure my insomnia?
On its own, unlikely. Diet is part of the floor, alongside light and timing. Worth getting sane, but not the treatment. Chronic insomnia is maintained mostly by arousal and the habits built around it, which is what a CBT-I-informed approach is designed to change. If your sleep has been a struggle for a while, look at the pattern itself rather than the menu.
Work on the mechanism, not another tip
Insomnia Reset is a structured, psychologist-designed program for exactly this pattern. If you're ready to work on the mechanism rather than chase another tip, that's what it's for.
Explore Insomnia Reset →