Codeage · Science Review
Magnesium: the mineral at work in every cell
What it is, where the body keeps it, how it is absorbed, how its forms differ, and what human research has measured. A physician-reviewed reading of the science.
Summary
A mineral the body keeps out of sight.
An adult body holds about 25 grams of magnesium. Less than 1 percent of it circulates in the blood.
Magnesium is a metal, the twelfth element of the periodic table, and one of the minerals the human body requires. It is present in every cell. Inside the cell it is the second most abundant positively charged ion after potassium, and it serves as a cofactor in more than 300 enzyme systems, including the reactions that use ATP, the energy molecule of the cell.
This review follows magnesium from its chemistry to its place in the body. It describes where magnesium is stored, how it is absorbed and kept in balance, what it does in enzymes, nerves, muscle and bone, where it is found in food, and how the forms used in supplements differ. It then sets out what human studies have measured and how much weight those measurements can carry.
The research discussed here concerns magnesium as a nutrient. It was conducted independently and did not involve Codeage products.
At a glance
The mineral in six facts.
- The element
- Symbol Mg, atomic number 12, atomic weight 24.305. In the body it is the ion Mg2+
- First isolated
- 1808, by the English chemist Humphry Davy. The name comes from Magnesia, a district of Greece
- In the body
- About 25 grams in an adult. Between 50 and 60 percent is in bone, and most of the rest is inside cells
- In the blood
- Less than 1 percent of the total. Normal serum levels range from 0.75 to 0.95 mmol/L
- In enzymes
- A cofactor in more than 300 enzyme systems, including the reactions that use ATP
- In food
- Green leafy vegetables, legumes, nuts, seeds and whole grains. About 30 to 40 percent of the magnesium in a diet is absorbed
The body holds about 25 grams of magnesium, and less than one percent of it shows in the blood. The science begins with what stays out of sight.
The science
From the element to the cell.
Eight parts, each describing what is established about magnesium at one stage of its path through the body.
-
01
Chemistry
The element.
Magnesium is the eighth most abundant element in the Earth's crust and the third most abundant dissolved in seawater. Its compounds were known long before the metal. In 1618, a farmer at Epsom in England noticed the bitter water of a local well, and the salt it left behind, magnesium sulfate, is still called Epsom salt. The metal itself was first isolated in 1808 by Humphry Davy.
In the body, magnesium is always an ion: an atom that has given up two electrons and carries two positive charges, written Mg2+. The ion is small, and it holds a shell of water molecules around itself more tightly than the other common ions of biology. Surrounded by that water it is far larger than the bare ion, a greater difference than for sodium, potassium or calcium. This is one reason magnesium crosses cell membranes through channels built for it.
In plants, a magnesium ion sits at the center of chlorophyll, the pigment that captures light. This is why green vegetables are a source of magnesium.
-
02
Distribution
Where the body keeps it.
An adult body contains about 25 grams of magnesium. Between 50 and 60 percent is in bone. Most of the rest is inside the cells of muscle and other soft tissues. Among the positively charged ions of the body, magnesium ranks fourth in abundance. Inside cells it ranks second, after potassium.
Less than 1 percent of the body's magnesium is in the blood serum, where its level is held between 0.75 and 0.95 millimoles per liter. Part of that circulates as the free ion, and the rest is bound to proteins or to small molecules.
Serum magnesium testing is clinically useful for detecting magnesium abnormalities, but it does not fully reflect the body's total magnesium stores. The U.S. National Institutes of Health notes that serum levels have little correlation with total body magnesium, and that no single method of assessing magnesium status is considered satisfactory.
-
03
Absorption
From the intestine to the blood.
Magnesium is absorbed mainly in the small intestine, by two routes. Most of it passes between the cells of the intestinal lining, a passive route driven by concentration. The rest is carried through the cells by channels built for magnesium, named TRPM6 and TRPM7.
The share absorbed tends to fall as the amount rises, a general property of mineral transport. On an ordinary diet, about 30 to 40 percent of the magnesium consumed is absorbed.
-
04
Balance
How the kidneys keep it steady.
The kidneys set the body's magnesium balance. They filter magnesium from the blood and return most of it. About 120 mg leaves in the urine on a typical day.
The system adjusts to supply. When magnesium intake is low, the kidneys excrete less. When intake is high, they excrete more. This is how the level in the blood stays within its narrow range across very different diets.
It is also why the level in the blood can remain steady while the amount held in bone and inside cells changes.
-
05
Biochemistry
What it does in the cell.
Most of magnesium's work is done in enzymes. ATP, the molecule that carries energy in the cell, is used by enzymes as a complex with magnesium. Magnesium therefore takes part in the reactions that produce and spend energy, in glycolysis and in the mitochondria.
Magnesium is required for the synthesis of DNA, RNA and proteins, and it contributes to the structure of bone. It also takes part in the active transport of calcium and potassium ions across cell membranes, a process that the National Institutes of Health describes as important to nerve impulse conduction, muscle contraction and normal heart rhythm.
Magnesium and vitamin D are linked. A 2018 review describes the enzymes that convert vitamin D into its active form, in the liver and in the kidney, as dependent on magnesium.
-
06
Nerve and muscle
A counterpart to calcium.
Physiologists often describe magnesium as a natural counterpart to calcium. In muscle, calcium entering the cell triggers contraction, and magnesium competes with calcium for the same binding sites.
In the brain, a magnesium ion sits inside the channel of the NMDA receptor, one of the main receptors for the neurotransmitter glutamate, and blocks it while the nerve cell is at rest. The block lifts when the cell is activated strongly enough. This gating was described in 1984, and neuroscientists regard it as central to how connections between nerve cells are strengthened.
These are descriptions of normal physiology. What they mean for a person taking supplemental magnesium is a separate question, and it is the subject of the research section below.
-
07
Diet
Where it is found in food.
Magnesium is widely distributed in plant and animal foods. Good sources include green leafy vegetables, legumes, nuts, seeds and whole grains. Tap, mineral and bottled waters also contain magnesium, in amounts that vary by source.
Magnesium in selected foods, per serving (U.S. National Institutes of Health) Food and serving Magnesium Pumpkin seeds, roasted, 1 ounce 156 mg Chia seeds, 1 ounce 111 mg Almonds, dry roasted, 1 ounce 80 mg Spinach, boiled, half a cup 78 mg Cashews, dry roasted, 1 ounce 74 mg Black beans, cooked, half a cup 60 mg Brown rice, cooked, half a cup 42 mg Plain low-fat yogurt, 8 ounces 42 mg Banana, 1 medium 32 mg Salmon, farmed, cooked, 3 ounces 26 mg White rice, cooked, half a cup 10 mg The difference between brown rice and white rice shows a general rule: refining grains removes the germ and the bran, and with them much of the magnesium.
Dietary surveys in the United States consistently find that many people consume less magnesium than recommended, according to the National Institutes of Health. In an analysis of national survey data from 2013 to 2016, 48 percent of Americans of all ages took in less magnesium from food and beverages than the estimated average requirement for their age and sex.
-
08
Forms
The compounds used in supplements.
In a supplement, magnesium is always joined to a partner, and the pair is called a form. The amount printed in a Supplement Facts panel is the elemental magnesium: the weight of the magnesium itself, apart from its partner.
Common forms of magnesium and their approximate share of magnesium by weight, calculated from the chemical formula of the simple compound. Commercial materials vary, and hydrated forms contain a smaller share Form Magnesium by weight, and its partner Magnesium oxide About 60 percent. Magnesium joined to oxygen. Magnesium hydroxide About 42 percent. Magnesium joined to hydroxide. Magnesium citrate About 16 percent. A salt of citric acid. Magnesium malate About 15 percent. A salt of malic acid. Magnesium bisglycinate About 14 percent. A chelate: one magnesium ion held by two molecules of the amino acid glycine. Magnesium taurate About 9 percent. Magnesium joined to taurine. Magnesium L-threonate About 8 percent. A salt of L-threonic acid, a compound formed from vitamin C. Two properties vary from one form to another: how much magnesium the compound carries, and how readily it dissolves. Magnesium oxide carries the most.
The National Institutes of Health summarizes the small studies available: forms that dissolve well in liquid are absorbed more completely, and the aspartate, citrate, lactate and chloride forms have shown higher bioavailability than the oxide and sulfate forms. These studies are few and small, and comparisons between forms remain limited.
Each form is therefore a balance between the magnesium it carries and the way it dissolves, which is one reason a formula may combine more than one. Newer forms have a shorter record. Magnesium L-threonate was first described in 2010, in animal research, and human studies of it remain few.
The research
What human studies have measured.
Magnesium has been studied as a nutrient for many decades. Six areas of human research, each with what was measured and what the measurement can tell us.
-
Status
Measuring magnesium in people.
Most studies rely on serum magnesium, the most commonly used measure. The National Institutes of Health notes that it has little correlation with the body's total and that no single method is considered satisfactory. This limits what many studies can show.
-
Sleep
Sleep quality.
A 2023 systematic review gathered 9 studies with 7,582 participants. Observational studies suggested an association between magnesium status and sleep quality. Randomized trials gave uncertain results, and the authors called for larger trials lasting longer than 12 weeks.
-
Intake
Magnesium in the diet.
National dietary surveys measure how much magnesium people eat. In U.S. data from 2013 to 2016, 48 percent of people took in less from food and beverages than the estimated average requirement, according to the National Institutes of Health.
-
Bone
Bone mineral density.
A 2022 systematic review of 12 observational studies in older adults found a positive association between magnesium intake and bone mineral density at the hip. It found no association at other sites, and the authors called for large, long-term randomized trials.
-
Vitamin D
Two nutrients, one pathway.
A 2018 review set out how the enzymes that activate vitamin D depend on magnesium. How magnesium status and vitamin D status move together in people is an active question. Trials designed around both nutrients are still few.
-
Tolerance
The digestive effect.
The most consistently documented effect of supplemental magnesium is digestive. Larger amounts of magnesium salts draw water into the intestine and can loosen stools. Magnesium naturally present in food is handled differently: in healthy people, the kidneys remove the surplus in the urine.
Reading this evidence
How much weight it can carry.
The evidence is strongest where magnesium is measured directly. Its place in enzymes, the way it is absorbed and the way the kidneys regulate it are established physiology.
Research on sleep and bone is more varied. Much of it is observational, which shows that two things occur together and leaves open whether one causes the other. The randomized trials are generally small and short, and their results often depend on the magnesium status of the people enrolled.
The fair summary is this: the biology of magnesium is well described, intakes below recommended amounts are common, and the study of supplemental magnesium in specific areas is still developing. This review covers magnesium in everyday physiology. Research on magnesium in medical conditions is a separate literature, to be read with a doctor.
In practice
What a physician would want you to know.
General information for readers who meet magnesium in food or on a supplement label.
-
Amounts
Food and supplements are counted separately.
For adults, the U.S. National Academies recommend 310 to 420 mg of magnesium a day from all sources, depending on age and sex. They set a separate upper level of 350 mg a day for magnesium from supplements and medicines, which leaves aside the magnesium naturally present in food. A supplement label states its own amount as elemental magnesium, and that is the figure to read.
-
Medicines
Magnesium can interact with medicines.
Magnesium can bind to certain medicines in the gut, including some antibiotics and some medicines taken for bone, and lower the amount absorbed. Other medicines, including some diuretics and acid-reducing medicines, can change the body's magnesium level. A pharmacist can advise on timing.
-
Your own doctor
When to ask first.
Speak with your doctor or pharmacist before using a magnesium supplement if you have a kidney condition or any medical condition, take prescription medication, are pregnant or nursing, or are choosing a supplement for someone under 18. The kidneys remove surplus magnesium, so kidney health matters here in particular.
A supplement complements a varied diet. It works alongside movement, sleep and nutrition, the foundations of health at every age.
Open questions
What science is still working out.
- Measuring status.
- No single test reflects the body's total magnesium. A reliable marker would sharpen every study in the field.
- Form against form.
- Comparisons between magnesium forms in healthy adults are few and small, and their methods differ. Newer forms have been studied far less than citrate or oxide.
- Longer trials.
- Sleep and bone have mostly been studied in short trials or by observation. Larger and longer randomized trials, in people with different starting intakes, will sharpen the picture.
Terms used in this review
- Elemental magnesium
- The weight of the magnesium itself within a compound. It is the amount a Supplement Facts panel reports.
- Magnesium ion
- Magnesium carrying two positive charges, written Mg2+. It is the form in which magnesium exists in the body.
- Cofactor
- A helper an enzyme needs to work. Magnesium is a cofactor in more than 300 enzyme systems.
- Mg-ATP
- ATP bound to a magnesium ion, the form in which enzymes generally use it.
- Serum magnesium
- The magnesium measured in the liquid part of the blood. It represents less than 1 percent of the body's total.
- Chelate
- A compound in which an organic molecule holds a mineral ion at two or more points, as glycine does in magnesium bisglycinate.
- Bioavailability
- The share of a nutrient that is absorbed and available for the body to use or store.
- NMDA receptor
- A receptor for the neurotransmitter glutamate. Its channel is blocked by a magnesium ion while the nerve cell is at rest.
Questions
Common questions.
What is magnesium?
Magnesium is a mineral and the twelfth element of the periodic table. In the body it exists as an ion carrying two positive charges, present in every cell, where it serves as a cofactor in more than 300 enzyme systems, including the reactions that use ATP.
What does magnesium do in the body?
Magnesium takes part in energy production, in the synthesis of DNA, RNA and proteins, and in the structure of bone. According to the U.S. National Institutes of Health, it also plays a role in the transport of calcium and potassium across cell membranes, a process important to nerve impulse conduction, muscle contraction and normal heart rhythm.
Where is magnesium stored in the body?
An adult body holds about 25 grams of magnesium. Between 50 and 60 percent is in bone, and most of the rest is inside the cells of muscle and other soft tissues. Less than 1 percent is in the blood serum.
Which foods contain magnesium?
Green leafy vegetables, legumes, nuts, seeds and whole grains are good sources. One ounce of roasted pumpkin seeds provides 156 mg, one ounce of dry roasted almonds 80 mg and half a cup of boiled spinach 78 mg, according to the National Institutes of Health.
How much of the magnesium in food is absorbed?
About 30 to 40 percent of the magnesium in a typical diet is absorbed. The share tends to fall as the amount taken rises.
What is elemental magnesium?
Elemental magnesium is the weight of the magnesium itself within a compound. Magnesium oxide is about 60 percent magnesium by weight, magnesium citrate about 16 percent and magnesium bisglycinate about 14 percent. A Supplement Facts panel reports the elemental amount.
What is the difference between magnesium glycinate, citrate and oxide?
They are different compounds that carry the same mineral. Oxide is magnesium joined to oxygen, citrate is a salt of citric acid, and glycinate, also called bisglycinate, is a chelate in which two molecules of glycine hold one magnesium ion. They differ in how much magnesium they contain by weight and in how readily they dissolve.
What does a serum magnesium test show?
Serum magnesium testing is clinically useful for detecting magnesium abnormalities, but it does not fully reflect the body's total magnesium stores. Less than 1 percent of the body's magnesium is in the blood serum, and the kidneys hold that level within a narrow range.
Medical review
Who reviewed this article.
References
The studies below were conducted independently and did not involve Codeage products. They are listed so readers can consult the original work.
- National Institutes of Health, Office of Dietary Supplements. Magnesium: fact sheet for health professionals. Updated January 2026.
- Institute of Medicine. Dietary Reference Intakes for Calcium, Phosphorus, Magnesium, Vitamin D, and Fluoride. National Academy Press; 1997.
- Moomaw AS, Maguire ME. The unique nature of Mg2+ channels. Physiology. 2008;23:275-285.
- Voets T, Nilius B, Hoefs S, et al. TRPM6 forms the Mg2+ influx channel involved in intestinal and renal Mg2+ absorption. Journal of Biological Chemistry. 2004;279:19-25.
- Nowak L, Bregestovski P, Ascher P, Herbet A, Prochiantz A. Magnesium gates glutamate-activated channels in mouse central neurones. Nature. 1984;307:462-465.
- Uwitonze AM, Razzaque MS. Role of magnesium in vitamin D activation and function. Journal of the American Osteopathic Association. 2018;118:181-189.
- Arab A, Rafie N, Amani R, Shirani F. The role of magnesium in sleep health: a systematic review of available literature. Biological Trace Element Research. 2023;201:121-128.
- Groenendijk I, van Delft M, Versloot P, van Loon LJC, de Groot LCPGM. Impact of magnesium on bone health in older adults: a systematic review and meta-analysis. Bone. 2022;154:116233.
Codeage · Science Review
The mineral, read with care.
This article is provided for general information and education. It is not medical advice and does not replace the advice of your own healthcare practitioner. The research described concerns magnesium as a nutrient, was conducted independently and did not involve Codeage products. The reviewing physician is a paid Medical Advisor to Codeage.
These statements have not been evaluated by the Food and Drug Administration. Codeage products are not intended to diagnose, treat, cure, or prevent any disease.