Magnesium and Potassium: The Mineral Partnership Explained

Magnesium and Potassium: The Mineral Partnership Explained

When people talk about electrolytes, sodium gets most of the attention. Salt is the mineral everyone has an opinion about.

Meanwhile, two other minerals do much of the essential work in the background — and most people are not getting enough of either. Magnesium and potassium govern muscle contraction, nerve signalling, heart rhythm, and blood pressure. Large shares of the population fall short of recommended intakes of both. And the two are closely linked: a shortfall in one tends to drag the other down with it.

As biohackers, we pay close attention to this pair, particularly for anyone eating low-carb or fasting, where requirements rise. Here is the full picture.


What Each Mineral Does

Magnesium is involved in hundreds of enzymatic reactions throughout the body. It is essential for energy production, muscle contraction and relaxation, nerve signalling, bone health, blood sugar regulation, and the movement of other electrolytes across cell membranes.

Almost all of the body's magnesium sits inside cells and bone. Less than 1 percent circulates in the blood. That detail matters, and we return to it below.

Potassium is the main positively charged mineral inside cells. It maintains fluid balance and creates the electrical charge across cell membranes that makes nerve impulses, muscle contractions, and the heartbeat possible.

Each has its own distinct roles. But at the cellular level, their functions are deeply intertwined.


How Magnesium and Potassium Work Together

The connection starts with one of the most important mechanisms in human biology: the sodium-potassium pump.

Every cell in the body runs these pumps continuously. Each cycle moves three sodium ions out of the cell and two potassium ions in, maintaining the electrical gradient that allows nerves to fire and muscles to contract. The pump is enormously energy-hungry, powered by ATP, the body's energy currency.

ATP does not work alone. To be biologically active, it must be bound to magnesium. Without enough magnesium, the pump slows, and potassium is not efficiently held inside cells.

Magnesium also controls how the kidneys handle potassium. It normally acts as a brake on the channels through which the kidneys release potassium into the urine. When magnesium runs low, that brake weakens and potassium is lost faster. A review published in Current Nutrition Reports highlights magnesium's central role in maintaining potassium and calcium balance, and notes that magnesium deficiency frequently coexists with abnormalities in both.

This has an important clinical consequence. When someone is low in both minerals, giving potassium alone often fails to correct the potassium level. The kidneys keep losing it until magnesium is restored first.

Low magnesium → weaker cellular pumps + more potassium lost in urine → low potassium that will not correct → disrupted muscle, nerve, and heart function.

There is no established ideal ratio between the two. The goal is simply adequate intake of both, with magnesium as the foundation.


Why Low-Carb and Fasting Raise Your Needs

This is the section most mainstream articles leave out — and it matters to everyone following the approach we advocate at Biohackers Corner.

Insulin causes the kidneys to retain sodium and water. When carbohydrate intake drops and insulin falls, the kidneys release that stored sodium and water, and potassium and magnesium go with it. This is a large part of the rapid early weight loss on a low-carb diet. It is also the main driver of the so-called "keto flu": headaches, fatigue, muscle cramps, dizziness, and palpitations in the first days and weeks.

The keto flu is not a sign that low-carb eating is harmful. It is a sign of electrolyte depletion, and it is largely preventable. Anyone transitioning to low-carb eating, or fasting for extended periods, should deliberately prioritise magnesium, potassium, and sodium.


What Else Depletes Them

Several common factors increase losses or reduce intake:

  • Diets high in processed food, which are stripped of minerals in refining.
  • Heavy sweating from intense training, saunas, or hot environments.
  • Alcohol, which increases urinary losses of both minerals.
  • Certain medications, including some diuretics. Long-term use of proton pump inhibitors (acid reflux medication) is a well-recognised cause of low magnesium.
  • Digestive conditions that cause diarrhoea or impair absorption.
  • Soft water. Icelandic tap water is exceptionally clean, but it is very low in dissolved minerals, so it contributes little magnesium compared with hard water elsewhere.

Three Benefits of Healthy Magnesium and Potassium Levels

1. Muscle and nerve function

Muscles and nerves run on electrical signals. Potassium generates those signals. Magnesium regulates the flow of potassium and calcium across cell membranes, and it is essential for muscles to relax after contracting.

When either mineral runs low, the system becomes unstable. Muscle cramps, twitches, eyelid flickers, weakness, and restless legs are among the most common early signs of electrolyte imbalance.

2. Normal heart rhythm

The heart is a muscle driven by precisely timed electrical signals, which makes it especially sensitive to these two minerals. Potassium returns heart cells to their resting state after each beat. Magnesium supports the movement and balance of potassium, calcium, and the other electrolytes that keep that rhythm steady.

A large study following more than 15,000 adults found that low blood levels of potassium and of magnesium were each associated with a higher incidence of atrial fibrillation, the most common heart rhythm disorder.

3. Healthy blood pressure

Potassium counterbalances the effects of sodium and helps the body regulate fluid levels. Magnesium supports the relaxation of blood vessel walls. Both contribute to healthy blood pressure.

A meta-analysis published in Nutrients found that magnesium and potassium supplementation lowered systolic blood pressure by roughly 2 to 3 mmHg in generally healthy adults. That may sound modest, but across a population, shifts of this size translate into meaningful reductions in cardiovascular risk.


Signs You May Be Running Low

Common signs of low magnesium or potassium include:

  • Muscle cramps, especially at night
  • Twitching or eyelid flickers
  • Fatigue and weakness
  • Palpitations or a sense of skipped heartbeats
  • Constipation
  • Headaches
  • Poor tolerance to exercise or heat

These symptoms overlap with many other conditions, so they are a prompt to look closer, not a diagnosis.

Testing has an important limitation. Because less than 1 percent of the body's magnesium is in the blood, a standard serum magnesium test can come back normal while tissue stores are depleted. The body defends blood levels by drawing on reserves. A red blood cell magnesium test gives a somewhat better picture, but neither is perfect. Diet, symptoms, and context matter as much as the number.

Palpitations, an irregular heartbeat, or significant muscle weakness should always be assessed by a doctor.


How Much Do You Need?

Recommendations differ slightly between authorities. In the United States, the National Institutes of Health sets these daily intakes for adults:

  • Men aged 19 to 30: 400 mg magnesium, 3,400 mg potassium
  • Men aged 31 and over: 420 mg magnesium, 3,400 mg potassium
  • Women aged 19 to 30: 310 mg magnesium, 2,600 mg potassium
  • Women aged 31 and over: 320 mg magnesium, 2,600 mg potassium

The European Food Safety Authority sets broadly similar values: around 300 to 350 mg of magnesium and 3,500 mg of potassium per day for adults.

These figures refer to total intake from food, not supplement doses. They are also baseline figures for the general population. Anyone eating low-carb, fasting, training hard, or sweating heavily will likely need more.

One crucial exception applies. People with chronic kidney disease, or those taking medications that raise potassium levels — including some blood pressure drugs and potassium-sparing diuretics — must not increase potassium intake without medical guidance. When the kidneys cannot clear potassium properly, excess levels can cause dangerous heart rhythm disturbances.


The Best Food Sources

Real food remains the best way to get both minerals. It delivers them in balanced amounts, alongside the other nutrients that support their absorption and use.

Rich in both: avocado, leafy greens such as spinach and Swiss chard, and fatty fish such as salmon and mackerel.

Strong sources of magnesium: pumpkin seeds, almonds and other nuts, high-cacao dark chocolate, and cocoa.

Strong sources of potassium: mushrooms, beef, lamb, poultry, pork, broccoli, Brussels sprouts, and courgettes.

These are not obscure health foods. They are the foundations of a well-built low-carb, whole-food diet. Eat that way consistently — plenty of leafy greens, avocado, fish, quality meat, seeds and nuts — and you naturally cover much of your requirement. You also remove the processed foods that supply almost none.

Where supplementation is needed, magnesium is generally straightforward. Well-absorbed forms such as glycinate, citrate, and malate are preferable to magnesium oxide, which is poorly absorbed. Potassium is different. It is best obtained from food, and high-dose potassium supplementation should only be undertaken with medical guidance.


The Biohackers Corner Perspective

Magnesium and potassium are not separate concerns. They are a partnership, and magnesium is the senior partner. Without enough of it, potassium leaks away and the electrical systems that run your muscles, nerves, and heart become unstable.

Modern diets built on processed food leave most people short of both. A low-carb diet fixes the food quality problem but increases mineral losses, especially at the start. The solution to both is the same: deliberate, mineral-rich real food.

Eat leafy greens daily. Add avocado, fish, quality meat, and seeds. Salt your food. Supplement magnesium in a well-absorbed form where needed. Respect the kidney exception for potassium.

Adequate magnesium → potassium held where it belongs → stable electrical signalling → steady muscles, nerves, and heart.

The quiet minerals do the essential work. Make sure they have what they need.

Back to blog

From our shelves

Products we use daily

Shop all