Magnesium and Potassium: How They Work Together

Magnesium and potassium have closely connected roles in the body. Magnesium helps the body maintain normal potassium levels, making both minerals important components of a nutrient-dense diet.

Discover how magnesium and potassium work together, how much you need each day, and the best food sources of both minerals.

The relationship between magnesium and potassium

Magnesium and potassium are essential electrolytes that support many of the same physiological functions, including muscle activity, nerve signaling, and cardiovascular function. 

Although each mineral has distinct roles, their functions are closely connected, and magnesium status can influence how effectively the body maintains healthy potassium levels.

Magnesium is an essential mineral involved in hundreds of enzymatic reactions throughout the body. It supports energy production, muscle contraction and relaxation, nerve signaling, bone health, and the movement of electrolytes across cell membranes.

Potassium is the primary positively charged mineral found inside cells. It helps maintain fluid balance and supports the electrical activity needed for normal nerve impulses, muscle contractions, and heart rhythms.

The connection between magnesium and potassium is especially important at the cellular level. Cells rely on a protein called the sodium-potassium pump to move potassium into cells while moving sodium out, helping maintain the electrical gradient needed for normal cellular activity.

This process requires energy in the form of adenosine triphosphate (ATP), and magnesium is needed for ATP to function effectively. In this way, adequate magnesium helps support the cellular processes that keep potassium properly distributed.

Magnesium also affects how the kidneys handle potassium. When magnesium levels are too low, the body may lose more potassium through urine, which can make it harder to maintain healthy potassium levels.

A review published in Current Nutrition Reports found that a magnesium deficiency can increase potassium loss through the kidneys. 

The authors state, “Magnesium plays a central role in maintaining potassium and calcium homeostasis, and disturbances in magnesium balance frequently coexist with abnormalities in these electrolytes.”

There is no established dietary ratio of magnesium to potassium. Instead, maintaining an adequate intake of both minerals supports the physiological processes they share.

Watch this video to learn more about magnesium deficiency. 

Benefits of maintaining healthy magnesium and potassium levels

Because magnesium and potassium work together to support electrolyte balance and cellular function, maintaining adequate levels of both is important for several closely related processes throughout the body.

Here are three key benefits of healthy magnesium and potassium levels.

1. Supports muscle and nerve function

Muscles and nerves depend on electrical signals to function properly, and both magnesium and potassium help maintain the conditions needed for these signals to travel.

Potassium helps generate the electrical impulses involved in nerve signaling and muscle contractions. Magnesium supports the movement of potassium and calcium across cell membranes and helps muscles relax after contracting.

Maintaining adequate levels of both minerals supports coordinated muscle activity and normal nerve function. In contrast, low levels of either mineral can contribute to symptoms such as muscle weakness, cramping, or twitching.

2. Helps maintain normal heart rhythms

The heart relies on many of the same electrical processes that control other muscles, making magnesium and potassium especially important for normal heart rhythm.

Potassium helps heart cells return to their resting electrical state after each heartbeat, while magnesium supports the movement and balance of potassium, calcium, and other electrolytes that enable the heart to beat.

Low levels of both minerals can interfere with normal electrical activity in the heart. 

A study in BMC Genomics involving more than 15,000 adults found that low serum potassium and low serum magnesium were each associated with a higher incidence of atrial fibrillation, highlighting a link between electrolyte levels and heart rhythm.

3. Supports healthy blood pressure

Magnesium and potassium also contribute to the processes that regulate blood pressure, although they do so in different ways.

Potassium helps balance the effects of sodium and supports normal fluid levels, while magnesium contributes to healthy blood vessel function and electrolyte movement. Adequate levels of both can help create the conditions needed for normal blood pressure control.

A meta-analysis published in Nutrients found that magnesium and potassium supplementation decreased systolic blood pressure by approximately 2 to 3 mmHg in generally healthy adult study participants.

How much magnesium and potassium do you need?

Magnesium and potassium requirements vary by age, sex, and life stage. Because the two minerals have separate dietary recommendations, the goal is to consume adequate amounts of each rather than follow a specific magnesium-to-potassium ratio.

The National Institutes of Health (NIH) lists a recommended dietary allowance (RDA) for magnesium, which reflects the average daily intake needed to meet the requirements of nearly all healthy individuals. 

The NIH sets an adequate intake (AI) instead of an RDA for potassium because there isn’t enough evidence to establish a more precise daily requirement.

Daily recommendations for healthy adults include:

  • Men ages 19 to 30: 400 mg of magnesium and 3400 mg of potassium
  • Men ages 31 and older: 420 mg of magnesium and 3400 mg of potassium
  • Women ages 19 to 30: 310 mg of magnesium and 2600 mg of potassium
  • Women ages 31 and older: 320 mg of magnesium and 2600 mg of potassium

These values refer to total daily intake from food and other dietary sources, not recommended supplement doses.

Potassium needs may differ for individuals with chronic kidney disease or those taking certain medications that affect potassium levels. In these cases, a healthcare provider can determine an appropriate intake based on kidney function, medications, and blood potassium levels.

Sources of potassium and magnesium
Image credit: Sea Wave/shutterstock.com

Best food sources of magnesium and potassium

Meeting daily magnesium and potassium needs is easier when meals include nutrient-dense foods that naturally provide both minerals. 

Choosing a variety of plant and animal foods can help support adequate intake of each electrolyte throughout the day.

“Inadequate dietary magnesium intake can contribute to low magnesium levels,” explains Dr. Berg.

Good sources of magnesium include leafy green vegetables, pumpkin seeds, almonds, avocados, and fatty fish. Dietary sources of potassium include avocados, leafy green vegetables, mushrooms, fatty fish, beef, and poultry.

Some foods, including avocados, leafy greens, and fatty fish, contribute meaningful amounts of both minerals. 

A Healthy Keto® diet naturally incorporates many of these foods, which can help support adequate magnesium and potassium intake from nutrient-dense, high-quality sources. 

FAQ

Sources

  1. https://link.springer.com/article/10.1007/s13668-026-00745-5
  2. https://pmc.ncbi.nlm.nih.gov/articles/PMC10944597/
  3. https://pmc.ncbi.nlm.nih.gov/articles/PMC11547496/
  4. https://ods.od.nih.gov/factsheets/Magnesium-HealthProfessional/
  5. https://ods.od.nih.gov/factsheets/Potassium-HealthProfessional/

Shop our bestsellers

  • D3 & K2 Vitamin
    4.9 (5397)

    D3 & K2 Vitamin

    In stock2 Potencies
    From $14.99
    View Product
  • Electrolyte Powder with 1000 mg of Potassium with Magnesium
    4.7 (5594)

    Electrolyte Powder with 1000 mg of Potassium with Magnesium

    In stock8 Flavors2 Servings
    From $35.99
    View Product
  • Magnesium Glycinate with Naturally Sourced Vitamin D3
    4.9 (2819)

    Magnesium Glycinate with Naturally Sourced Vitamin D3

    In stock2 Sizes
    From $18.99
    View Product
  • Whole Food Multivitamin with Minerals – 60 Capsules
    4.8 (1309)

    Whole Food Multivitamin with Minerals – 60 Capsules

    In stock
    $36.99
    View Product
  • Natural Vitamin B1+ Allithiamine with B Complex Blend – 60 Capsules
    4.8 (1417)

    Natural Vitamin B1+ Allithiamine with B Complex Blend – 60 Capsules

    In stock
    $23.99
    View Product
  • Trace Minerals Enhanced – 60 Capsules
    4.8 (1644)

    Trace Minerals Enhanced – 60 Capsules

    In stock
    $36.99
    View Product
  • Multi Collagen Peptides – 15.5 g per serving – Grass-Fed, Pasture-Raised, and Wild-Caught Sources – 25 servings
    4.8 (1302)

    Multi Collagen Peptides – 15.5 g per serving – Grass-Fed, Pasture-Raised, and Wild-Caught Sources – 25 servings

    In stock
    $35.99
    View Product
  • Wild-Caught Omega-3 Cod Liver Fish Oil DHA EPA – 60 Softgels
    4.8 (1109)

    Wild-Caught Omega-3 Cod Liver Fish Oil DHA EPA – 60 Softgels

    In stock
    $29.99
    View Product