All medications

Magnesium

Vitamins and supplements

Also known as Magnesium oxide, Magnesium citrate, Magnesium glycinate

Tablets, capsules, and films · Liquids and suspensions

Magnesium helps your muscles and nerves work, keeps your heartbeat steady, supports your bones, and helps control blood sugar. It's in leafy greens, nuts, seeds, beans, and whole grains. A real shortage is uncommon, but it's more likely with heavy drinking, digestive conditions that limit absorption, type 2 diabetes, older age, and long-term use of acid reducers such as omeprazole. People also take magnesium for leg cramps, sleep, or headaches; the evidence for those uses is mixed, so ask your doctor first. Some forms, like magnesium citrate, are strong laxatives.

How to take it

Food

Take it with food to cut down on stomach upset and diarrhea.

Spacing

Magnesium blocks doxycycline and ciprofloxacin, and antacids containing magnesium should be kept a couple of hours away from rosuvastatin, azithromycin, and fexofenadine. Ask your pharmacist about your timing.

Ask first if you have

Kidney disease. Your kidneys clear extra magnesium; when they can't, it can build up to dangerous levels.

Laxative effect

Diarrhea is the usual sign you're taking more than your body can handle. Magnesium citrate and oxide have the strongest effect.

Missed a dose?

Just take the next one as usual. Don't double up.

Magnesium side effects

  • Diarrhea
  • Nausea
  • Stomach cramps

Call a doctor if

Supplements and your medicines

Supplements aren't reviewed by the FDA before they're sold, and quality varies between brands — a USP Verified or NSF mark means a product was tested to contain what its label says. Tell your doctor and pharmacist about every supplement you take, just as you would a medicine.

See which vitamins and supplements affect common medicines →

Traveling with Magnesium

Traveling with medicines: what to check and pack →

Sources

Last updated November 21, 2026. Not yet reviewed by a pharmacist or physician — how our guides are made.

Educational only. This summary is drawn from public FDA labeling, MedlinePlus, and major clinical guidelines, and simplified for readability. Your prescription label and your pharmacist always come first — doses and instructions vary from person to person.