Free tool · No sign-up
When to stop eating before bed
You probably do not have a dinner problem. You have a timing problem, and it usually starts with a coffee you drank eight hours before you tried to sleep.
Short answer
Stop eating large meals about three hours before bed, stop drinking caffeine about eight hours before, and stop drinking alcohol about four. For an 11pm bedtime that means dinner by 8pm, last coffee by 3pm, last drink by 7pm.
Step 1 · Your details
Your evening
You probably do not have a dinner problem. You have a timing problem, and it usually starts with a coffee you drank eight hours before you tried to sleep.
Three hours before bed. A large meal any later raises your core temperature exactly when your body is trying to drop it to fall asleep.
Your evening, hour by hour
Three cutoffs, counted backwards from the moment you want to be asleep.
The flag is the moment you want to be asleep, and every step before it is counted backwards from there. The caffeine cutoff is the one people get wrong most often, because it sits so much earlier than it feels like it should: caffeine's half-life is around five hours, so a 4pm coffee still has a quarter of its dose working at midnight.
Your dinner lands inside the window. That is the hard one done.
Breaking your own bedtime rules more nights than not?
We will email you a free 7 day plan built on Mangi's science-backed formulas, not a generic template.
One email with your plan, then occasional tips on eating well. No spam, and you can unsubscribe from any email in one click.
What this page cannot do
Three cutoff times are simple. Noticing you broke them four nights running is not.
Anyone can remember to stop eating three hours before bed for one night. The pattern is what matters, and patterns are invisible from the inside. The app records when you eat, not just what, and shows you the shape of your evenings across a month.
- See how often your dinner actually lands inside the window, rather than how often you meant it to
- Connect late evenings to how the next day went: energy, cravings, and mood
- Mangi curls up and sleeps when you fast, so your evening routine has a visible companion
- Personalized evening meal ideas built around the foods on the table above
What to do with this
Move the coffee, not the dinner
Most people find shifting their last coffee two hours earlier easier than shifting dinner, and it usually buys more sleep quality per unit of effort.
If you are hungry late, eat small and light
A late banana or a small yogurt is not the same problem as a late curry. The rule is about meal size and fat content, not about food existing after 8pm.
Treat alcohol as a sleep cost, not a sleep aid
It does make you fall asleep faster, then fragments the back half of the night as it clears. That is why four drinks produce eight hours in bed and the rest of a bad day.
How this is worked out
Three cutoffs, counted backwards
kitchen closes = bedtime − 3h · caffeine cutoff = bedtime − 8h · alcohol cutoff = bedtime − 4h
Three hours for large meals. Digestion raises core body temperature, and falling asleep depends on core temperature dropping. Lying down soon after a big meal also makes reflux considerably more likely, which fragments sleep whether or not you wake up enough to notice.
Eight hours for caffeine. Caffeine's half-life sits around five hours, so a 4pm coffee still has roughly a quarter of its dose circulating at midnight. Controlled studies have found measurable disruption from caffeine taken six hours before bed even when people reported no effect at all. The sleep got worse, the perception did not.
Four hours for alcohol. It shortens the time it takes to fall asleep and then suppresses REM in the second half of the night as it metabolizes, which is the mechanism behind waking at 4am after an evening that felt relaxing.
These are averages. Caffeine sensitivity in particular varies several-fold between people because of how fast their liver clears it, so treat the cutoff as a starting point and move it earlier if you are a slow metabolizer.
Meal timing is a tracked signal, not a footnote. Mango Bites records when each meal happens, not only what was in it, and links it to the improve sleep wellness goal you can pick during onboarding. Mangi even has a sleeping pose that shows while you are fasting, so the gap between dinner and breakfast is something you can see rather than something you have to remember.
Foods that help, and foods that do not
Evening choices, ranked by whether they support or sabotage falling asleep.
| Food | Why | Verdict |
|---|---|---|
| Tart cherries / juice | One of the few real dietary melatonin sources | Helps |
| Kiwi | Trial evidence for faster sleep onset; serotonin content | Helps |
| Oats | Carbohydrate plus a little melatonin; eases tryptophan uptake | Helps |
| Pumpkin seeds | Magnesium and tryptophan in a small portion | Helps |
| Greek yogurt | Slow protein, low volume, calcium | Helps |
| Almonds / walnuts | Magnesium; walnuts contain some melatonin | Helps |
| Banana | Magnesium, potassium, easy to digest late | Fine |
| Turkey / chicken | Tryptophan, but only useful in a modest portion | Fine |
| Dark chocolate | Contains caffeine and theobromine | Avoid |
| Fried or very fatty meals | Slow to digest; raises reflux risk lying down | Avoid |
| Spicy food | Raises core temperature and reflux risk | Avoid |
| Alcohol | Faster sleep onset, fragmented second half | Avoid |
Questions people ask
What time should I stop eating before bed?
What time should I stop eating before bed?
About three hours before you want to be asleep for a full meal. A small, light snack closer than that is generally fine. The evidence is about meal size, fat content and lying down on a full stomach, not about a clock time after which food becomes forbidden.
Does eating late make you gain weight?
Does eating late make you gain weight?
Not by itself. Total intake across the day is what drives weight, and a calorie at 9pm is the same calorie it was at 9am. What late eating does do is worsen sleep, and poor sleep reliably raises appetite and cravings the next day, so the effect is real, it just runs through sleep rather than through metabolism.
How late is too late for coffee?
How late is too late for coffee?
Eight hours before bed is the safe general answer. Caffeine taken six hours before bed has been shown to measurably reduce total sleep time even in people who reported no effect, which is the uncomfortable part: you can sleep worse without feeling like you did.
Does a nightcap help you sleep?
Does a nightcap help you sleep?
It helps you fall asleep and hurts the sleep that follows. Alcohol suppresses REM in the second half of the night as it clears, which fragments sleep and is why a drink-heavy evening so often ends with waking up at 4am.
Do bananas or warm milk actually work?
Do bananas or warm milk actually work?
Weakly, and mostly through routine rather than chemistry. The tryptophan in milk is real but the dose in a glass is small. What does have trial evidence behind it is tart cherry juice and kiwi, both of which have been studied specifically for sleep onset and duration.
What if I go to bed hungry?
What if I go to bed hungry?
Hunger disrupts sleep too, so this is not a case where less is always better. A small protein-and-carbohydrate snack (yogurt, oats, a banana) is a better answer than lying awake trying to be disciplined about it.
Sources
This is an estimate, not medical advice. Formulas like these describe averages, and you are a person rather than an average. Medication, thyroid conditions, pregnancy, breastfeeding and a history of disordered eating all move these numbers. Talk to a doctor or a registered dietitian before making a big change.
Related reading
Try another calculator
Each one works the same way: your numbers, spread across a real day, free and without an account.


