If you’re having trouble falling or staying asleep, try eating some sleep-supportive foods like almonds, yoghurt, whole grains or even just a warm glass of milk. Science may eventually catch up with grandma’s advice on everything from magnesium to tryptophan. Keep in mind that modifying when and what you eat may have a significant impact on your ability to get a good night’s sleep. Let’s get into it in detail.
Getting a solid seven hours or more of sleep each night is essential for maintaining energy levels, enhancing mood and regulating hunger signals. Studies indicate that sleep deprivation increases cravings for high-fat, high-sugar snacks, leading to greater overall consumption.
Sleep goes far beyond merely shutting your eyes. It is a sophisticated interplay of neurohormones, orchestrated by circadian rhythms and influenced by melatonin (sleep hormone). Remarkably, the building blocks of melatonin originate directly from what you eat. Unfortunately, this delicate equilibrium is often disrupted by modern lifestyle factors such as irregular eating schedules, excessive caffeine intake and blue-light exposure. From warm milk before bed to eating nut-based laddoos at night, there are nutrition-rich foods with strong biological foundations that help support the sleep cycle.
Melatonin, a naturally occurring hormone that induces sleep, is derived from the amino acid tryptophan, which is present in a variety of foods such as dairy products, chicken, nuts, seeds, legumes and whole grains. You may manage your sleep-wake cycle with the help of serotonin (‘the feel-good hormone’) and melatonin, which your body produces when you consume meals high in tryptophan.
Food sources rich in tryptophan include1:
Food group |
Food source |
Amount of tryptophan (per 100g) |
Dairy |
Cheddar cheese |
574mg |
Parmesan cheese |
482mg |
|
Seafood |
Crab |
330mg |
Salmon |
285mg |
|
Shrimp |
260mg |
|
Grains |
Oats |
234mg |
Buckwheat (Kuttu) |
192mg |
|
Legumes |
Soyabean, roasted |
575mg |
Kidney beans (Rajmah) |
104mg |
|
Lentils (Dals) |
81mg |
|
Nuts and seeds |
Chia seeds |
436mg |
Sesame seeds |
371mg |
|
Flax seeds |
297mg |
|
Sunflower seeds |
295mg |
|
Almonds |
209mg |
|
Poultry |
Chicken breast |
404mg |
Egg, whole |
167mg |
Table 1: Tryptophan rich food sources (*Raw weight)
The production of serotonin and melatonin is influenced by B vitamins (B5, B6) and magnesium. The calming effects of magnesium on the muscles, the reduction in neuronal excitability and the amelioration of oxidative stress all contribute to a more restful night’s sleep. To produce essential sleep hormones, B5 and B6 are required as co-factors.
Foods that are rich in magnesium include14:
Food group |
Food source |
Amount of magnesium (per 100g) |
Cereals & Pulses |
Amaranth, pale brown |
270 |
Ragi |
146 |
|
Wheat flour |
125 |
|
Bengal gram, whole |
160 |
|
Cowpea, brown |
213 |
|
Soya bean, brown |
259 |
|
Green leafy vegetables |
Amaranth leaves, red and green |
146 |
Betel leaves, big |
107 |
|
Fruits |
Banana |
43.79 |
Dry dates |
73.79 |
|
Nuts & Seeds |
Almonds |
318 |
Garden cress seeds |
307 |
|
Sesame seeds, white |
372 |
|
Flaxseeds |
349 |
|
Sunflower seeds |
413 |
Some foods contain melatonin directly or promote its production:
Fruit: Tomatoes, bananas, cherries and kiwis.
Nuts: Shiitake mushrooms, sweetcorn and bitter gourd.
Vegetables: Walnuts (natural source of melatonin).
Studies indicate that consuming one to two kiwifruit before bedtime may help you fall asleep more quickly and enjoy a longer sleep duration.
It has been observed that short sleepers tend to consume higher amounts of energy, particularly from snacks and sugary foods, compared to normal sleepers. Carbohydrates, as the primary macronutrient in the diet, contribute more than half of total energy intake.
At night-time, however, quality carbohydrates aren’t the enemy but rather your ally. Slow-release energy from whole grains, fruits and legumes may help maintain steady blood sugar levels and stave off midnight snack attacks, whereas refined options could keep you up at night. Having a modest quantity of complex carbohydrates (such as oats or wholewheat bread) with protein before bed may help you get a good night’s rest.
For a soothing way to unwind after dinner, try a cup of herbal tea that is caffeine-free. Herbal infusions such as chamomile and ashwagandha may promote relaxation9,11.
Chamomile contains apigenin, which binds to GABA receptors10.
Ashwagandha has shown benefits in improving sleep quality and total sleep time.11
NOTE: While these teas may help promote sleep, if you suffer from persistent insomnia, you should still see a doctor.
The way you eat is just as crucial as the food itself. These three principles can help you become an expert in diet and sleep:
If you consume caffeine, it can stay in your system for six to eight hours. When the sun goes down, say no to caffeine and drink herbal teas instead.
Do your best to avoid acid reflux and delayed stomach emptying by leaving at least two to three hours between your last meal and going to bed.
To keep your ‘sleep architecture’ steady, opt for a light dinner that includes protein and potassium-rich foods (such as dates or bananas).
There is no one ‘superfood’ that can guarantee a good night’s sleep; rather, it is about striking a balance between adequate micronutrient intake, stable blood glucose levels, a healthy gut microbiota and proper hormonal rhythm alignment.
[Content reviewed and verified for accuracy by Dr Reedhika Puliani, Certified Dietitian]
References:
Zuraikat, F.M., Wood, R.A., Barragán, R. and St-Onge, M.P., 2021. Sleep and diet: mounting evidence of a cyclical relationship. Annual review of nutrition, 41(1), pp.309-332.
Peuhkuri, K., Sihvola, N. and Korpela, R., 2012. Diet promotes sleep duration and quality. Nutrition research, 32(5), pp.309-319.
He, C., Wang, B., Chen, X., Xu, J., Yang, Y. and Yuan, M., 2025. The Mechanisms of Magnesium in Sleep Disorders. Nature and Science of Sleep, pp.2639-2656.
Abbasi, B., Kimiagar, M., Sadeghniiat, K., Shirazi, M.M., Hedayati, M. and Rashidkhani, B., 2012. The effect of magnesium supplementation on primary insomnia in elderly: A double-blind placebo-controlled clinical trial. Journal of research in medical sciences: the official journal of Isfahan University of Medical Sciences, 17(12), p.1161.
Reiter, R.J., Manchester, L.C. and Tan, D.X., 2005. Melatonin in walnuts: influence on levels of melatonin and total antioxidant capacity of blood. Nutrition, 21(9), pp.920-924.
Lin, H.H., Tsai, P.S., Fang, S.C. and Liu, J.F., 2011. Effect of kiwifruit consumption on sleep quality in adults with sleep problems. Asia Pacific journal of clinical nutrition, 20(2), pp.169-174.
Kanon, A.P., Giezenaar, C., Roy, N.C., McNabb, W.C. and Henare, S.J., 2023. Acute effects of fresh versus dried Hayward green kiwifruit on sleep quality, mood, and sleep-related urinary metabolites in healthy young men with good and poor sleep quality. Frontiers in Nutrition, 10, p.1079609.
Zhao, Y. and Guo, H., 2024. The relationship between carbohydrate intake and sleep patterns. Frontiers in Nutrition, 11, p.1491999.
Hieu, T.H., Dibas, M., Surya Dila, K.A., Sherif, N.A., Hashmi, M.U., Mahrous, M., Trang, N.T.T., Abdullah, L., Nghia, T.L.B., Hirayama, K. and Huy, N.T., 2019. Therapeutic efficacy and safety of chamomile for state anxiety, generalized anxiety disorder, insomnia, and sleep quality: A systematic review and meta‐analysis of randomized trials and quasi‐randomized trials. Phytotherapy Research, 33(6), pp.1604-1615.
Zick, S.M., Wright, B.D., Sen, A. and Arnedt, J.T., 2011. Preliminary examination of the efficacy and safety of a standardized chamomile extract for chronic primary insomnia: a randomized placebo-controlled pilot study. BMC complementary and alternative medicine, 11(1), p.78.
Deshpande, A., Irani, N., Balkrishnan, R. and Benny, I.R., 2020. A randomized, double blind, placebo controlled study to evaluate the effects of ashwagandha (Withania somnifera) extract on sleep quality in healthy adults. Sleep medicine, 72, pp.28-36.
Yan, L.M., Li, H.J., Fan, Q., Xue, Y.D. and Wang, T., 2024. Chronobiological perspectives: Association between meal timing and sleep quality. Plos one, 19(8), p.e0308172.
Vernia, F., Di Ruscio, M., Ciccone, A., Viscido, A., Frieri, G., Stefanelli, G. and Latella, G., 2021. Sleep disorders related to nutrition and digestive diseases: a neglected clinical condition. International journal of medical sciences, 18(3), p.593.
Indian Foods Composition Table (IFCT, 2017)
Gardiner, C., Weakley, J., Burke, L.M., Roach, G.D., Sargent, C., Maniar, N., Huynh, M., Miller, D.J., Townshend, A. and Halson, S.L., 2025. The effect of alcohol on subsequent sleep in healthy adults: A systematic review and meta-analysis. Sleep Medicine Reviews, 80, p.102030.
O’callaghan, F., Muurlink, O. and Reid, N., 2018. Effects of caffeine on sleep quality and daytime functioning. Risk management and healthcare policy, pp.263-271.
Mittal, P., Mehrotra, M., Agarwal, M.B. and Panday, M.K., 2024. Role of vitamins in brain function. Optimizing brain health and performance through essential nutrients and lifestyle changes. Agra, India: SAAR Publications, pp.83-97.
Sutanto, C.N., Loh, W.W. and Kim, J.E., 2022. The impact of tryptophan supplementation on sleep quality: a systematic review, meta-analysis, and meta-regression. Nutrition reviews, 80(2), pp.306-316.
Mah, J. and Pitre, T., 2021. Oral magnesium supplementation for insomnia in older adults: a systematic review & meta-analysis. BMC complementary medicine and therapies, 21(1), p.125.