CBD vs Magnesium for sleep — which one for which kind of bad sleep?
Magnesium glycinate is the better-evidenced, cheaper, lower-interaction first step for the majority of sleep complaints — particularly stress-driven sleep-onset difficulty, restless leg-style symptoms at night, and the muscle-tension-related sleep maintenance issues common in adults over 40. CBD has trial-level signals in anxiety-related sleep complaints and in some specific clinical conditions (PTSD-related sleep disturbance, certain treatment-resistant insomnia patterns), but the data are far softer, the products vary wildly in actual CBD content, and the drug-interaction profile is non-trivial (real CYP3A4/CYP2C19 effects).
Quick verdict
| Sleep complaint | Better choice | Why |
|---|---|---|
| Trouble falling asleep, racing mind | Magnesium glycinate (first) | Tier-1 evidence in sleep-onset; CBD has signals in anxiety-related insomnia but at much higher cost and interaction load. |
| Waking at 3 AM (sleep maintenance) | Magnesium glycinate ± glycine | Standardised dosing, well-tolerated; CBD trials show less consistent maintenance benefit. |
| Anxiety-driven insomnia (clinical) | CBD (after magnesium trial) | Trial-level signals in anxiety-related sleep disturbance; coordinate with the prescriber if on antidepressants. |
| Restless legs / leg cramps disturbing sleep | Magnesium glycinate | Direct mechanism; CBD is not indicated. |
| Chronic pain-related insomnia | CBD (modest case) | Pain-related sleep disruption is one of the cleaner CBD signals; magnesium helps muscle-tension components. |
| Stress-related sleep (cortisol-disrupted) | Magnesium (first), CBD optional add | Lower cost, better safety profile, cleaner evidence. |
How they compare on the things that matter
Mechanism — mineral cofactor vs endocannabinoid modulator
Magnesium is an essential mineral and cofactor for more than 300 enzymatic reactions, including those involved in melatonin synthesis, GABA-A receptor function, NMDA receptor modulation, and muscle relaxation. Suboptimal status is common (NHANES-style intake data put around half of adults below RDA), and supplementation in low-status individuals improves sleep-related metrics in trials. Glycinate is the form with the cleanest combination of bioavailability, GI tolerance, and the mild sedative contribution of the glycine moiety itself.
CBD (cannabidiol) is a non-intoxicating phytocannabinoid that interacts with the endocannabinoid system via indirect mechanisms (CB1/CB2 are largely allosteric targets), and also acts on serotonin 5-HT1A receptors, TRPV1 channels, and modulates adenosine signalling. For sleep, the leading hypothesis is anxiety reduction and pain modulation rather than direct sedation.
Evidence base by clinical endpoint
- Subjective sleep quality: Meta-analyses of magnesium trials show small but consistent improvements in sleep-onset latency, total sleep time, and subjective quality, particularly in older adults and in users with low baseline magnesium status. CBD trials show variable subjective improvements that are difficult to separate from anxiolytic effect.
- Objective sleep architecture: Magnesium has modest signals on slow-wave sleep and on sleep efficiency in older adults. CBD's effect on architecture is dose-dependent and inconsistent in published polysomnography studies.
- Anxiety-related insomnia: The cleanest CBD case. Open-label and small RCT data with doses of 25–75 mg/day have shown anxiety reductions that translate to sleep improvements.
- Restless legs and nocturnal muscle complaints: Magnesium has trial signals; CBD does not.
- Chronic pain-related insomnia: CBD has pain-related signals; magnesium addresses the muscle-tension component but not the underlying pain.
- REM behaviour disorder (in Parkinson's): CBD has small trial signals as an adjunct; magnesium is not specifically indicated.
Dose and form
For magnesium: 300–400 mg of elemental magnesium glycinate in the evening (most label dosing is by compound weight — magnesium glycinate is ~14% elemental, so a 1000 mg capsule supplies ~140 mg elemental). Alternative forms: magnesium citrate works but has a laxative tendency at higher doses; magnesium L-threonate has better CNS penetration on paper, used for cognition more than sleep.
For CBD: trial sleep doses run 25–160 mg/day. Most quality-controlled products give 15–25 mg per serving in oils, soft gels, or capsules. Take 60–90 minutes before bed. Buy only from brands publishing a recent batch-specific certificate of analysis (COA) showing CBD content within 10–15% of label claim and confirming no detectable pesticides, heavy metals, or unlabeled THC. The unregulated US market means label-to-content variance is common and large.
Safety
Magnesium glycinate is well-tolerated. The main caveat is chronic kidney disease — impaired renal excretion means standard supplemental doses can accumulate. Otherwise, the dose-limiting adverse effect is loose stools (more with citrate, oxide, and chloride forms than glycinate).
CBD has more practical safety considerations. It inhibits CYP3A4 and CYP2C19, which means meaningful interactions with: warfarin, certain anti-epileptics (most relevant clinically), some SSRIs, calcium-channel blockers, and many others. Liver enzyme elevations have been reported at the prescription Epidiolex doses (10–20 mg/kg/day) — not typical OTC doses, but a real reason to mention CBD use to the prescriber and to baseline LFTs at higher doses. Drowsiness and dose-dependent fatigue are common.
What the price difference buys you
Magnesium glycinate runs $0.05–0.15/day at evidence-based doses. CBD at trial-equivalent doses runs $0.80–3.00/day from a properly COA-tested brand. Over a year of nightly use, that's a $20 vs $400+ difference — at much weaker comparative evidence for the CBD spend.
Who should skip each
Magnesium should be approached cautiously in chronic kidney disease (especially eGFR <30), in patients on certain antibiotics where chelation matters for absorption (separate by 2 hours), and at high doses in users on potassium-sparing diuretics.
CBD should be avoided in pregnancy and lactation (data inadequate), discussed carefully with the prescriber in users on any CYP3A4/CYP2C19-metabolised medication, monitored for transaminase elevations in users on hepatotoxic medications, and avoided pre-surgery without anaesthesia team awareness.
What we'd actually buy
For most adults with garden-variety insomnia: magnesium glycinate 300–400 mg elemental before bed; pair with sleep hygiene (consistent wake time, no caffeine after noon, dark cool bedroom, no screens in the final hour).
For users who have addressed the basics, given magnesium a fair 4–6 week trial, and still have anxiety-driven sleep onset issues: add a COA-tested CBD product at 25–50 mg taken 60–90 minutes before bed, and review the medication list with a pharmacist or prescriber first.
Sources
- Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a systematic review and meta-analysis. BMC Complement Med Ther. 2021;21(1):125. PMID: 33865376
- Abbasi B, et al. The effect of magnesium supplementation on primary insomnia in elderly: a double-blind placebo-controlled clinical trial. J Res Med Sci. 2012;17(12):1161–1169. PMID: 23853635
- Shannon S, et al. Cannabidiol in anxiety and sleep: a large case series. Perm J. 2019;23:18–041. PMID: 30624194
- Suraev AS, et al. Cannabinoid therapies in the management of sleep disorders: a systematic review of preclinical and clinical studies. Sleep Med Rev. 2020;53:101339. PMID: 32603954
- Brown JD, Winterstein AG. Potential adverse drug events and drug-drug interactions with medical and consumer cannabidiol (CBD) use. J Clin Med. 2019;8(7):989. PMID: 31288397
- Bonn-Miller MO, et al. Labeling accuracy of cannabidiol extracts sold online. JAMA. 2017;318(17):1708–1709. PMID: 29114823