5 March, 2026
views

Magnesium: Functions and Role in the Body

Magnesium is one of the most abundant minerals in the human body — and at the same time, one whose deficiency most often goes unnoticed for years. Chronic fatigue, muscle cramps, irritability, sleep disturbances, and a racing heart are all symptoms that people commonly attribute to anything but magnesium deficiency. By various estimates, between 10 and 30% of people in developed countries consume magnesium below the recommended daily intake, a figure that is rising amid soil depletion and the widespread consumption of ultra-processed foods.

Magnesium is a cofactor in more than 300 enzymatic reactions in the body. It participates in protein and DNA synthesis, blood sugar regulation, blood pressure maintenance, nervous system function, and muscle contraction. It is a core component of the ATP molecule — the cell’s primary fuel source — making it not just a helpful nutrient, but a systemic regulator on which the functioning of virtually every organ depends.

In this article, you will learn about all the key functions of magnesium, daily norms for different population groups, the signs and consequences of deficiency and excess, the best food sources, supplement forms, and answers to the most frequently asked questions.

What Is Magnesium and Why Is It Essential

Magnesium is a macromineral — the fourth most abundant mineral in the human body and the second most plentiful intracellular cation. An adult body contains approximately 25 g of magnesium: about 60% is stored in the bones, 27% in the muscles, and the remainder in soft tissues and body fluids. Only around 1% of the body’s magnesium circulates in the blood, which is why a standard serum test is not the most accurate measure of overall mineral status.

Magnesium must be obtained entirely from food and water — the body cannot synthesise it independently. Unlike fat-soluble vitamins, it is not stored in large reserves, making regular adequate intake critically important. Its role in energy metabolism is especially significant: magnesium forms part of the Mg-ATP complex, without which ATP cannot bind to enzymes and deliver energy for cellular processes. In effect, every cell in the body requires magnesium to produce and use energy.

Compared to similar minerals — calcium and potassium — magnesium is distinguished above all by its role as a regulator. It acts as a natural calcium antagonist at the cellular level, which allows it to control muscle contraction and nerve excitation. If calcium “switches on” contraction, magnesium “switches it off” — enabling relaxation. This is why magnesium is often called the “relaxation mineral.”

Magnesium Daily Norms

GroupDaily Norm (RDA/AI)Upper Limit (UL)*Note
Men 19–30 y.400 mg350 mg (supplements)Standard norm
Men 31+ y.420 mg350 mg (supplements)Slightly higher need
Women 19–30 y.310 mg350 mg (supplements)Standard norm
Women 31+ y.320 mg350 mg (supplements)Slightly higher need
Pregnant (19–30 y.)350 mg350 mg (supplements)Increased need
Pregnant (31–50 y.)360 mg350 mg (supplements)Highest norm in pregnancy
Breastfeeding women310–320 mg350 mg (supplements)Equal to baseline norm
Children 1–3 y.80 mg65 mg (supplements)
Children 4–8 y.130 mg110 mg (supplements)
Adolescents 9–18 y.240–410 mg350 mg (supplements)Varies by sex and age
Adults 60+420 mg (m) / 320 mg (f)350 mg (supplements)Risk of reduced absorption

*UL applies only to magnesium from supplements and fortified foods — not from natural food sources. Excess magnesium from food is non-toxic for healthy individuals. Source: NIH Office of Dietary Supplements.

To meet the daily norm for a woman (310 mg), it is sufficient to eat a handful of pumpkin seeds (30 g ≈ 150 mg), a serving of cooked spinach (100 g ≈ 78 mg), and 30 g of dark chocolate (≈ 70 mg). In practice, most people fall short of the norm due to a diet heavy in processed foods. It is also worth knowing that caffeine and alcohol increase magnesium excretion through the kidneys.

Functions and Role of Magnesium in the Body

Magnesium and Energy Metabolism — Fuel for Every Cell

Magnesium is an essential component of the Mg-ATP complex — the active form of adenosine triphosphate, the body’s primary energy carrier. Without magnesium, ATP cannot bind to enzymes and transfer energy for cellular processes: protein synthesis, muscle contraction, or ion pump activity. Magnesium is also a cofactor for enzymes involved in glycolysis and the Krebs cycle — the key metabolic pathways of energy production.

In practical terms, this means that when magnesium is deficient, the cell quite literally “loses power.” Chronic fatigue, feeling exhausted even after rest, and reduced physical endurance can all be connected not to overwork, but to insufficient magnesium in the diet. Athletes and people with intense physical activity have a particularly elevated need for this mineral.

Role in Nervous System Function and Sleep Quality

Magnesium regulates the activity of NMDA glutamate receptors — one of the main excitatory neurotransmitter systems. Under normal conditions, magnesium blocks these receptors at rest, preventing excessive nerve excitation. When levels are deficient, this “block” weakens: the nervous system becomes hyperexcitable, which manifests as anxiety, irritability, and heightened stress reactivity. Simultaneously, magnesium supports the synthesis of GABA — the primary inhibitory neurotransmitter responsible for a sense of calm.

The link to sleep quality: magnesium regulates melatonin receptor activity and lowers cortisol levels in the evening. Studies have shown that magnesium supplementation can reduce sleep onset time and improve sleep depth — particularly in older adults with deficiency. Nightly leg cramps, frequent awakenings, and pre-sleep anxiety are all symptoms worth considering in the context of magnesium status.

Magnesium and the Cardiovascular System

Magnesium is a natural regulator of heart rhythm: it controls calcium and potassium channel function in cardiac muscle cells, ensuring a stable electrical impulse. When magnesium is deficient, the risk of arrhythmias — particularly atrial fibrillation — increases. This is well established in cardiology: intravenous magnesium is used therapeutically for certain arrhythmias in clinical settings.

Regarding blood pressure: magnesium relaxes the smooth muscle of vessel walls, promoting vasodilation and reducing peripheral resistance. Meta-analyses of randomised controlled trials have shown that magnesium supplementation is associated with a modest reduction in both systolic and diastolic blood pressure — particularly in individuals with an existing deficiency. Adequate magnesium intake is also associated with a lower risk of coronary heart disease and stroke in observational studies.

Effect on Blood Sugar Regulation and Type 2 Diabetes Prevention

Magnesium is a cofactor for more than 10 enzymes involved in glucose metabolism and insulin signalling. It is essential for normal insulin binding to its receptors and for transmitting the signal into the cell. When magnesium is deficient, cellular sensitivity to insulin decreases — insulin resistance develops, which is the key mechanism underlying type 2 diabetes.

Observational studies consistently show that people with higher magnesium intake have a lower risk of developing type 2 diabetes. There is also a reverse relationship: diabetes increases urinary magnesium excretion, deepening the deficiency further. This makes magnesium monitoring especially important for people with prediabetes or an established diagnosis.

Magnesium and Bone and Dental Health

Approximately 60% of the body’s magnesium is stored in bone tissue. It participates in the formation of hydroxyapatite crystals — the primary mineral component of bones — and regulates the activity of osteoblasts and osteoclasts. Magnesium also influences vitamin D metabolism: without adequate magnesium levels, vitamin D cannot be activated to its active form (calcitriol). This means that even with sufficient vitamin D intake, supplementation may be ineffective if magnesium is deficient.

Research shows an association between low magnesium intake and reduced bone mineral density and increased risk of osteoporosis — particularly in post-menopausal women. Bone-strengthening strategies should therefore consider magnesium alongside calcium and vitamin D, rather than focusing only on the latter two.

Role in Stress Regulation and Mental Health

Magnesium is closely linked to the body’s stress response through the hypothalamic-pituitary-adrenal (HPA) axis. Stress triggers cortisol release, which in turn increases renal magnesium excretion. This creates a vicious cycle: stress depletes magnesium, while magnesium deficiency increases nervous system excitability and stress reactivity. Observational studies have found associations between lower magnesium levels and higher rates of anxiety and depression.

It is important to understand that magnesium is not a “treatment” for anxiety or depression — however, correcting a deficiency can be one component of a comprehensive approach to mental health support. If you are experiencing chronic stress and notice increased irritability or anxiety, checking your magnesium status may be a worthwhile step.

Magnesium and Muscle Health: From Cramps to Post-Workout Recovery

Magnesium regulates calcium transport across muscle cell membranes. Calcium initiates muscle contraction; magnesium enables relaxation. When magnesium is deficient, calcium remains in the cell longer, leading to hyperexcitability of muscle fibres: involuntary twitching, cramps, and the feeling of muscles “seizing up” occur. Nightly leg cramps are one of the classic symptoms of magnesium deficiency — though their causes can be varied.

For athletes, magnesium matters additionally because it is actively lost through sweat during intense training. Adequate magnesium levels are associated with better strength endurance, faster recovery after exercise, and lower levels of muscle inflammation markers. Sports dietitians frequently include magnesium monitoring as part of baseline assessments for athletes.

Signs and Consequences of Magnesium Deficiency

Early and Moderate Deficiency Symptoms

In the early stages, magnesium deficiency rarely presents with specific symptoms — they are diffuse and easily attributed to fatigue or stress. The most common signs include: muscle twitching and cramps (especially nightly leg cramps), eyelid twitching, chronic fatigue and weakness, heightened irritability, anxiety, and sleep disturbances. Many people go years without connecting these symptoms to a specific mineral deficiency.

High-risk groups for early deficiency: people under chronic stress (stress accelerates magnesium excretion), those who consume significant amounts of coffee or alcohol, and individuals whose diet is predominantly composed of ultra-processed foods. Practical recommendation: if you experience persistent muscle cramps or chronic fatigue without an obvious cause, review your diet for magnesium content and, if needed, get a blood test.

Consequences of Chronic Deficiency

Prolonged magnesium deficiency has more serious consequences for the cardiovascular system: the risk of hypertension, arrhythmias, and atherosclerosis increases. At the metabolic level, chronic deficiency is associated with insulin resistance and type 2 diabetes. For the nervous system, the risk of migraines rises: studies have shown that magnesium levels in the brains of people with frequent migraines are significantly lower than in healthy individuals, and magnesium supplementation can reduce the frequency and severity of attacks.

Important note: standard serum magnesium tests reflect only 1% of total body magnesium. A normal result does not rule out intracellular deficiency. More informative options include red blood cell (erythrocyte) magnesium or ionised magnesium. If symptoms are present, discuss the choice of test with your doctor.

Magnesium Excess — When There Is Too Much

Hypermagnesaemia: Who Is at Risk

Unlike fat-soluble vitamins, excess magnesium from natural food sources is practically impossible for healthy people: the kidneys efficiently excrete any surplus. Hypermagnesaemia — a dangerous rise in blood magnesium levels — occurs almost exclusively when large doses of supplements or magnesium-based medications (antacids, laxatives) are consumed by individuals with impaired kidney function. In renal insufficiency, magnesium excretion is significantly reduced, so supplements must only be prescribed under strict medical supervision.

Symptoms of magnesium overdose from supplements (when exceeding 350 mg/day from supplements): diarrhoea, nausea, abdominal cramps. At very high doses: low blood pressure, muscle weakness, and cardiac arrhythmia. The upper safe limit (UL) of 350 mg applies only to supplements and medications — not to food sources.

Drug Interactions

Magnesium can interact with several medications. Tetracycline and fluoroquinolone antibiotics: magnesium reduces their absorption — an interval of at least 2–4 hours between doses is required. Diuretics: loop and thiazide diuretics increase renal magnesium excretion, which can lead to deficiency. Proton pump inhibitors (omeprazole, pantoprazole): long-term use reduces magnesium absorption in the intestine. If you are taking any of these drugs on a long-term basis, discuss magnesium monitoring with your doctor.

Who Should Pay Special Attention to Magnesium Levels

People Under Chronic Stress

Stress is one of the greatest “consumers” of magnesium: HPA axis activation and elevated cortisol accelerate urinary magnesium excretion. In turn, magnesium deficiency heightens nervous system excitability, closing the vicious cycle. For people dealing with chronic stress, anxiety, and sleep disturbances, monitoring dietary magnesium intake and considering supplementation — after consulting a doctor — is especially relevant.

Athletes and Physically Active Individuals

During intense physical activity, magnesium is actively lost through sweat and urine. Athletes may require 10–20% more magnesium than sedentary individuals. Signs of deficiency in this group include: reduced endurance, frequent cramps, and slow recovery. Athletes are advised to pay close attention to their diet and, if needed, consult a sports dietitian regarding supplementation.

People with Type 2 Diabetes

In type 2 diabetes, renal magnesium excretion is increased due to glucosuria (glucose in the urine), as well as through the use of certain glucose-lowering medications. Magnesium deficiency, in turn, worsens insulin resistance. People with diabetes should regularly check magnesium levels and discuss potential correction with their doctor.

People with Gastrointestinal Disorders

Crohn’s disease, ulcerative colitis, coeliac disease, short bowel syndrome — all of these conditions reduce magnesium absorption in the small intestine. Chronic diarrhoea of any cause also leads to elevated magnesium losses. This group is advised to have regular magnesium monitoring and, if necessary, to use well-absorbed supplement forms.

Older Adults (60+)

With age, intestinal magnesium absorption decreases while renal excretion increases. Older adults also more frequently take medications that affect magnesium metabolism (diuretics, proton pump inhibitors) and often have less varied diets. Regular monitoring of magnesium levels and adjusting the diet to include magnesium-rich foods is an important component of preventing age-related conditions — from osteoporosis to cardiovascular disease.

Best Food Sources of Magnesium

Magnesium is widely distributed in plant-based foods — especially seeds, nuts, legumes, and dark leafy greens. Animal products contain significantly smaller amounts.

FoodContent (mg / 100 g)Note
Pumpkin seeds (dry)592 mgThe richest plant source
Brazil nuts376 mgAlso a selenium source
Chia seeds335 mgPlus omega-3 and fibre
Almonds270 mgConvenient daily snack
Dark chocolate (70%+)228 mgper 100 g; 30 g ≈ 70 mg
Buckwheat (cooked)51 mgAccessible everyday source
Spinach (cooked)78 mgAlso calcium and iron
Black beans (cooked)70 mgPlus protein and fibre
Avocado29 mgPlus healthy fats
Salmon30 mgAnimal source

Source: USDA FoodData Central. Values are approximate and may vary by variety and growing conditions.

An important note: refining significantly reduces magnesium content. White flour contains approximately 80% less magnesium than wholegrain flour. Polished white rice contains four times less magnesium than unpolished. Switching to wholegrain products is one of the simplest ways to increase dietary magnesium intake.

Best Combinations for Better Absorption

Intestinal absorption of magnesium averages 30–40% of the amount consumed — and depends on several factors. Vitamin B6 (pyridoxine) enhances magnesium absorption and cellular transport — they work well together. Vitamin D supports intestinal magnesium absorption. Excess calcium can compete with magnesium for absorption — the optimal dietary Ca:Mg ratio is approximately 2:1. Phytic acid in unsoaked grains and legumes reduces magnesium bioavailability: soaking, sprouting, or fermentation (sourdough bread, sprouted grains) substantially improves it. Alcohol and caffeine increase renal magnesium excretion — regular consumption raises magnesium needs.

Magnesium Supplements — When Are They Needed

Magnesium supplements are justified in the following situations: confirmed deficiency on testing, conditions causing reduced absorption, elevated needs in athletes, chronic stress with corresponding symptoms, and migraines or muscle cramps unresolved by dietary correction.

Supplement forms differ significantly in bioavailability. Magnesium citrate: one of the best-absorbed forms, suitable for most people. Magnesium glycinate (bisglycinate): high bioavailability, minimal laxative effect, well-tolerated with a sensitive gut. Magnesium malate: a good option for chronic fatigue and muscle pain. Magnesium threonate: better penetrates the blood-brain barrier, under research for cognitive conditions. Magnesium oxide: very low bioavailability (~4%), used primarily as a laxative — not recommended for correcting deficiency. Magnesium sulphate (Epsom salt): for baths (transdermal absorption is minimal) or short-term clinical use.

Magnesium is best taken in the evening or before bed — this enhances its relaxing effect and may improve sleep quality. It absorbs better with food or a small snack. Do not combine with large doses of calcium in the same sitting. Standard therapeutic dosing is 200–400 mg elemental magnesium per day; do not exceed 350 mg from supplements without medical recommendation.

Important note: supplements complement but do not replace a varied diet. Consult a doctor before starting supplementation — especially if you have kidney disease or take medications that interact with magnesium.

Common Myths About Magnesium

“If you have leg cramps, you definitely need magnesium”

Leg cramps are one of the symptoms most commonly associated with magnesium deficiency, and this association has become so entrenched that magnesium supplements have become an almost reflexive response to any muscle cramping. However, cramps can have dozens of causes: potassium, calcium, or sodium deficiency, dehydration, muscle overload, neuropathy, vascular conditions, and more.

Systematic reviews have not found convincing evidence that magnesium supplements effectively resolve nightly leg cramps in the general population without confirmed deficiency. However, when true deficiency is present, correcting magnesium levels can genuinely help. The takeaway: cramps are a reason to check multiple mineral levels and discuss symptoms with a doctor — not an automatic trigger to buy magnesium supplements.

“Magnesium relieves stress and anxiety — just take more”

The connection between magnesium and stress response is real: magnesium deficiency heightens nervous system excitability, and correcting the deficiency can reduce anxiety. However, this does not mean that megadoses of magnesium “treat” stress or an anxiety disorder.

Research shows that the positive effects of supplementation are observed primarily in people with an existing deficiency or suboptimal magnesium levels. In people without deficiency, additional magnesium provides no measurable calming effect. Anxiety and chronic stress require a comprehensive approach: healthy sleep, physical activity, psychological support, and, when necessary, medical treatment.

“Magnesium oxide is cheapest, but it’s all the same”

Magnesium oxide is the most widespread and least expensive form found in budget supplements and multivitamin complexes. The logic seems sound: if the label says “500 mg of magnesium,” you are getting 500 mg. In reality, the bioavailability of magnesium oxide is only around 4% — meaning roughly 20 mg out of 500 mg is actually absorbed.

For comparison, magnesium citrate is absorbed at roughly 25–30%, and magnesium glycinate performs even better. When choosing a supplement, what matters is not only the dose stated on the label but the form of the compound. Always check the ingredient list: if it says “magnesium oxide,” its effectiveness for correcting deficiency will be minimal.

Conclusion

Magnesium is one of the most important minerals for the normal functioning of virtually every system in the body. Its role in energy production, nervous system regulation, heart and bone support, and blood glucose control makes adequate magnesium intake a foundational requirement for health — not just an option for athletes or people under stress.

A practical step to take today: look at your diet — does it regularly include magnesium-rich foods such as nuts, seeds, legumes, wholegrain products, and dark leafy greens? If you notice chronic fatigue, cramps, sleep disturbances, or increased irritability, discuss testing your magnesium levels with your doctor and consider whether dietary correction is needed.

Remember: magnesium is most effective when it corrects a real deficiency. An optimal intake level — not megadoses in supplement form, but consistent, varied eating with sufficient magnesium-rich foods — is what truly delivers results over the long term.

Questions and answers

How do I know if I have a magnesium deficiency?

A standard serum magnesium test (normal range: 0.75–0.95 mmol/L) reflects only 1% of total body magnesium. A normal result does not rule out intracellular deficiency. More informative options include red blood cell magnesium or ionised magnesium. If typical symptoms are present — cramps, chronic fatigue, sleep disturbances, irritability — discuss the appropriate test with your doctor.

Can I get enough magnesium from food alone?

Yes — provided the diet is varied and balanced, with sufficient nuts, seeds, legumes, and wholegrain products. The challenge is that the modern average diet contains a large proportion of processed foods that are low in magnesium. If your diet is varied and regularly includes the food groups mentioned, supplements are likely unnecessary.

How long does it take to feel the effect of magnesium supplements?

With mild deficiency, the first improvements — reduced cramps, better sleep — are typically noticeable within 2–4 weeks of regular supplementation. Normalising intracellular magnesium levels takes longer — from several weeks to 2–3 months. Consistency is key.

Can I take magnesium and calcium together?

Yes, but preferably not in large doses at the same time — calcium and magnesium compete for absorption. The optimal approach is to take them at different times of day. Calcium is best taken in the morning or afternoon; magnesium in the evening or before bed. This improves the absorption of both minerals.

Does magnesium help with migraines?

There is sound scientific evidence: magnesium levels in the brain are reduced during migraine attacks, and prophylactic magnesium intake (400–600 mg/day) has been associated with a reduction in attack frequency in some patients. The American Headache Society includes magnesium among evidence-based supplements for migraine prevention. However, the effect is individual — treatment strategies for migraines should always be discussed with a neurologist.

Which form of magnesium is best for sleep?

Magnesium glycinate (bisglycinate) is considered the optimal choice for improving sleep: it has high bioavailability, minimal gastrointestinal impact, and a noticeable calming effect thanks to glycine. Magnesium citrate is also a good option. Both are best taken 30–60 minutes before bed. A standard dose is 200–300 mg elemental magnesium.

Send to friends:
Посилання скопійовано в буфер обміну

How we created this article

Our team regularly updates materials as new information becomes available.

Suboptimal magnesium status in the United States: are the health consequences underestimated?
https://pubmed.ncbi.nlm.nih.gov/22364157
Abbasi B, et al. The effect of magnesium supplementation on primary insomnia. Journal of Research in Medical Sciences, 2012.
https://pubmed.ncbi.nlm.nih.gov/23853635/
Current version
3 May, 2026
Created
Editorial Team
Гість
Гість