Drug & Supplement Interactions
Magnesium + Cephalexin
Brand names of Cephalexin
- Keflex
- Keflet
- Keftab
- Panixine Disperdose
- Cephalex
- Lexin
Medically reviewed by Dr. Brian Staiger, PharmD, BCPS
Also reviewed by the HelloPharmacist Editorial Team
Updated July 2026Details about this page
- Pair last verified Nov 29, 2026
- Dr. Brian Staiger, PharmD, BCPS, is a clinical pharmacist and pharmacotherapy specialist.
- Editorial policy
- Our sources →
AI is used only to summarize verified clinical information, never the open internet. Our AI policy
Can You Take Magnesium With Cephalexin?
No Known InteractionWe found no known interaction between Magnesium and Cephalexin in our sources.
This also applies to Keflex, Keflet, Keftab and other brand names of cephalexin.
Still Worth Knowing
- Shared side effects: Although there is no interaction, both can cause some of the same side effects. Taken together, those side effects might add up, and a new symptom can be harder to pin on one or the other.
Medically reviewed by Dr. Brian Staiger, PharmD, BCPS
Also reviewed by the HelloPharmacist Editorial Team
Updated July 2026Details about this page
- Pair last verified Nov 29, 2026
- Dr. Brian Staiger, PharmD, BCPS, is a clinical pharmacist and pharmacotherapy specialist.
- Editorial policy
- Our sources →
AI is used only to summarize verified clinical information, never the open internet. Our AI policy
Ask a Question About This Combination
Ask in your own words about taking Magnesium with Cephalexin. The answer comes from this page’s own records.
AI answers from this page’s interaction records and our own drug and supplement information, never the open internet. AI can make mistakes, so always check with your doctor or pharmacist. How we use AI
Magnesium and Cephalexin Interaction Check
No Known Interaction Found
We did not find a documented interaction between Cephalexin and Magnesium in our sources. This does not guarantee that the combination is completely free of risk — there is often limited research on supplements and herbal products, especially around drug interactions.
How We Checked
Why No Interaction Is Listed for Cephalexin
We sort drugs into categories, such as blood thinners or antibiotics, and many supplement interactions are recorded for a whole category rather than for one drug. So we checked every category Cephalexin is in against every category Magnesium has a known interaction with.
7Categories Cephalexin Is In
- Cephalexin by Name Interactions recorded for Cephalexin itself rather than for a category. No Magnesium Record
- Organic Anion Transporter 3 (Oat3) Substrates Drugs that carrier proteins called organic anion transporters (OAT1 and OAT3) move into kidney cells so they can leave the body in urine; when those carriers are blocked, their levels can rise. No Magnesium Record
- Organic Anion Transporter 1 (Oat1) Substrates Drugs that carrier proteins called organic anion transporters (OAT1 and OAT3) move into kidney cells so they can leave the body in urine; when those carriers are blocked, their levels can rise. No Magnesium Record
- Antibiotic Drugs Drugs that kill bacteria or stop them from growing, such as amoxicillin, azithromycin and ciprofloxacin. No Magnesium Record
- Nephrotoxic Drugs Drugs that can harm the kidneys in some people, such as NSAIDs, aminoglycoside antibiotics, lithium and cisplatin. No Magnesium Record
- Seizure Threshold Lowering Drugs Drugs that can make a seizure more likely in some people, such as bupropion, tramadol and some antibiotics. No Magnesium Record
- Oral Drugs Any drug taken by mouth. No Magnesium Record
16Drug Categories Magnesium Interacts With
- Levodopa/
Carbidopa (Sinemet) Major See why - Aminoglycoside AntibioticsModerate See why
- AntacidsModerate See why
- Bictegravir/
Emtricitabine/ Moderate See whyTenofovir Alafenamide (Biktarvy) - BisphosphonatesModerate See why
- Calcium Channel BlockersModerate See why
Show all 16 categories
- DigoxinModerate See why
- Levothyroxine (Synthroid, Others)Moderate See why
- Potassium-Sparing DiureticsModerate See why
- Quinolone AntibioticsModerate See why
- Skeletal Muscle RelaxantsModerate See why
- SulfonylureasModerate See why
- Tetracycline AntibioticsModerate See why
- Anticoagulant/
Antiplatelet Drugs Minor See why - Gabapentin (Neurontin)Minor See why
- Sevelamer (Renagel, Renvela)Minor See why
No overlap. Cephalexin is in none of the 16 categories Magnesium interacts with, so no record links the two.
- Add one new thing at a time, and note the date you started it.
- A start date turns “I’ve been feeling off” into something a pharmacist can work with.
- Do not stop a prescribed medicine on your own.
- Check with your pharmacist or doctor before changing any medicine or supplement, especially if you take several or have an ongoing health condition.
Beyond the Record
What Else We Found About Magnesium and Cephalexin
Pharmacist Q&A You ask. We answer.
Questions Our Pharmacists Have Answered About Magnesium and Cephalexin
Real questions from readers, each answered by a licensed pharmacist at HelloPharmacist, written by a person and not generated from a database. An answer is written for the reader who asked and their situation, so read it for what to ask your own pharmacist rather than as a plan to follow.
Each one covers Magnesium or Cephalexin, not necessarily both.
-
The pharmacist says
Magnesium oxide has been shown in human studies to lower blood levels of both levodopa and carbidopa.
Answered by Dr. Brian Staiger, PharmD · October 2026 -
Cynth asked What Medicine Helps Cellulitis on the Face?The pharmacist says
Cephalexin and amoxicillin-clavulanate are both appropriate first-line antibiotics for cellulitis because they cover the bacteria that typically cause the infection. If facial cellulitis persists after these two antibiotics, you need to see your doctor again promptly because resistant bacteria like MRSA may be involved and different antibiotics such as doxycycline or clindamycin might be needed. Facial cellulitis requires medical evaluation and should not be managed at home if it isn't clearly improving, especially since it's located near sensitive areas like the eyes. Seek urgent care if the redness spreads, you develop a fever, or swelling appears near the eye.
Answered by Dr. Brian Staiger, PharmD · July 2026 -
The pharmacist says
Magnesium glycinate is not expected to interact with Effexor (venlafaxine), so it is generally considered a reasonable supplement to take alongside it.
Answered by Dr. Brian Staiger, PharmD · October 2026 -
Nick asked Is Zinc Safe To Take With Eliquis?The pharmacist says
Zinc does not interact with Eliquis, so it appears safe to take them together.
Answered by Dr. Brian Staiger, PharmD · February 2025
Studies That Mention Both Magnesium and Cephalexin
lists 7 records naming both. These are the most relevant that discuss the two together. Mentioning both is not a finding about taking them together, so treat them as a starting point.
- Influence of ranitidine, pirenzepine, and aluminum magnesium hydroxide on the bioavailability of various antibiotics, including amoxicillin, cephalexin, doxycycline, and amoxicillin-clavulanic acid. Antimicrobial Agents and Chemotherapy · 1989 · Randomized trial · In people · PMID 2610502
Other Records That Name Both
These name both, but never in the same sentence or only in a lab method, so they may be about something else.
- Rational Design of Amperometric Sensor Based on Magnesium Oxide and Reduced Graphene Oxide Hybrid for Ultralow Detection of Cephalexin in Complex Biological Matrices. Analytical Chemistry · 2026 · In people · PMID 41773624
- In vitro activity of cefadroxil, cephalexin, cefatrizine and cefpirome in presence of essential and trace elements. Pakistan Journal of Pharmaceutical Sciences · 2007 · Lab or animal study · PMID 17604254
- A sustainable and economical approach for effective adsorption of antibiotics and heavy metal ions using Neolamarckia cadamba-mediated MgO-rGO nanocomposites. Nanoscale · 2025 · PMID 41044975
- Examination of Aggregate Formation upon Simultaneous Dissolution of Methacrylic Acid Copolymer LD Enteric Coating Agent, Pharmaceutical Additives, and Zwitterionic Ingredients. Biological & Pharmaceutical Bulletin · 2020 · PMID 32238709
- Binding of amino beta-lactam antibiotics to soluble protein from rat intestinal mucosa--II. Mutual inhibition of binding among amino beta-lactam antibiotics and binding characteristics. Biochemical Pharmacology · 1987 · Lab or animal study · PMID 3579977
- Pulsed Laser-Driven Molecular Self-assembly of Cephalexin: Aggregation-Induced Fluorescence and Its Utility as a Mercury Ion Sensor. Photochemistry and Photobiology · 2015 · PMID 26333412
Reports to the FDA
2,803 reports to the FDA list both Magnesium and Cephalexin.
What this means: someone took both, then had a health problem. It does not show either one caused it. In 2 of the 5 newest reports, Magnesium or Cephalexin was the suspect or was flagged as interacting. The reports below say which.
- 2,803Reports that list both
- 2,328Marked serious by the reporter
- 1,455From doctors, pharmacists and other health professionals
- 845From patients and other consumers
The 5 Newest Reports
Who sent them, what happened and which medicine was suspected
| Received | Reported by | What happened | Medicine suspected | Magnesium | Cephalexin |
|---|---|---|---|---|---|
| June 2026Report 26934436 | A consumer | Cytopenia, Diarrhea, Mouth irritation or sores (stomatitis) Serious: medically important | Inqovi21 products listed | Also taking | Also taking |
| June 2026Report 26920942 | Another health professional | Anxiety, Antineutrophil cytoplasmic antibody positive, Arteriosclerosis Serious: death, life-threatening, hospital stay, medically important | Cephalexin, Acetazolamide and 77 more114 products listed | Suspected | Suspected |
| June 2026Report 26912156 | A consumer | Tiredness (fatigue), Off label use | Jakafi16 products listed | Also taking | Also taking |
| June 2026Report 26906943 | Another health professional | Severe allergic reaction (angioedema), Allergic reaction (hypersensitivity), Drug intolerance Serious: medically important | Clarithromycin, Azithromycin and 36 more197 products listed | Suspected | Also taking |
| June 2026Report 26908556 | A consumer | Tendonitis, Bedridden, Muscle weakness (muscular weakness) Serious: disability, medically important | Ciprofloxacin23 products listed | Also taking | Also taking |
Problems Named Most Often
Across all 2,803 reports, whatever was suspected. Not what this pair causes.
- Shortness of breath (dyspnea) 427
- Kidney problems (chronic kidney disease) 418
- Headache 340
- Anxiety 301
- Nausea 298
- Kidney problems (renal failure) 291
How we searched
PubMed: searched October 2026, and again every few months. PubMed lists research but does not grade it; the finding above comes from our interaction records.
FDA reports: from the FDA Adverse Event Reporting System (FAERS) through openFDA, read October 2026. Matched by name, so a report may name a product that contains Magnesium. The counts are reports, not people, and no one checks them for cause. What FAERS is.
Your Whole Routine
Your Other Medicines and Supplements
Magnesium Does Interact With Other Medications
Magnesium has 6 major, 178 moderate, 114 minor known drug interactions in our database — Cephalexin isn’t one of them. If you take anything else, check it against the full list below.
Check Another of Your Medications Against Magnesium
We haven’t checked that one against Magnesium yet — ask our pharmacists directly.
Covers the 2,830 medications we’ve checked against Magnesium. Pick one to open its full report.
Other Supplements for the Same Uses as Magnesium, and How They Mix With Cephalexin
Choosing a supplement while you take Cephalexin? Pick what you use Magnesium for to see other options studied for it, and whether each has a documented interaction with Cephalexin.
What do you take Magnesium for?
For Constipation
11 of them have a documented interaction with Cephalexin: Bacillus Coagulans (moderate), Bifidobacterium Animalis Subsp. Lactis (moderate), Flaxseed (moderate), Glucomannan (moderate), Guar Gum (moderate), Limosilactobacillus Reuteri (moderate), Probiotics (moderate) and Black Psyllium (minor).
22 other supplements have at least some evidence of a benefit for constipation; the 8 below come first. Magnesium itself is graded for it.
- Bacillus Coagulans Graded Moderate
- Bifidobacterium Animalis Subsp. Lactis Graded Moderate
- Flaxseed Graded Moderate
- Glucomannan Graded Moderate
- Guar Gum Graded Moderate
- Limosilactobacillus Reuteri Graded Moderate
- Probiotics Graded Moderate
- Black Psyllium Graded Minor
For Dyspepsia
None of them has a documented interaction with Cephalexin.
11 other supplements have at least some evidence of a benefit for dyspepsia; the 8 below come first. Magnesium itself is graded for it.
- Calcium Graded No Known Interaction
- Phosphate Salts Graded No Known Interaction
- Artichoke Graded No Known Interaction
- Caraway Graded No Known Interaction
- Clown's Mustard Plant Graded No Known Interaction
- Greater Celandine Graded No Known Interaction
- Indian Gooseberry Graded No Known Interaction
- Mastic Graded No Known Interaction
For Bowel Preparation
None of them has a documented interaction with Cephalexin.
4 other supplements have at least some evidence of a benefit for bowel preparation. Magnesium itself is graded for it.
- Phosphate Salts Graded No Known Interaction
- Castor Bean Graded No Known Interaction
- Senna Graded No Known Interaction
- Vitamin C Graded No Known Interaction
For Pre-eclampsia
None of them has a documented interaction with Cephalexin.
3 other supplements have at least some evidence of a benefit for pre-eclampsia. Magnesium itself is graded for it.
- Calcium Graded No Known Interaction
- L-arginine Graded No Known Interaction
- Selenium Graded No Known Interaction
For Seizures
None of them has a documented interaction with Cephalexin.
2 other supplements have at least some evidence of a benefit for seizures. Magnesium itself is graded for it.
- Cannabidiol (cbd) Graded No Known Interaction
- Piracetam Graded No Known Interaction
For Hypercholesterolemia
8 of them have a documented interaction with Cephalexin: Fermented Milk (moderate), Flaxseed (moderate), Glucomannan (moderate), Guar Gum (moderate), Lactiplantibacillus Plantarum (moderate), Probiotics (moderate), Blond Psyllium (minor) and Soy (minor).
40 other supplements have at least some evidence of a benefit for hypercholesterolemia; the 8 below come first. Magnesium itself is graded for it.
- Fermented Milk Graded Moderate
- Flaxseed Graded Moderate
- Glucomannan Graded Moderate
- Guar Gum Graded Moderate
- Lactiplantibacillus Plantarum Graded Moderate
- Probiotics Graded Moderate
- Blond Psyllium Graded Minor
- Soy Graded Minor
The grades come from the Natural Medicines database and describe the research so far, not a recommendation, and none of these supplements replaces a prescribed medicine.
See Every Supplement That Interacts With Cephalexin
Take other supplements too? 61 supplements have a documented interaction with Cephalexin, each explained on its page.
By severity: 3 major, 47 moderate and 11 minor.
The Most Serious There Right Now:
- Activated Charcoal and Cephalexin Major
- Asarabacca and Cephalexin Major
- Siberian Cocklebur and Cephalexin Major
- African Wild Potato and Cephalexin Moderate
- Aristolochia and Cephalexin Moderate
Taking Magnesium as Part of a Dietary Supplement Product? Check It for Interactions
A product can hold more than Magnesium. We have broken down 29,723 supplement products that contain it, ingredient by ingredient. Find yours and we’ll check every ingredient against Cephalexin:
Get to Know Each One
About Magnesium and Cephalexin
About Magnesium
Magnesium is an essential mineral your body needs for muscles, nerves, blood pressure, and many other functions, and supplements are useful for preventing or correcting deficiency. Some other uses, like easing constipation or preventing migraines, have reasonable support, while uses for sleep and anxiety are less proven. It is generally safe for most healthy people at recommended amounts, but talk to your pharmacist or doctor before starting, especially if you have kidney problems.
On Its Own
Magnesium Safety
How Magnesium Is Rated
-
Magnesium Overall
Generally safe
Generally safe for healthy adults when taken at recommended amounts from food and supplements.
-
Pregnancy
Likely Safe
When used orally and appropriately. Magnesium is safe for those pregnant and breast-feeding when used in doses below the tolerable upper intake level (UL) of 350 mg daily.
Read the full pregnancy detail ↓ -
Breastfeeding
Likely Safe
When used orally and appropriately. Magnesium is safe for those pregnant and breast-feeding when used in doses below the tolerable upper intake level (UL) of 350 mg daily.
Read the full breastfeeding detail ↓
Pregnancy & breastfeeding ratings are from Natural Medicines (Therapeutic Research Center), with the full detail in the next card.
Magnesium in Pregnancy & Breastfeeding
When used orally and appropriately. Magnesium is safe for those pregnant and breast-feeding when used in doses below the tolerable upper intake level (UL) of 350 mg daily.
When prescription magnesium sulfate is given intramuscularly and intravenously prior to delivery for up to 5 days. However, due to potential adverse effects associated with intravenous and intramuscular magnesium, use during pregnancy is limited to patients with specific conditions such as severe pre-eclampsia or eclampsia. There is some evidence that intravenous magnesium can increase fetal mortality and adversely affect neurological and skeletal development. However, a more recent analysis of clinical research shows that increased risk of fetal mortality seems to occur only in the studies where antenatal magnesium is used for tocolysis and not for fetal neuroprotection or pre-eclampsia/eclampsia. Furthermore, antenatal magnesium does not seem to be associated with increased risk of necrotizing enterocolitis in preterm infants. There is also concern that magnesium increases the risk of maternal adverse events. A meta-analysis of clinical research shows that magnesium sulfate might increase the risk of maternal adverse events, especially in Hispanic mothers compared to other racial and ethnic groups.
When used orally in excessive doses. Tell patients to avoid exceeding the tolerable upper intake level (UL) of 350 mg daily. Taking magnesium orally in higher doses can cause diarrhea. ...when prescription magnesium sulfate is given intramuscularly and intravenously prior to delivery for longer than 5 days. Maternal exposure to magnesium for longer than 5-7 days is associated with an increase in neonatal bone abnormalities such as osteopenia and fractures. The U.S. Food and Drug Administration (FDA) recommends that magnesium injection not be given for longer than 5-7 days.
DISCLAIMER: This tool is intended for informational purposes only, and should not be interpreted as specific medical advice. Patients should consult with a qualified healthcare provider before making decisions about therapies and/or health conditions.© 2026 Therapeutic Research Center
About Cephalexin
Brand names: Keflex, Keflet, Keftab, Panixine Disperdose, Cephalex, Lexin
Cephalexin treats bacterial infections caused by susceptible strains of bacteria. It is used for respiratory tract infections, ear infections (otitis media), skin and skin structure infections, bone infections, and genitourinary tract infections — including acute prostatitis.
More to Explore
More Pairs and Interactions to Check
Other Supplements People Check With Cephalexin
More pair pages for Cephalexin: the rest of its documented supplement interactions first, then supplements with none on record, the most looked-up leading.
- Zinc Moderate›
- Ginkgo Moderate›
- Melatonin Moderate›
- Quercetin Moderate›
- Lactobacillus Acidophilus Moderate›
- Lactobacillus Johnsonii Moderate›
Show all 27 supplements Show fewer
- Latilactobacillus Sakei Moderate›
- Levilactobacillus Brevis Moderate›
- Ligilactobacillus Salivarius Moderate›
- Limosilactobacillus Fermentum Moderate›
- Limosilactobacillus Reuteri Moderate›
- Mountain Ash Moderate›
- Rauwolscine Moderate›
- Thuja Moderate›
- Marshmallow Minor›
- Blond Psyllium Minor›
- Xanthan Gum Minor›
- Soy Minor›
- Black Psyllium Minor›
- Algin Minor›
- Thyroid Extract Minor›
- Vitamin C No Known Interaction›
- Calcium No Known Interaction›
- Horsemint No Known Interaction›
- Horseradish No Known Interaction›
- Hound's Tongue No Known Interaction›
- Houseleek No Known Interaction›
Other Drugs & Magnesium
Browse every other medication we’ve checked against Magnesium — both the ones with a known interaction and the ones without. Select any drug for the full detail.
No drugs match “”.
Also checked against Magnesium
Major: 6 interactions
Moderate: 178 interactions
- Diltiazem ›
- Nifedipine ›
- Doxycycline ›
- Minocycline ›
- Tetracycline ›
- Levothyroxine ›
- Verapamil ›
- Glyburide ›
- Ciprofloxacin ›
- Orphenadrine ›
- Calcium Carbonate ›
- Baclofen ›
- Ofloxacin ›
- Tobramycin ›
- Aluminum Hydroxide ›
- Cyclobenzaprine ›
- Digoxin ›
- Doxycycline Hyclate ›
- Levofloxacin ›
- Levothyroxine Sodium ›
- Neomycin ›
- Nicardipine ›
- Spironolactone ›
- Zoledronic Acid ›
- Alendronate ›
- Amikacin ›
- Amiloride ›
- Carisoprodol ›
- Chlorpropamide ›
- Chlorzoxazone ›
- Dantrolene ›
- Etidronate Disodium ›
- Felodipine ›
- Gatifloxacin ›
- Glipizide ›
- Ibandronate ›
- Magnesium Sulfate (prescription Drug) ›
- Methocarbamol ›
- Minocycline Hydrochloride ›
- Norfloxacin ›
- Potassium Bicarbonate (prescription Drug) ›
- Retapamulin ›
- Risedronate Sodium ›
- Succinylcholine ›
- Tizanidine ›
- Trovafloxacin ›
- Acetohexamide ›
- Alcuronium ›
- Amlodipine ›
- Amlodipine Benzoate ›
- Amlodipine Besilate ›
- Amlodipine Besylate ›
- Atracurium ›
- Bepridil ›
- Chlorphenesin ›
- Chlortetracycline ›
- Cinoxacin ›
- Cisatracurium ›
- Clinafloxacin ›
- Dantrolene Sodium ›
Showing 60 of 178 moderate interactions — see all 178 on the Magnesium page.
Minor: 114 interactions
- Diclofenac Sodium ›
- Ibuprofen ›
- Aspirin ›
- Naproxen ›
- Diclofenac Potassium ›
- Dipyridamole ›
- Ketoprofen ›
- Bivalirudin ›
- Warfarin Sodium ›
- Bromfenac Sodium ›
- Dabigatran ›
- Diclofenac Epolamine ›
- Gabapentin ›
- Iloprost ›
- Piroxicam ›
- Streptokinase ›
- Ticlopidine ›
- Treprostinil (oral) ›
- Abciximab ›
- Abrocitinib ›
- Aspirin and Meprobamate ›
- Aspirin and Omeprazole ›
- Aspirin and Oxycodone ›
- Aspirin and Pentazocine ›
- Diphenhydramine Hydrochloride and Naproxen Sodium ›
- Esomeprazole and Naproxen ›
- Famotidine and Ibuprofen ›
- Hydrocodone and Ibuprofen ›
- Ibuprofen and Acetaminophen ›
- Ibuprofen and Hydrocodone ›
- Ibuprofen and Oxycodone ›
- Ibuprofen and Pseudoephedrine ›
- Naproxen and Pseudoephedrine ›
- Naproxen and Sumatriptan ›
- Acenocoumarol ›
- Acetylsalicylic Acid ›
- Anacaulase-bcdb ›
- Anagrelide ›
- Anisindione ›
- Antithrombin Iii ›
- Apixaban ›
- Argatroban ›
- Betrixaban ›
- Cablivi ›
- Cangrelor ›
- Cilostazol ›
- Clopidogrel ›
- Dalteparin ›
- Danaparoid ›
- Defibrotide Sodium ›
- Diclofenac ›
- Dicumarol ›
- Edoxaban ›
- Effient ›
- Enoxaparin ›
- Eptifibatide ›
- Fish Oil Triglycerides ›
- Fondaparinux ›
- Heparin ›
- Ibrutinib ›
Showing 60 of 114 minor interactions — see all 114 on the Magnesium page.
No Interaction 2,531 drugs checked — show the list
We also checked Magnesium against these medications and found no known interaction in our sources. Open any page to confirm.
- Sertraline ›
- Losartan Potassium ›
- Atorvastatin ›
- Rosuvastatin ›
- Escitalopram ›
- Metformin ›
- Metoprolol ›
- Methylphenidate ›
- Tirzepatide ›
- Tadalafil ›
- Ivermectin ›
- Testosterone ›
- Fluoxetine ›
- Semaglutide ›
- Amoxicillin ›
- Prednisone ›
- Acetaminophen ›
- Amphetamine ›
- Azithromycin ›
- Lisdexamfetamine ›
- Pseudoephedrine Sulfate ›
- Psuedoephedrine Hydrochloride ›
- Psyllium Hydrophilic Mucilloid (otc Drug) ›
- Pyrantel Pamoate ›
- Pyrazinamide ›
- Pyridostigmine Bromide ›
- Pyrilamine Maleate ›
- Pyrimethamine ›
- Quadrivalent Human Papillomavirus Vaccine ›
- Quazepam ›
- Quinacrine ›
- Quinapril ›
- Quinestrol ›
- Quinethazone ›
- Quinidine ›
- Quinine ›
- Quinine Sulfate ›
- Quizartinib ›
- Rabeprazole ›
- Rabeprazole Sodium ›
- Rabies Immune Globulin ›
- Racemethionine ›
- Radium Ra-223 Dichloride ›
- Raloxifene ›
- Raltegravir ›
- Ramelteon ›
- Ramucirumab ›
- Ranibizumab ›
- Ranibizumab-nuna ›
- Ranitidine ›
- Ranitidine Bismuth Citrate ›
- Ranolazine ›
- Rasagiline ›
- Rasburicase ›
- Ravulizumab-cwvz ›
- Raxibacumab ›
- Recombinant Parathyroid Hormone ›
- Regadenoson ›
- Regorafenib ›
- Remdesivir ›
Showing 60 of the 2,531 medications checked with no known interaction, the most looked-up first — see the full Magnesium list.
Cephalexin Is Linked to Lower Levels of 7 Nutrients
Natural Medicines records Cephalexin as a medicine that can lower these. This is not an interaction with Magnesium — it is a separate effect of the medicine, and it is a reason some people are advised to supplement rather than to avoid one:
Read the full Cephalexin nutrient depletion report ›
Magnesium is itself a nutrient we track — see which medications may deplete Magnesium.
Depletion records come from the licensed Natural Medicines database. Do not start a supplement on the strength of this page — ask your pharmacist or doctor whether it applies to you.
Where Magnesium and Cephalexin Sit Against Everything Else
Out of every supplement and medication people look up on HelloPharmacist, here is where these two land this week — and which way each has been moving.
#4 of 1,458 supplements looked up here in the last 7 days
#513 of 2,830 medications looked up here in the last 7 days
A rank of lookups on this site, not of how often either one is used. It counts every visit, automated ones included, and identifies no one.
Keep Exploring
Questions and Sources
Common Questions and Where This Comes From
Taking Magnesium and Cephalexin Together: Common Questions
Can you take Magnesium with Cephalexin?
Can you take Magnesium with Keflex?
Do Magnesium and Cephalexin have any of the same side effects?
How was the Magnesium and Cephalexin combination checked?
Do other supplements studied for constipation interact with Cephalexin?
Does Magnesium interact with any other medications?
Does Cephalexin interact with any supplements?
Has Magnesium been studied with Cephalexin?
Written and reviewed by the HelloPharmacist Editorial Team. Our editorial policy
References Cited on This Page
The 21 references the cards above cite, from the evidence-graded Natural Medicines (TRC Healthcare) database. Citations with a link open the study on PubMed or the publisher’s site.
Show the 21 references
- 1194. Dahle LO, Berg G, Hammar M, et al. The effect of oral magnesium substitution on pregnancy-induced leg cramps. Am J Obstet Gynecol 1995;173:175-80. PubMed
- 4891. Peikert A, Wilimzig C, Kohne-Volland R. Prophylaxis of migraine with oral magnesium: results from a prospective, multi-center, placebo-controlled and double-blind randomized study. Cephalalgia 1996;16:257-63. PubMed
- 8095. Birrer RB, Shallash AJ, Totten V. Hypermagnesemia-induced fatality following epsom salt gargles. J Emerg Med 2002;22:185-8. PubMed
- 10661. Pfaffenrath V, Wessely P, Meyer C, et al. Magnesium in the prophylaxis of migraine--a double-blind placebo-controlled study. Cephalalgia 1996;16:436-40.. PubMed
- 10663. Wang F, Van Den Eeden SK, Ackerson LM, et al. Oral magnesium oxide prophylaxis of frequent migrainous headache in children: a randomized, double-blind, placebo-controlled trial. Headache 2003;43:601-10.. PubMed
- 12589. Jeyabalan A, Caritis SN. Pharmacologic inhibition of preterm labor. Clin Obstet Gynecol 2002;45:99-113. PubMed
- 12590. Mittendorf R, Dambrosia J, Pryde PG, et al. Association between the use of antenatal magnesium sulfate in preterm labor and adverse health outcomes in infants. Am J Obstet Gynecol 2002;186:1111-8.. PubMed
- 12592. Witlin AG, Sibai BM. Magnesium sulfate therapy in preeclampsia and eclampsia. Obstet Gynecol 1998;92:883-9.. DOI
- 18111. Kass L, Weekes J, Carpenter L. Effect of magnesium supplementation on blood pressure: a meta-analysis. Eur J Clin Nutr 2012;66:411-8. PubMed
- 60780. Ganzevoort, J. W., Hoogerwaard, E. M., and van der Post, J. A. [Hypocalcemic delirium due to magnesium sulphate therapy in a pregnant woman with pre-eclampsia]. Ned.Tijdschr.Geneeskd. 8-3-2002;146(31):1453-1456.
- 60818. Azria, E., Tsatsaris, V., Goffinet, F., Kayem, G., Mignon, A., and Cabrol, D. [Magnesium sulfate in obstetrics: current data]. J Gynecol.Obstet.Biol.Reprod.(Paris) 2004;33(6 Pt 1):510-517.
- 60951. Han, S., Crowther, C. A., and Moore, V. Magnesium maintenance therapy for preventing preterm birth after threatened preterm labour. Cochrane.Database.Syst.Rev. 2010;(7):CD000940. PubMed
- 60960. Duley, L., Gulmezoglu, A. M., Henderson-Smart, D. J., and Chou, D. Magnesium sulphate and other anticonvulsants for women with pre-eclampsia. Cochrane.Database.Syst.Rev. 2010;(11):CD000025. PubMed
- 60982. Magee, L., Sawchuck, D., Synnes, A., and von, Dadelszen P. SOGC Clinical Practice Guideline. Magnesium sulphate for fetal neuroprotection. J Obstet.Gynaecol.Can. 2011;33(5):516-529.
- 61012. McDonald, S. D., Lutsiv, O., Dzaja, N., and Duley, L. A systematic review of maternal and infant outcomes following magnesium sulfate for pre-eclampsia/eclampsia in real-world use. Int J Gynaecol.Obstet. 2012;118(2):90-96. PubMed
- 61045. Thorp, J. M., Jr., Katz, V. L., Campbell, D., and Cefalo, R. C. Hypersensitivity to magnesium sulfate. Am.J.Obstet.Gynecol. 1989;161(4):889-890. PubMed
- 97489. Miller ES, Sakowicz A, Leger E. Lange E, Yee LM. The association between receipt of intrapartum magnesium and postpartum hemorrhage. Am J Obstet Gynecol 2018;218(1 Suppl):S165.
- 98284. Brown RS. Magnesium Sulfate: Another Cause of a Solute Diuresis. Am J Kidney Dis. 2017;69(4):550-551. PubMed
- 98291. Sakanoue M, Sanada J, Kanekura T. Skin eruption elicited by magnesium oxide (Maglax). J Dermatol. 2016;43(2):221-2.
- 111696. Enayati A, Gin JH, Sajeev JK, et al. Efficacy of intravenous magnesium for the management of non-post operative atrial fibrillation with rapid ventricular response: A systematic review and meta-analysis. J Cardiovasc Electrophysiol 2023;34(5):1286-1295. PubMed
- 114681. Shepherd ES, Goldsmith S, Doyle LW, et al. Magnesium sulphate for women at risk of preterm birth for neuroprotection of the fetus. Cochrane Database Syst Rev 2024;5(5):CD004661. PubMed
All 84 references behind our Magnesium records are listed in the Magnesium guide.
Medication overviews come from MedlinePlus (NIH); supplement label data from the NIH Dietary Supplement Label Database. Content is reviewed by the HelloPharmacist Editorial Team. See our data sources and editorial standards.
Where Does Our Data Come From?
- Source: the Natural Medicines (TRC Healthcare) clinical database — the evidence-graded professional reference for herb & supplement interactions.
- Citation library: 105,612 references behind our interaction content, 67,053 of them resolved to verified PubMed/DOI sources. See the references behind this page ↓
- Freshness: we automatically re-check this combination every week — this pair was last verified November 29, 2026. The Magnesium and Cephalexin records this page draws on were last updated July 10, 2026.
What Our Interaction Ratings Mean
No interaction is on record for this pair. The other supplements and medicines on this page carry a severity rating: how serious an interaction between them is.
See what each severity means
Severity: How Serious Is It?
How clinically significant the interaction is: how much it could affect your health or your treatment.
- MajorClinically significant. Best to avoid the combination, or use only under close professional supervision.
- ModerateBe cautious. The combination may call for monitoring, timing changes, or a dose adjustment.
- MinorLimited clinical concern, but still worth being aware of and mentioning to your pharmacist.
- No Known InteractionNo documented interaction in our sources.
Still Have a Question About Magnesium and Cephalexin?
Our pharmacists answer your medication & supplement questions — free.
This information is for education only and is not a substitute for professional medical advice. Always check with your pharmacist or doctor before starting, stopping, or combining supplements and medications.