At a glance
Electrolytes help maintain the electrical and fluid conditions cells need to function. Magnesium and potassium are two essential minerals involved in many of these processes, and adequate intake of both is important for muscle, nerve, and cardiovascular function. Understanding their close physiological relationship can help put daily mineral intake and electrolyte balance into context.
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.

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.
Key takeaways
- Magnesium and potassium are closely connected electrolytes that support muscle function, nerve signaling, normal heart rhythms, and healthy blood pressure.
- Magnesium helps the body maintain healthy potassium levels by supporting cellular potassium transport and reducing excessive potassium loss through the kidneys.
- Daily magnesium needs range from 310 to 420 milligrams for most adults, while potassium recommendations are 2600 milligrams for women and 3400 milligrams for men.
- Green, leafy vegetables, avocados, nuts, seeds, fish, meat, and poultry can help support adequate dietary potassium and magnesium intake.
FAQ
- 1. Can you take magnesium and potassium together?
- 2. What are the signs of low potassium or potassium deficiency?
- 3. Do I need a supplement to increase magnesium intake or potassium intake?
- 4. Can medications affect the body’s magnesium and potassium levels?
- 5. Do magnesium and potassium interact with other nutrients?








