Answer · 2026
Does eating before bed affect your sleep?
Yes, and more than most people think. In a 2011 sleep-lab study, eating more close to bedtime went with worse sleep, especially in women. People who went to bed within 3 hours of dinner had about 7 times the odds of acid reflux, per a 2005 study. What you eat matters too: fat and sugar went with lighter sleep, fiber with deeper sleep.
What do macros, glycemic index, and reflux mean?
Your body runs two night shifts: sleeping and digesting. When dinner shows up late, they fight over the same hours. Here are the words you will see on this page.
| Term | What it means |
|---|---|
| Macros (macronutrients) | The three big parts of food that carry calories: fat, carbohydrate (carbs), and protein. |
| Glycemic index (GI) | How fast a carb raises your blood sugar. White rice and white bread are high GI. Oats and beans are lower. |
| Saturated fat | The kind of fat that is solid at room temperature, like butter, cheese, and fatty meat. |
| Fiber | The part of plants you cannot digest. It is in beans, oats, fruit, vegetables, and whole grains. |
| Acid reflux (GERD) | Stomach acid sliding back up into your throat. Heartburn is how it feels. Lying down makes it easier. |
| Sleep onset latency | How long it takes to fall asleep after lights out. |
| Deep sleep (slow-wave sleep) | The heaviest stage of sleep, the one that makes you feel rested. |
| Arousal | A brief wake-up during the night. Most are so short you never remember them. |
How late is too late to eat before bed?
Most of the evidence points to the same rough line: leave about 3 hours between a real meal and bed. Here is what the studies found.
| Study | What they looked at | What they found |
|---|---|---|
| Fujiwara, 2005 | 147 people with reflux vs 294 without, and how long they waited between dinner and bed | Going to bed less than 3 hours after dinner went with about 7.45 times the odds of reflux, compared with waiting 4 hours or more |
| Crispim, 2011 | 52 healthy adults, 3-day food diaries and a night in a sleep lab | Eating more near bedtime went with worse sleep, especially in women. In women, more calories at night went with lower sleep efficiency and a longer time to fall asleep |
| Afaghi, 2007 | 12 healthy young men, the same high-carb meal 4 hours vs 1 hour before bed | Falling asleep was faster when the meal came 4 hours before bed than 1 hour before |
Why does a late meal hurt? Lying flat with a full stomach makes it easier for acid to creep up. And digesting is work. Your body would rather be winding down. Fair warning: these are small or observational studies. They show a pattern, not proof that late eating causes bad sleep in everyone.
Do fat, carbs, and protein affect sleep differently?
Yes, and they do not all work the same way. Think of them as three different guests showing up at bedtime.
| Macro | What the research shows | In plain words |
|---|---|---|
| Fat | More saturated fat in the day went with less deep sleep (St-Onge, 2016). In women, more fat at night went with worse sleep measures (Crispim, 2011) | The slowest to digest. A greasy late dinner sits in your stomach while you try to sleep |
| Sugar | More calories from sugar went with more brief wake-ups during the night (St-Onge, 2016) | Dessert at 10 pm can mean a choppier night, even if you fall asleep fine |
| Carbs, high GI | A high-GI dinner 4 hours before bed cut the time to fall asleep from 17.5 to 9 minutes vs a low-GI one (Afaghi, 2007) | Starchy carbs may help you drift off, if they come early enough |
| Fiber | More fiber went with more deep sleep and less light sleep (St-Onge, 2016) | Beans, oats, fruit, and veggies at dinner were linked to the good kind of sleep |
| Protein | Thinner evidence. Protein carries tryptophan, which your body uses to make serotonin and melatonin | Fine in a normal dinner. A turkey sandwich is not a sleeping pill |
Notice the twist with carbs. Sugar went with more wake-ups, but a starchy high-GI meal helped people fall asleep faster. The difference is partly timing and partly type. A bowl of rice 4 hours before bed is not the same as candy at midnight. The same research team later found a very low-carb meal also shortened the time to fall asleep, so carbs are not magic either.
How many hours before bed should you eat each kind of meal?
If you want to squeeze the most out of your sleep, the type and size of the meal both change the clock. First, a surprise: fat is not the slowest food to leave your stomach. In a 2015 MRI study, a high-carb rice pudding emptied from the stomach more slowly than a high-fat one. The carb version also had 18% more calories, and size counts. The fat version still made people feel fuller.
So the reasons to give fat more time are what it does after you fall asleep, not how fast it digests: less deep sleep (St-Onge, 2016) and worse sleep measures at night in women (Crispim, 2011). And the stomach is slow in general. Doctors' standard stomach-emptying test runs 4 hours, even with a small, low-fat egg meal.
| Meal | Last bite before bed | Why |
|---|---|---|
| Big or heavy dinner, any kind (restaurant meal, seconds, Thanksgiving) | 4 hours or more | More food takes longer to leave the stomach. The low-reflux group in Fujiwara, 2005 waited 4 hours or more |
| Fat-heavy (pizza, burger, fried food, creamy pasta) | 4 hours | Not the slowest to digest, but tied to less deep sleep and a fuller, heavier feeling |
| Carb-heavy and starchy (rice, pasta, potatoes, bread) | About 4 hours | In Afaghi, 2007, a high-GI dinner 4 hours before bed helped people fall asleep faster than the same meal 1 hour before |
| Protein-forward, normal size (chicken or fish with vegetables) | About 3 hours | The 3-hour reflux line from Fujiwara, 2005. Protein has the thinnest sleep evidence, so this is the general meal rule |
| Sugary dessert | Earlier, or skip it | More calories from sugar went with more wake-ups (St-Onge, 2016). No study gives a clean cutoff |
| Small, low-fat snack (kiwi, banana, yogurt, toast) | About 1 hour | In Lin, 2011, 2 kiwis 1 hour before bed went with falling asleep faster |
Read that table as our best read of the studies, not a lab-tested schedule. No study has timed every meal type against sleep. The simple version for sleep optimizers: last real meal about 4 hours before bed, and if you are hungry later, a small, low-fat snack up to about 1 hour before.
Is caffeine the only thing in your diet that hurts sleep?
No. Caffeine gets the blame, and it earns it: it can cut sleep by more than an hour even when you do not notice. Full breakdown: does caffeine affect your sleep even if you fall asleep fine. But it has company.
| What | What it does to sleep | Source |
|---|---|---|
| Caffeine | Blocks your tiredness signal and lingers for hours. Cuts total sleep and deep sleep | Our caffeine page |
| Alcohol | Puts you out faster and adds deep sleep early, then wakes you more in the second half of the night. Delays REM sleep, the dreaming stage | Ebrahim, 2013 |
| A big late meal | Higher odds of reflux and worse sleep measures, especially within 3 hours of bed | Fujiwara 2005, Crispim 2011 |
| Saturated fat | Less deep sleep | St-Onge 2016 |
| Sugar | More brief wake-ups | St-Onge 2016 |
| Low fiber | Less deep sleep, more light sleep | St-Onge 2016 |
Alcohol is the sneaky one. The review's lead author put it simply: alcohol on the whole is not useful for improving a whole night's sleep. A nightcap feels like it helps because the first half of the night goes fine. The second half pays for it.
What can you eat if you are hungry right before bed?
Going to bed starving is not great either. Hunger can keep you up. The goal is a snack that is small, low in fat, light on sugar, and easy to digest. Here are good picks and ones to skip.
| Better picks | Why | Skip or shrink |
|---|---|---|
| Two kiwis | In a small 2011 study, 2 kiwis 1 hour before bed for 4 weeks went with falling asleep 35.4% faster (Lin, 2011). No placebo group, so treat it as a hint | Ice cream: fat plus sugar, the two things tied to lighter, choppier sleep |
| A small bowl of oatmeal or a slice of toast | Carbs that are gentle on the stomach and come with some fiber | Pizza, fries, or a cheeseburger: high fat, slow to digest, reflux risk |
| Plain yogurt or a glass of milk | Small, easy protein with carbs. Low-fat versions keep the fat down | Chocolate: sugar, fat, and some caffeine |
| A banana | Easy carbs, low fat, nothing to fry | Spicy or acidic food if it gives you heartburn |
| A small handful of nuts | Filling. Keep it small, since nuts are high in fat | A nightcap or a beer: helps you fall asleep, wakes you later |
Size matters more than the exact food. A snack is a few hundred calories at most, not a second dinner. If you are hungry at bedtime most nights, the real fix is earlier: a bigger, higher-fiber dinner about 3 to 4 hours before bed so you are not running on empty.
How do you know when your body is ready for sleep?
Two clocks matter at bedtime. One is how long since you last ate. The other is how much caffeine is still in you. Most people guess at both. The guess is usually off, because nobody remembers that 4 pm iced tea or that the snack was 90 minutes ago, not 3 hours.
The fix is to log what you eat and drink and let the math run. Then you can see, before you get in bed, whether your body is still busy digesting or still running on caffeine, and when it will be ready.

More on sleep and food: does caffeine affect your sleep even if you fall asleep fine, what to eat after a night shift before you sleep, and nutrition apps that use Apple Health sleep and workouts, and the best app to track how food affects sleep. For a drink log next to your sleep, see the best app to track alcohol and sleep. Want a clock time instead? The app that tells you when to stop eating before bed is the one to check.
Start with what you already ate and drank today. NutriCam is an iPhone advisor: photograph a meal or say what you ate, confirm the estimate, and it logs calories, fat, carbs, protein, fiber, and sugar, plus vitamins, minerals, amino acids, antioxidants, caffeine, and things to limit such as alcohol and trans fat. From those logs it gives you a sleep readiness score that counts the time since your last meal, the caffeine still in you, and the time until bedtime, and tells you when you will be ready. With sleep connected from Apple Health, it scores last night and learns how your meals and caffeine change your sleep. Then ask what to eat next, including a bedtime snack that fits. It is not a medical device, does not diagnose sleep disorders or reflux, and is not on Android. What the app is: what is NutriCam.
No app can measure a meal from a photo. A picture cannot show oil, sauces, hidden ingredients, or portion weight. Every number from every app on this page is an estimate until you correct the foods and portions. We have not run an accuracy test across these apps, so this page makes no accuracy ranking. NutriCam's fix: add the cooking oil, butter, dressing, mayo, sauce, or sugar the photo missed with one tap, and the calories and macros update.
FAQ
How many hours before bed should you stop eating?
About 3 hours for a full meal. A 2005 study found people who went to bed less than 3 hours after dinner had about 7.45 times the odds of acid reflux compared with waiting 4 hours or more. A small snack is a different story than a full dinner.
How long before bed should you eat a high-fat meal?
About 4 hours if you want the best sleep. Fat did not leave the stomach slower than carbs in a 2015 MRI study, but more saturated fat went with less deep sleep in a 2016 study. A big meal of any kind takes longer, so give heavy dinners 4 hours or more.
Is it bad to go to bed hungry?
It can be. Hunger can keep you awake. A small, low-fat snack such as a kiwi, a banana, plain yogurt, or a slice of toast is a better bet than lying awake. If you are hungry at bedtime most nights, eat a bigger, higher-fiber dinner earlier.
Does fatty food before bed hurt sleep?
It is linked to worse sleep. In a 2016 sleep-lab study, more saturated fat went with less deep sleep. In a 2011 study, more fat at night went with worse sleep measures in women. Fat is also slow to digest, which keeps your stomach busy at bedtime.
Do carbs help you fall asleep?
Sometimes. A high-glycemic-index dinner eaten 4 hours before bed cut the time to fall asleep from 17.5 to 9 minutes in a 2007 study. But sugar was tied to more wake-ups in a 2016 study, and the same 2007 meal eaten 1 hour before bed worked less well.
Does alcohol help you sleep?
It helps you fall asleep and then hurts the rest of the night. A 2013 review found alcohol adds deep sleep early but brings more wake-ups in the second half of the night and delays REM, the dreaming stage. The lead author said it is not useful for a whole night's sleep.
Do kiwis help you sleep?
Maybe. In a small 2011 study, adults with sleep problems ate 2 kiwis 1 hour before bed for 4 weeks and fell asleep 35.4% faster. There was no placebo group, so it is a promising hint rather than proof. It is a low-fat, easy bedtime snack either way.
Can an app tell if I am ready for sleep?
It can estimate it from what you log. An app can count the time since your last meal and the caffeine left from your drinks, then compare that with sleep from a watch or ring. It cannot see inside your stomach, and it is not a medical test.
Sources
Every fact about another app on this page comes from that app’s own site, help center, or store listing, checked November 20, 2026. Prices and features change. Check the live listing before you buy.
This is not medical advice. If you have reflux, diabetes, or a sleep disorder, ask a doctor about meal timing.
- Crispim et al., Relationship between food intake and sleep pattern in healthy individuals, J Clin Sleep Med 2011
- St-Onge et al., Fiber and saturated fat are associated with sleep arousals and slow wave sleep, J Clin Sleep Med 2016
- Afaghi et al., High-glycemic-index carbohydrate meals shorten sleep onset, Am J Clin Nutr 2007
- Fujiwara et al., Association between dinner-to-bed time and gastro-esophageal reflux disease, Am J Gastroenterol 2005
- Lin et al., Effect of kiwifruit consumption on sleep quality in adults with sleep problems, Asia Pac J Clin Nutr 2011
- Ebrahim et al., Alcohol and sleep I: effects on normal sleep, Alcohol Clin Exp Res 2013
- Marciani et al., Additive effects of gastric volumes and macronutrient composition on the sensation of postprandial fullness in humans, Eur J Clin Nutr 2015
- Abell et al., Consensus recommendations for gastric emptying scintigraphy, Am J Gastroenterol 2008
- NutriCam on the App Store