Most people should finish eating two to three hours before bed. That window gives your stomach enough time to move food along and lets your body wind down without actively digesting a full meal. If you deal with acid reflux, stretching that gap to three hours or more makes a meaningful difference in overnight symptoms.
The exact timing depends on what you ate, how much, and your own digestive tendencies. Here’s what shapes that window and why it matters more than you might think.
What Happens When You Eat Too Close to Bedtime
After a typical meal, it takes about four hours for 90 percent of the food to leave your stomach and move into the small intestine. When you lie down before that process is well underway, you’re asking your digestive muscles to keep working during a time they’d normally be at rest. That ongoing activity can delay sleep onset and reduce the amount of deep, restorative sleep you get overnight.
Gravity also plays a role. When you’re upright, stomach acid stays where it belongs. Lying down with a full stomach makes it easier for acid and partially digested food to creep back up into the esophagus, which is the physical reason behind the three-hour guideline for avoiding heartburn. Even people who don’t normally experience reflux can notice it after eating a large meal and going straight to bed.
Your Body Processes Food Differently at Night
It’s not just about comfort. Your metabolism genuinely slows in the evening. Research published in the Proceedings of the National Academy of Sciences found that blood sugar after an identical meal runs about 17 percent higher in the biological evening compared to the morning. Your pancreas releases 27 percent less of the initial insulin needed to handle that sugar, which means glucose lingers in your bloodstream longer than it would after breakfast or lunch.
This isn’t a matter of willpower or meal choice. It’s your circadian rhythm. Your body is simply less efficient at processing food as the day winds down. Insulin sensitivity drops, and the hormonal machinery that clears sugar from your blood shifts into a lower gear. Over time, routinely eating large meals late at night may contribute to poorer blood sugar regulation, which is particularly relevant if you’re already at risk for metabolic issues.
Meal Size and Composition Change the Timeline
A bowl of rice digests faster than a steak. Carbohydrate-heavy meals leave the stomach relatively quickly, while meals high in fat or protein take considerably longer. Fat slows stomach emptying the most, which is why a greasy late-night meal tends to sit heavier than a lighter one. A large, mixed meal with plenty of fat and protein can easily take four hours or more to clear the stomach, pushing the ideal cutoff even earlier in the evening.
If you’re having a big, rich dinner, aim for at least three hours before bed. For a lighter, carb-leaning meal, two hours is usually sufficient. The key variable is how much digestive work your stomach still needs to do when you lie down.
When a Bedtime Snack Is Fine
Going to bed slightly hungry can also disrupt sleep. The goal isn’t to avoid all food after 6 PM. It’s to avoid large, heavy meals close to bedtime. A small snack around 150 calories or less, eaten 30 minutes to an hour before bed, is unlikely to cause problems and may actually help. One study found that a low-calorie snack before sleep helped boost morning metabolism.
Some specific options work well:
- A banana with a small handful of almonds provides about 100 milligrams of magnesium, a mineral linked to better sleep quality.
- Two kiwis eaten an hour before bed improved sleep in adults with self-reported sleep problems.
- Tart cherry juice contains natural melatonin and has been shown to reduce insomnia symptoms. A glass an hour or two before bed is a reasonable portion.
- Plain yogurt offers calcium (about 121 milligrams per 100-gram serving), which helps the brain use sleep-promoting compounds more effectively.
- Pistachios contain the highest melatonin levels of any nut.
What you want to avoid in that late window are high-fat, high-carb, spicy, or acidic foods. These are the most likely to trigger reflux and reduce sleep quality.
A Simple Framework to Follow
For a full dinner, finish eating two to three hours before you plan to fall asleep. If dinner was particularly large or fatty, lean toward the three-hour mark. If you need a snack after that, keep it small, simple, and nutrient-dense. Avoid caffeine within four to six hours of bedtime, and keep daily caffeine under 400 milligrams total.
If you regularly experience heartburn at night, push your last full meal to at least three hours before bed and stay upright during that window. Sitting on the couch is fine. Lying on the couch is not. The distinction matters because even a slight recline can shift stomach contents toward the esophagus before digestion has progressed enough.
The two-to-three-hour window isn’t arbitrary. It aligns with how long your stomach needs to do the heaviest lifting, how your circadian rhythm manages blood sugar, and the physical mechanics of keeping acid where it belongs. Treating that gap as a consistent habit, rather than an occasional goal, is one of the simplest changes you can make for better sleep.

