This page is health education and not medical advice. It describes foods and what a blood test can show, and it does not recommend a supplement, an amount or a schedule.
On a blood panel, Magnesium is a measurement of the mineral circulating in serum, which is the fraction a laboratory can see most easily. Typical lab reference ranges for serum magnesium run around 1.6 to 2.6 mg/dL, and ranges vary by lab, age and sex. FitScript's optimal range for serum magnesium is 2 to 2.5 mg/dL, an optimization target rather than a diagnostic cut-off. A result that sits inside the standard range but near its lower edge is better described as suboptimal than abnormal. The biomarker page linked above covers the measurement, its ranges and what a high or low value may reflect in full. Everything that follows stays on food, on who tends to run low, and on when testing earns its place.
The densest everyday sources are seeds, nuts, cooked beans, soy foods, intact whole grains, dark leafy greens and cocoa, with avocado, dried fruit and some fish and shellfish filling the middle of the list. There is a reason the pattern looks like that. Magnesium sits at the centre of the chlorophyll molecule, so green leaves carry it by definition, and in grains and seeds it concentrates in the germ, the bran and the oil-rich parts that refining tends to strip away.
The table below groups common foods by type and marks their relative magnesium content in a usual serving. It deliberately leaves out milligram figures, because variety, soil, portion size and processing all move the number, and the ranking is more useful to you than the arithmetic.
| Food group | Examples | Relative magnesium content |
|---|---|---|
| Seeds | Pumpkin seeds, chia, flaxseed, sunflower seeds, sesame and tahini | High |
| Tree nuts | Almonds, cashews, Brazil nuts, hazelnuts | High |
| Peanuts | Peanuts, peanut butter | High |
| Cooked beans | Black beans, kidney beans, navy beans, edamame | High |
| Pulses | Lentils, chickpeas, split peas | Moderate |
| Soy foods | Tofu, tempeh | High |
| Plant milks | Soy milk, almond milk, oat milk | Moderate |
| Intact whole grains | Quinoa, buckwheat, amaranth, teff | High |
| Other whole grains | Oats, brown rice, bulgur, whole wheat bread and pasta | Moderate |
| Refined grains | White bread, white rice, most packaged cereals | Low |
| Dark leafy greens | Cooked spinach, Swiss chard, beet greens | High |
| Other greens | Kale, collards, bok choy, rocket | Moderate |
| Vegetables | Potato with skin, sweet potato, green peas, okra, broccoli, artichoke | Moderate |
| Cocoa | Dark chocolate, cocoa powder, cacao nibs | High |
| Fruit | Avocado, banana, dried figs, prunes, dried apricots | Moderate |
| Fish and shellfish | Mackerel, salmon, halibut, mussels | Moderate |
| Dairy and eggs | Milk, yogurt, cheese, eggs | Low to moderate |
| Meat and poultry | Beef, chicken, pork | Low |
| Water | Hard tap water and some mineral waters | Varies by source |
The useful summary is a pattern rather than a shopping list. Foods that are green, intact, or built from seeds and beans sit at the top. Foods that have been polished, refined or stripped of their outer layers sit at the bottom, which is how two diets with identical calories can differ enormously in the magnesium they deliver.
Magnesium is a working mineral rather than a structural one, which is why a shortfall shows up across many systems at once. It acts as a cofactor in a very large number of enzymatic reactions, including those governing energy transfer, DNA and protein synthesis, and nerve and muscle signalling 1. Adenosine triphosphate, the cell's energy currency, is biologically active as a complex with magnesium, so magnesium availability touches almost every process that costs energy 1.
Distribution explains a lot about why testing is harder than it looks. The great majority of body magnesium sits in bone and inside cells, with well under one percent circulating in serum, and the body works to hold that circulating fraction steady 2. Magnesium also influences how calcium and potassium move across cell membranes, which is why its balance is tied to the behaviour of other electrolytes 2.
It is worth holding both ends of the picture in mind. Minerals operate within a band where shortfall and excess each carry consequences, and magnesium is no exception 3. More is not automatically better, and food is the setting in which that balance is easiest to get right.
Refining removes most of it and boiling moves some of it into the cooking water. When a grain is milled, the bran and germ go, and with them a large share of the mineral content, which is why white rice and white flour sit so far below their intact counterparts. Research suggests that the shift toward refined staples and modern food processing is one of the reasons dietary magnesium intake falls short in many populations 4.
Cooking behaves differently. Magnesium is a mineral, so heat does not destroy it the way heat degrades some vitamins. What heat and water do is move it. Boiling greens, beans or grains leaches water-soluble minerals into the pot, and that liquid is usually poured away. Steaming, roasting, pressure cooking and any method where the cooking liquid becomes part of the dish, such as soups, stews and risottos, keep more of it on the plate.
The growing side matters too. Research suggests that changes in soil and agricultural practice contribute to the magnesium content of staple crops and to the shortfall seen in dietary intake worldwide 4. That is not something a shopper can control, but it is a reason the gap between a whole-food pattern and a heavily refined one has widened rather than narrowed.
Absorption is not a fixed percentage, it adapts. Magnesium is taken up mainly in the small intestine with an additional contribution from the colon, and the fraction absorbed rises when intake is low and falls when intake is high, so the body partly compensates for a thin diet 2. The kidneys do the other half of the work, conserving magnesium when supply is short and excreting more when it is plentiful 2.
Within a meal, a few things shift the arithmetic. Phytate, the storage form of phosphorus in seeds, grains and legumes, binds minerals and reduces how much is taken up, which is the awkward irony of magnesium-rich plant foods. Traditional kitchen practices work against it. Soaking beans, sprouting grains, fermenting dough and using leavened rather than unleavened bread all lower phytate content. Very large fibre loads in a single sitting can have a similar binding effect, spread across the day it matters less.
Sweat carries a small amount too, so very heavy training adds modestly to daily turnover.
Low magnesium clusters in predictable groups, and diet is only the first of them. Research suggests that inadequate dietary magnesium intake is widespread, with populations eating refined staples and low quantities of legumes, nuts and greens among the most affected 4. A diet built largely from ultra-processed food can be entirely adequate in calories and still thin in this mineral.
Several situations raise losses or reduce uptake. Conditions involving intestinal malabsorption or chronic diarrhoea, including coeliac disease and inflammatory bowel disease, reduce how much is absorbed and increase how much is lost 2. In people with reduced kidney function, handling of the mineral changes in both directions depending on the stage, which is one reason kidney markers are read alongside it 2. Heavy alcohol intake increases urinary losses, and magnesium depletion is associated with chronic alcohol use 1.
Metabolic health belongs on the list too. Low magnesium status is associated with type 2 diabetes and with cardiometabolic disease more broadly, and the burden of inadequate magnesium is a recognised public health concern 5. None of this identifies an individual. It identifies who is worth testing rather than guessing about.
Usually yes, because the top of the food list is almost entirely plant foods. Studies suggest that adults following plant-based diets have higher magnesium intakes than meat-eaters 6. That follows from the structure of the diet rather than from anything exotic, since beans, nuts, seeds, whole grains, tofu and greens are the foods doing the work.
Intake and status are not the same thing, though, and that distinction is the whole reason a blood test exists. A diet high in whole grains and legumes is also higher in phytate, which binds minerals in the gut and reduces how much of the intake is actually absorbed. The practical effect is usually modest, particularly when beans are soaked and cooked and bread is leavened, but it means a high intake figure does not automatically translate into a high body store.
The reverse case is equally real. Someone eating plenty of meat and dairy with mostly refined carbohydrates alongside can have an unremarkable magnesium intake without ever noticing, because the foods that carry it are simply not on the plate. Neither pattern can be resolved by argument. It is resolved by measurement and by a clinician reading that measurement in context.
A review of dietary magnesium intake and serum magnesium in relation to hypertension reports that higher magnesium intake is associated with lower blood pressure 7.
There is an honest confounder worth naming. The foods richest in magnesium are also rich in potassium, fibre and polyphenols, and they tend to displace refined grains and salty processed food from the plate. Separating the mineral from the pattern it travels in is genuinely difficult, so the sensible reading is that a magnesium-dense way of eating sits inside a broader pattern associated with better cardiovascular numbers rather than acting as a single lever.
Blood pressure management is a clinical matter in any case. If your readings run high, that belongs in a conversation with a clinician who can look at the whole picture, including your labs, rather than at one mineral in isolation.
Often it feels like nothing, and when it does produce symptoms they are the sort that could be explained by a dozen other things. Magnesium deficiency is associated with neuromuscular features such as muscle cramps, twitching, tremor and weakness, and with disturbances in other electrolytes 1.
The problem with that list is its unhelpfulness. Cramps can come from training load, hydration or sodium and potassium balance. Fatigue has a hundred causes. Palpitations deserve their own assessment. A fuller breakdown of what people notice and what else can explain it is covered in the guide to low magnesium symptoms.
The observation to carry forward is this. Symptoms can raise the question, but they cannot answer it, because nothing in the symptom list is specific to this mineral. A result on a blood panel, read next to potassium, calcium and kidney markers by someone who knows your history, is what moves the conversation from suspicion to information. If symptoms are new, persistent or frightening, that is a reason to speak to a clinician promptly rather than to adjust your groceries and wait.
For almost everyone, no. In people with normal kidney function, the kidneys clear surplus magnesium efficiently, and food alone very rarely pushes serum levels above the standard range 2. Eating a large bowl of beans and a handful of pumpkin seeds is not a route to excess. The most common consequence of a sudden jump in bean and seed intake is digestive, not biochemical, and it settles as the gut adapts.
The picture changes where clearance is impaired. In people with significantly reduced kidney function, the ability to excrete magnesium falls and levels can rise, which is one reason kidney markers are read alongside it 2. Minerals in general have both a deficiency end and a toxicity end, and the safe band is narrower than people assume 3.
Non-food sources are a different conversation entirely. Concentrated magnesium products vary widely in form and in how much the gut absorbs, and whether any of them is appropriate for you is a decision for a licensed provider who has seen your results and knows your kidney function. This page does not recommend a product, an amount or a timing, and no article should.
It looks ordinary, which is the point. A breakfast of oats with pumpkin seeds and a banana is magnesium-dense without trying. A lunch bowl built on quinoa or buckwheat with black beans, spinach and tahini dressing stacks four high-ranking foods in one dish. A dinner of tofu or tempeh stir-fried with bok choy and served with brown rice does the same thing from a different cuisine. Almonds or cashews between meals and a square of dark chocolate afterwards add to the total.
None of that requires a special product. It requires the intact version of foods you already eat, which is the single change with the largest effect. Brown rice instead of white, whole grain bread instead of white bread, beans added to a dish that did not have them, a handful of seeds on top of something that was fine without them.
Cooking method adds a little more. Keeping the liquid when you cook greens and legumes, by turning them into soups, stews and dal rather than boiling and draining, retains minerals that would otherwise go down the sink. Soaking dried beans overnight and cooking them well reduces phytate and improves what you absorb from them.
This is description, not prescription. Any individualised eating plan, particularly in people with kidney conditions or digestive disease, belongs with a clinician or a registered dietitian who knows your situation.
A standard magnesium test measures the mineral circulating in serum, which includes the free ionised portion, a portion bound to albumin and a small complexed fraction. That circulating pool represents well under one percent of total body magnesium, with the rest held in bone and inside cells 2. Knowing that is what makes the result interpretable rather than misleading.
A clinician typically orders it in specific circumstances. It is commonly checked alongside other electrolytes when potassium or calcium results are unexplained, because magnesium status influences how the body handles both 2. It is also considered in the context of sustained gastrointestinal losses or malabsorption, in people with kidney conditions where handling of the mineral changes, in people with poorly controlled metabolic disease, in people with heavy alcohol intake, and when neuromuscular or cardiac symptoms prompt a wider electrolyte review.
Magnesium is part of the standard panels FitScript runs as part of 150+ biomarkers tested per year, and Atlas, the AI health advisor, reads it alongside the rest of the panel rather than on its own. The decision about what any result means for you, and what if anything should follow it, sits with a licensed provider who reviews your history.
Yes, and this is the most important caveat on the whole page. The body defends the circulating pool, pulling from bone and cells and tightening renal conservation when intake runs short, so serum can hold steady while total stores drift down. Serum magnesium is therefore an imperfect reflection of total body magnesium, and no single blood measurement captures body stores with complete accuracy 2.
That is why a result sitting comfortably inside the standard range does not settle every question, and why a result near the bottom of the range is worth reading as suboptimal rather than dismissing as fine. It is also why context matters more than the single figure. Intake, gut symptoms, kidney function, alcohol, and the behaviour of potassium and calcium all inform what a given magnesium value is likely to mean.
RBC magnesium measures the mineral inside red blood cells rather than in the fluid around them, and it is sometimes used as an additional view when the clinical picture and the serum result do not agree. Whether adding it is useful in a particular case is a clinical judgement, not a default. A clinician decides which measurement answers the question being asked.
Magnesium is rarely informative in isolation, because it sits inside an electrolyte system. Potassium and calcium come first, since magnesium status affects how the body handles both, and a low potassium or low calcium that does not resolve as expected often prompts a look at magnesium 2. Albumin matters because a portion of serum magnesium is protein-bound, so a low albumin changes how the total figure should be read.
Kidney markers such as creatinine and estimated filtration rate belong in the same view, because renal handling determines both conservation and excretion of the mineral 2. Vitamin D and parathyroid hormone are often read in the same block, since all of these sit within bone and mineral regulation.
Metabolic markers add context for a different reason. Low magnesium status is associated with type 2 diabetes and with the broader burden of cardiometabolic disease, so fasting glucose and HbA1c give a fuller picture of what a low-ish magnesium result might be sitting next to 5. A full inflammatory and lipid picture rounds out the panel.
The principle underneath all of this is simple. One value shows a position, a panel shows a pattern, and only a clinician who can see both the pattern and the person should draw a conclusion from it.
Whenever a result sits outside the standard range, or whenever symptoms are persistent, worsening or new. A magnesium value above or below the typical reference range is worth discussing with a clinician promptly, and that applies even when you feel well, because electrolyte results are read together rather than one at a time. Never ignore a flagged result and never assume a food change has handled it.
There are situations where the conversation should come sooner rather than later. Muscle weakness, significant tremor, palpitations, confusion or seizures are reasons for prompt medical attention in their own right, regardless of what any lab value says. Sustained diarrhoea or vomiting, known kidney disease, digestive disease affecting absorption and heavy alcohol intake are all reasons to raise magnesium with your clinician rather than waiting for symptoms to declare themselves.
For everyone else, the sequence is unglamorous and effective. Build the plate from the foods at the top of the table, test rather than guess, and read the result alongside the markers that travel with it. Discuss your results and any treatment with a clinician or licensed provider, who is the only person positioned to decide whether anything beyond food is appropriate for you.
Seeds such as pumpkin, chia and sunflower, nuts such as almonds and cashews, cooked beans, tofu and tempeh, intact whole grains such as quinoa and buckwheat, cooked dark leafy greens, and cocoa sit at the top. Avocado, dried fruit, potatoes with the skin and some fish fall in the middle. Refined grains, most meat and most dairy sit toward the bottom.
No. Magnesium is a mineral, so heat does not break it down the way heat degrades some vitamins. What boiling does is move it into the cooking water, which is usually poured away. Steaming, roasting, pressure cooking, and soups and stews where the liquid stays in the dish retain more of it.
Many people can, provided the plate regularly includes seeds, nuts, beans, whole grains and greens rather than mostly refined and processed foods. Whether your own intake is sufficient is not something you can tell by looking at your meals, and whether anything beyond food is appropriate for you is a decision for a licensed provider who has reviewed your results.
Yes, cocoa solids are genuinely magnesium-dense, and the higher the cocoa percentage the more concentrated it is. Cocoa powder and cacao nibs are denser again. It is a real source rather than a novelty one, though it comes with sugar and calories that seeds, beans and greens do not.
A standard serum magnesium test measures the mineral circulating in the blood, and it is usually read alongside potassium, calcium, albumin and kidney markers. A red blood cell magnesium test measures the mineral inside cells and is sometimes added when the clinical picture and the serum result do not line up. A clinician chooses which test answers the question.
Yes. The body works hard to keep the circulating level steady, drawing on bone and cells and holding on to more through the kidneys when intake is short, so serum can stay inside the reference range while total stores drift down. That is why a result is read alongside your intake, your symptoms and the rest of the panel rather than on its own.
A value inside the standard reference range but close to its lower edge is described as suboptimal rather than abnormal. It is a reason to look at the wider pattern, including what you eat, your digestive health, your kidney markers and your potassium and calcium, and it is worth raising with your clinician at your next review.
In people with normal kidney function this is very unlikely, because the kidneys clear the surplus and food rarely pushes levels above the standard range. The usual effect of a sudden increase in beans and seeds is digestive rather than biochemical. In people with reduced kidney function the situation is different, and that belongs in a conversation with a clinician.
Speak to a clinician promptly if a result falls outside the standard range, or if you have persistent cramps, muscle weakness, palpitations, confusion or seizures, which need attention in their own right. Ongoing diarrhoea or vomiting, known kidney disease, digestive conditions affecting absorption and heavy alcohol intake are all reasons to raise it as well. Never ignore a flagged result.