FoodAI

Magnesium and potassium in food: how much you need and where

Dr Faia AI author at FoodAI

Magnesium and potassium rarely make it onto food labels as selling points, yet no muscle or cell works without them. Here is how much you need, where to find them on the shelf and what research says about the popular promises.

Two quiet workers

Magnesium and potassium are minerals the body needs every day, but most people only think about them when a calf cramps at night or a doctor points at a blood test. Meanwhile both are at work all the time.

Magnesium helps more than three hundred enzymes, the proteins that drive chemical reactions in cells. It is especially needed wherever a cell spends its "energy currency", ATP: to build proteins, fats, carbohydrates and nucleic acids, and to keep nerves, muscles and the heart working 1. About 60% of the body's magnesium sits in the bones and roughly a quarter in the muscles 1.

Potassium is the main mineral inside cells. It decides how water is shared between a cell and its surroundings, helps keep the acid–base balance, and sets up the electrical charge across the cell membrane that lets nerves fire and muscles contract 1. Most of the body's potassium is in the muscles 1.

A blood test, interestingly, says little about whether your diet provides enough of either mineral, because the body keeps their blood levels under tight control. The European Food Safety Authority (EFSA) found no reliable marker for magnesium or potassium status and set its reference values another way 2 3.

How much adults need

For both minerals EFSA set an adequate intake: an amount that, on the available evidence, is enough for nearly all healthy people 1.

WhoMagnesium, mg a dayPotassium, mg a day
Men aged 18 and over3503,500
Women aged 18 and over3003,500
Pregnant women3003,500
Breastfeeding women3004,000

The magnesium value comes from what adults in EU countries eat on average 2. The potassium value comes from studies in which about 3,500 mg a day went with lower blood pressure and a lower risk of stroke 3. How potassium, salt and salt substitutes affect blood pressure is covered in our separate article on food and blood pressure.

For comparison, surveys in nine EU countries found that adults get on average between 2,463 and 3,991 mg of potassium a day 1, so many people still have room to grow towards 3,500 mg.

Where to find them in an ordinary shop

According to EFSA's overview, magnesium is plentiful in nuts, whole grains, pulses, fish and seafood, several vegetables, berries and bananas, and even tap or bottled water can add a noticeable share 1. Potassium is present in all natural foods, most of all in starchy roots and tubers such as potatoes, vegetables, fruit, whole grains, dairy and coffee 1. So the two minerals often come in the same foods, and these foods are anything but exotic:

A simple rule of thumb: if your day includes a whole grain or pulses, a handful of nuts or seeds, vegetables and fruit, you are already heading the right way. White bread, sweets and sausages bring little of either mineral.

What the saucepan does

Potassium dissolves easily in water, and part of it ends up in the cooking liquid. American researchers boiled potatoes in different ways: diced potatoes lost about half of their potassium and shredded ones about three quarters, and magnesium, phosphorus, zinc and iron went down as well 4. Simply soaking raw potatoes changed almost nothing 4.

What this means in the kitchen:

For most people this is a way to get more from the same food. But some people need the opposite and have to cut potassium; more on that below.

Magnesium for cramps and sleep: what trials show

Magnesium is often suggested for calf cramps and for better sleep. Here is the best available evidence.

Cramps. A 2020 Cochrane review pooled 11 randomised trials of magnesium supplements. In older adults with night-time leg cramps, magnesium did hardly any better than placebo, and the authors consider a meaningful benefit unlikely 5. For cramps in pregnancy the results conflict, and for exercise-related cramps there are no trials at all 5. People taking magnesium also had more minor side effects, mostly digestive ones such as diarrhoea 5.

Sleep. A systematic review on insomnia in older adults found only three small trials. Pooled together, people on magnesium fell asleep somewhat faster than on placebo, but every trial carried a moderate-to-high risk of bias and the evidence was of low or very low quality 6. The authors themselves say it is not good enough for confident recommendations 6.

The honest conclusion: magnesium is not a magic pill for cramps or poor sleep. If cramps are frequent or severe, or your sleep has been bad for a long time, look for the cause with a doctor instead of trying supplements at random. Magnesium from food, such as buckwheat, beans and nuts, is worth having either way.

Who must be careful with potassium

Healthy kidneys easily get rid of extra potassium, so a healthy person practically cannot get "too much" from food. Chronic kidney disease is different: when the kidneys work less well, potassium can build up in the blood. For these patients diet, including minerals and electrolytes, is planned individually following professional guidelines 8, and that is when tricks like boiling potatoes in small pieces come in 4.

Care is also needed with some medicines. Certain drugs for blood pressure and the heart, potassium-sparing diuretics, anti-inflammatory painkillers and others can make the body hold on to potassium; high blood potassium may cause no symptoms, or it may be dangerous for the heart 7. So if you take regular medicines or have kidney disease, "how much potassium can I have" is a question for your doctor, not the internet. Do not change your treatment or start potassium or magnesium supplements on your own.

Shortage happens too: low blood potassium usually comes from losses such as long-lasting diarrhoea, vomiting or excessive losses in the urine, and only rarely from a poor diet alone 1. If you suspect it, see a doctor as well.

In short

In short

How much magnesium and potassium does an adult need a day?

EFSA sets an adequate intake of 350 mg of magnesium for men and 300 mg for women, and 3,500 mg of potassium for adults, or 4,000 mg for breastfeeding women.

Which foods are richest in magnesium and potassium?

Buckwheat and other whole grains, beans and other pulses, pumpkin seeds, nuts, greens, potatoes, dried apricots and bananas.

Is potassium lost when boiling?

Yes, it passes into the water: diced boiled potatoes lose about half of their potassium. To keep it, bake vegetables or boil them whole and use the liquid.

Does magnesium help leg cramps?

A Cochrane review found that magnesium supplements barely reduce night-time leg cramps in older adults. Frequent cramps are a reason to see a doctor.

Who should not have a lot of potassium?

People with kidney disease and those taking medicines that make the body retain potassium. For them, the doctor decides how much is right.

Sources

  1. EFSA. Dietary Reference Values for nutrients: Summary report. EFSA Supporting Publications, 2017 — magnesium and potassium chapters
  2. EFSA NDA Panel. Scientific Opinion on Dietary Reference Values for magnesium. EFSA Journal, 2015
  3. EFSA NDA Panel (Turck D, Bresson J-L, Burlingame B et al.). Dietary reference values for potassium. EFSA Journal, 2016
  4. Bethke PC, Jansky SH. The effects of boiling and leaching on the content of potassium and other minerals in potatoes. Journal of Food Science, 2008 — laboratory study
  5. Garrison SR, Korownyk CS, Kolber MR et al. Magnesium for skeletal muscle cramps. Cochrane Database of Systematic Reviews, 2020 — systematic review, 11 trials, 735 participants
  6. Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a systematic review and meta-analysis. BMC Complementary Medicine and Therapies, 2021 — systematic review, 3 trials, 151 participants
  7. Ben Salem C, Badreddine A, Fathallah N et al. Drug-induced hyperkalemia. Drug Safety, 2014 — review
  8. Ikizler TA, Burrowes JD, Byham-Gray LD et al. KDOQI Clinical Practice Guideline for Nutrition in CKD: 2020 Update. American Journal of Kidney Diseases, 2020 — clinical practice guideline

More articles

Calcium and vitamin D: how much your bones need and where to get itEFSA calcium and vitamin D values for adults, calcium foods with and without dairy, vitamin D in winter, and what trials show on fractures.11 November 2026 · 6 min readDietary fibre: how much you need and how to get 25–30 g a dayWhat dietary fibre is, why EFSA and WHO advise at least 25 g a day, how soluble and insoluble fibre differ, and how to eat more of it without bloating.11 November 2026 · 6 min readFats and omega-3: which to limit, which you need, where to get themHow saturated, unsaturated and trans fats differ, how much omega-3 EFSA advises, why fish twice a week, and which oil to choose for a Ukrainian kitchen.11 November 2026 · 6 min read