Electrolyte minerals · Updated November 2026

Is magnesium an electrolyte?

Yes. Magnesium is an electrolyte. Like sodium, potassium, calcium, chloride and phosphorus, it dissolves in body fluids as a charged particle (Mg2+) and helps carry the electrical signals your nerves and muscles depend on.

What magnesium does

Magnesium is a cofactor in more than 300 enzyme systems. It is involved in energy production, protein synthesis, muscle and nerve function, blood sugar control and blood pressure regulation. It also helps move calcium and potassium across cell membranes, which is part of how a normal heart rhythm and muscle contraction work.

How magnesium differs from sodium and potassium

Sodium is the main electrolyte in the fluid outside your cells and the one lost in the largest amounts in sweat. Potassium is the main electrolyte inside your cells. Magnesium is present in much smaller amounts in blood: most of the body's magnesium is stored in bone and soft tissue, and less than 1% is in the blood. Sweat contains only small amounts of magnesium compared with sodium.

How much magnesium adults need

AgeMenWomen
19–30400 mg310 mg
31 and older420 mg320 mg

The Daily Value on food and supplement labels is 420 mg. For supplements (not food), the upper limit for adults is 350 mg a day; higher doses can cause diarrhea.

Best food sources

Pumpkin seeds (156 mg per ounce), chia seeds (111 mg), almonds (80 mg), boiled spinach (78 mg per half cup), cashews (74 mg) and black beans (60 mg per half cup) are among the richest sources. See the full list on foods high in electrolytes.

Magnesium in electrolyte drinks

Many electrolyte drinks and powders list magnesium, but amounts vary widely, from a few milligrams to around 100 mg per serving. Check the milligrams on the label. A product built for heavy sweating should lead with sodium, then potassium, with magnesium as a supporting mineral.

Related: all the minerals that are electrolytes, is salt an electrolyte?, magnesium in depth and electrolyte drinks compared by label.

Common questions

Is magnesium an electrolyte?

Yes. Magnesium carries a positive charge (Mg2+) in body fluids and is one of the six main electrolyte minerals, with sodium, potassium, calcium, chloride and phosphorus.

How much magnesium do adults need per day?

310 to 320 mg for women and 400 to 420 mg for men, depending on age. The label Daily Value is 420 mg.

Do you lose magnesium in sweat?

Only small amounts compared with sodium. Sodium is the electrolyte lost in the largest amounts in sweat.

Sources