Three hours before bed is the widely recommended cutoff for your last meal. If you typically go to sleep at 10 p.m., that means finishing dinner by 7 p.m. This window gives your body enough time to move food through the early stages of digestion so it doesn’t interfere with your sleep, your metabolism, or your comfort through the night.
That said, the three-hour rule isn’t one-size-fits-all. The reasons behind it matter, and understanding them helps you figure out what flexibility you actually have.
Why Three Hours Is the Standard
When you eat, your body ramps up a process called thermogenesis, a slight rise in core body temperature as it breaks down food. Falling asleep, on the other hand, requires your core temperature to drop. Research on postprandial sleep found that sleep onset coincided with the peak of this temperature rise, after which body temperature dropped sharply. Eating too close to bedtime means you’re asking your body to do two competing things at once: digest actively and wind down for sleep.
Three hours is generally enough time for a moderate meal to clear your stomach and for that thermal spike to settle. It’s not a magic number, but it aligns with how long the stomach takes to empty most mixed meals.
Late Eating and Acid Reflux
If you’ve ever felt heartburn after lying down too soon after dinner, the timing connection is straightforward. When you’re upright, gravity helps keep stomach acid where it belongs. Lie down with a full stomach and acid flows back into the esophagus more easily, and it stays there longer. Nighttime reflux episodes involve more prolonged acid contact with the esophageal lining than daytime episodes, which is why they tend to cause more tissue damage over time.
Roughly 14 to 20% of U.S. adults experience heartburn at least once a week, and among that group, about 70 to 75% report it happening at night. Around 40% of those people say nighttime heartburn disrupts their sleep. If reflux is something you deal with, the three-hour buffer is especially important, and you may even benefit from a slightly longer gap.
How Late Meals Affect Sleep Quality
The relationship between late eating and sleep quality goes beyond just feeling full. Consuming high-fat foods close to bedtime has been associated with reduced REM sleep, the deep, restorative phase when your brain consolidates memories and processes emotions. Fatty meals also tend to delay the time it takes to fall asleep in the first place.
Interestingly, one older study on healthy men found that the total minutes spent in each sleep stage didn’t differ much between meal conditions. The disruption was more about timing: sleep onset lined up with digestive peaks, suggesting that your body may delay sleep until digestion reaches a certain point. So the issue isn’t necessarily that you’ll sleep fewer hours, but that falling asleep takes longer and the quality of those early sleep cycles may suffer.
Metabolic Costs of Eating Late
Your body processes food differently at night than during the day, and the reasons are hormonal. As bedtime approaches, your body ramps up melatonin production to prepare for sleep. When you eat during this window of elevated melatonin, glucose tolerance drops. One study found that people who ate dinner within 2.5 hours of their usual bedtime had higher blood sugar levels and a weaker insulin response compared to eating earlier. In practical terms, the same meal produces a bigger blood sugar spike when eaten late at night.
This isn’t just about one meal. Over time, eating the majority of your calories late in the day appears to shift hunger hormones in unfavorable ways. Research on nightshift nurses found that those who ate predominantly between 9 p.m. and 6 a.m. had nearly double the leptin levels of nurses who ate during daytime hours. High leptin sounds like it should suppress appetite, but chronically elevated levels are associated with leptin resistance, where the brain stops responding to the “full” signal effectively.
Late eating also disrupts the alignment between your brain’s central clock and the peripheral clocks in organs like your liver, pancreas, and gut. These peripheral clocks use food as a timing signal. When food arrives at a time your body expects to be fasting, it creates a mismatch that raises the risk of metabolic problems over the long term.
Late Eating and Weight
Calorie timing appears to matter for weight management independent of how much you eat. In a cohort of over 1,200 people, those who consumed 48% or more of their daily calories at dinner were more than twice as likely to be obese at six-year follow-up, even after adjusting for total calorie intake, physical activity, and baseline weight. A separate study of 239 participants found a similar pattern: eating more than a third of daily calories in the evening doubled the odds of being overweight or obese.
The most compelling evidence comes from a 12-week trial of 75 women with overweight or obesity. All participants followed the same calorie-restricted diet and exercise plan, but one group ate their last meal between 7:00 and 7:30 p.m. while the other ate between 10:30 and 11:00 p.m. Both groups lost weight, but the early dinner group lost significantly more: an average of 6.8 kg versus 4.9 kg. Same calories, same activity, different results based purely on timing.
When a Bedtime Snack Makes Sense
The three-hour guideline assumes you’re a generally healthy adult eating a typical dinner. There are situations where eating closer to bedtime is genuinely helpful.
People with type 1 diabetes on intensive insulin therapy sometimes need a bedtime snack to prevent blood sugar from dropping dangerously low overnight. In a controlled trial, 71% of nighttime low blood sugar episodes occurred when patients had no snack. A standard snack combining carbohydrates and protein, or a protein-focused snack, eliminated nocturnal lows entirely at all blood sugar levels. The need depends on glucose levels at bedtime: when blood sugar is already elevated, a snack may not be necessary, but at moderate or lower levels, it serves as a safety net.
Athletes and people doing heavy resistance training are another exception. Building muscle overnight requires available amino acids, and research shows that consuming at least 40 grams of protein before sleep stimulates muscle protein synthesis throughout the night. Notably, 30 grams didn’t produce the same effect in preliminary studies. For this purpose, a protein-focused snack (a casein shake, cottage cheese, or Greek yogurt) within an hour of bed is a deliberate strategy, not a habit to worry about.
Practical Guidelines for Your Last Meal
If you go to bed at 10 p.m., aim to finish eating by 7 p.m. If your schedule pushes bedtime to midnight, 9 p.m. is your target. The clock matters less than the gap. A few specifics help when life doesn’t cooperate with the ideal:
- If you must eat late, keep it small and low in fat. A heavy, greasy meal takes longer to digest and is more likely to disrupt both sleep and reflux.
- If you’re genuinely hungry at bedtime, a light snack under 200 calories with some protein (a handful of nuts, a small serving of yogurt) is unlikely to cause problems for most people.
- If you’re training hard, 40 grams of protein before bed supports recovery without the downsides of a full meal.
- If you have reflux, prioritize the three-hour window strictly and consider staying upright or propped up for as long as possible after eating.
The core principle is simple: your body digests food best when you’re upright and active, and it sleeps best when digestion is mostly finished. Aligning those two processes with a three-hour buffer handles most of the risks, from poor sleep to blood sugar spikes to long-term weight gain.

