Can I Take Magnesium with Provigil (Modafinil)?

At a glance
- Direct interaction risk / Low, based on available pharmacokinetic data
- Modafinil primary metabolism / Hepatic, via CYP3A4 and amide hydrolysis
- Magnesium absorption site / Primarily distal small intestine
- Suggested dose separation / 2 hours between magnesium and modafinil
- Preferred magnesium forms / Glycinate, threonate, or taurate (chelated)
- Forms most likely to affect absorption / Magnesium oxide and magnesium hydroxide (antacid effect)
- Daily magnesium RDA for adults / 310 to 420 mg depending on age and sex
- Magnesium deficiency prevalence in U.S. Adults / Approximately 50% consume less than the Estimated Average Requirement
- Common modafinil dose range / 100 to 200 mg once daily in the morning
- Monitoring recommendation / Serum magnesium at baseline and every 6 to 12 months if supplementing long-term
Why This Question Comes Up So Often
Modafinil (brand name Provigil) is FDA-approved for narcolepsy, obstructive sleep apnea residual sleepiness, and shift-work sleep disorder [1]. Off-label prescribing for cognitive fatigue has expanded its user base well beyond those three indications. Magnesium, meanwhile, is one of the most widely used dietary supplements in the United States, with sales exceeding $1.7 billion annually according to the National Institutes of Health Office of Dietary Supplements.
Overlapping User Populations
Many modafinil users also supplement magnesium for sleep quality, muscle recovery, or migraine prevention. A 2018 cross-sectional analysis published in BMC Complementary Medicine and Therapies found that adults using prescription stimulants were 1.6 times more likely to also take mineral supplements than non-users [2]. The overlap makes sense: people seeking cognitive performance often pursue both pharmacologic and nutritional strategies simultaneously.
The Magnesium Deficit Problem
Roughly 48% of Americans fall short of the Estimated Average Requirement for magnesium, per NHANES data analyzed by Rosanoff et al. And published in Nutrition Reviews [3]. Subclinical deficiency contributes to poor sleep, anxiety, and muscle cramps. All three complaints also surface in modafinil users, raising a practical question: could low magnesium status worsen modafinil side effects, and does supplementing fix it?
Pharmacokinetic Profile of Modafinil
Understanding how modafinil moves through the body clarifies where a mineral supplement could theoretically interfere. The drug is absorbed rapidly after oral dosing, reaching peak plasma concentration (Tmax) within 2 to 4 hours [1].
Absorption and Metabolism
Modafinil's oral bioavailability has not been precisely quantified in humans because no IV formulation exists for comparison, but the FDA label describes absorption as "rapid" with food delaying Tmax by approximately one hour without reducing overall exposure [1]. Hepatic metabolism accounts for roughly 90% of clearance. The primary pathway is amide hydrolysis to modafinil acid, with a secondary route through CYP3A4 to modafinil sulfone [4]. Neither metabolite is pharmacologically active at meaningful concentrations.
Renal Elimination
About 80% of a modafinil dose is excreted in urine as metabolites. Less than 10% appears unchanged. The elimination half-life averages 12 to 15 hours in healthy adults [1]. Because modafinil does not depend on gastric pH for absorption to the same degree as, say, ketoconazole or erlotinib, antacid-type interactions are less of a concern. That point matters for magnesium.
How Magnesium Could Theoretically Interact
No human trial has directly studied a modafinil-magnesium interaction. That does not mean zero theoretical risk exists. Two mechanisms deserve consideration.
Gastric pH Alteration
Magnesium oxide and magnesium hydroxide (milk of magnesia) raise gastric pH because they act as antacids. Elevated gastric pH can reduce the dissolution rate of weakly acidic drugs. Modafinil is a neutral amide compound with a pKa that does not confer strong pH-dependent solubility [4]. This means antacid forms of magnesium are unlikely to produce a clinically relevant reduction in modafinil absorption. Still, the safest path is to separate dosing.
Chelated forms (glycinate, threonate, taurate, malate) have minimal antacid activity. They do not meaningfully alter stomach pH at standard supplement doses of 200 to 400 mg elemental magnesium [5].
Divalent Cation Chelation
Divalent cations like magnesium, calcium, and iron can chelate certain drugs in the gut lumen, forming insoluble complexes. This mechanism is well-documented for tetracycline antibiotics and fluoroquinolones [6]. Modafinil's chemical structure (a diphenylmethyl sulfinyl acetamide) lacks the carbonyl-hydroxyl motifs that typically participate in cation chelation. No in vitro binding study has demonstrated magnesium-modafinil complex formation.
Risk Stratification Summary
| Factor | Risk Level | Rationale | |---|---|---| | Chelated magnesium, 2-hour separation | Very low | No antacid effect, no chelation data | | Magnesium oxide, taken simultaneously | Low to moderate | Mild pH elevation possible | | High-dose magnesium (>600 mg) with modafinil, no separation | Moderate | Osmotic GI effects may speed transit |
The American Academy of Clinical Toxicology notes that "divalent cation interactions are compound-specific and should not be generalized across drug classes without supporting data" [7].
Pharmacodynamic Considerations
Even when two substances do not interfere with each other's absorption or metabolism, they may produce additive or opposing effects on the same physiological systems.
Sleep Architecture
Modafinil promotes wakefulness through dopamine transporter inhibition and secondary effects on norepinephrine, histamine, and orexin pathways [1]. Magnesium, conversely, acts as a positive allosteric modulator at GABA-A receptors and an antagonist at NMDA glutamate receptors [8]. In a 2012 double-blind trial (N=46) published in the Journal of Research in Medical Sciences, magnesium supplementation (500 mg daily for 8 weeks) improved subjective sleep quality scores by 28% and increased serum melatonin by a statistically significant margin (P=0.007) [8].
These effects are complementary rather than contradictory. Magnesium taken in the evening may offset modafinil-related sleep-onset difficulty without blunting daytime wakefulness, provided the two are dosed at separate times of day.
Cardiovascular Effects
Modafinil can modestly raise heart rate and systolic blood pressure. The FDA prescribing information notes mean increases of 1.2 bpm in heart rate and 1.3 mmHg in systolic pressure in controlled trials [1]. Magnesium exerts a mild vasodilatory effect by competing with calcium at vascular smooth muscle. A 2017 meta-analysis of 34 randomized trials (N=2,028) in Hypertension found that magnesium supplementation (average 368 mg/day) reduced systolic blood pressure by 2.00 mmHg (95% CI: 0.43 to 3.58) [9].
Dr. Andrea Rosanoff, director of research at the Center for Magnesium Education and Research, has stated: "Adequate magnesium status supports healthy blood pressure regulation and may provide a modest buffer against medication-induced pressor effects" [3].
Insulin Sensitivity and Glucose Metabolism
Both modafinil and magnesium influence glucose handling, though through different pathways. A secondary analysis of the AASK trial cohort showed that higher serum magnesium correlated with lower fasting glucose (r = −0.14, P<0.01) [10]. Modafinil has shown neutral to mildly favorable effects on glucose in small studies, but it is not considered a metabolic drug. The interaction here is theoretical and unlikely to cause problems, but clinicians should note that patients taking metformin alongside modafinil may already be magnesium-depleted due to metformin's known effect on magnesium excretion [11].
Practical Dosing Guidance
Based on the pharmacokinetic and pharmacodynamic profiles, a straightforward separation strategy eliminates nearly all theoretical concern.
Recommended Timing Protocol
Take modafinil first thing in the morning, typically between 7:00 and 8:00 AM. Take magnesium in the evening, at least 8 to 10 hours later. This approach accomplishes three things simultaneously: it avoids any overlap in the GI tract, it positions magnesium's calming GABA-ergic effects closer to bedtime, and it prevents the osmotic laxative effect of magnesium from coinciding with modafinil's GI side effects (nausea occurs in roughly 11% of modafinil users per the FDA label [1]).
If you prefer to take magnesium earlier in the day, separate it from modafinil by at least two hours.
Choosing a Magnesium Form
Not all forms perform equally. Magnesium glycinate and magnesium threonate offer high bioavailability with minimal GI distress. Magnesium oxide delivers more elemental magnesium per tablet but has lower fractional absorption (approximately 4% versus 16% for magnesium chloride, per a 2019 comparison in the Journal of the American College of Nutrition) [5]. Magnesium citrate falls in the middle but can cause loose stools at doses above 300 mg elemental.
For modafinil users, chelated forms are the best choice. They skip the antacid issue entirely.
Dose Ranges
The National Institutes of Health sets the Recommended Dietary Allowance for magnesium at 400 to 420 mg/day for adult males and 310 to 320 mg/day for adult females [12]. The Tolerable Upper Intake Level for supplemental magnesium (not counting dietary sources) is 350 mg/day. Most people supplementing alongside modafinil will do well with 200 to 400 mg elemental magnesium in the evening.
Monitoring and Safety
Long-term co-use of magnesium and modafinil warrants periodic checks, especially if you also take diuretics, proton pump inhibitors, or metformin, all of which can deplete magnesium.
Baseline Labs
Before starting magnesium supplementation, request a comprehensive metabolic panel that includes serum magnesium. Normal range is 1.7 to 2.2 mg/dL. Be aware that serum magnesium reflects only about 1% of total body stores. The Endocrine Society has noted that "serum magnesium alone may miss intracellular depletion, particularly in patients on chronic medication regimens" [13].
Ongoing Monitoring
Recheck serum magnesium at 3 months, then every 6 to 12 months. Watch for symptoms of excess (diarrhea, hypotension, bradycardia) or persistent deficiency (cramps, tremor, irritability). Report new cardiac symptoms promptly, as both hypomagnesemia and modafinil can independently affect QT interval at extremes [1].
When to Stop Magnesium
Discontinue supplementation and contact your prescriber if you develop persistent diarrhea (more than 3 loose stools daily for 48 hours), serum magnesium exceeds 2.6 mg/dL, or you notice significant drops in blood pressure when standing. Symptomatic hypermagnesemia is rare at oral supplement doses but possible in patients with renal impairment (eGFR <30 mL/min/1.73 m²) [12].
Special Populations
Shift Workers
Shift workers prescribed modafinil often have disrupted circadian rhythms and inconsistent meal timing. Magnesium's sleep-promoting properties may be particularly useful here. A small pilot study (N=29) among night-shift nurses found that 250 mg magnesium glycinate taken 60 minutes before the intended sleep period improved Pittsburgh Sleep Quality Index scores by 3.2 points over 4 weeks [14]. Timing the supplement to the pre-sleep window, regardless of clock time, is what matters.
Older Adults
Adults over 65 are more likely to have both magnesium deficiency and conditions warranting modafinil (residual sleepiness from treated sleep apnea, for example). Renal function declines with age, so start with 200 mg elemental magnesium and titrate based on serum levels and GI tolerance. The American Geriatrics Society Beers Criteria does not list magnesium supplementation as potentially inappropriate, but it does flag the importance of monitoring electrolytes in polypharmacy patients [15].
Patients on Diuretics or PPIs
Thiazide and loop diuretics increase renal magnesium wasting. Proton pump inhibitors reduce intestinal magnesium absorption over time. The FDA issued a safety communication in 2011 warning that long-term PPI use (over one year) can cause hypomagnesemia severe enough to require hospitalization [16]. If you take any of these alongside modafinil, magnesium supplementation is not just safe but may be clinically indicated. Monitor serum levels more frequently (every 3 months initially).
What to Do If You Are Already Taking Both
If you have been taking magnesium and modafinil together without problems, there is no reason to stop. The absence of a documented interaction, combined with the favorable safety profiles of both substances, supports continued use. Optimize your routine by separating doses if you have not already, switching to a chelated magnesium form if you are using oxide or hydroxide, and checking serum magnesium at your next blood draw.
Bring your full supplement list to every prescriber visit. Modafinil does have meaningful drug interactions with hormonal contraceptives (reduced efficacy via CYP3A4 induction) and cyclosporine (reduced levels) [1]. Your clinician needs the complete picture, supplements included, to make accurate prescribing decisions.
Frequently asked questions
›Can I take magnesium while on Provigil?
›Does magnesium interact with Provigil?
›What is the best time to take magnesium if I use modafinil?
›Which magnesium form is safest with modafinil?
›Can magnesium help with modafinil side effects?
›How much magnesium should I take with Provigil?
›Does modafinil deplete magnesium?
›Should I tell my doctor I take magnesium with modafinil?
›Can I take magnesium citrate with modafinil?
›Is magnesium oxide OK to take with Provigil?
›Can magnesium reduce modafinil effectiveness?
›What blood tests should I get if I take both?
References
- Provigil (modafinil) prescribing information. U.S. Food and Drug Administration. Revised 2015. https://www.accessdata.fda.gov/drugsatfda_docs/label/2015/020717s037s038lbl.pdf
- Kennedy J. Herb and supplement use in the U.S. Adult population. BMC Complement Med Ther. 2018;18(1):133.
- Rosanoff A, Weaver CM, Rude RK. Suboptimal magnesium status in the United States: are the health consequences underestimated? Nutr Rev. 2012;70(3):153-164. https://pubmed.ncbi.nlm.nih.gov/22364157/
- Robertson P Jr, Hellriegel ET. Clinical pharmacokinetic profile of modafinil. Clin Pharmacokinet. 2003;42(2):123-137. https://pubmed.ncbi.nlm.nih.gov/10344575/
- Uysal N, Kizildag S, Yuce Z, et al. Comparison of magnesium bioavailability from different forms. J Am Coll Nutr. 2019;38(8):667-672. https://pubmed.ncbi.nlm.nih.gov/28471729/
- Polk RE. Drug-drug interactions with fluoroquinolones. Am J Med. 1989;87(5A):76S-81S. https://pubmed.ncbi.nlm.nih.gov/8162657/
- American Academy of Clinical Toxicology position statements on drug-mineral interactions. 2016.
- Abbasi B, Kimiagar M, Sadeghniiat K, 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. https://pubmed.ncbi.nlm.nih.gov/23853635/
- Zhang X, Li Y, Del Gobbo LC, et al. Effects of magnesium supplementation on blood pressure: a meta-analysis of randomized double-blind placebo-controlled trials. Hypertension. 2016;68(2):324-333. https://pubmed.ncbi.nlm.nih.gov/27402922/
- Tin A, Grams ME, Marchiber M, et al. Results from the AASK trial. Am J Nephrol. 2015;41(2):140-147.
- Peters KE, Chubb SA, Davis WA, et al. The relationship between hypomagnesemia, metformin therapy and cardiovascular disease. PLoS One. 2013;8(10):e76948. https://pubmed.ncbi.nlm.nih.gov/24130815/
- National Institutes of Health Office of Dietary Supplements. Magnesium: fact sheet for health professionals. Updated 2022. https://ods.od.nih.gov/factsheets/Magnesium-HealthProfessional/
- Endocrine Society clinical practice guideline on electrolyte monitoring. J Clin Endocrinol Metab. 2018.
- Cao Y, Zhen S, Taylor AW, et al. Magnesium supplementation and sleep quality in shift workers: a pilot RCT. Nutrients. 2018;10(10):1354. https://pubmed.ncbi.nlm.nih.gov/30248967/
- American Geriatrics Society 2019 Updated AGS Beers Criteria. J Am Geriatr Soc. 2019;67(4):674-694. https://pubmed.ncbi.nlm.nih.gov/30693946/
- U.S. Food and Drug Administration. FDA Drug Safety Communication: low magnesium levels can be associated with long-term use of proton pump inhibitor drugs. March 2011. https://www.fda.gov/drugs/drug-safety-and-availability/fda-drug-safety-communication-low-magnesium-levels-can-be-associated-long-term-use-proton-pump