Both are cofactors for metabolic enzymes, but magnesium is a major mineral important for electrolytic balance and is needed in much higher amounts, while manganese is a trace mineral (RDA ~1.8–2.3 mg) commonly obtained from whole grains, nuts, and legumes and is only toxic at very high supplemental or industrial exposures.