Three hours is the standard recommendation. Stopping food intake about three hours before you go to sleep gives your body enough time to digest your last meal, reduces the chance of acid reflux when you lie down, and avoids the metabolic disruptions that come with eating during your body’s natural rest window.
Why Three Hours Is the Target
Your body runs on an internal clock that affects how efficiently you process food at different times of day. In the morning, your cells are primed to absorb and burn nutrients for energy. As evening progresses, your body becomes more insulin resistant, meaning it handles blood sugar less effectively. Calories consumed late at night are more likely to be stored as fat rather than burned for fuel, even if you haven’t eaten more than usual overall. Research from Johns Hopkins Medicine confirms that eating at the wrong time can lead to weight gain independent of how many total calories you consume.
The three-hour window works as a practical sweet spot. It’s long enough for your stomach to mostly empty and your digestive system to wind down, but short enough that you won’t climb into bed uncomfortably hungry.
What Happens to Your Sleep
Digestion raises your core body temperature. That’s fine during the day, but your body needs to cool down slightly to transition into deep, restorative sleep stages. When you eat too close to bedtime, that cooling process gets delayed, and the result is lighter, more disrupted sleep. People who’ve ever tossed around after a late dinner have felt this firsthand.
Your hormones shift at night too. As darkness falls, your brain ramps up melatonin production to prepare you for sleep. Eating during this window, when melatonin is already elevated, impairs glucose tolerance and fat metabolism. Meanwhile, the hormones that regulate hunger get thrown off. A randomized trial found that late eating significantly increased hunger and disrupted the balance between the hormone that signals “I’m hungry” (ghrelin) and the one that signals “I’m full” (leptin). This creates a cycle where eating late makes you feel hungrier the next day, which can lead to overeating over time.
Benefits Beyond Better Sleep
A recent clinical trial tested what happens when adults stop eating at least three hours before bed and extend their overnight fast to roughly 13 to 16 hours total. Over seven and a half weeks, participants saw their nighttime blood pressure drop by 3.5% and their resting heart rate decrease by 5%, with improved blood sugar control. They didn’t cut calories at all. The only change was when they stopped eating.
For people prone to heartburn or gastroesophageal reflux, the three-hour gap is especially important. Lying down with a full stomach allows acid to travel back up into the esophagus, causing that familiar burning sensation. Staying upright for three hours after your last meal lets gravity do its job and significantly reduces nighttime reflux episodes.
When a Small Bedtime Snack Is Fine
The three-hour guideline applies mainly to full meals and calorie-dense snacks. A small, nutrient-rich bite of around 150 calories or less can actually work in your favor. One study found that a low-calorie carbohydrate or protein snack 30 minutes before sleep boosted morning metabolism.
Certain foods contain compounds that actively support sleep:
- Kiwis: Adults who ate two kiwis an hour before bed fell asleep faster and slept longer after four weeks.
- Tart cherries or tart cherry juice: Naturally contain melatonin and have been shown to reduce insomnia symptoms.
- Bananas with almonds: Together they provide over 100 milligrams of magnesium, a mineral linked to better sleep quality. Bananas are also rich in potassium, which may particularly benefit women’s sleep.
- Pistachios: Contain the highest melatonin content of any nut, plus tryptophan, an amino acid your body uses to produce both melatonin and serotonin.
- Yogurt: Rich in calcium, protein, and a calming neurotransmitter called GABA that helps your body wind down.
- Oatmeal: Contains both magnesium and small amounts of melatonin.
The key distinction is size and composition. A bowl of oatmeal or a banana with a handful of nuts is different from a plate of pasta or a bag of chips. Heavy, high-fat, or spicy foods are the worst offenders close to bedtime because they take longer to digest and are more likely to trigger reflux.
Adjusting for Night Shifts
If you work nights, the standard advice doesn’t map neatly onto your schedule. The National Institute for Occupational Safety and Health recommends avoiding food between midnight and 6 a.m. as much as possible, even if you’re awake and working during those hours. The goal is to keep your eating pattern as close to a normal day-night cycle as you can, splitting your food into three meals across 24 hours rather than grazing through a night shift. This won’t perfectly replicate daytime eating, but it reduces the metabolic cost of fueling your body during hours when it’s biologically least prepared to process food.
Making the Three-Hour Rule Practical
If you go to bed at 10 p.m., your last substantial meal should wrap up by 7 p.m. If you’re a midnight sleeper, 9 p.m. is your cutoff. The simplest approach is to anchor your dinner time based on your typical bedtime and treat the hours after dinner as a closed kitchen, with the exception of a small sleep-friendly snack if genuine hunger strikes.
People who struggle with this often find that their dinners are too small or too early, leaving a long stretch of hunger before bed. If that’s you, adding more protein and fiber to dinner can extend how long you feel satisfied. A dinner that keeps you full until bedtime removes the temptation to snack late without requiring any willpower at all.