When to take supplements for sleep and focus
Most supplement disappointment isn’t a dose problem. It’s a clock problem.
The same compound, same amount, taken four hours apart, can help, do nothing, or actively work against you. Melatonin is the clearest case — and it is the one almost everyone takes at the wrong hour.
Caffeine: it’s later than you think
Caffeine has a half-life of roughly five to six hours in most adults. Drink 200 mg at 4pm and about 100 mg is still circulating at 10pm.
A controlled trial gave people 400 mg at bedtime, three hours before, and six hours before, and measured sleep objectively. All three disrupted sleep — including the six-hour dose, which cost about an hour of sleep. And crucially, participants taking it six hours early did not notice any impairment. [1]
That last detail is the whole problem. The people harmed by the afternoon coffee are exactly the people convinced it doesn’t affect them.
Practical: last caffeine eight hours before bed. For an 11pm bedtime that is 3pm. If that sounds extreme, the six-hour dose still cost an hour of sleep.
Genetics matter here — some people clear caffeine roughly twice as fast as others — but you cannot tell which you are from how alert you feel. Alertness is the compound working, not evidence it has left.
Melatonin: a clock signal, not a sedative
This is the one worth changing today. Melatonin is not a sleeping pill. It is the message your body sends to announce that biological night has started, and its main job is shifting when you get sleepy.
Two consequences:
- Timing beats dose. Taken two to three hours before your target bedtime, it advances your clock. Taken at bedtime, it mostly just sits there.
- Less is more. Doses around 0.3–0.5 mg approximate what your body actually produces. The 5 and 10 mg tablets on shelves are ten to thirty times physiological, and higher doses are more associated with grogginess than with better sleep.
Where it genuinely earns its place: jet lag and a delayed body clock. Where it mostly disappoints: ordinary can’t-switch-off insomnia, which is usually an arousal problem, not a clock problem.
Magnesium: evening, and the form matters
Magnesium is involved in hundreds of processes including the systems that quiet neural activity, and mild insufficiency is common.
Take it in the evening — 60 to 120 minutes before bed. Form matters more than most labels admit: glycinate and threonate are well absorbed and gentle; oxide is cheap, poorly absorbed, and mainly known for its laxative effect. If magnesium once “did nothing except send you to the bathroom”, you probably met oxide.
Expect something modest. It is a floor-raiser, not a switch.
L-theanine and caffeine: together, morning
L-theanine takes the edge off caffeine’s jitter without removing the alertness. Roughly 2:1 theanine to caffeine — 200 mg with 100 mg — taken together.
Theanine alone in the evening is sometimes recommended for relaxation. It is harmless and mild; I would not expect much.
The timing map
- Morning: caffeine (ideally 60–90 minutes after waking, not before), L-theanine alongside it, vitamin D with a meal containing fat.
- Afternoon: caffeine cut-off eight hours before bed. This is the single highest-value item on the list.
- 2–3 hours before bed: melatonin, low dose, only if you are shifting a clock.
- 1–2 hours before bed: magnesium glycinate.
What no timing can rescue
If your room is warm, your schedule moves by two hours between weekdays and weekends, and you are drinking most evenings, no supplement schedule will fix your sleep. Alcohol in particular suppresses the deep and REM sleep you are trying to buy.
Supplements are the last few percent. Taken at the right hour they are a real few percent — but they are the last ones, not the first.
The 90-minute rule for your first coffee
Cortisol peaks naturally in the first half hour after waking. Caffeine taken into that peak adds alertness you were already getting for free, and the common experience is a harder crash mid-morning.
Waiting 60–90 minutes lets the natural peak do its work and puts the caffeine where the dip starts. The evidence here is thinner than for the evening cut-off — treat it as a reasonable habit rather than an established finding. It costs nothing to try for a week.
With food or without
Worth getting right because it changes absorption more than most people expect:
- Fat-soluble vitamins (D, K2, E, A): with a meal containing fat. Taken on an empty stomach, a meaningful share simply does not get absorbed.
- Magnesium: either, but with food if it upsets your stomach.
- Iron: away from coffee, tea and calcium — all three markedly reduce absorption. Vitamin C helps it.
- Melatonin: a large meal delays absorption and therefore the timing you were trying to hit. Take it away from dinner.
Why splitting a dose sometimes matters
For anything water-soluble with a short half-life, one large dose produces a spike and then nothing. Two smaller doses hold a steadier level.
This is mostly relevant for magnesium at higher intakes, where a single large dose is also the most likely to cause digestive trouble. Splitting it — some with dinner, some before bed — usually solves both problems at once.
The honest hierarchy
Ranked by how much they change how you actually feel:
- Caffeine timing. Large effect, free, immediate. Nothing else on this list competes.
- Melatonin timing, if you are shifting a clock. Large effect for that specific job, near-zero for anything else.
- Vitamin D, if you are actually deficient — which is worth testing rather than assuming, and common at northern latitudes in winter.
- Magnesium in the evening. Modest, real, cheap.
- Everything else. Mostly marginal, and heavily dependent on whether you were short of it to begin with.
Number one is a scheduling decision, not a purchase. That ordering is not an accident, and it is the part supplement marketing is structurally incapable of telling you.
[1] Drake, C. et al. (2013). “Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed.” Journal of Clinical Sleep Medicine, 9(11), 1195–1200.
Timing is one layer. Light, temperature, the caffeine window, the last 90 minutes — the full stack in the right order is inside Biohacking Secrets. No fluff, the exact protocols.
GET THE GUIDE →
Comments
0 comments