Sleeping better: what the plate and the glass decide

Falling asleep fast and sleeping through are two different things. The second is largely decided at the table.

1. Falling asleep is not sleeping

Many people who call themselves bad sleepers fall asleep perfectly well. What they struggle with is what follows: waking around 3am, broken sleep through the second half of the night, and getting up more tired than they went to bed.

The distinction is useful, because the two problems have different causes. Falling asleep depends mostly on how alert you are at bedtime. The continuity of the night depends a great deal on what is still circulating in your blood while you sleep.

And there, three things weigh heavily and are settled in advance: what dinner was made of, caffeine, and alcohol.

2. Dinner and the night

This is the thread left hanging in Gaining energy: a carb-heavy dinner is paid for twice.

The mechanism is the same as in the daytime. The meal sends a lot of glucose in at once, the pancreas answers with a release of insulin, and blood sugar comes back down two to three hours later, passing below where it started. Except that at that hour, you are asleep.

Blood sugar dropping overnight triggers a corrective hormonal response, cortisol and adrenaline among others, whose job is to bring the level back up. Those are also waking hormones. Hence those middle-of-the-night wakings with no apparent cause, often around 3am, which is precisely the interval you would expect after a dinner eaten at 8pm.

The paradox is the same as with the afternoon slump: the sweet dessert that felt soothing is what breaks the night up three hours later.

The lever is not to skip dinner, which would do the opposite, but to flatten its curve: keep the protein and the vegetables, lighten the starch portion, and finish on something other than a fast sugar.

3. Caffeine, more stubborn than you think

Caffeine has a half-life of about five to six hours in adults. A coffee at 4pm therefore still leaves half its dose active at 9 or 10pm, and a quarter in the middle of the night.

An often-cited trial measured this directly. Volunteers were given 400mg of caffeine, the equivalent of two to three cups, either at bedtime, three hours before, or six hours before. The result: even six hours before bed, objectively measured sleep time fell by more than an hour.

400mg of caffeine, six hours before bed

−1h
of objectively measured sleep
0
difference noticed by participants

The second figure is the more instructive one. The participants noticed nothing: their sleep diaries reported no trouble at all. So you can lose an hour of sleep a night to an afternoon coffee while being convinced caffeine has no effect on you.

💡 The test is cheap: stop caffeine after 2pm for a week. If sleep improves, your sensitivity is established. Watch tea, colas and dark chocolate too, which also contain it. The figures are in the table Drinks.

4. Alcohol, the false friend

Alcohol is a sedative, not a sleep aid. The difference is exactly the one from the first section: it helps you fall asleep and stops you sleeping well.

Its effect is biphasic, and well described. In the first half of the night, falling asleep is faster and deep sleep increases. Then, as the alcohol is metabolized, the second half becomes markedly more fragmented, with repeated wakings. REM sleep, the kind that carries memory consolidation, is reduced across the whole night, and the more so the higher the dose.

The overall picture is therefore misleading: you fell asleep faster, and slept worse. Since what you notice is mostly the falling asleep, the evening drink passes for a help when it is one of the causes.

On this there is no trade-off to present: the effect is dose-dependent, the less there is the better the night goes, and zero remains the best case. No amount of alcohol improves sleep.

That said, for anyone who will drink anyway, timing counts almost as much as dose: the further along the alcohol's metabolism is at bedtime, the more the second half of the night is spared. Moving the drink earlier, to before the meal rather than the last moment, limits the damage. It is not a solution, it is a lesser harm.

5. Magnesium

Three nutrients come up constantly on this subject. Their level of evidence is not the same, and saying so is part of the information.

Magnesium takes part in regulating the nervous system, and a deficiency often goes with poorer quality sleep. Correcting an insufficient intake is therefore justified. The idea that taking more improves sleep in someone whose status is already adequate, on the other hand, rests on studies that are few and small.

The best sources are seeds and nuts, and this site's tables give the figures:

Magnesium, per 100g

550mg
Pumpkin seed
325mg
Sunflower seed
270mg
Almond

The European reference intake is 375mg a day. The table Seeds & nuts uses a 30g serving. At that size, a handful of pumpkin seeds supplies 165mg, close to half the daily need. A handful of sunflower seeds gives 98mg, a handful of almonds 81mg.

So it is reachable, on one condition: that the magnesium comes from there. Because on this point the site runs into its own logic. Whole grains are often presented as the answer, and they do contain far more than refined ones:

Per 100gRefinedWhole grain
Rice12mg43mg
Bread24mg82mg
Pasta18mg27mg

Refining takes away two thirds of the magnesium, along with the fiber. But that table says only one thing: among grains, the whole one keeps what the refined one lost. It does not make grains a good source, and the ratio to carbs is what shows it.

Per 100gMagnesiumCarbsMg per g of carbs
Pumpkin seed550mg3.7g149
Almond270mg5.4g50
Whole wheat bread82mg37g2.2
Brown rice43mg23g1.9

For the same magnesium, a pumpkin seed brings nearly 70 times fewer carbs than whole wheat bread. Looking for your magnesium in grains, even whole ones, means paying for every milligram in glycemic load, exactly what Glycemic index and glycemic load advises against.

The path consistent with the rest of this site is narrow but clear: seeds, nuts and green vegetables. That is not what most people eat, which is exactly why a sizeable share of the population stays below the reference intake.

A supplement need not be the first reflex, since the first lever is on the plate and a handful of pumpkin seeds already covers close to half the need. But if that route does not take hold, it is worth discussing, with a doctor or a pharmacist rather than alone: doses and interactions are not all equivalent, and magnesium calls for caution in kidney failure.

Choosing a magnesium supplement

One point is worth knowing before walking into a pharmacy, because it is chemistry rather than medical advice: the form matters more than the number on the label.

Magnesium oxide, the cheapest and most common, is nearly insoluble at neutral pH. The fraction actually absorbed is around 4%, against 28 to 33% for organic salts. The rest passes through the gut unabsorbed, which incidentally explains its laxative effect. Chelated forms, bisglycinate among them, are far better absorbed and much better tolerated. Between those forms and a citrate, however, no trial has compared the effect on sleep.

💡 And the same label trap as with carbs applies: 1000mg of bisglycinate on the label is only 141mg of elemental magnesium. The rest of the weight is the two glycines the magnesium is bound to. The line to read is “elemental magnesium”, not the weight of the compound.

This detail has an unexpected consequence, which the next section returns to: since glycine makes up 86% of the molecule's weight, a 300mg dose of elemental magnesium as bisglycinate also delivers about 1.8g of glycine.

6. Tryptophan and glycine

Two amino acids come up on this subject, for different reasons.

Tryptophan is one of the nine essential amino acids described in Protein: quantity does not tell you quality. It is the precursor of serotonin, itself the precursor of melatonin. Without it, the chain does not happen. It is found in eggs, cheese, poultry, oily fish and nuts, which is to say in the same foods recommended elsewhere on this site.

Glycine is a non-essential amino acid, but it is the one with the most concrete sleep data. A Japanese trial showed that 3g taken about an hour before bed shortened the time to fall asleep and to reach deep sleep, improved perceived sleep quality and reduced next-day drowsiness, without altering sleep architecture.

The proposed mechanism is elegant: glycine increases blood flow to the skin, which lowers core body temperature. And that drop is precisely one of the physiological signals that trigger sleep.

Honesty about the level of evidence: these trials are few and involve small numbers. It is encouraging, it is not established.

And unlike magnesium, the plate is not a credible alternative here. Glycine comes mainly from collagen, so from bone broth, gelatinous cuts and poultry skin: foods rarely eaten today, and hard to fit in any quantity an hour before bed. Reaching the 3g of the trials is in practice a matter of a supplement, not a menu adjustment.

Which brings back the rule set out for magnesium: this is to be discussed with a doctor or a pharmacist. Worth noting in passing that the bisglycinate mentioned above already supplies a good part of it, without needing to add a second powder.

7. In practice: the evening
1

Last coffee at 2pm.

This is the best effort-to-result change, and the one whose effect is best documented. A week is enough to settle it.

2

A flat-curve dinner.

Protein, vegetables, a reduced starch portion. That is what avoids the middle-of-the-night blood sugar drop and the waking that comes with it.

3

No fast sugar at the end of the meal.

A spike at the end of dinner is the costliest of the day, since its rebound lands in the middle of the night instead of showing up in a meeting room. A square of dark chocolate or some cheese goes down far better than a sweet dessert.

4

Less alcohol in the evening, and earlier.

Quantity weighs most, timing comes second. Short of skipping it altogether, have it before the meal rather than at bedtime: the second half of the night feels it directly.

5

A handful of nuts during the day.

It covers a good share of the magnesium, supplies tryptophan, and usefully replaces the sugary afternoon snack.

8. What to take away
LeverEffectEvidence
Stop caffeine after 2pmUp to more than an hour of sleep recoveredSolid
Cut evening alcohol, and move it earlierLess fragmented second half of the night. No dose improves sleepSolid
Lower-carb dinnerAvoids the overnight drop and the 3am wakingConsistent
MagnesiumRestores the sleep quality a deficiency degrades. No effect if dietary intake is already sufficientConsistent
Glycine before bedFaster onset, better perceived qualityPreliminary

An order appears when you read the evidence column from top to bottom: the best established levers are all removals, and the ones that consist of adding something bring up the rear. That is therefore where to start, all the more since it is also where the effects are largest: an hour of sleep recovered from simply moving a coffee, no supplement offers that. As long as the afternoon caffeine, the late drink or the sweet dessert stay in place, they cancel most of what could be added elsewhere.

Which does not make the additions useless: correcting an insufficient magnesium intake is justified, and glycine has real data behind it, preliminary though it is.

⚕️ This article describes general mechanisms, it does not replace medical advice. Established insomnia, waking with a feeling of choking, snoring with pauses in breathing, or significant daytime sleepiness should be seen by a professional: they can point to sleep apnea or another disorder that food will not correct. Any supplement should be discussed with a doctor or a pharmacist, particularly alongside ongoing treatment, or with kidney failure in the case of magnesium.

ℹ️ Sources
Caffeine: Drake C. et al., Caffeine Effects on Sleep Taken 0, 3, or 6 Hours before Going to Bed, Journal of Clinical Sleep Medicine, 2013. PubMed
Alcohol: The effect of alcohol on subsequent sleep in healthy adults: a systematic review and meta-analysis, Sleep Medicine Reviews, 2024. ScienceDirect
Glycine: Yamadera W. et al., Glycine ingestion improves subjective sleep quality in human volunteers, correlating with polysomnographic changes, Sleep and Biological Rhythms, 2007. Springer
Glycine mechanism: New Therapeutic Strategy for Amino Acid Medicine: Glycine Improves the Quality of Sleep. ScienceDirect
Absorption by magnesium form: Lindberg J.S. et al., Magnesium bioavailability from magnesium citrate and magnesium oxide. PubMed