Ashwagandha vs Magnesium: Which Has Better Evidence for Stress and Sleep?

One is an herbal adaptogen with small but positive trials and some safety flags; the other is an essential mineral with a clear role in the body but weaker evidence for stress relief in people who aren’t deficient.

Quick Answer: Ashwagandha (Withania somnifera) is an herb studied mainly as root extracts. Small randomized trials report lower stress scores and modest sleep improvements; a 2021 meta-analysis found a small but significant effect on overall sleep. NIH’s NCCIH notes rare reports of liver injury and that it may affect thyroid hormone levels, and advises avoiding it in pregnancy. Magnesium is an essential mineral. A systematic review found evidence “suggestive” of benefit for subjective anxiety in anxiety-prone groups, but rated the evidence quality as poor. Magnesium is most clearly useful if your intake is low. From supplements, the adult Tolerable Upper Intake Level is 350 mg per day. Neither replaces treatment for anxiety disorders or chronic insomnia.

Ashwagandha vs Magnesium at a Glance

FeatureAshwagandhaMagnesium
What it isHerbal extract (root, sometimes leaf)Essential mineral
Best-studied usePerceived stress; sleepCorrecting low intake; mixed evidence for anxiety and sleep
Strength of evidenceSmall RCTs; meta-analysis shows small sleep benefitSystematic review: suggestive for anxiety, poor quality
Typical amounts in trials / labelsRoot extract roughly 240–600 mg/day in trialsSupplement labels often 100–400 mg elemental
Upper limitNone established350 mg/day from supplements (adults)
Common side effectsGI upset, drowsinessDiarrhea, nausea, cramping (dose-related; form-dependent)
Notable cautionsRare liver injury; thyroid effects; avoid in pregnancyKidney disease; interacts with some antibiotics and osteoporosis drugs
RegulationDietary supplement; not FDA-approvedDietary supplement; not FDA-approved

Upper limit is from the NIH Office of Dietary Supplements. Trial amounts are from the studies listed in Sources; supplement labels vary widely.

Two Very Different Supplements

Ashwagandha is a plant used in Ayurvedic medicine, marketed as an “adaptogen,” meaning a substance claimed to help the body handle stress. Supplements use extracts of the root (and sometimes leaves), standardized to compounds called withanolides. Branded extracts such as KSM-66, Sensoril and Shoden differ in plant part, extraction and withanolide content, so trial results for one extract don’t automatically apply to another.

Magnesium is an essential mineral involved in more than 300 enzyme systems, including energy production, muscle and nerve function, and blood sugar and blood pressure regulation, according to the NIH Office of Dietary Supplements (ODS). Your body needs it whether or not you are stressed. ODS notes that many Americans consume less magnesium from food than recommended, though true deficiency with symptoms is uncommon in healthy people.

Evidence for Stress and Anxiety

Ashwagandha

Several small randomized, placebo-controlled trials have tested ashwagandha root extract in stressed adults. In one 60-day trial (Chandrasekhar et al., 2012), 300 mg of root extract twice daily reduced perceived stress scores by 44% and serum cortisol by about 28% compared with smaller changes on placebo. NCCIH summarizes the evidence as showing possible benefit for stress and anxiety in short-term studies, while noting that trials have been small, short and varied in the extracts used.

Magnesium

A 2017 systematic review (Boyle et al., Nutrients) found 18 studies, all in groups prone to anxiety (mildly anxious people, premenstrual syndrome, postpartum, high blood pressure). Positive effects on subjective anxiety were reported in about half the studies in anxious and PMS samples, with no effect postpartum. The authors concluded the evidence is “suggestive” of a benefit but that its quality is poor and well-designed trials are needed.

Evidence for Sleep

Ashwagandha

A 2021 systematic review and meta-analysis (Cheah et al., PLOS ONE) pooled 5 randomized trials with 400 participants and found a small but significant effect on overall sleep. Effects were larger in adults with insomnia, at doses of 600 mg per day or more, and with treatment of 8 weeks or longer. No serious side effects were reported, but the authors noted safety data for long-term use are limited.

Magnesium

The best-known trial (Abbasi et al., 2012) gave 500 mg of magnesium daily or placebo to 46 older adults with insomnia for 8 weeks. The magnesium group had improvements in insomnia severity scores, sleep efficiency and sleep onset time, though total sleep time did not differ significantly. Note that 500 mg is above the 350 mg daily upper limit for supplemental magnesium, so it isn’t a dose to copy without a clinician. The study was small and in older adults who may have had low magnesium status. Evidence in younger, well-nourished adults is limited.

For chronic insomnia, the American Academy of Sleep Medicine and the American College of Physicians recommend cognitive behavioral therapy for insomnia (CBT-I) as first-line treatment. Supplements are not substitutes.

Magnesium Forms

Supplement labels list elemental magnesium, which varies by form. ODS notes that forms that dissolve well in liquid, such as aspartate, citrate, lactate and chloride, are absorbed more completely than magnesium oxide and sulfate. Glycinate (bisglycinate) is popular for evening use because it is often gentler on the stomach, though head-to-head trials for sleep are lacking. Citrate and oxide are more likely to have a laxative effect. See our magnesium types comparison for more.

Safety

Ashwagandha

  • Liver: NCCIH notes case reports of liver injury linked to ashwagandha supplements. Stop and seek care for jaundice, dark urine or upper abdominal pain.
  • Thyroid: it may increase thyroid hormone levels; use caution with thyroid disease or thyroid medicine.
  • Pregnancy: NCCIH says it may be unsafe in pregnancy; avoid. Data in breastfeeding are lacking.
  • Medicines: may add to the effects of sedatives, and may interact with drugs for diabetes, high blood pressure, immune suppression and thyroid conditions.

Magnesium

  • Upper limit: 350 mg per day of supplemental magnesium for adults (food magnesium doesn’t count toward this). Higher amounts commonly cause diarrhea, nausea and cramping.
  • Kidney disease: people with reduced kidney function can accumulate magnesium; very high intakes can cause magnesium toxicity. Ask your clinician first.
  • Interactions: ODS notes magnesium can reduce absorption of bisphosphonates (osteoporosis drugs) and tetracycline and quinolone antibiotics, so separate doses; some diuretics and proton pump inhibitors can lower magnesium levels.

Can You Take Them Together?

There’s no known direct interaction between ashwagandha and magnesium, and some products combine them. But there are also no good trials of the combination, and both can add to drowsiness from sleep aids, alcohol or sedating medicines. Start one at a time so you can tell what helps and what causes side effects, and tell your clinician or pharmacist what you take.

Choosing a Product

Dietary supplements are not FDA-approved for safety or effectiveness before sale. Look for third-party seals such as USP Verified, NSF/ANSI 173 or NSF Certified for Sport, which check that a product contains what the label says and isn’t contaminated. For ashwagandha, check whether the label names the extract, plant part and withanolide percentage. For value, compare the cost per daily serving of the amount you actually plan to take, not the bottle size. General-health supplements are generally not HSA/FSA-eligible; FSAFEDS lists supplements as eligible only when used to treat a specific diagnosed condition, often with a letter of medical necessity.

Get Magnesium From Food First

NIH ODS lists green leafy vegetables, legumes, nuts, seeds and whole grains as good magnesium sources, along with fortified foods. Examples include pumpkin seeds, chia seeds, almonds, spinach, cashews, black beans and edamame. The adult RDA is 400 to 420 mg per day for men and 310 to 320 mg for women. Magnesium from food doesn’t count toward the supplement upper limit, because the kidneys remove excess from food efficiently. If your diet already includes these foods, a supplement may add little.

When to Talk to Your Doctor or Pharmacist

Talk to a clinician before starting either if you are pregnant or breastfeeding, have thyroid, liver or kidney disease, or take sedatives, thyroid medicine, diabetes or blood pressure drugs, immunosuppressants, antibiotics or osteoporosis drugs. Seek care for yellowing skin or eyes, dark urine, or severe abdominal pain. If stress, anxiety or sleep problems last more than a few weeks or affect daily life, see a clinician; effective treatments exist.

Frequently Asked Questions

Is ashwagandha or magnesium better for sleep?

A meta-analysis found ashwagandha extract had a small benefit for sleep, especially in people with insomnia at 600 mg/day or more for 8+ weeks. Magnesium evidence is mainly one small trial in older adults. Neither replaces CBT-I for chronic insomnia.

Is ashwagandha or magnesium better for anxiety?

Small trials suggest ashwagandha may lower perceived stress. A systematic review called magnesium’s evidence for anxiety suggestive but of poor quality. Neither is a treatment for anxiety disorders.

Can I take ashwagandha and magnesium together?

There’s no known direct interaction, but no good trials of the combination either. Both can add to drowsiness. Start one at a time and check with a pharmacist if you take other medicines.

How much magnesium is too much?

For adults, the upper limit for supplemental magnesium is 350 mg per day, according to NIH ODS. Higher amounts often cause diarrhea.

Is ashwagandha safe long term?

Long-term safety data are limited. NCCIH notes rare liver injury reports and possible thyroid effects, and advises avoiding it in pregnancy.

Which magnesium is best for sleep?

There are no strong head-to-head trials. Glycinate is often chosen for being gentle on the stomach; citrate and oxide are more likely to have a laxative effect.

Sources

Medical disclaimer: This article is for educational purposes and does not replace medical advice. Consult a licensed healthcare provider before starting any supplement, medication, or treatment — particularly if you are pregnant, breastfeeding, taking other medications, or have a diagnosed medical condition.