You should stop eating at least two to three hours before going to bed. This window gives your body enough time to move food through the initial stages of digestion, reducing the chances of acid reflux, disrupted sleep, and metabolic problems. The National Sleep Foundation recommends finishing meals two to three hours before bedtime, and Cleveland Clinic specifically suggests a three-hour gap as the sweet spot.
Why Three Hours Is the Target
Food stays in your stomach for roughly two to six hours after a meal, depending on what you ate. Carbohydrate-heavy meals move through fastest, protein-rich foods take a bit longer, and high-fat meals linger the longest. Lying down while your stomach is still actively breaking down a full meal forces your digestive system to work against gravity, which can push stomach acid upward into your esophagus and make it harder to fall into deep sleep.
A three-hour buffer lets your stomach empty enough that lying flat won’t cause problems for most people. It’s also short enough that you won’t crawl into bed hungry, which can be just as disruptive to sleep as eating too late.
The Acid Reflux Connection
The strongest reason to respect the three-hour window is acid reflux. A study of 201 patients with reflux symptoms found that those who ate within two hours of lying down were 2.46 times more likely to experience reflux than those who waited longer. A separate comparison of 147 people with gastroesophageal reflux disease (GERD) and 294 controls found that eating less than three hours before bed significantly increased GERD risk compared to waiting four hours or more.
If you already deal with heartburn or GERD, you may benefit from pushing that gap closer to four hours. Even people without a reflux diagnosis can develop occasional symptoms from lying down on a full stomach, especially after heavy, fatty, or acidic meals. The discomfort isn’t just annoying. Chronic nighttime reflux damages the lining of the esophagus over time and has been linked to more serious conditions down the line.
How Late Eating Affects Blood Sugar
Your body handles the same meal very differently at 10 p.m. than it does at 6 p.m. Research from a Harvard-affiliated team found that eating close to bedtime coincides with melatonin levels that are 3.5 times higher than earlier in the evening. That matters because melatonin interferes with insulin secretion. When you eat while melatonin is elevated, your body releases less insulin, and blood sugar stays higher than it should after the same meal eaten earlier.
This isn’t a small or theoretical effect. The researchers found that late eating disturbed blood sugar control across all participants, not just those with diabetes or prediabetes. For anyone trying to manage blood sugar or reduce metabolic risk, finishing dinner at least a couple of hours before sleep is one of the simplest changes available.
Late Eating and Weight Gain
A controlled study from Harvard Medical School tested what happens when people eat the same foods four hours later than usual. The results were striking: participants burned calories at a slower rate after late meals, and their fat tissue shifted toward storing more fat and breaking down less of it. Levels of leptin, the hormone that tells your brain you’re full, dropped across the entire 24-hour cycle when people ate later. In practical terms, eating the same calories closer to bedtime left people hungrier the next day while their bodies simultaneously became more efficient at storing those calories as fat.
This doesn’t mean a single late dinner will cause weight gain. But a consistent pattern of eating close to bedtime creates a hormonal environment that favors fat storage and increased appetite, making weight management harder over time.
What Counts as “Eating”
The three-hour guideline applies primarily to full meals or large snacks. A small, light snack under 200 calories is unlikely to cause the same problems, especially if it’s low in fat and not highly acidic. A banana, a small handful of nuts, or a cup of herbal tea with a few crackers won’t trigger the same digestive burden as a plate of pasta or a burger.
The composition of your last meal also matters. If dinner is heavy in fat, your stomach will take longer to empty, so you may want to extend the gap beyond three hours. A lighter meal built around vegetables and lean protein will clear faster, giving you more flexibility.
Practical Timing Strategies
If you go to bed at 10 p.m., aim to finish dinner by 7 p.m. If your schedule pushes bedtime to midnight, an 8:30 or 9 p.m. dinner is reasonable. The key is consistency. Your digestive system, like your sleep cycle, responds well to routine. Eating at roughly the same time each evening helps your body anticipate and prepare for digestion rather than being caught off guard.
For people who work late or have irregular schedules, a split approach can help: eat a moderate meal during a break and have only a very light snack when you get home. This keeps the bulk of digestion well ahead of bedtime without leaving you uncomfortably hungry. If you find yourself consistently starving right before bed, it usually means dinner was too small or too early, and adjusting the size or timing of your evening meal is a better fix than adding a large late-night snack.