Magnesium
A cofactor for more than 300 enzymatic reactions — essential for neuromuscular function, sleep and energy metabolism.
Number of studies
3
Safety
Requires caution
Time to effects
With an actual deficiency, improvements in well-being and sleep can be noticeable after 1–3 weeks; fully replenishing tissue stores takes longer, usually several weeks.
Monthly cost
ok. 20–45 zł/miesiąc
Price in Poland
20–45 zł za opakowanie 60 kapsułek (miesiąc stosowania)
Who it's for
Tlenek magnezu jest najtańszy, ale ma najniższą biodostępność — cytrynian i glicynian kosztują więcej, lecz wchłaniają się znacznie lepiej.
Indicative prices for the Polish market — we don't point to specific retailers; the real price depends on the manufacturer, form and place of purchase.
Table of contents
TL;DR
A cofactor for more than 300 enzymatic reactions — essential for neuromuscular function, sleep and energy metabolism.
- →Supports normal muscle function and neuromuscular conduction, including reduced calf cramps
- →Possible improvement in sleep quality and architecture with supplementation in people with a deficiency
- →Involved in energy metabolism, protein synthesis and DNA replication
| Chemical compound | Element — Mg2+ cation, cofactor for more than 300 enzymes |
|---|---|
| Group/class | Macroelement / electrolyte |
| Best forms | Citrate, glycinate, malate — high bioavailability |
| Form to avoid | Magnesium oxide — lowest bioavailability (about 4%) |
| Evidence level | Strong — one of the best-documented mineral supplements |
| Interactions | Yes — antibiotics, bisphosphonates, diuretics, PPIs |
| Status | Dietary supplement, available without a prescription |
Understand
Overview
Magnesium is the second most abundant intracellular cation in the body, right after potassium. It's involved in ATP synthesis, nerve conduction, muscle contraction and relaxation, and heart rhythm regulation. It's estimated that as much as half the population in developed countries consumes less magnesium than the recommended daily intake, mainly due to diets low in leafy greens, nuts, seeds and whole grains, as well as industrial food processing, which strips a significant portion of magnesium from grain products.
Magnesium deficiency can be hard to detect with a standard blood test, because only about 1% of the body's total magnesium stores are found in serum — most is stored in bones and soft tissue. That's why a normal blood test result doesn't rule out a subclinical deficiency, and doctors increasingly base their diagnosis on the clinical picture (muscle cramps, fatigue, sleep disturbances) combined with a dietary history.
The clearest effect of supplementation is felt by people with an actual deficiency — those on a diet low in leafy greens, nuts and whole grains, people training intensively (greater magnesium loss through sweat), or those living under chronic stress, which increases its excretion in urine. It's precisely in these groups that studies note improved sleep quality and reduced subjective stress. People with a well-balanced diet and no signs of deficiency are unlikely to notice a clear difference — the evidence for 'topping up' magnesium beyond an already sufficient intake is weak. Similarly, the evidence for a universal effect against calf cramps is mixed — it helps mainly where an actual deficiency is the underlying cause, not in everyone who occasionally gets cramps.
History of use
Magnesium was first isolated as an element in 1808 by the British chemist Humphry Davy through electrolysis, although its compounds — such as Epsom salt, or magnesium sulfate — had been known and used in folk medicine much earlier. The name comes from the region of Magnesia in Greek Thessaly, associated with deposits of magnesium minerals. Widespread interest in magnesium supplementation as a way to address dietary deficiencies is mostly a phenomenon of the past few decades, tied to growing awareness of how food processing affects the micronutrient content of the diet.
Mechanism of action
Magnesium stabilizes the structure of ATP (as the Mg-ATP complex) and acts as a cofactor for more than 300 enzymes, including kinases, phosphatases, and enzymes of the glycolytic pathway and the Krebs cycle. It also modulates NMDA receptor activity (blocking them at normal concentrations, which protects against excessive neuronal excitation) and enhances GABAergic transmission, which explains its link to relaxation and sleep quality. It additionally regulates the transport of calcium and potassium ions across cell membranes, which directly affects the contractility of skeletal muscle and the heart.
At the level of ion transport, magnesium regulates the activity of the sodium-potassium pump (Na+/K+-ATPase) and voltage-gated calcium channels, which affects the resting membrane potential and neuronal excitability. Its absorption in the small intestine and reabsorption in the renal tubules depend largely on the TRPM6 and TRPM7 channels — which is why magnesium balance is sensitive to the condition of the intestinal mucosa and kidney function. Magnesium is also an essential cofactor for the enzymes that activate vitamin D (25-hydroxylase and 1-alpha-hydroxylase) and for the tyrosine kinase of the insulin receptor, which explains its indirect effect on both bone metabolism and insulin sensitivity.
Absorption in the small intestine
Magnesium is absorbed mainly in the small intestine via the TRPM6/TRPM7 channels and passive intercellular diffusion, and its bioavailability depends on the chemical form.
ATP stabilization
Magnesium binds to ATP, forming the Mg-ATP complex needed for kinases and phosphatases to function in cellular energy reactions.
Neurotransmission modulation
It blocks NMDA receptors at normal concentrations and enhances GABAergic transmission, limiting excessive neuronal excitation.
Ion transport in muscle
It regulates the flow of calcium and potassium across cell membranes, affecting the contractility of skeletal muscle and heart function.
Cofactor for vitamin D metabolism
It activates the enzymes that convert vitamin D into its active form, indirectly supporting calcium and bone metabolism.
Evidence: strong — based on 3 studies in this database.
Benefits
Common myths
MythA normal blood magnesium result rules out a deficiency.
FactOnly about 1% of the body's magnesium stores are found in the blood — most is stored in bones and soft tissue, so a normal serum level doesn't rule out a subclinical deficiency.
MythEvery form of magnesium works the same way.
FactBioavailability and gastrointestinal tolerance differ significantly between forms — magnesium oxide has much lower absorption than citrate or glycinate.
Forms & variants
Magnesium comes in several forms that differ in bioavailability and use case — the form you pick genuinely matters for how effective the supplementation is.
Magnesium citrate
Magnesium combined with citric acid — one of the most widely studied and best-absorbed forms available over the counter.
Best for: General-purpose use, a good balance of bioavailability and price
Magnesium glycinate (bisglycinate)
Magnesium chelated with glycine — high bioavailability and the best gastrointestinal tolerance among the popular forms.
Best for: Evening use, sleep, people with a sensitive digestive system
Magnesium malate
Combined with malic acid, which participates in the Krebs cycle — popular in the context of energy and muscle fatigue.
Best for: Daytime energy support
Magnesium threonate (L-threonate, e.g. Magtein)
A patented form studied for its ability to cross the blood-brain barrier and raise magnesium levels in cerebrospinal fluid.
Best for: Nootropic uses — memory and cognitive function (data still limited)
Magnesium oxide
The cheapest and most commonly found form in mass-market supplements — low bioavailability (about 4%), stronger laxative effect.
Best for: Occasional relief for constipation, not suited for long-term correction of a deficiency
Magnesium sulfate (Epsom salt)
Used mainly externally in baths — absorption through the skin has weak scientific support.
Best for: Relaxing baths, not as the main source of oral supplementation
Magnesium chloride
Good solubility and decent bioavailability, also available as 'magnesium oil' for topical use on the skin.
Best for: An alternative for people who prefer liquid forms or topical application
Personalized for you
Struggling with sleep?
Answer a few questions about your sleep, stress, diet, and lifestyle. VitMode will show you which areas might need the most attention and which supplements could be worth considering.
Recommendations take your answers and the strength of the scientific evidence into account. A supplement's popularity has no bearing on whether it gets recommended.
Practice
Frequently asked questions
Magnesium glycinate is often preferred in the evening because of its good gastric tolerance and the added contribution of the amino acid glycine, although there are few direct head-to-head studies comparing magnesium forms in the context of sleep.
With a balanced diet rich in leafy green vegetables, nuts and whole grains, needs can be met through food alone — supplementation makes sense with a confirmed deficiency or increased needs (e.g. intensive training).
The main differences concern bioavailability (how much is actually absorbed) and gastrointestinal tolerance. Chelated forms (glycinate, citrate, malate) are absorbed considerably better than the oxide form, which, despite containing the most elemental magnesium per tablet, has the lowest bioavailability.
In people with normal kidney function, excess magnesium from food and typical supplements is usually excreted in urine. The risk of serious hypermagnesemia mainly concerns people with kidney failure or very high intravenous doses used in a hospital setting.
The evidence is mixed — some studies show a benefit in people with a deficiency or in pregnant women, but meta-analyses in the general population don't clearly confirm an effect stronger than placebo.
Dosage & timing
Typical dose
200–400 mg of elemental magnesium per day (RDA: approx. 310–420 mg depending on sex and age)
Form
Magnesium citrate, lactate or glycinate — better bioavailability than the oxide form
Dosing is informational and reflects the ranges used in the cited studies — it does not replace consulting a doctor or pharmacist.
Best times to take it
- In the evening — the most commonly chosen time due to its potential effect on relaxation and sleep
- Doses above 350 mg are best split into 2 portions to reduce the risk of a laxative effect
What to combine with
Good combinations
Vitamin D3 — Jointly involved in bone and enzymatic metabolism
Use caution with
wapn w wysokich dawkach — Very high doses of calcium may compete for absorption
Safety
Side effects & contraindications
Possible side effects
Inorganic forms (oxide, citrate at high doses) can have a laxative effect and cause loose stools
Risk of hypermagnesemia in kidney failure
Rarely: nausea or stomach cramps when taking high doses on an empty stomach
Contraindications
Severe kidney failure — only under medical supervision
Atrioventricular heart block without an implanted pacemaker
Interactions
Fluoroquinolone and tetracycline antibiotics — magnesium reduces their absorption (keep a 2–3 hour gap)
Bisphosphonates — a similar time gap is required
Loop and thiazide diuretics — may increase magnesium loss through urine
Proton pump inhibitors (used long-term) — associated with reduced magnesium absorption
Is it worth taking?
Who it's for
- People with a diet low in leafy greens, nuts and whole grains
- People training intensively (increased need and loss through sweat)
- People with muscle cramps, sleep problems or elevated stress levels
Not for
- Severe kidney failure — only under medical supervision
- Atrioventricular heart block without an implanted pacemaker
Evidence
Worth knowing
Magnesium is a cofactor for more than 300 enzymes in the body — more than any other single micronutrient.
Doses above 350 mg are best split into 2 portions to reduce the risk of a laxative effect.
Antibiotics (fluoroquinolones, tetracyclines) and magnesium require a 2–3 hour gap due to reduced drug absorption.
Studies
Magnesium supplementation was associated with improved subjective sleep quality and a shorter time to fall asleep — though the number of large, well-designed RCTs remains limited.
Mah J, Pitre T., BMC Complementary Medicine and Therapies, 2021
The effects of magnesium supplementation on subjective anxiety and stress: a systematic review
Moderate evidenceBoyle NB, et al. · Nutrients · 2017
A review pointing to a potential, though methodologically limited, link between magnesium supplementation and a reduction in subjectively perceived stress.
View studyOral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis
Moderate evidenceMah J, Pitre T · BMC Complementary Medicine and Therapies · 2021
A meta-analysis of 3 RCTs (151 older adults with insomnia): magnesium shortened sleep onset time by about 17 minutes versus placebo, while the gain in total sleep time (about 16 minutes) was not statistically significant; the quality of evidence was low to very low.
View studyMagnesium intake and depression in adults
Early-stage evidenceTarleton EK, Littenberg B. · Journal of the American Board of Family Medicine · 2015
An observational study describing an inverse relationship between magnesium intake and depressive symptoms in adults.
View studySources & bibliography
The PubMed identifiers in this knowledge base were checked against NCBI records (October 2026). If you spot an error in a source, please let us know via the contact form.
Compare with similar entries
About the authors of this entry
Author
Redakcja VitMode — Hormony i endokrynologiaEditorial team
VitMode Editorial — Hormones and Endocrinology is the VitMode editorial team responsible for: hormones, testosterone therapy, the thyroid and metabolism. The team has no individual bylines — texts are prepared by VitMode editors from primary sources (clinical trials, meta-analyses, guidelines). Every cited PubMed paper is automatically checked for a matching identifier, title and publication year. The content is educational and does not replace medical advice. Factual errors can be reported in a comment under the post or through the contact form; corrections are made by the editorial team.
328 publications on this site
Editorial review
Redakcja VitMode — Badania i biomarkeryEditorial team
VitMode Editorial — Lab Tests and Biomarkers is the VitMode editorial team responsible for: laboratory tests, interpreting results and ageing biomarkers. The team has no individual bylines — texts are prepared by VitMode editors from primary sources (clinical trials, meta-analyses, guidelines). Every cited PubMed paper is automatically checked for a matching identifier, title and publication year. The content is educational and does not replace medical advice. Factual errors can be reported in a comment under the post or through the contact form; corrections are made by the editorial team.
272 publications on this site
Related entries

Vitamin D3
Functionally it acts like a steroid hormone — deficiencies are widespread in Poland, especially during autumn and winter.

Sleep and Memory
Learning during the day is only half of the memorization process — the other half happens at night, as the brain actively consolidates and organizes newly acquired information during sleep.

Cortisol
The main stress hormone — essential for short-term survival, but problematic when chronically elevated.

Strength Training
One of the single strongest predictors of healthy aging — it shapes muscle mass, bone density, and insulin sensitivity.

Sleep
Sleep isn't a passive shutdown of the body — it's an active, highly organized biological process. Its shortfall (and, counterintuitively, its excess too) is linked to a measurably higher risk of death from any cause.

Sleep and Growth Hormone / Cortisol Secretion
Sleep architecture — specifically the presence of deep slow-wave sleep — directly drives the largest daily pulse of growth hormone, while sleep acts as an anchor synchronizing the daily cortisol rhythm. Disrupted sleep dysregulates both systems regardless of how many hours we actually spend in bed.

Insomnia
Chronic difficulty falling or staying asleep isn't just a matter of 'sleep hygiene' — the best-studied intervention, recommended as first-line treatment, is cognitive behavioral therapy for insomnia (CBT-I), not sleeping pills.

Sleep and Immunity
Sleep isn't just about muscle and brain recovery — it's one of the immune system's primary regulators, and even a single short night measurably changes natural killer cell activity and susceptibility to viral infection.
Related articles
PoradnikiWhich Magnesium Should You Choose? Glycinate, Citrate or Lactate — Comparing the Forms
The supplement shelf can be overwhelming: glycinate, citrate, lactate, oxide, chelate... We compare the most popular forms of magnesium for absorption, price, and what each one is actually best suited for.
August 18, 2026
PoradnikiMelatonin, Magnesium, or L-Theanine? Comparing Sleep Supplements
The three most popular over-the-counter options for better sleep — and each works through a completely different mechanism. We look at which situation calls for which one, instead of reaching for all three at once.
August 18, 2026
Badania naukoweLongevity Vitamins: Which Supplements Actually Have Real Scientific Evidence Behind Them
Every supplement shelf promises a longer life in every capsule, but the hard data from large clinical trials tells a far more measured story. We go through which vitamins genuinely extend healthy lifespan in people with a real deficiency, and which — despite their popularity — have no supporting evidence at all, or worse, evidence of no benefit.
August 20, 2026
PoradnikiMagnesium Glycinate or Citrate for Sleep: What Does the Evidence Actually Say?
Search "magnesium for sleep" and you'll immediately land on a confident recommendation: glycinate, never citrate, because it "absorbs better" and "doesn't cause a laxative effect." The problem is that no study in healthy people with poor sleep has ever compared these two forms head-to-head — not for sleep quality, not for absorption. What looks like settled supplement wisdom is actually an evidence gap that marketing has filled with its own narrative.
August 23, 2026
PoradnikiMuscle Twitching (Fasciculations): Causes, When It Is Harmless and When to Get Tested
Muscle twitching on its own, without weakness or wasting, is benign in the vast majority of cases. In a classic study of 121 people with benign fasciculations followed for 2 to 32 years, none developed motor neuron disease. What should worry you is not the twitch itself but what comes with it: progressive weakness, visible muscle wasting, trouble speaking or swallowing. We explain where fasciculations come from, what makes them worse (caffeine, exercise, stress, lack of sleep), what is really known about magnesium, what role EMG plays and when to see a neurologist.
November 3, 2026
PoradnikiTension Headache: Symptoms, Causes and What Helps (Medication, Habits, Exercise)
Tension-type headache is the most common type of headache: on both sides of the head, dull, pressing, usually without nausea and not made worse by walking. The best-documented acute drugs (ibuprofen 400 mg, paracetamol 1000 mg) help in a real but modest way — in Cochrane reviews only about one patient in 14 to 22 more than with placebo is pain-free at 2 hours. For prevention of the chronic form, amitriptyline performs best, and among non-drug methods resistance exercise, relaxation and work on sleep. We show what the research says, where the evidence ends and when a headache needs urgent investigation.
October 26, 2026
PoradnikiMedication-Overuse Headache (Rebound): How to Recognise It and Come Off the Drugs
Medication-overuse headache (MOH, colloquially 'rebound') is a daily or near-daily headache that arises when painkillers or migraine drugs are taken too often: ordinary drugs (paracetamol, ibuprofen, aspirin) on at least 15 days a month, and combination drugs, triptans and opioids on at least 10 days, for more than 3 months. It affects about 0.5–2% of the population, and effective treatment exists: education, prevention and — if necessary — a break from acute drugs. In a Danish randomised trial, withdrawal combined with prevention from the start gave the most cures. We explain how to recognise the problem, how to withdraw safely and why caffeine complicates the picture.
October 26, 2026
PoradnikiTap Water or Bottled Water: Minerals, Microplastics and What to Actually Choose
Choosing between tap and bottled water rarely comes down to which is ‘healthier’. They differ in mineral composition (the calcium, magnesium and sodium content of bottled waters ranges from zero to hundreds of mg/l), in microplastics (estimates point to an order of magnitude more particles in bottled water, but the health significance is unknown), in price and in environmental impact. We review the specific studies and show when the choice has real significance and when it is a matter of taste and convenience.
October 24, 2026
