LONGEVITY
Carbs at night: in a polysomnography trial, the right dinner cut time-to-sleep from 17 minutes to 9
Carbohidratos de noche: en un ensayo con polisomnografía, la cena correcta cortó el tiempo para dormirse de 17 minutos a 9
Illustrative image. It does not represent guaranteed results.
Key points
- Your body uses dinner to build the raw material for sleep. A meal with carbohydrate raises the share of tryptophan in your blood — the amino acid you make serotonin and melatonin from. It is not a trick. It is the normal pathway.
- The number in the headline. In twelve healthy young men, measured in a lab with polysomnography, a high-glycemic-index rice dinner eaten four hours before bed was associated with falling asleep in 9 minutes, against 17.5 minutes with the low-index dinner (P = 0.009).
- The timing mattered more than the carb. The same dinner, eaten one hour before bed instead of four, lost almost all of the effect: 14.6 minutes against 9.0 (P = 0.01).
- This is not permission for sugar. In 77,860 postmenopausal women, an overall high-glycemic-index diet was associated with more insomnia — and fiber, whole grains, whole fruit and vegetables with less.
- The direct evidence is small, and that has to be said. The trial behind the number is twelve people, one night per condition. There is another trial, in nine athletes, where the glycemic index of dinner changed nothing. What does repeat across the larger studies is the pattern: a real dinner, with whole carbohydrate, finished a few hours before bed.
In this article
- What your body does with a plate of carbs before bed
- The trial: 17 minutes against 9
- The timing mattered more than the carb
- What happened in 77,860 women: the other side of the carb
- Fiber changed how deep the sleep was, not just how fast
- What if I cut carbs at night altogether?
- The study where nothing happened
- What this actually means for your dinner
- So your expectations are the right ones
- Who is this NOT for?
- Where this fits if you are losing weight
- Frequently asked questions
- Sources
There is a rule you have heard so many times it now sounds like a fact: no carbs after six in the evening. If you have been following it with discipline, we have good news — the kind that almost never shows up in health: the rule, as it was told to you, is not in the data. And what is in the data is more useful than the rule, because it gives you something to do tonight.
Let's start with what your body already does well.
What your body does with a plate of carbs before bed
Melatonin and serotonin do not appear out of nowhere. You build them, and you build them from an amino acid called tryptophan. Tryptophan comes from food — chicken, fish, eggs, beans, milk, seeds — and then it has to reach the brain.
Here is the elegant part. To get into the brain, tryptophan uses a transporter it shares with other large amino acids. Think of one door with a line in front of it. Tryptophan usually loses that line, because it shows up in the smallest amount.
When you eat carbohydrate, the pancreas releases insulin. And insulin does something very specific: it moves the other large amino acids into muscle. The line clears. Tryptophan, which barely responds to insulin, is left standing at an open door — and in it goes.
That is the whole mechanism. There is no secret substance in rice. There is a meal that changes who gets priority at a door.
It is the reason carbohydrate has been studied in sleep nutrition since the 1970s. And it is also the reason the interesting question was never "carbs or no carbs?" but which ones, how many, and at what hour.
The trial: 17 minutes against 9
The study behind the headline number came out of a group at the University of Sydney and was published in The American Journal of Clinical Nutrition in 2007. It is small, it is well done, and it is worth telling with the seams showing.
Twelve healthy men aged 18 to 35 took part, all good sleepers. Each spent one adaptation night in the lab and then three test nights, in random order, a week apart. Every night was measured with polysomnography: electrodes, not a phone app and not a questionnaire.
The dinners were matched for calories — 3,212 kJ, about 770 calories — and 90% of that energy came from carbohydrate. The only difference was the kind of rice:
- High-glycemic-index rice: jasmine, index 109.
- Low-glycemic-index rice: long-grain Mahatma type, index 50.
Both dinners were given four hours before the usual bedtime. The result:
- With the high-index rice, time to fall asleep was 9.0 minutes (± 6.2).
- With the low-index rice, 17.5 minutes (± 6.2).
- The difference was statistically significant: P = 0.009.
Eight and a half minutes. Put another way: nearly half the time staring at the ceiling.
And now the seam, because it matters: nothing else changed. Not total sleep time, not the number of awakenings, not how the stages were distributed. Only how fast they got in. The authors themselves closed the paper asking someone to repeat this in people with sleep problems, because they had measured people who already slept well.
Twelve people are not a public-health recommendation. They are a good, well-measured lead. Treat it as one.
The timing mattered more than the carb
This is, to us, the most useful part of the trial, and the part that almost never gets told.
The same study had a third night: the same high-index dinner, but served one hour before bed instead of four. If the story were "carbs make you sleepy," the hour should not change much.
It changed:
- Four hours before: 9.0 minutes to fall asleep.
- One hour before: 14.6 minutes (± 9.9).
- P = 0.01.
Eating the same plate too close to bed erased most of the advantage. It makes sense: insulin, the movement of tryptophan and the manufacture of melatonin all need time. And meanwhile you are lying down with a stomach still at work.
That fits what shows up when you ask a lot of people. Work from the same Sydney group, published in 2020, surveyed 793 young adults aged 18 to 29. Eating within three hours of bedtime was associated with waking up during the night: odds ratio 1.61 (95% confidence interval 1.15 to 2.27), and 1.43 (1.00 to 2.04) after adjusting for ethnicity and body mass index.
The honest thing is to name that data's three limitations, because they are large. It is a questionnaire, not a measurement. It is cross-sectional: a photo, not a film, so it cannot say what came first. And the authors themselves call it preliminary. That said, it points the same way the trial does: what bothers sleep is not the carbohydrate, it is the closeness.
And notice one detail: in that same survey, eating close to bed was not associated with taking longer to fall asleep (1.24; 0.89 to 1.73) or with sleeping less than six hours (0.79; 0.49 to 1.26). Only with waking up. The evidence is finer than the slogan.
What happened in 77,860 women: the other side of the carb
If the story ended here, somebody would walk out of this article with a bag of gummy candy and a clear conscience. That is not what the large data say, and this section exists to prevent it.
In 2020, also in The American Journal of Clinical Nutrition, an analysis of the Women's Health Initiative was published — a very large study of postmenopausal women in the United States. Looking at the whole diet, not one dinner:
- 77,860 women at baseline and 53,069 followed up three years later.
- Those in the fifth with the highest glycemic index in their overall diet had more insomnia: odds ratio 1.11 (1.05 to 1.16) at baseline, with a significant trend (P = 0.0014).
- And more new insomnia at three years: 1.16 (1.08 to 1.25), with a strong trend (P < 0.0001).
- Added sugar, starch and refined grains were each associated with more new insomnia.
- And on the other side: fiber, whole grains, whole fruit and vegetables were associated with less insomnia.
This is observational: it shows association, not cause. And the effects are small — 11% to 16% on the starting odds, not "double" anything. But the pattern is consistent and the study is large.
So how does this fit with the rice trial? It fits without any contradiction, and it is the central idea of this article:
A real dinner with carbohydrate, a few hours before bed, is not the same thing as a diet built on sugar and refined flour. The first is a meal. The second is a pattern. And sleep responds to both, in opposite directions.
If you want to see the same principle applied to another food, we cover it in fruit is not bad sugar and in glucose spikes and aging.
Fiber changed how deep the sleep was, not just how fast
Falling asleep fast is one thing. Sleeping deeply is another, and it is the one most tied to aging well.
There is a small but very careful study, published in the Journal of Clinical Sleep Medicine in 2016, done with people admitted to a lab and sleep measured with electrodes. There were 26 adults of normal weight, aged 30 to 45, who slept seven to nine hours. They ate a controlled diet for three days and on the fourth day chose freely whatever they wanted.
What they found, looking at the free-choice day:
- Total sleep time did not change, but there was less deep sleep (P = 0.0430) and it took longer to fall asleep (P = 0.0085) than after the controlled days.
- More fiber predicted less light stage-1 sleep (P = 0.0198) and more deep sleep (P = 0.0286).
- More saturated fat predicted less deep sleep (P = 0.0422).
- More energy from sugar was associated with more brief awakenings (P = 0.0320), and the same for carbohydrate that was neither sugar nor fiber (P = 0.0481).
In one line: fiber pushed sleep toward the deep end; sugar and saturated fat pushed it toward the light end. Which happens to be the same sentence that works for the heart, for glucose and for the liver.
It is 26 people and a single day of free eating. It is not a law. It is a lead that points where the others point.
What if I cut carbs at night altogether?
Fair question, and it has a measured answer. The same Sydney group ran the opposite experiment in 2008, with 14 healthy men aged 18 to 35. It compared a normal dinner (72% of energy as carbohydrate) with a dinner almost without carbohydrate (under 1%, with 61% fat), both four hours before bed, and also measured after 48 hours in ketosis.
With the carb-free dinner:
- Deep sleep went up: 17.7% of the time in the acute phase and 17.8% in ketosis, against 13.9% on the control night (P = 0.02 for both).
- REM sleep went down — the dreaming stage (P = 0.006 in the acute phase and P = 0.05 in ketosis).
Read that carefully, because it is easy to draw the wrong conclusion in either direction. Taking carbohydrate out of dinner did not ruin sleep. It changed its shape: more deep, less REM. And REM is not a luxury — it is tied to memory and to regulating emotion — so "more deep and less REM" is not automatically better. It is different.
The practical reading is reassuring: if you eat low-carb and you sleep well, there is nothing here telling you to change it. And if you eat carbohydrate at dinner, there is nothing here telling you to drop it either.
The study where nothing happened
This is where a lot of articles go quiet. We won't, because it is the part that lets you calibrate everything above.
In 2019 a study was published with nine adult basketball players, followed through a championship, given a high- or low-glycemic-index dinner and evening snack before games. Sleep was measured with actigraphy and a diary, and salivary cortisol and melatonin were measured too.
Result: no difference from the glycemic index. Not in time to fall asleep, not in efficiency, not in awakenings, not in the hormones. What did show up was something else: the more total energy they had eaten during the day, the worse they slept — less efficiency, fewer hours, more awakenings — regardless of the evening's glycemic index.
Nine people, athletes in competition, sleep measured by watch rather than electrodes. Not a law either. But it leaves two honest lessons:
- The effect of dinner's glycemic index is not large or reliable in everyone. In people who already sleep badly for other reasons, it is noise.
- The total outranks the detail. How much you eat in a day weighs more than the fine point of when you had the rice.
That second sentence is probably the most valuable one in this whole article.
What this actually means for your dinner
None of the above helps if you don't know what to do tonight. Here is what the evidence supports, without stretching it:
1. Eat a real dinner, and finish about three or four hours before bed
This is where the trial (four hours beat one hour) and the survey (eating within three hours was associated with waking up) agree. If you go to bed at eleven, dinner between seven and eight lands right there. You don't need a stopwatch. You need to not eat dinner in bed.
2. Make the carbohydrate whole, not refined
Rice, potato, cassava, plantain, beans, oats, whole-grain bread, fruit. That is what pushed sleep toward the deep end in the fiber study, and what was associated with less insomnia in the 77,860 women. The high-index rice in the trial did work — but one dinner is not a diet, and for everyday eating whole carbohydrate wins.
3. Put the tryptophan on the same plate
The mechanism needs both pieces: the amino acid and the carbohydrate that opens the door for it. Chicken with rice. Beans with plantain. Fish with potato. Egg with whole-grain bread. Oats with milk. These are ordinary dinners, and for once the physiology agrees with your grandmother.
4. Watch the saturated fat at night
That was the one associated with less deep sleep. It is not a ban; it is one more reason the heavy fried dinner shouldn't be the norm.
5. If you get hungry before bed, keep it small and keep it real
A yogurt, a piece of fruit, a handful of nuts. Small, because what was associated with waking up was eating close to bed, and a big meal weighs more than a bite. If what shows up almost every night is a strong craving that is hard to stop, that is a different subject and we cover it in nighttime sugar cravings.
6. And what really makes the difference: the things that aren't food
None of this competes with getting the hours in, with a steady bedtime, with darkness, with afternoon caffeine or with alcohol. Dinner is a fine adjustment. Those are the coarse ones, and they are in sleep and longevity.
So your expectations are the right ones
What this evidence can give you, said plainly:
- Minutes, not hours. The measured number was about eight and a half minutes less to fall asleep, in people who already slept well. It is real and it is pleasant. It is not a treatment.
- One piece, not the solution. If you sleep genuinely badly, dinner is not your main problem. Chronic insomnia has treatments that work, and the first one is not a diet.
- Permission, not a prescription. The big value here isn't a number: it's that you can stop being afraid of a plate of rice at seven in the evening. That rule was taking food away from you and not giving you sleep.
- It varies from person to person. There is a trial where nothing happened. You could be one of those. Try it for two weeks and watch yourself, which is the only sample that matters to you.
Who is this NOT for?
This section is safety, not tone. If you are in any of these situations, the above does not apply the same way:
- If you have reflux or heartburn. Eating and lying down is the combination that worsens reflux most. For you, finishing early is not a fine adjustment: it is the treatment, and it is worth discussing with your doctor.
- If you have diabetes or use insulin. The amount of carbohydrate at dinner is part of your treatment and it affects your glucose overnight and in the early morning. Do not change it on your own.
- If you use a GLP-1 medication or have slow stomach emptying. Food stays longer. Eating late or eating a lot can sit badly. Leave more margin, not less.
- If you have chronic insomnia. This does not treat it. What has the best evidence is cognitive behavioral therapy for insomnia, and that is what is worth getting to.
- If you snore loudly or someone has seen you stop breathing in your sleep. That may be sleep apnea, and no dinner fixes it. It gets evaluated and treated.
- If you have night binge eating or a difficult relationship with food. Do not use this article as permission. It deserves professional support, not a new rule.
- If you work nights or rotating shifts. All of this evidence was measured in people who sleep at night. Your case needs a different plan.
- If you are pregnant or breastfeeding. Your needs and your limits are set by your obstetrician.
- If it's a child. A child's eating is determined by their pediatrician.
- If you follow a diet prescribed by a doctor — kidney disease, liver disease, or anything else. That instruction outranks any general guide.
Nothing in this article decides whether a program or a medication is for you. A physician with your history in front of them decides that. Eligibility is determined by medical evaluation.
Where this fits if you are losing weight
Let's be clear: dinner is not a weight-loss treatment, and none of the studies above measured that. The real overlap is something else, and it is useful.
Sleeping badly and weight go together in both directions. When you sleep little, the next day's hunger goes up and what you crave changes; we cover it in sleep and weight loss. And the reverse: a dinner that leaves you hungry at eleven at night is a dinner that pushes you toward a craving, not toward sleep.
That is where this becomes practical for someone losing weight. On a GLP-1 medication you eat considerably less, so every meal has to earn its place: you have to reach your protein and your fiber with less room. A dinner with protein and whole carbohydrate, at a reasonable hour, does three things at once — it feeds you, it takes away the night hunger, and it leaves the margin your stomach needs. And constipation, one of the most common complaints when starting, is also worked on with that fiber.
SCTS1 offers GLP-1 programs with FDA-approved medications (Wegovy®, Foundayo™, Ozempic®) from $149 a month, by telemedicine, in Spanish and English. The path is this: you pay and start your program first; then a licensed physician reviews your case — habits, stress, sleep and medical history — and only if they consider it necessary, orders labs.
Eligibility is determined by medical evaluation. Results vary from one person to another.
Frequently asked questions
So can I eat carbs at night?
Yes, and the "nothing after six" rule has no support in this data. What the data support is a dinner with whole carbohydrate, finished about three or four hours before bed. What they do not support is a diet built on sugar and refined flour, or eating in bed.
How many minutes will I gain?
In the trial it was about eight and a half, from 17.5 to 9.0, in twelve healthy young men who already slept well. It may be less in you, and there is a trial in nine athletes where there was no difference at all. Expecting minutes is realistic; expecting insomnia to be fixed is not.
What is the best time to eat dinner?
Where the two studies agree is on finishing about three or four hours before sleep. If you go to bed at eleven, that means dinner between seven and eight. More important than the exact clock time is that it not be right before you lie down.
So is white rice good for sleep?
In that trial, the high-glycemic-index rice worked better than the low-index one for falling asleep quickly. But the large study of 77,860 women associated a high-glycemic-index diet with more insomnia. One dinner and a diet are not the same thing. For everyday eating, whole carbohydrate is the sensible bet.
What about a glass of warm milk?
It fits the mechanism: it has tryptophan, and the lactose supplies the carbohydrate. It does not have a strong trial behind it on its own. If it works for you and you enjoy it, it is a good habit and there is nothing to object to.
Does oatmeal before bed help?
It is a reasonable option: whole carbohydrate and fiber, which is what was associated with more deep sleep. There is no oatmeal-and-sleep trial that lets anyone promise anything. As an early dinner or as a small bite, it fits fine.
Is a tryptophan or melatonin supplement better than dinner?
An analysis of 28 trials found that nutrient interventions shortened time to fall asleep and awakenings somewhat, with tryptophan among those involved. The effects are small. And a supplement is something you take: discuss it with your doctor, especially if you use antidepressants, because there are interactions there that matter.
If I eat low-carb, am I sleeping worse?
There is no data saying that. In the near-zero-carb dinner trial, deep sleep went up and REM went down: it changed shape, it was not ruined. If you sleep well, there is no reason to change anything.
What about caffeine and alcohol?
They weigh far more than dinner's carbohydrate. Caffeine lasts hours in the body, and alcohol gets you to sleep fast but fragments the second half of the night. If you are fine-tuning dinner but still having a five o'clock coffee, you are filing down the detail and leaving the lump.
Sources
- Afaghi A, O'Connor H, Chow CM. High-glycemic-index carbohydrate meals shorten sleep onset. Am J Clin Nutr. 2007;85(2):426-430. — DOI: 10.1093/ajcn/85.2.426
- Chung N, Bin YS, Cistulli PA, Chow CM. Does the proximity of meals to bedtime influence the sleep of young adults? A cross-sectional survey of university students. Int J Environ Res Public Health. 2020;17(8):2677. — DOI: 10.3390/ijerph17082677
- Gangwisch JE, Hale L, St-Onge MP, et al. High glycemic index and glycemic load diets as risk factors for insomnia: analyses from the Women's Health Initiative. Am J Clin Nutr. 2020;111(2):429-439. — DOI: 10.1093/ajcn/nqz275
- St-Onge MP, Roberts A, Shechter A, Choudhury AR. Fiber and saturated fat are associated with sleep arousals and slow wave sleep. J Clin Sleep Med. 2016;12(1):19-24. — DOI: 10.5664/jcsm.5384
- Afaghi A, O'Connor H, Chow CM. Acute effects of the very low carbohydrate diet on sleep indices. Nutr Neurosci. 2008;11(4):146-154. — DOI: 10.1179/147683008X301540
- Daniel NVS, Zimberg IZ, Estadella D, Garcia MC, Padovani RC, Juzwiak CR. Effect of the intake of high or low glycemic index high carbohydrate-meals on athletes' sleep quality in pre-game nights. An Acad Bras Cienc. 2019;91(1):e20180107. — DOI: 10.1590/0001-3765201920180107
- Mei M, Zhou Q, Gu W, Li F, Yang R, Lei H, Liu C. Dietary supplement interventions and sleep quality improvement: a systematic review and meta-analysis. Nutrients. 2025;17(24):3952. — DOI: 10.3390/nu17243952
Related articles
Your trust is worth more than a sale.
This article is informational and is not medical advice. SCTS1 does not prescribe or dispense medications. All medical care, prescriptions and treatment plans are provided by licensed physicians through our partner platforms. Eligibility for treatment is determined by a licensed provider through medical evaluation. Food is not intended to diagnose, treat, cure or prevent any disease, and nothing described here is a treatment for insomnia or for any sleep disorder. The direct evidence is sparse: the main trial is twelve healthy young men with one night per condition, and its own authors asked for it to be repeated in people with sleep problems; there is also a trial in nine athletes in which dinner's glycemic index changed no sleep parameter at all. The data from the Women's Health Initiative, from the survey of 793 young adults and from the fiber and saturated fat study are observational and show association, not cause. If you have reflux, diabetes, chronic insomnia, suspected sleep apnea, slow gastric emptying, night binge eating, if you work shifts, are pregnant or breastfeeding, or follow a diet prescribed by a doctor, consult your provider before changing the timing or composition of your dinner. A child's eating is determined by their pediatrician. Results vary from one person to another.