How Long Before Bed Should You Stop Eating?

You should stop eating about three hours before you go to sleep. This window gives your body enough time to digest your last meal so it won’t interfere with sleep quality, blood sugar regulation, or acid reflux, while still being short enough that you won’t climb into bed hungry.

Why Three Hours Is the Standard

The three-hour guideline comes down to digestion timing. When you eat, your stomach ramps up acid production to break food down. If you lie flat before that process wraps up, stomach acid can creep into your esophagus, causing heartburn or worsening acid reflux. For anyone who already deals with reflux, eating within two to three hours of bedtime is one of the most reliable triggers.

But digestion isn’t the only issue. Your body treats food differently at night than it does earlier in the day, and that difference has measurable consequences for sleep, metabolism, and long-term health.

How Late Eating Disrupts Sleep

What you eat and when you eat it both shape how well you sleep. High-fat foods consumed close to bedtime are associated with less REM sleep, the stage critical for memory and emotional processing. Heavy evening meals also reduce overall sleep efficiency and the percentage of deep, restorative sleep.

Interestingly, the timing of carbohydrates matters in a specific way. High-glycemic carbs eaten four hours before bed actually helped people fall asleep faster in controlled studies, while the same foods eaten just one hour before bed did not have that benefit. So even “sleep-friendly” foods lose their advantage when you eat them too close to lights-out.

The Melatonin and Insulin Conflict

Your body starts releasing melatonin roughly two hours before your usual bedtime. Melatonin does more than make you drowsy. It also directly interferes with insulin secretion, which is the hormone responsible for clearing sugar from your blood after a meal.

Research from Harvard-affiliated labs found that when people ate a late dinner during the window when melatonin was already elevated, their melatonin levels were 3.5 times higher than when they ate earlier. That spike came with 6.7% less insulin output and 8.3% higher blood sugar compared to eating the same meal earlier in the evening. In plain terms, your body becomes temporarily worse at processing food the closer you eat to bedtime. This effect was especially pronounced in about half of participants who carried a common genetic variant, but it applies to some degree across the board. Roughly a third of people in industrialized countries regularly eat during this vulnerable window.

Late Eating and Weight Gain

Calories don’t change based on the clock, but your body’s handling of them does. A study from Harvard Medical School found that when people ate later in the day, they burned calories at a slower rate. More importantly, fat tissue itself behaved differently: gene expression shifted toward storing more fat and breaking down less of it. This wasn’t about eating more food overall. Same calories, same people, different metabolic outcome based purely on timing.

This helps explain why consistent late-night eating is linked to weight gain even when total calorie intake stays the same. Your metabolism simply isn’t as efficient at processing energy in the hours before sleep.

When You Need to Eat Closer to Bed

The three-hour rule has important exceptions. If you take insulin or certain diabetes medications, you may need a bedtime snack to prevent blood sugar from dropping dangerously low overnight. This is a real safety concern, not a preference. If you find yourself needing late snacks regularly to avoid nighttime low blood sugar, that’s worth discussing with your doctor since it may signal a medication dose that needs adjusting.

Shift workers, people with demanding training schedules, and anyone who eats dinner unusually early (say, 5 p.m. with a midnight bedtime) may also need something small before sleep. Going to bed genuinely hungry can disrupt sleep just as much as going to bed too full.

What to Eat if You’re Hungry Before Bed

If you do need to eat within that three-hour window, the goal is a small snack that combines a little protein with complex carbohydrates and minimal fat. This combination keeps blood sugar stable through the night while supporting the release of tryptophan, a building block your brain uses to produce serotonin and melatonin.

Some practical options:

  • Peanut butter on whole grain bread, which pairs protein and healthy fat with slow-digesting carbs
  • Greek yogurt with sliced banana, providing tryptophan plus magnesium and potassium
  • A small handful of almonds or pistachios, both natural sources of melatonin
  • Cheese on whole grain crackers, combining tryptophan-rich dairy with complex carbs
  • Unsweetened tart cherry juice, one of the few foods with meaningful amounts of melatonin

Avoid anything greasy, spicy, or high in sugar. Fat slows digestion and keeps your stomach working longer. Sugar spikes blood glucose right when your insulin response is weakest. A snack in the 150 to 200 calorie range is usually enough to take the edge off hunger without triggering the metabolic problems associated with a full late meal.

A Simple Timing Framework

If your bedtime is 10:30 p.m., finish your last full meal by 7:30. If you get hungry after that, a light snack before 9:30 keeps you outside the window when melatonin levels are highest and insulin function is most compromised. The further you can push your last bite from your actual sleep time, the better your body handles it.

Consistency matters as much as timing. Your digestive system, like your sleep cycle, runs on a roughly 24-hour clock. Eating at predictable times trains your body to expect and efficiently process food during those windows. Sporadic late meals disrupt that rhythm in ways that compound over weeks and months, affecting everything from sleep quality to how your body stores fat.