However, magnesium can cause diarrhea. High doses of magnesium draw water into the gut, causing diarrhea or more than three ...