The National Institutes of Health states that taking 5,000 milligrams or more of magnesium may lead to magnesium toxicity.