How Many Hours Before Bed Should You Stop Eating?

Most experts recommend finishing your last meal at least two to three hours before bed, with four hours being ideal if you want the best digestion and sleep quality. The exact window depends on what you ate, how much, and whether you’re prone to acid reflux or blood sugar issues.

The Two-to-Four-Hour Window

Your stomach needs time to move food into the small intestine before you lie down. A two-to-three-hour gap after solid food is generally enough to reduce the risk of acid reflux and indigestion. If you ate a large or high-fat meal, four hours is more realistic, since fat slows digestion considerably. Clear liquids like water pass through the stomach fastest, full liquids like protein shakes take longer, and solid foods (especially rich ones) are the slowest to clear.

When you lie down with a full stomach, gravity can no longer help keep digestive acids where they belong. Stomach acid flows more easily into the esophagus in a reclined position, which is why people who eat right before bed often wake up with heartburn. If you do eat late, staying upright for at least 30 minutes afterward helps reduce that risk.

Why Acid Reflux Gets Worse With Late Meals

A study published in The American Journal of Gastroenterology found that people who went to bed less than three hours after dinner were over seven times more likely to experience reflux symptoms compared to those who waited four hours or more. That’s a dramatic increase, and it held up even after accounting for body weight, smoking, and alcohol use. If you already deal with heartburn or GERD, this timing window matters more for you than for the average person.

Late Eating and Blood Sugar

Eating close to bedtime doesn’t just affect your gut. It also disrupts how your body handles blood sugar. Research from Massachusetts General Hospital found that when people ate a late dinner, their melatonin levels were 3.5 times higher than during an earlier meal. That matters because high melatonin combined with carbohydrate intake impairs insulin secretion. The result: blood sugar stays elevated when it should be dropping for the night.

In practical terms, your body becomes temporarily worse at processing the same food simply because of when you ate it. Insulin levels drop while blood sugar rises, a pattern that, over time, may contribute to insulin resistance. The researchers suggested abstaining from food for at least a couple of hours before sleep as a general guideline.

Late Meals and Weight Gain

A Harvard study tested two identical diets on 16 overweight participants, changing only the timing. On one schedule, the last meal ended six and a half hours before bed. On the other, the same meals were shifted four hours later, finishing just two and a half hours before bed. Eating later increased hunger, decreased the number of calories burned, and promoted fat storage. Same calories, same food, different outcome based purely on timing.

Johns Hopkins Medicine recommends eating your last food of the day between 5:00 and 7:00 PM for optimal metabolic health, aligning your eating window with your body’s natural 24-hour clock. That’s not always realistic, but it illustrates the general principle: earlier dinners are better than later ones.

What to Eat if You’re Hungry Before Bed

Sometimes you’re going to eat late. That’s life. When you do, choosing the right foods makes a real difference in how well you sleep and how your body responds. The best bedtime snacks are small, easy to digest, and ideally contain nutrients that support sleep rather than disrupt it.

  • Bananas are rich in magnesium and potassium, both of which can improve sleep quality. One study found that bananas, pineapple, and oranges increased melatonin production about two hours after eating.
  • Kiwis showed notable results in a study where adults ate two kiwis an hour before bed. After four weeks, they fell asleep faster, slept longer, and reported better overall sleep quality.
  • Tart cherries or tart cherry juice contain melatonin and have been shown to reduce insomnia symptoms.
  • Pistachios have the highest melatonin content of any nut, plus tryptophan, an amino acid your body uses to produce both melatonin and serotonin.
  • Yogurt provides calcium, protein, B vitamins, and magnesium. It also contains a neurotransmitter that helps calm the body before sleep.
  • Oatmeal contains both magnesium and melatonin. A small bowl of overnight oats with seeds is a solid option.
  • Almonds, cashews, and walnuts offer magnesium and compounds that support serotonin production.

What you want to avoid late at night: large portions, high-fat meals, spicy food, and anything that triggers your personal reflux symptoms.

When to Stop Drinking Fluids

Food isn’t the only thing to time before bed. Drinking large amounts of fluid too close to sleep increases the likelihood of waking up to use the bathroom, which fragments your sleep cycles. The Cleveland Clinic recommends stopping heavy fluid intake about two hours before bed. If you need to drink something in that window, keep it under a glass and take small sips. Avoid alcohol, juice, and tea in those final two hours, as they can act as diuretics or stimulants. One study found that even drinking water just one hour before bed wasn’t enough to prevent nighttime bathroom trips in people already prone to them.

A Practical Timeline

If you go to bed at 10:00 PM, here’s what the evidence supports. Finish your main meal by 6:00 to 7:00 PM for the best metabolic and digestive outcomes. If that’s not possible, aim for at least three hours before bed, so 7:00 PM at the latest. If you need a snack after that, choose something small and sleep-friendly by 8:30 or 9:00 PM. Start tapering fluids by 8:00 PM, switching to small sips only. Adjust these windows based on your actual bedtime.

People with acid reflux should aim for the longer four-hour window. People concerned about blood sugar or weight management benefit from earlier dinners even if they don’t experience reflux. And if you occasionally eat late, choosing the right snack and staying upright for at least 30 minutes afterward can minimize the downsides.