Most experts recommend finishing your last full meal two to three hours before bedtime. That window gives your body enough time to digest food while you’re still upright, so your sleep isn’t disrupted by an active stomach. The exact timing shifts depending on what you ate, whether you’re prone to heartburn, and what your goals are for sleep quality and metabolism.
Why Two to Three Hours Is the Standard
When you eat, your stomach produces acid and begins breaking food down, a process that works best when you’re upright and gravity helps keep everything moving in the right direction. Lie down too soon after a meal and you lose that advantage. Your stomach is still full of food and acid, which can push up into your esophagus and cause reflux. As a Mayo Clinic gastroenterologist has explained, digestion is simply meant to be carried out in a more upright position.
Beyond reflux, eating close to bedtime measurably worsens sleep. A study of college-aged adults found that those who ate their last meal within three hours of bedtime had more frequent nighttime awakenings and lower overall sleep efficiency. Another study found that eating 30 to 60 minutes before sleep negatively affected sleep quality in healthy men and women. Japanese young adults who left a shorter gap between dinner and sleep took longer to fall asleep in the first place.
Different Foods Need Different Lead Times
Not all meals digest at the same rate, so the type of food you eat affects how early you need to stop. A general guide:
- Sugary foods: at least 2 hours before bed. Sugar causes a rapid blood sugar spike followed by a drop, both of which can interfere with falling and staying asleep.
- Protein-heavy meals: 2 to 3 hours. Large portions of meat, beans, or other dense proteins take time to break down, and an active digestive system can keep you awake.
- High-fat meals: 3 to 4 hours. Fat is the slowest nutrient to digest, so greasy or rich foods need the longest buffer.
- Complex carbohydrates: about 4 hours. Whole grains, starchy vegetables, and similar foods can actually promote sleepiness, but they need enough lead time to be digested before you lie down.
- Liquids: 1 to 2 hours. This minimizes bathroom trips in the middle of the night.
If you had a light salad at 9 p.m. and plan to sleep at 11, you’re probably fine. A heavy steak dinner with buttery sides at 9 p.m. is a different story. The heavier and fattier the meal, the more time you need.
What Happens to Your Metabolism at Night
Your body runs on an internal clock that affects far more than when you feel sleepy. Organs like your liver and pancreas have their own timing cycles, and they expect a fasting period overnight to handle cellular repair and maintenance. When you eat close to bedtime, you activate nutrient-processing pathways at a time when your body is primed for rest, not digestion.
This matters most for blood sugar. As melatonin rises in the evening to prepare you for sleep, your ability to process glucose drops. A study published in The Lancet’s eBioMedicine found that people who ate later relative to their internal body clock had significantly lower insulin sensitivity, higher fasting insulin levels, and worse blood sugar regulation, even after accounting for differences in age, total calorie intake, and sleep duration. In practical terms, the same meal eaten at 10 p.m. hits your blood sugar harder than the same meal eaten at 6 p.m.
Harvard researchers tested this directly. They gave 16 participants identical diets on two different schedules: one where the last meal ended six and a half hours before bed, and another where it ended just two and a half hours before bed. Eating later increased hunger the following day, reduced the number of calories participants burned, and shifted their body toward storing more fat. Over weeks or months, those effects could meaningfully contribute to weight gain, even without any change in what or how much someone eats.
When a Bedtime Snack Is Actually Helpful
The two-to-three-hour rule applies to full meals, but a small, protein-rich snack before bed can be beneficial for certain people. If you do resistance training or endurance exercise, a modest serving of protein before sleep supports overnight muscle repair. Slow-digesting proteins like casein, found in milk, yogurt, and cheese, are particularly effective. Research has used around 40 grams of casein protein given 30 minutes before sleep with positive results for muscle recovery. Older adults may also benefit, since overnight protein can help counteract age-related muscle loss.
The key word is small. A cup of Greek yogurt with berries, a tablespoon of peanut butter on apple slices, or a handful of nuts is not the same as a full dinner plate. These snacks digest quickly enough that they won’t cause reflux or disrupt sleep, and they provide a steady release of amino acids overnight.
Fluid Timing to Avoid Nighttime Wake-Ups
Stopping food intake is only half the equation. The Cleveland Clinic recommends cutting off fluids about two hours before bed. If you need to drink something in that window, keep it to less than a glass and take small sips. Alcohol, juice, and tea are especially worth avoiding in those final two hours since they increase urine production more than plain water does.
For people who already wake up frequently to urinate, even stopping an hour before bed may not be enough. One study found that a one-hour cutoff still wasn’t sufficient for people prone to nighttime bathroom trips. If that sounds familiar, pushing your cutoff to a full two hours, or even slightly more, and front-loading your fluid intake earlier in the day tends to work better.
Putting It Together
If your bedtime is 11 p.m., a reasonable approach looks like this: finish dinner by 8 p.m. at the latest, with earlier being better if the meal is heavy or high in fat. If you’re hungry after that, a light protein snack before 10:30 is fine. Stop drinking fluids by 9 p.m., or earlier if nighttime bathroom trips are an issue. That schedule gives your digestive system time to wind down, keeps acid reflux at bay, protects your insulin sensitivity, and avoids the metabolic penalties of eating during your body’s biological night.
The people who benefit most from tightening this window are those dealing with heartburn, poor sleep quality, or unwanted weight gain. If none of those apply to you and a piece of toast an hour before bed doesn’t seem to bother you, there’s no need to overhaul your routine. But if you’re troubleshooting any of those issues, meal timing is one of the simplest levers to adjust.