Most experts recommend stopping eating about three hours before you go to sleep. That window gives your body enough time to digest your last meal so it won’t interfere with sleep quality, but it’s short enough that you won’t climb into bed hungry. The National Sleep Foundation narrows it slightly, suggesting a light dinner two to three hours before bedtime to help your body ease into sleep mode.
That said, the three-hour guideline is a starting point. How fast you digest food, what you ate, and your personal health all shift the ideal timing. Here’s why the window matters and how to make it work for you.
Why Three Hours Is the Sweet Spot
Digesting a meal takes real energy. Your body diverts blood flow to the gut, ramps up stomach acid production, and generates heat as it processes calories. When you lie down shortly after eating, your body is stuck trying to do two competing things at once: wind down for sleep and power through digestion. The result is often lighter, more disrupted sleep.
Three hours is generally enough time for a moderate meal to clear your stomach and for the initial spike in metabolic activity to taper off. Everyone digests at a slightly different pace, though. A large, high-fat meal can take considerably longer to leave the stomach than a lighter one. Protein-heavy meals generate the most digestive heat, while fatty meals generate the least but take the longest to break down.
The Body Temperature Problem
Falling asleep requires your core body temperature to drop by about 0.4°C (roughly 0.7°F). Eating works against that process. When your body digests food, it produces what researchers call the thermic effect of food: a temporary rise in metabolic rate and body temperature that scales with how much and what you eat. A big dinner generates more heat than a small snack, and a protein-rich meal generates more heat than one heavy in fat or carbs.
If you finish eating two to three hours before bed, that heat spike has time to dissipate. One study found that when good sleepers finished their evening meal within that window, the temperature changes from digestion didn’t significantly affect their sleep. Eating much closer to bedtime, though, means your body is still running warm when it needs to be cooling down.
Acid Reflux Gets Dramatically Worse
If you experience heartburn or gastroesophageal reflux, the timing of your last meal matters even more. Lying down shortly after eating allows gravity to work against you. When you’re flat on your back, your stomach contents can push back toward your esophagus with hydrostatic pressure that’s in the same range as the pressure your lower esophageal sphincter uses to keep things sealed shut. In other words, the muscle holding acid in your stomach can be overwhelmed when you’re horizontal with a full stomach.
A study measuring reflux symptoms found that people who ate less than three hours before bed were over seven times more likely to experience reflux compared to those who waited four hours or more. That’s not a subtle difference. If reflux is an issue for you, aiming for a full three to four hours between your last meal and lying down can make a significant difference.
Late Eating Affects Metabolism the Next Day
The timing issue goes beyond sleep quality. Your body processes calories differently depending on when you eat them, because of your internal circadian clock. Late-night eating shifts your “caloric midpoint” (the center of gravity of your daily food intake) later in the day, and research published in The Lancet’s eBioMedicine found that a later caloric midpoint is linked to lower insulin sensitivity. That means your body handles blood sugar less efficiently the following day.
Part of the explanation involves melatonin, the hormone that rises in the evening to prepare you for sleep. When food arrives in your system while melatonin levels are already elevated, your body’s ability to manage glucose is impaired. A Harvard Medical School study reinforced this, finding that late eaters burned calories at a slower rate and showed changes in fat tissue gene expression that favored fat storage over fat burning.
Your body also runs on a network of internal clocks. The master clock in your brain responds to light, but clocks in your liver, gut, and other organs respond heavily to meal timing. When you eat late at night, you essentially tell your liver and digestive organs it’s daytime while your brain knows it’s nighttime. This internal mismatch, sometimes called circadian misalignment, can disrupt metabolic processes over time.
When a Pre-Sleep Snack Is Fine
The three-hour rule applies mainly to full meals. Small, protein-rich snacks before bed are a different story, particularly if you exercise regularly. Research from Frontiers in Nutrition found that consuming 20 to 40 grams of protein (roughly a cup of cottage cheese or a protein shake) before sleep had no measurable effect on sleep onset, sleep quality, or next-morning appetite in both young and older adults.
For people doing resistance training, the benefits can be substantial. Muscle protein synthesis rates during overnight sleep were about 22% higher when athletes consumed protein before bed compared to a placebo. A 12-week training study found that roughly 30 grams of pre-sleep protein helped young men gain more muscle mass and strength than training alone. The key is that these are moderate, protein-focused snacks, not a second dinner. A large, mixed meal with a lot of fat and carbohydrates is a fundamentally different digestive challenge than a small portion of slow-digesting protein.
Practical Adjustments That Help
If your schedule makes it hard to stop eating three hours before bed, a few adjustments can minimize the downsides. Keeping your evening meal smaller and lower in fat reduces digestion time and limits the thermic effect that raises body temperature. Staying upright for as long as possible after eating, even just sitting on the couch rather than lying in bed, helps gravity keep stomach contents where they belong.
If you get hungry close to bedtime, a small snack under 200 calories that leans toward protein (Greek yogurt, a handful of nuts, a small portion of cheese) is unlikely to disrupt your sleep the way a full plate of pasta would. The goal isn’t to go to bed starving. It’s to avoid asking your digestive system to do heavy lifting at the exact time your body is trying to power down.
People who work night shifts or have irregular schedules face a trickier version of this problem, since their internal clocks may not align neatly with when they actually sleep. The same principle applies, though: give your body a buffer between your last substantial food and the time you lie down, and keep late meals light when you can.

