How Many Hours Before Bed Should You Stop Eating?

Most experts recommend finishing your last meal at least three to four hours before bed. That window gives your body enough time to digest food so your stomach isn’t actively working when you lie down. The exact number depends on what you ate, how much, and whether you’re managing a health condition, but four hours is the most commonly cited target.

Why Four Hours Is the Standard Recommendation

It typically takes about four hours to digest a full meal. If your gastrointestinal tract is still processing food when you try to sleep, your body is splitting its energy between digestion and the restorative processes that happen during rest. A gastroenterologist at Kettering Health recommends finishing dinner at least four hours before bed regardless of your sleep schedule, and treating that cutoff as the last window for all eating, including snacking.

A study of young adults in Japan divided participants into groups based on how long they waited between dinner and bedtime. Those who waited about five hours or more fell asleep in roughly 20 minutes on average. People who ate closer to bedtime took significantly longer: around 27 to 31 minutes. That difference of 10 extra minutes might sound small, but it compounds over time and reflects a real disruption in the body’s ability to transition into sleep.

How Late Eating Affects Acid Reflux

Lying down with a full stomach is one of the most reliable triggers for nighttime acid reflux. Gravity normally helps keep stomach acid where it belongs, but when you’re horizontal and still digesting, acid can flow back into your esophagus. The American Academy of Allergy, Asthma, and Immunology recommends avoiding lying down for at least two to three hours after a meal to reduce this risk. If you already deal with reflux or heartburn, the four-hour window becomes especially important.

What Happens to Your Metabolism

Your body doesn’t process the same food the same way at every hour. Glucose tolerance and hormone responses follow a circadian rhythm, meaning your cells handle sugar and nutrients more efficiently earlier in the day. Research published in The Lancet’s eBioMedicine found that people who consumed the bulk of their calories later relative to their internal body clock had lower insulin sensitivity, higher fasting insulin levels, and higher BMI and waist circumference. These associations held even after adjusting for total calorie intake and sleep duration.

The mechanism behind this involves your body’s internal clocks. Your brain has a central clock that responds to light, but your liver, pancreas, and other organs have their own clocks that respond strongly to food. When you eat late at night, insulin release signals those organ clocks to shift their timing. This creates a mismatch between your central clock (which knows it’s nighttime) and your peripheral clocks (which think it’s time to be active). That internal conflict disrupts metabolic function and, over time, can contribute to weight gain and blood sugar problems. Night shift workers, who routinely eat during biological nighttime, show some of the clearest evidence of these adverse metabolic effects.

If You Need to Eat Before Bed

Sometimes a late snack is unavoidable or even necessary. If you take insulin or certain diabetes medications, a bedtime snack can prevent dangerously low blood sugar overnight. In that case, eating before bed is the right call.

For everyone else, the key is keeping the snack small and choosing the right foods. Research suggests that a simple snack under 150 calories, combining some protein with carbohydrates, is least disruptive and may even boost morning metabolism. High-fat and high-sugar meals close to bedtime tend to make it harder to fall asleep and reduce overall sleep quality.

Some foods contain compounds that actively support sleep:

  • Kiwis: In one study, eating two kiwis an hour before bed for four weeks helped participants fall asleep faster and sleep longer.
  • Tart cherries or tart cherry juice: These contain melatonin and other compounds that improve sleep quality and reduce insomnia symptoms.
  • Bananas, almonds, and oats: All good sources of magnesium, which plays a role in sleep regulation. Oats also contain small amounts of melatonin.
  • Pistachios and pumpkin seeds: Pistachios have the highest melatonin content of any nut, and both contain tryptophan, a building block for sleep-promoting brain chemicals.
  • Yogurt: Rich in calcium, protein, and B vitamins. It also contains GABA, a compound that helps calm the nervous system.

Pineapple, oranges, and bananas have been shown to increase the body’s own melatonin production about two hours after eating, which makes them reasonable options for an early-evening snack if dinner was light.

Putting the Timing Together

If you go to bed at 10 p.m., finishing dinner by 6 p.m. is ideal. If your schedule has you sleeping at midnight, aim to wrap up eating by 8 p.m. The principle stays the same regardless of when you sleep: give your body a four-hour buffer. If that’s not realistic on a given night, even two to three hours helps, especially for reducing reflux and giving your stomach a head start on digestion.

Beyond the specific hour count, the broader pattern matters too. Shifting your calorie intake earlier in the day, so that lunch is your largest meal rather than dinner, aligns better with your body’s natural metabolic rhythm. Your glucose tolerance is highest in the morning and declines as the day goes on. Eating in sync with that pattern, rather than against it, supports better blood sugar control, healthier weight, and more restful sleep.