Articles
Health & Medical · 10 min read

Magnesium from food: a UK supermarket guide

Meet magnesium needs through nuts, seeds, beans and whole grains, and understand when symptoms need clinical assessment.
Magnesium helps with muscle and nerve function, energy production and bone health. True deficiency is uncommon in otherwise healthy adults eating a varied diet, although intake may be lower when whole grains, pulses, nuts and vegetables rarely appear on the plate.
Marketing often presents magnesium as an answer to poor sleep, anxiety or every muscle cramp. The evidence for supplements is more limited and situation-specific than those claims suggest. Porridge, beans, wholemeal bread, pumpkin seeds, nuts and leafy vegetables provide magnesium alongside fibre and other nutrients.
Frequent cramps, weakness, palpitations or other persistent symptoms have many possible causes. Speak to a clinician rather than choosing a high-dose supplement, especially if you have kidney disease or take medicines that can alter mineral levels.

General information only

This article offers general information and does not replace advice from someone who knows your medical history. If you are pregnant, take regular medicine or live with a long-term condition, speak to your GP, nurse, pharmacist or a registered dietitian before making a major change to the way you eat.

How much and who might lack it

Magnesium requirements vary by age and sex, and most people do not need to calculate every milligram. Risk of deficiency rises with some gastrointestinal conditions, long-term alcohol misuse and certain medicines.
Supplements can cause diarrhoea and may be unsafe in kidney disease or with some medicines. Persistent symptoms need clinical assessment rather than a high-dose trial.

Seeds and nuts on porridge

Pumpkin seeds, peanuts, almonds and cashews provide magnesium in a small, useful portion. Add them to porridge, yoghurt or salad according to taste and allergy needs.
Store nuts and seeds in a cool airtight container because their oils can turn stale. Households avoiding nuts can use seeds, pulses and whole grains instead.

Whole grains at breakfast and lunch

Oats, wholemeal bread, brown rice and other whole grains contribute magnesium as well as fibre. A bowl of porridge or wholegrain toast is an easy repeated source.
White bread and rice are not forbidden; simply avoid letting refined grains crowd out every wholegrain option. Mixing varieties can make the change easier for the household.

Beans and leafy greens

Beans, chickpeas and lentils combine magnesium, fibre and protein. Dhal, chilli and bean soup therefore solve several nutritional and budget needs at once.
Leafy vegetables also contribute, and frozen spinach can be stirred into sauces or curry without creating a separate side dish.

Sleep, muscle cramps, and myths

Magnesium is often marketed for sleep and cramps, but evidence for routine supplementation is mixed. Night cramps may relate to pregnancy, medicines, exercise or other causes rather than deficiency.
Dark chocolate contains magnesium and can be enjoyed as food, not prescribed as treatment. Seek advice if cramps, weakness or sleep problems persist.

When supplements beat food

A clinician may recommend magnesium for a confirmed deficiency or specific medical reason. A pharmacist can check the dose and interactions with antibiotics, heart medicines and other treatments.
Choose a straightforward product if one is advised rather than paying for a complex sleep blend. Food remains the safest routine source for most people.
Health & Medical
On this page
1
General information only
2
How much and who might lack it
3
Seeds and nuts on porridge
4
Whole grains at breakfast and lunch
5
Beans and leafy greens
6
Sleep, muscle cramps, and myths
7
When supplements beat food
Top magnesium foods
Pumpkin seeds - sprinkle freely.
Oats and wholegrain bread.
Almonds and cashews - small handful.
Black beans and lentils.
Spinach - fresh or frozen.
Quick wins
Magnesium supports normal muscle and nerve function and is found across many ordinary foods.
Pumpkin seeds, oats, whole grains, beans, nuts and leafy vegetables all contribute.
Supplements are not a universal treatment for poor sleep or cramps and can interact with medicines.
Build a week around this advice
Browse high-fibre recipes
Healthy eating guide
Open meal planner
Vitamin D on a budget
Foods for sleep
Porridge benefits
Trust & sources
Written for Meal Pilot by Dr James, MBBS - a practising NHS GP in the United Kingdom. The information below reflects UK public-health guidance (including NHS Eatwell principles and SACN reference intakes). It is educational, not a personal prescription: always follow advice tailored to you by your own GP, practice nurse or registered dietitian.
Author
Dr James, MBBS
Reviewed by
Meal Pilot clinical evidence review
Last reviewed
2026-06-20
Sources
· EFSA Panel on Dietetic Products, Nutrition and Allergies. Dietary Reference Values for magnesium. EFSA Journal. 2015.
· Garrison SR et al. Magnesium for skeletal muscle cramps. Cochrane Database of Systematic Reviews. 2020.
· Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: systematic review and meta-analysis. 2021.
Meal Pilot
Smart meal planning, price comparison and recipes for happier, healthier households across the UK.
Get the Meal Pilot app
Plan meals, track your cupboard, and shop smarter on the go.
© 2026 Meal Pilot Ltd. All rights reserved.