In short
- Possible, but not proven. In a small lab study, more fibre went with more deep sleep, and more saturated fat with less. But people had chosen their own food that day.
- In short experiments, eating fewer carbohydrates went with somewhat more deep sleep. They didn't test what happens over a longer time.
- It works the other way round too: after shortened nights, people ate more.
- A single night says little, on a tracker too. If you have slept badly for weeks, see a doctor first.
Twenty-six adults, 13 women and 13 men, moved into a sleep laboratory in Manhattan. All were of normal weight, aged 30 to 45, and usually slept seven to nine hours. Every evening at ten the lights went out, every morning at seven they came on again, and every night their sleep was recorded through electrodes on the head.
For the first four days, the researchers decided what was on the plate. On the fifth day, each person got 25 dollars and could buy whatever food and drink they liked, to eat in the lab.
That night they took longer to fall asleep: according to the summary of the study by the American Academy of Sleep Medicine, it took them 29 minutes on average to fall asleep, against 17 minutes after the days with set meals. Nine of the 26, who had been asleep within half an hour before, now needed more than half an hour. And they spent less time in deep sleep (St-Onge 2016; secondary analysis of a feeding study with sleep measured in the lab, grade C).
For the total time asleep, on the other hand, no difference could be shown. That does not mean it was the same. The lights came on at seven after both nights, and whoever falls asleep twelve minutes later sleeps twelve minutes less, unless they lie awake that much less during the night. But twelve minutes is little against a whole night: according to the same summary, the participants slept 7 hours and 35 minutes per night on average. A difference that small can hardly be shown in 26 people, whereas the drop in deep sleep could.
So how long someone sleeps and how deeply are measured separately. For that, it helps to look at what the electrodes record.
How long and how deep are two questions
Sleep is not one state. Through the night the brain's electrical activity passes through several stages, and each has its own pattern in the recording: light sleep, deep sleep with its slow, large waves (researchers call it slow-wave sleep), and REM sleep, the stage with rapid eye movements. The recording also shows arousals: brief moments in which the brain comes up towards waking.
So a night can be described in several ways, and this article keeps them apart:
- how long you slept in total,
- how long it took to fall asleep,
- how much deep sleep the night contained,
- how often you woke briefly.
Total sleep time and the time to fall asleep you can roughly tell yourself the next morning. Deep sleep and brief awakenings are defined by the pattern of the brain waves, which is why the studies below needed electrodes to see them. The four are not independent of one another: with a fixed time to get up, whoever falls asleep later sleeps less. But they are measured one by one, and a study can find a difference in one of them and be unable to show one in the others.
What the research shows
One day of free choice
On the fifth day, the 26 people did not all buy the same things. So the researchers could compare them with one another: did those who ate differently that day also sleep differently that night?
Three connections stood out.
- More fibre went with more deep sleep, and with less time in the lightest stage of sleep.
- A larger share of energy from saturated fat went with less deep sleep.
- A larger share of energy from sugar went with more arousals. The same held for other carbohydrates that are neither sugar nor fibre.
How these results came about decides what they can mean. Nobody was given more fibre. Each person chose, and the people who chose more fibre were the ones with more deep sleep. That is a connection between two things seen in the same people on the same day. It is not a test in which fibre was the only thing that differed. The authors write the same: "further testing is needed to determine causality".
The US National Institutes of Health paid for the study. An almond growers' association and a cheese maker supplied almonds and cheese for it, and one author is paid by a company called Healthy Bytes.
One evening: rice before bed
A real test assigns the food. A small experiment did this for one property of carbohydrates: how fast they raise blood sugar. This is what the glycaemic index (GI) describes; a high GI means a fast, strong rise. (How well that number holds for one person is covered in the first article in this series.)
Twelve healthy men aged 18 to 35 had three test nights, a week apart and in random order. Four hours before their usual bedtime they ate a rice meal in which 90% of the energy came from carbohydrate: once jasmine rice with a high GI (109), once a rice with a low GI (50), with the same amount of energy. On the third night they ate the jasmine rice only one hour before bed (Afaghi 2007; randomised crossover trial, grade B).
After the high-GI rice the men fell asleep in 9 minutes on average, after the low-GI rice in 17.5. When they ate the same jasmine rice only one hour before bed, falling asleep took 14.6 minutes. The study found no difference in any other measure of their sleep.
Read next to the lab study, this looks like a contradiction: there sugar went with a worse night, here fast carbohydrates shortened the time to fall asleep. It is not one. The rice changed how long it took to fall asleep. The sugar in the lab study went with brief awakenings. Those are two of the four descriptions of a night from above: the rice study reports a difference only in the time to fall asleep, the lab study a connection for sugar only with brief awakenings.
Years: 50,000 women
What one evening meal does and what a way of eating does over years are again two questions. The second cannot be studied in a sleep lab, so researchers turned to a large long-term health study of women after the menopause in the US. At the start, in the 1990s, the women filled in a questionnaire about 145 foods. Five questions about their sleep showed whether they had insomnia, at the start and again three years later.
53,069 women had no insomnia at the start. Among them, the fifth whose diet had the highest GI developed insomnia somewhat more often over the three years than the fifth with the lowest GI: the odds of developing it were 16% higher in the fifth with the highest GI. Added sugar, starch and refined grains pointed the same way. Women who ate more fruit and vegetables developed insomnia less often (Gangwisch 2020; cohort, grade C).
For fibre the result is weaker than it is often retold. At the start of the study, women who ate more fibre had insomnia less often. But for the women who were followed for three years, fibre is not among the foods the authors report as going with fewer new cases.
The authors offer an explanation, which they did not measure: after a fast rise, blood sugar falls again, and the body answers a low level with hormones such as adrenaline and cortisol, which can wake a sleeper. That would fit an evening that begins with falling asleep quickly and a night that is interrupted later. It remains a proposal.
Public money paid for this study too, and the authors report no ties to companies. It is still not a second, independent group: the lead author of the lab study is among the authors, and the work was paid from that author's research grant.
What the experiments add up to
A meta-analysis collected the experiments in which healthy people of normal weight were assigned different amounts or kinds of carbohydrate and their sleep was measured: 11 publications with 179 participants in all (Vlahoyiannis 2021; meta-analysis, grade A).
- The amount mattered for the stages. With less carbohydrate, people spent moderately more time in deep sleep. With more carbohydrate, they spent more time in REM sleep.
- For the kind, no difference in the stages was found. Whether the carbohydrates had a high or a low GI made no significant difference to any sleep stage, and taken together none to the time it took to fall asleep. Only when the experiments were lined up by how far the two meals they compared differed in their effect on blood sugar did something show: the larger that difference, the more the time to fall asleep changed.
Grade A describes the kind of study, not the amount of data behind it. Every experiment on the kind of carbohydrate tested a single meal, the longest diet lasted four days, and of the participants whose sex was reported, 59 were men and 6 were women. According to the authors, no experiment had tested what a way of eating does to sleep in the long term.
A review of all 20 studies that compared diet with measured sleep, published between 1975 and 2021, comes to a similar view: diets with more fibre, fruit and vegetables and less saturated fat went with better sleep, most of the observational studies recorded a single night in the lab, and longer trials with ordinary food in everyday life are still needed (Wilson 2022; review). One of its three authors is, again, the lead author of the lab study.
What this does not show
That fibre deepens sleep. In the lab study, fibre was chosen, not assigned. Someone who buys more fibre on a free day buys different foods altogether, and the comparison cannot say which of them counted. Each of the three connections also only just reached the usual threshold for statistical significance. When several connections are tested at once, a few reach that threshold by chance, and the paper reports no correction for this.
That the free day was the reason for the worse night. The night after the free day was always the fifth, the night it was compared with always the third. Two more days in a laboratory lie between them, with little room to move. The authors consider the food the more likely explanation, because activity stayed about the same. With this fixed order, though, the food and the two extra days in the lab cannot be separated. And they point out themselves that one free day is all they observed.
How rested anyone felt. The lab study recorded brain waves. It did not ask the participants in the morning how they had slept.
Which way the connection runs. Sleep changes the plate as well. In experiments that shortened people's sleep, they ate 385 kcal more the next day on average, with a larger share of fat (Al Khatib 2017; meta-analysis of 11 studies with 172 people, grade A). The lab study was itself part of such an experiment: after nights with only four hours in bed, its participants ate more on the free day than after the nights with nine hours in bed. For the study of women this matters. Its authors write that insomnia may bring a craving for carbohydrates, which could produce the connection between GI and insomnia that was seen at the start. The three-year follow-up, which only counts women who slept well at the start, guards against that in part. This other direction has an article of its own.
Anything about people unlike those studied. The lab study had 26 good sleepers of normal weight, the rice study 12 young men. The large study asked women after the menopause about their food once, in the 1990s, and about their sleep by questionnaire.
Why the average says little about you
In the lab study, falling asleep took 12 minutes longer on average after the free day (29 against 17 minutes in the society's summary). Nine people now needed more than half an hour to fall asleep. The paper does not report what happened to each of the other 17, so the average does not tell whether everyone took a little longer to fall asleep or some took much longer and others no longer at all.
Each condition was also measured on a single night. One person's sleep differs from night to night without any change in food, and a single measurement cannot tell such variation from an effect; the first article in this series explains why. Most of the observational studies of diet and measured sleep share this limit (see above).
And food is only one of the things that differ between two evenings. Caffeine and alcohol act on the same night, and they get their own articles: the afternoon coffee and alcohol.
Check it yourself
What you can compare. Of the four descriptions of a night, you can note two yourself in the morning: roughly how long it took to fall asleep, and whether you lay awake during the night. Deep sleep needs a device, and here caution is in order. When 34 young adults spent three nights in a sleep lab wearing consumer sleep trackers next to the electrodes, the devices recognised well that someone was asleep and less well that someone was awake. For the sleep stages, the authors call the results "inconsistent". One wristband was close on average, with 75 minutes of deep sleep against 81 in the lab recording, but on a single night it could be more than an hour off in either direction (Chinoy 2021; comparison of devices against lab measurement, grade C). A tracker's deep-sleep figure for one night is therefore not something to read much into. That the average was close while single nights scattered is a reason to look at many nights instead of one. How a ring or watch gets its sleep data next to a food diary has a page of its own.
What to put next to it. The lab study compared one day's food with the following night. For your own notes that means: the day and its night belong together, with three things about the food that the studies singled out.
- What kind of day it was: the lab study's connections were with fibre, saturated fat and sugar. Counting fibre per meal has a page of its own.
- When the last meal was: in the rice study, the same meal four hours and one hour before bed gave different results.
- How the night before was: in the experiments above, a shortened night came before a day with more food and a larger share of fat. If you leave it out, a bad night followed by a heavy day followed by another bad night reads as if the food had started it.
How long. The studies measured one night per condition and could not say more for that reason. A comparison of your own needs many similar days and their nights, over weeks, before one of them is more than a single evening.
If you have slept badly for weeks, see a doctor first. Breathing pauses during sleep and some other conditions break up the night as well, and no food diary shows them.