You can do everything right in the gym and still feel flat the next day if your sleep is off. Training, recovery, mood, and appetite all lean on good rest. The reverse is also true: what and when you eat can make it easier or harder to fall asleep and stay asleep.

Food isn’t a sleep cure, and no single meal will fix a rough week. But a few steady habits can nudge things in the right direction. This guide covers what studies suggest, what to try first, and how to build an evening routine that fits real life.

How food and sleep affect each other

Sleep and eating run on the same internal clock. Your body expects food, light, and activity at fairly predictable times, and it uses those cues to decide when to feel alert and when to wind down.

That’s why a late, heavy meal or a day of erratic eating can leave you feeling wired at bedtime. It’s also why a poor night of sleep often leads to stronger cravings the next day, especially for sugary or very salty foods. Studies suggest that short sleep can change appetite signals, which makes the “I need a snack” feeling louder than usual.

The takeaway is not to eat perfectly. It’s to be consistent, so your body can predict what’s coming.

Start with meal timing

Timing is often the easiest lever to pull, and it costs nothing.

Give dinner some room

Most people sleep more comfortably when they’ve finished a full meal two to three hours before bed. Lying down on a full stomach can lead to discomfort or reflux, and your body is still busy digesting when it would rather be settling in.

If you train in the evening or get home late, this isn’t always possible. In that case, keep dinner moderate and lean on easier-to-digest foods rather than a huge, greasy plate.

Eat enough during the day

Under-eating early and then overeating at night is a common pattern. A solid breakfast and lunch can take the pressure off your evening. If you’re stuck in a cycle of skipping meals, our guide to high-protein breakfasts that keep you full until lunch is a good place to start.

Keep a regular rhythm

Aim to eat meals at roughly the same times most days. You don’t need a stopwatch. A rough window is enough to give your body a pattern.

Foods that may support better sleep

No food is magic, but some are worth building into your evenings.

Complex carbohydrates

Carbs get a bad reputation, but they can play a helpful role at night. Some research suggests that including carbohydrates in an evening meal may help with winding down. Think oats, brown rice, potatoes, whole-grain bread, or fruit.

If you’re active, carbs also help refill your energy stores, which matters for recovery. We break this down in carbs and recovery: how much do you really need.

Protein, in reasonable amounts

Protein-rich foods contain amino acids your body uses to make the chemical messengers involved in mood and sleep. Eggs, yogurt, fish, poultry, tofu, and beans are all good options. You don’t need a giant portion at night. A palm-sized serving with your dinner is plenty for most people. For the bigger picture on daily intake, see our protein overview.

Magnesium-rich foods

Magnesium is a mineral involved in muscle relaxation and nerve function. Foods like pumpkin seeds, almonds, leafy greens, black beans, and whole grains are good sources. Eating them regularly is a sensible habit even if the evidence on sleep is still developing.

Foods with natural melatonin or tryptophan

Tart cherries, kiwi, milk, and nuts are often mentioned for sleep. Studies on these are generally small, and results vary from person to person. Still, they’re nutritious, and a small bowl of yogurt with fruit or a few nuts is a pleasant evening snack with little downside.

Glycine, from food

Glycine is an amino acid found in protein foods such as meat, fish, and gelatin-rich dishes like bone broth. It plays a role in the body’s calming pathways. If you’re curious, you can read more on our glycine page.

What to cut back on (or move earlier)

You don’t need to give up your favorites. Small shifts in timing often do the job.

A simple evening snack plan

If you get hungry before bed, a small snack is better than lying awake with a growling stomach. Aim for something light that combines a little carbohydrate with a little protein or healthy fat:

Keep portions modest. The goal is to take the edge off, not to eat a second dinner.

Try this week: a five-day sleep-friendly experiment

Pick changes you can actually stick with, and give them about a week before judging. Here’s a simple plan:

  1. Set a caffeine cutoff. Choose a time in the early afternoon and stick to it for five days.
  2. Finish dinner earlier. Aim for at least two hours before bed, even if it’s only a modest shift.
  3. Add a carb and protein to dinner. A plate with a grain or potato, a protein, and vegetables covers it.
  4. Plan one backup snack. Keep it on hand so you’re not scrambling at 10 p.m.
  5. Jot down how you feel. A quick note each morning about how long it took to fall asleep and how rested you feel will show you what’s working.

Change one or two things at a time. If you change everything at once, you won’t know what helped.

Don’t forget the non-food basics

Food is one piece of the puzzle. Dim lights in the evening, keep your bedroom cool and dark, get daylight in the morning, and try to keep a regular bedtime. Regular exercise helps too, though very intense sessions right before bed can leave some people feeling wired.

If you’ve tried these steps and still struggle with sleep, or if you snore heavily, feel exhausted all day, or wake up gasping, talk with a healthcare professional. Persistent sleep problems deserve proper attention, and this article is general wellness guidance, not medical advice.

For more on building an overall eating approach that supports training and recovery, browse our full article library.

FAQ

Is it bad to eat right before bed?

Not necessarily. A large meal close to bedtime can be uncomfortable for many people, but a small, balanced snack is usually fine and can help if you’re hungry. Pay attention to how your own body responds.

Do I need supplements to sleep better?

Most people can make meaningful progress with food, timing, and daily habits alone. If you’re considering a supplement, check with a healthcare professional first, especially if you take medication or have a health condition.

How long before I notice a difference?

Some people feel a change within a few days, while others need a couple of weeks of consistent habits. Give each change a fair trial, track how you feel, and keep what works for you.

Educational content, not medical advice. Talk to a qualified professional before making changes to your health routine.