Comparative guide · 5 min read

CBD vs Magnesium for sleep — which one for which kind of bad sleep?

Updated 2026-05-21 · Reviewed by SupplementScore editors · No sponsorships

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 complaintBetter choiceWhy
Trouble falling asleep, racing mindMagnesium 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 ± glycineStandardised 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 sleepMagnesium glycinateDirect mechanism; CBD is not indicated.
Chronic pain-related insomniaCBD (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 addLower 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

Practical rule. Start with magnesium glycinate 300–400 mg elemental about an hour before bed for 4–6 weeks. If sleep is still difficult and the pattern is clearly anxiety-driven, add CBD 25–50 mg taken 60–90 minutes before bed from a third-party-tested COA-published brand — and tell the prescriber if you're on any CYP3A4-metabolised medication.

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