Knowledge to 
Improve Wellness

Our library of blogs provide simple explanations and actionable tips to empower you to take control of your health.

Categories
< Go back
  • /articles/how-to-improve-sleep-quality-through-nutrition-chinese-simplified

  • /articles/how-to-improve-sleep-quality-through-nutrition-chinese-tradition

  • /articles/how-to-improve-sleep-quality-through-nutrition-spanish

  • /articles/how-to-improve-sleep-quality-through-nutrition-vietnamese

How to Improve Sleep Quality Through Nutrition

Nina Ghamrawi, MS, RD, CDE
July 16, 2026
July 16, 2026

Getting good sleep isn't just about winding down with a book or dimming the lights. It's chemistry, and it runs on a clock. Your body has an internal rhythm — a circadian clock and a daily cortisol curve — that decides when you feel alert and when you feel sleepy. What and when you eat either works with that clock or against it. Here's how to actually use nutrition to support better sleep, night after night.

Your Body Runs on Two Clocks

Before we get to food, it helps to understand what you're actually working with. Your circadian rhythm is your internal 24-hour clock — it governs when melatonin rises, when you feel hungry, and when your body is ready to wind down. Layered on top of it is your cortisol curve: cortisol should spike shortly after you wake up to get you alert, then gradually taper through the day so it's low by bedtime.

Both clocks respond to input — light, timing, and food are the biggest signals you control. When your circadian rhythm or cortisol curve gets thrown off (irregular sleep schedules, shift work, late-night light exposure), you'll feel it: trouble falling asleep, energy crashes, and stronger cravings for sugar and refined carbs. For the full breakdown of what disrupts these rhythms and how to reset them, see Tips to Reset Your Circadian Rhythm and The Secret to Regaining Your Energy? Reset Your Daily Cortisol Curve. Nutrition is one of the levers you can pull to keep both clocks on schedule.

The Chemistry Behind a Good Night's Sleep

Falling asleep isn't just a matter of willpower — it's chemistry. Three nutrients do most of the heavy lifting: melatonin (the hormone that signals bedtime), magnesium (which relaxes your nervous system and muscles), and glycine (which helps your core body temperature drop enough to fall asleep). Tryptophan, an amino acid found in turkey, dairy, eggs, and nuts, is what your body converts into serotonin and then melatonin.

We have other articles that go into the deep science behind sleep, but for now, the important thing to know is that food is quite literally where your body gets the raw materials to build its own sleep system.

What to Eat to Support Better Sleep

Certain foods are especially good sources of these sleep-supporting nutrients:

  • Tryptophan-rich foods: turkey, eggs, cheese, tofu, and dairy
  • Complex carbohydrates: oats, sweet potatoes, and whole grains, which help tryptophan reach your brain more easily
  • Magnesium-rich foods: almonds, pumpkin seeds, spinach, and dark chocolate
  • Calcium sources: dairy, dark leafy greens, or fortified plant-based milk, which help your brain use tryptophan effectively
  • Herbal teas: chamomile, lemon balm, and passionflower — gentle, non-caffeinated options for winding down

A great light snack: half a banana with a spoonful of almond butter, or a small bowl of oatmeal with warm milk — both pair a complex carb with a tryptophan source. For the full list of specific sleep foods (tart cherries, kiwi, fatty fish, and more) and exactly how each one works, see The Science of Sleep: The Foods That Help You Sleep Like You Mean It (companion article, EDU-1584 — link once published).

Timing Matters as Much as What's on Your Plate

Aim to finish your last full meal 2 to 3 hours before bedtime — eating too close to bedtime can cause heartburn, indigestion, or disrupted sleep as your body tries to digest and wind down at the same time.

But timing goes beyond dinner. Your cortisol curve wants protein, healthy fats, and fiber earlier in the day to keep you alert and your blood sugar steady, and a calmer, lighter approach to food in the evening to support the natural drop in cortisol before bed. Front-loading your bigger meals earlier and keeping dinner lighter works with your rhythm instead of against it.

Blood Sugar and Sleep

If you manage diabetes or prediabetes, there's another layer worth understanding: blood sugar swings overnight can wake you up just as easily as caffeine or noise. A blood sugar crash in the middle of the night can trigger a stress hormone response that pulls you out of deep sleep, and a spike before bed can make it harder to fall asleep in the first place.

A balanced bedtime snack — pairing a complex carb with protein or a sleep-supporting nutrient, like the almond butter and banana combo above — can help keep your blood sugar steadier overnight. If you use a CGM, this is worth watching for a few nights: overnight glucose swings and poor sleep quality tend to show up together.

What to Avoid, and Why

  • Caffeine: stays in your system for up to 8 hours, and hides in more places than coffee — tea, chocolate, and some medications included. Cut it off by early-to-mid afternoon, or earlier if your blood pressure is sensitive.
  • Alcohol: might make you feel drowsy at first, but it disrupts deep sleep and causes more nighttime waking.
  • Heavy, spicy, or fatty meals: take longer to digest and can cause discomfort or reflux when you lie down.
  • Sugar and refined carbs: can spike blood sugar, which may crash overnight and disturb sleep (see Blood Sugar and Sleep, above).

Stress is a factor here too. If nighttime worry or a racing mind is what's actually keeping you up, nutrition alone won't fix it — read "What You Can Do About Chronic Sleep Deprivation" to learn techniques like a bedtime brain dump and box breathing that pair well with the nutrition habits here.

A Sample Sleep-Friendly Day

  • Morning: protein-rich breakfast (eggs, yogurt) and natural light within 30 minutes of waking, to support your cortisol curve.
  • Afternoon: balanced meals with protein, healthy fats, and fiber; last caffeine by early-to-mid afternoon.
  • Evening: lighter dinner finished 2–3 hours before bed; dim the lights; if you want a snack, reach for one that pairs a complex carb with a sleep nutrient — tart cherries and a small handful of walnuts, or warm milk with a few pumpkin seeds.
This image is AI-Generated.

When Food Isn't Enough

Sometimes poor sleep is a sign of something nutrition alone can't fix — low iron, vitamin D, or B6 levels are all linked to sleep trouble, and are worth checking with your care team rather than guessing at a supplement. The same goes for persistent stress, sleep apnea, parkinsons disease, or other underlying issues; nutrition is one piece of a larger picture.

Takeaways

If you want better sleep, start with your plate, but remember it's working alongside your body's internal clock. Stop eating a few hours before bed, build meals around calming nutrients like magnesium and tryptophan, and time your bigger meals earlier in the day to support your natural cortisol rhythm. Avoid stimulants like caffeine and sugar in the evening. And if you want the full science or a deeper dive on any piece of this — the specific foods, the nutrients behind them, resetting your circadian rhythm, or your daily cortisol curve — the related articles below go much deeper. Let your nutrition work with your body's natural rhythms, not against them.

Need help from us?

Chat with your Care Team on the app, or call us at 1-866-899-3998

Already enrolled?

Scan to login and message your Care Team

QR code to download the Unified Care app