Magnesium is LIKELY SAFE for most people when taken by mouth appropriately or when the prescription-only, injectable product is used correctly. In some people, magnesium might cause stomach upset, nausea, vomiting, diarrhea, and other side effects. Doses less than 350 mg daily are safe for most adults.