Your sleep tonight depends on what you eat today
New analysis pairing food logs with at-home sleep data seems to indicate that higher-fibre, more plant-diverse diets enable deeper and more REM sleep, with less light and fragmented sleep, and a lower overnight heart rate, when compared to days with more processed foods, saturated fat, and animal-based foods.
And when dinner made up a larger share of daily calories, people slept longer with a higher overnight heart rate. Meanwhile, a longer interval between one's last meal and bedtime was associated with slightly less sleep but a lower overnight heart rate.
Today's diet affects tonight's sleep
Most diet–sleep studies ask the blunt (and less-informative) question of whether people who eat better sleep better. The problem is that people who eat better also tend to differ in a thousand other ways that affect sleep, such as fitness levels, stress, health status, socioeconomic factors, and more. So, it’s hard to know whether diet is doing the work or whether diet is just a marker for a whole lifestyle package.
A new study comes at the question from a different angle. Instead of comparing a higher fibre eater to a lower fibre eater, it leans heavily on dietary variation within the same person. It asks whether what a person ate yesterday can predict how they'll sleep that night.
Using data from 3,598 adults from the global Human Phenotype Project (HPP), a longitudinal digital health study that pairs time-stamped dietary logs with clinically validated in-home sleep testing to capture total sleep time, the research posed the question - on the days you eat differently, does your sleep change in any detectable way?
Meal timing mostly influences sleep duration
Meal timing didn't drastically reshape sleep stages… it mostly showed up in how long people slept and how “revved up” their bodies stayed overnight.
Earlier dinner timing (last meal 4 hours before bed vs. ~2 hours before bed) was linked to about 12 minutes less total sleep, but also about a 1 bpm lower sleeping heart rate.
A higher-calorie evening meal (dinner with 46% of total daily energy versus 29%) was linked to about 8 minutes more total sleep, but also about a 1 bpm higher sleeping heart rate.
A longer daily eating window (12.7 hours versus 9.6 hours) tended to track with about a 1 bpm higher sleeping heart rate and a 4.5% shorter time to fall asleep.
Diet composition shifts sleep stages
What really moved sleep stages was diet composition and quality.
Higher fibre density (15.7 grams of fibre/1,000 calories vs. 9 grams/1,000 calories) was associated with a 1 bpm lower sleeping heart rate, plus a redistribution of sleep stages in a more “restorative” direction including more deep sleep and REM sleep, and less light sleep.
Greater plant diversity (7 vs. 3 unique plant-based food items per day) was linked to a small improvement in sleep onset latency (falling asleep a bit faster) and a lower overnight heart rate.
A higher plant consumption (as a percentage of total daily calories) was also associated with a 1 bpm lower overnight heart rate.
A few micronutrients show consistent effects
Most micronutrients didn’t show short-term effects, but a cluster of plant-associated micronutrients showed directionally consistent trends toward deeper/REM sleep, and in some cases lower overnight heart rate and a longer sleep duration.
Magnesium (485 vs. 249 mg/day) trended toward more deep sleep and more REM sleep.
Vitamin C (154 vs. 58 mg/day) trended toward more deep sleep, more REM sleep, and longer total sleep time.
Folate/folic acid (468 vs. 261 mg/day) trended toward deeper and REM sleep, and a lower nighttime heart rate.
Vitamin E (12.4 vs. 6.7 mg/day) trended toward deeper and REM sleep, and greater total sleep time.
In contrast, macronutrient distribution - one's percent of calories from protein vs. carbs vs. fat - showed no short-term effects on sleep physiology.
That doesn’t mean macronutrients never matter, but it suggests that in the real world, night-to-night sleep changes may be more sensitive to food quality and timing than to shifting macro ratios by modest amounts.
Final thoughts
This still isn’t a randomized trial, so it can’t prove causation with absolute certainty, but it’s closer than most observational nutrition work.
We often focus on light exposure, screens, or temperature for sleep hygiene, but this study nudges us to expand that conversation. What we eat, as much as when we eat, is part of the equation. If you’re doing everything else right but still struggling with sleep, food might be the missing piece of the puzzle.
Lean into a more plant-forward and fibre-rich diet during the day, maybe include those plants in a lighter evening meal - perhaps making that last meal around 25% of your daily intake rather than half – and see what happens.
And play around with timing – do you sleep better if you eat later or earlier? It’s all about finding what works best for you.