Back to blog

Magnesium: when supplementation may make sense

Sonia Biecka

Sonia Biecka

Dietitian

lek. Wojciech Sierocki

Medical review: lek. Wojciech Sierocki

Content medically reviewed by an Optimals team physician.

Magnesium: when supplementation may make sense

Magnesium is one of the most popular supplements. People take it for fatigue, muscle cramps, an eyelid twitch, stress, sleep problems and headaches. It often becomes part of a daily routine without first assessing diet, current medications or kidney function.

Does this mean most people need supplementation?

No. Magnesium is an essential mineral, but many symptoms attributed to its deficiency are nonspecific. Cramps, weakness or trouble sleeping can have many other causes. Supplementation makes the most sense when there is a confirmed deficiency, an increased risk of one, or a specific clinical indication.

In a healthy person whose diet regularly provides magnesium-rich foods, automatically taking yet another supplement will not always bring a noticeable benefit.

What does magnesium do?

Magnesium takes part in hundreds of enzymatic reactions in the body. Among other things, it is involved in:

  • producing and using energy,
  • protein synthesis,
  • muscle function,
  • nerve impulse conduction,
  • regulating glucose levels,
  • controlling blood pressure,
  • maintaining a normal heart rhythm,
  • transporting calcium and potassium across cell membranes,
  • building bones,
  • synthesising DNA and RNA.

An adult body contains about 25 g of magnesium. Most of it is stored in bones and soft tissues, while less than 1% is found in the blood serum.

That is precisely why a normal blood magnesium level does not always accurately reflect the body's total stores of this mineral.

How much magnesium do we need?

The European Food Safety Authority set the adequate intake of magnesium at:

  • 300 mg per day for adult women,
  • 350 mg per day for adult men.

These values refer to total intake from food, drinks and supplements. According to EFSA, the requirement in pregnancy and during breastfeeding does not have to be automatically higher than in other adult women.

This does not mean every woman should take 300 mg of magnesium in a capsule. A significant part, and often the entire requirement, can be covered by diet.

When may supplementation make sense?

SituationCan supplementation be justified?What to consider
Confirmed hypomagnesaemiaYesThe cause of the deficiency, its severity and kidney function
Chronic diarrhoea or malabsorptionOftenDiagnosing the underlying disease
Long-term use of certain medicationsSometimesThe type of drug and laboratory monitoring
A diet very low in plant foodsPossibleFirst assessing actual intake
MigraineMay be part of preventionDosing should be established with a doctor
Mild sleep problemsA benefit is possible but uncertainThe causes of insomnia and the quality of available studies
Ordinary nocturnal leg crampsUsually no clear benefitOther causes of cramps
Hypertension or diabetes without a deficiencyNot as primary treatmentThe treatment recommended by a doctor and the whole diet
PregnancyNot automaticallyThe composition of the prenatal supplement and medical indications
Kidney diseaseOnly after consultationThe risk of excessive magnesium accumulation

Confirmed magnesium deficiency

The most obvious indication for magnesium replacement is confirmed hypomagnesaemia.

A drop in magnesium levels may be caused by:

  • chronic diarrhoea,
  • vomiting,
  • diseases causing malabsorption,
  • coeliac disease,
  • Crohn's disease,
  • bowel surgery or resection,
  • poorly controlled diabetes,
  • alcohol abuse,
  • certain diuretics,
  • long-term use of proton pump inhibitors,
  • some kidney diseases,
  • malnutrition,
  • refeeding syndrome.

Older people may also be more at risk of inadequate intake, because they often eat less, take many medications, and magnesium absorption may decrease with age.

With a confirmed deficiency, simply taking a supplement without establishing the cause may be insufficient. If magnesium is continuously lost through the gastrointestinal tract or kidneys, the result may drop again.

In severe or symptomatic hypomagnesaemia, treatment may require intravenous magnesium and monitoring of heart function, blood pressure and other electrolytes. This is not a situation to be self-treated with a supplement bought at a pharmacy.

What symptoms can a deficiency cause?

Early symptoms of a deficiency may include:

  • weakness,
  • fatigue,
  • decreased appetite,
  • nausea,
  • vomiting.

With a more severe deficiency, the following may occur:

  • numbness and tingling,
  • muscle tremors or cramps,
  • an abnormal heart rhythm,
  • seizures,
  • disturbances in potassium and calcium levels.

The problem is that most mild symptoms are not very characteristic. Fatigue may result from iron deficiency, thyroid disorders, low energy intake, infection, chronic stress or sleep problems. Muscle cramps may be related to overload, medications, circulatory disorders, dehydration or a neurological disease.

A symptom should therefore not automatically lead to a diagnosis of magnesium deficiency.

Does an eyelid twitch mean a magnesium deficiency?

Not necessarily.

An eyelid twitch is often linked to:

  • fatigue,
  • lack of sleep,
  • stress,
  • a lot of caffeine,
  • prolonged screen time,
  • eye irritation or dryness.

Magnesium deficiency is one possible, but not the only, cause of excessive muscle excitability. If the twitching persists, involves other muscles, or is accompanied by a drooping eyelid or vision problems, a consultation is needed, not just an increased supplement dose.

Is it worth testing blood magnesium?

Measuring serum magnesium is the most commonly used and easily available test. It may be especially useful when:

  • severe symptoms occur,
  • heart rhythm disturbances have appeared,
  • low potassium or calcium has been found,
  • the patient has chronic diarrhoea or vomiting,
  • they take medications that increase magnesium loss,
  • they have kidney disease,
  • they are being treated for malnutrition,
  • a previous result was abnormal.

It must be remembered, however, that serum magnesium represents only a small part of total stores. The body keeps its blood concentration within a fairly narrow range, among other things by releasing magnesium from tissues and limiting excretion by the kidneys.

A normal result reduces the likelihood of a severe deficiency, but does not always rule out inadequate intake or smaller tissue stores. At the same time, there is no single ideal alternative test that reliably determines the total magnesium stores in every person. The result should therefore be interpreted together with diet, medications, diseases and symptoms.

Who may be particularly at risk?

GroupWhy the risk may be greater
People with chronic diarrhoeaIncreased loss through the gastrointestinal tract
People with coeliac disease or inflammatory bowel diseaseMalabsorption
Patients after certain bowel surgeriesA smaller absorptive surface
People with diabetesGreater magnesium loss in urine with high blood glucose
People who abuse alcoholLow intake, malabsorption and increased losses
Older peopleLower intake, chronic diseases and multiple medications
Patients taking certain diureticsIncreased urinary excretion
People on long-term proton pump inhibitorsPossible impaired absorption
People on a very restrictive dietLittle intake of nuts, seeds, grains and legumes
Malnourished peopleInadequate intake of many nutrients at once

Reflux medications and magnesium deficiency

Long-term use of proton pump inhibitors, such as omeprazole, pantoprazole, esomeprazole or lansoprazole, may in rare cases lead to hypomagnesaemia.

The risk mainly concerns long-term use, often lasting more than a year. In some patients, adding a supplement alone was not enough to correct the result, and a change of treatment was necessary.

You should not, however, stop a reflux medication on your own. It is worth discussing with a doctor:

  • whether the drug is still needed,
  • whether the smallest effective dose is being used,
  • whether there are indications to measure magnesium,
  • whether potassium, calcium and kidney function should also be checked.

Diuretics

Loop diuretics and some thiazide diuretics may increase magnesium excretion by the kidneys. Potassium-sparing drugs, on the other hand, may limit its loss.

This does not mean that everyone treated for hypertension should automatically take magnesium. The type of preparation, the dose, the duration of treatment, the results and coexisting diseases all matter.

Does magnesium help with migraine?

Magnesium supplementation may be considered as part of migraine prevention. Current reviews point to a possible moderate reduction in the frequency of attacks, but study results vary and the sample size of many trials was small.

Studies often used doses of around 400–600 mg of elemental magnesium per day. These amounts exceed the general European upper level for magnesium from supplements, which is why such an approach should be established with a doctor.

A higher dose does not automatically mean a better effect. The most common limitation is diarrhoea, abdominal pain and worse gastrointestinal tolerance.

Magnesium does not replace the diagnosis of a headache or the treatment recommended by a neurologist. Urgent assessment is needed for a first very severe headache, a headache after an injury, fever with a stiff neck, altered consciousness or new neurological symptoms. You can read more about when frequent headaches require diagnosis in a separate article.

Magnesium and sleep

A magnesium supplement bottle and capsules on a bedside table by a lamp

Magnesium is often marketed as a natural sleep aid. Some studies point to a possible improvement in selected, subjectively assessed sleep parameters, particularly in people with low magnesium intake. The quality of the available evidence, however, remains limited.

A 2024 review covered 15 studies on sleep and anxiety. The results of some trials were favourable, but the forms, doses, duration of therapy and participant characteristics differed. Many studies involved small groups, and some preparations contained additional ingredients.

In a study published in 2026, magnesium L-threonate improved some subjective indicators and cognitive parameters, but no clear improvement was shown in objective sleep measures recorded by a device.

Magnesium may therefore be considered as support, but it should not replace the diagnosis of the causes of insomnia. Sleep problems may result from:

  • sleep apnoea,
  • depression or anxiety,
  • pain,
  • menopausal symptoms,
  • restless legs syndrome,
  • an overactive thyroid,
  • caffeine and alcohol,
  • an irregular circadian rhythm,
  • the medications being taken.

Does magnesium help with stress and anxiety?

The data are similar to those for sleep: there are studies suggesting a slight improvement, but they do not allow magnesium to be treated as an anti-anxiety drug.

The greatest chance of benefit may apply to people with a low intake or a deficiency. It is not known, however, whether increasing intake beyond the requirement improves well-being in a person with a normal nutritional status.

Severe anxiety, panic attacks, low mood or difficulties in everyday functioning require professional help. A supplement does not replace psychotherapy or appropriate treatment.

Magnesium and muscle cramps

A muscle cramp is often treated as a clear symptom of magnesium deficiency. In reality, cramps can have many causes.

They may be related to:

  • muscle overload,
  • intense training,
  • staying in one position for a long time,
  • pregnancy,
  • circulatory disorders,
  • neurological diseases,
  • medications,
  • abnormalities in potassium, calcium or sodium,
  • dehydration,
  • magnesium deficiency.

The latest meta-analysis showed that in adults with nocturnal or chronic leg cramps, magnesium supplementation did not significantly reduce their frequency. A more favourable effect was observed in some studies on cramps in pregnancy, but even in this group the approach should be discussed with the person overseeing the pregnancy.

Recurrent cramps should not lead solely to an ever-larger supplement dose. It is worth considering training, footwear, medications, hydration and possible diseases.

Magnesium and post-workout recovery

Some studies suggest that supplementation may reduce muscle soreness after exercise, but the number of available trials is small and the protocols differ considerably. It is not known which form, dose and group of athletes may derive the greatest benefit.

Routine supplementation for every active person is therefore not necessary. First, it is worth taking care of:

  • sufficient energy intake,
  • protein and carbohydrates,
  • fluids and electrolytes matched to the effort,
  • sleep,
  • a gradual increase in load,
  • adequate recovery.

Magnesium and blood pressure

A meta-analysis of 38 studies from 2025 showed a small average reduction in blood pressure after magnesium supplementation. More pronounced effects occurred in people with hypertension taking medications and in patients with hypomagnesaemia. In groups with normal blood pressure the effect was not significant.

Magnesium should not replace blood pressure medications. In prevention, the whole dietary pattern matters more, including the intake of vegetables, fruit, whole grains, potassium and limiting excess salt. You can read more about how diet affects hypertension separately.

Magnesium and insulin resistance and diabetes

People with diabetes may lose more magnesium in urine, especially at high glucose levels. This does not mean, however, that magnesium is a universal supplement "for insulin resistance".

A meta-analysis published in 2026 did not show a significant overall improvement in insulin resistance in people with diabetes or prediabetes. Possible benefits may depend on the baseline deficiency and the severity of the disorders, but further research is needed.

In a small study of older people with prediabetes and confirmed hypomagnesaemia, supplementation corrected the magnesium level and lowered fasting glucose, but did not improve HbA1c or other main indicators.

The strongest justification is therefore replacing a confirmed deficiency, not treating insulin resistance itself with a supplement.

Magnesium and PMS

On the internet, magnesium is sometimes recommended for irritability, pain, water retention and other premenstrual symptoms. The available studies, however, do not allow a clear supplementation scheme to be created for everyone with PMS.

Reviews from 2024 indicate that a diet rich in whole foods and an adequate amount of many nutrients may support the health of women with PMS. Large, well-designed studies are still needed, however, to establish the role of individual supplements, including magnesium.

Severe psychological symptoms that regularly impair functioning may correspond to premenstrual dysphoric disorder and require consultation.

Magnesium in pregnancy

Pregnancy does not mean an automatic need to use a separate magnesium preparation. Many prenatal supplements already contain this mineral, so before adding another product you need to add up the total dose.

EFSA sets the same adequate intake for pregnant adult women as for other women and establishes an upper level of 250 mg per day for magnesium from readily absorbable salts in supplements and fortified products. The limit does not include magnesium naturally present in food.

Magnesium given intravenously to treat pre-eclampsia or other obstetric indications is a medical treatment. It should not be compared with self-administered oral supplementation.

In which situations may supplementation not help?

Reason for useWhat is known
"Just in case"With adequate intake, an additional supplement may not bring a benefit
Every eyelid twitchThe symptom is often linked to stress, sleep and caffeine
All muscle crampsIn adults with nocturnal cramps the effect is usually small or none
Every sleep problemThe data are limited, and insomnia has many other causes
Treating insulin resistanceIt does not replace diet, exercise or treatment
Treating hypertensionIt may slightly support control, but does not replace pharmacotherapy
"Detoxifying" the bodyMagnesium does not remove toxins or cleanse the body
Faster fat burningIt is not a weight-loss supplement
Improving energy without a deficiencyFatigue requires assessment of many other causes

Magnesium from the diet

The best way to increase magnesium intake is to eat more often the products that provide it together with fibre, protein, healthy fats and other minerals.

Good sources include:

  • pumpkin seeds,
  • chia seeds,
  • almonds and cashews,
  • cocoa,
  • beans, lentils and chickpeas,
  • tofu and edamame,
  • oats,
  • groats,
  • wholemeal bread,
  • brown rice,
  • green leafy vegetables,
  • some mineral waters.

Fibre-rich products are often good sources of magnesium at the same time. The grain refining process removes part of the germ and bran, which is why products made from white flour usually contain less of it.

Sample sources of magnesium

ProductApproximate amount of magnesium
Pumpkin seeds, about 28 gabout 156 mg
Chia seeds, about 28 gabout 111 mg
Almonds, about 28 gabout 80 mg
Cooked spinach, half a cupabout 78 mg
Cashews, about 28 gabout 74 mg
Black beans, half a cupabout 60 mg
Edamame, half a cupabout 50 mg
Peanut butter, 2 tablespoonsabout 49 mg
Brown rice, half a cupabout 42 mg
Oatmeal, one servingabout 36 mg

The values are approximate and may vary depending on the variety, producer and method of preparation.

What might a magnesium-rich day look like?

You do not have to base your diet on a single "superfood". Magnesium can be provided across many meals:

  • oatmeal with cocoa, chia and almonds,
  • wholemeal bread sandwiches with hummus,
  • a salad with groats, beans and pumpkin seeds,
  • yoghurt with oats and nuts,
  • tofu with vegetables and brown rice,
  • lentil soup.

If your diet contains few vegetables, seeds, nuts, legumes and whole grains, a supplement may cover part of the intake. It should not, however, automatically replace improving the way you eat.

Which form of magnesium to choose?

On packaging you can find magnesium citrate, lactate, chloride, aspartate, oxide, glycinate, malate or L-threonate. They differ in their elemental magnesium content, solubility, tolerance and price.

FormWhat is worth knowing
CitrateWell soluble and relatively well absorbed, may loosen the stool
ChlorideWell soluble, may cause intestinal discomfort
LactateA well soluble and well absorbed form
AspartateWell absorbed, often found in medicinal preparations
OxideContains a lot of magnesium by compound mass, but is less well absorbed and more often has a laxative effect
Glycinate or diglycinatePopular and often well tolerated, but there is a lack of strong evidence that it treats sleep or stress better than other forms
L-threonateStudied for cognitive function, is expensive and usually provides little elemental magnesium
SulphateUsed mainly in specific medicinal preparations and hospital medicine

Comparative data indicate that well-soluble forms, such as citrate, lactate, chloride and aspartate, are on average better absorbed than magnesium oxide.

There is, however, no single form that is best for everyone. The choice depends on the goal, the dose, tolerance and the medications being taken.

"Citrate 1000 mg" does not mean 1000 mg of magnesium

Two different values may appear on the label:

  • the mass of the whole compound, for example magnesium citrate,
  • the amount of elemental magnesium.

It is precisely the amount of elemental magnesium that should be taken into account when assessing the dose.

A preparation containing 1000 mg of a magnesium compound may provide significantly less than 1000 mg of magnesium itself. The official supplement composition table should state the amount of the elemental mineral in a single serving.

What dose is appropriate?

There is no single supplementation dose appropriate for everyone.

If the goal is to complement the diet, rather than to treat a confirmed deficiency, a preparation providing about 100–250 mg of elemental magnesium per day is usually enough. The dose should, however, be related to:

  • intake from food,
  • age,
  • test results,
  • the indication,
  • kidney function,
  • medications,
  • gastrointestinal tolerance.

EFSA set an upper tolerable level of 250 mg per day for adults for readily dissociating magnesium salts from supplements, fortified water and fortified food. It does not include magnesium naturally present in food. The limit was based mainly on the risk of diarrhoea.

In the United States, the adopted limit for magnesium from supplements and medications is 350 mg per day. The difference results from a different way of assessing the data by the institutions, not from a different physiology of people in Europe and the US.

Therapeutic doses may be higher, for example in migraine prevention or the treatment of hypomagnesaemia, but they should be used under supervision.

When is it best to take magnesium?

There is no obligation to take magnesium in the evening. What matters most is regular use and properly separating it from medications with which it may interact.

Magnesium can be taken:

  • in the morning,
  • in the evening,
  • with a meal,
  • in two smaller portions.

Taking it with food may reduce gastrointestinal discomfort. Splitting the dose may be helpful if a larger portion causes diarrhoea.

The evening is convenient for many people, but the time of day alone does not turn a supplement into a sleep aid.

Possible drug interactions

Magnesium may bind certain medications in the gastrointestinal tract and reduce their absorption.

Drug or drug groupWhat is the problem
Tetracyclines, for example doxycyclineMagnesium may limit the absorption of the antibiotic
Fluoroquinolones, for example ciprofloxacinFormation of poorly absorbable complexes
Oral bisphosphonatesReduced absorption of the osteoporosis drug
LevothyroxinePreparations containing magnesium may reduce its absorption
Loop and thiazide diureticsMay increase magnesium losses
Potassium-sparing diureticsMay limit its excretion
Proton pump inhibitorsLong-term use may lead to a deficiency

Tetracyclines and fluoroquinolones should usually be taken at an appropriate interval from the supplement. NIH states that the antibiotic should be taken at least 2 hours before magnesium or 4–6 hours after it, but the exact recommendation should be checked in the leaflet of the specific drug.

Levothyroxine is usually separated by at least 4 hours from preparations that may interfere with its absorption.

When taking any medications long-term, it is worth showing your doctor or pharmacist the whole supplement package, rather than just saying it is "ordinary magnesium".

Can magnesium be harmful?

Magnesium from food is usually not a threat to a healthy person, because the excess is removed by the kidneys.

The situation is different in the case of supplements and medications containing high doses.

The most common side effects include:

  • diarrhoea,
  • nausea,
  • abdominal pain and cramps.

Very high doses may lead to an excessive magnesium level, causing:

  • weakness,
  • a drop in blood pressure,
  • vomiting,
  • urinary retention,
  • slowed breathing,
  • heart rhythm disturbances,
  • cardiac arrest.

The greatest risk applies to people with significantly impaired kidney function, because the body cannot effectively remove the excess.

Who should be particularly careful?

It is worth consulting supplementation in advance in the case of:

  • chronic kidney disease,
  • a significantly reduced eGFR,
  • dialysis,
  • heart rhythm disturbances,
  • very low blood pressure,
  • chronic diarrhoea,
  • pregnancy and breastfeeding,
  • taking many medications,
  • taking an antibiotic,
  • osteoporosis treatment,
  • hypothyroidism treatment,
  • abnormal potassium or calcium levels.

The most common myths about magnesium

MythHow it really is
Every cramp means a magnesium deficiencyCramps have many possible causes
An eyelid twitch always requires a supplementIt is often caused by stress, caffeine and lack of sleep
The higher the dose, the better the effectA higher dose mainly increases the risk of diarrhoea
Magnesium cures insulin resistanceIt does not replace lifestyle or treatment
Everyone should take it in the eveningThe time of day matters less than regularity and interactions
Glycinate always works best for sleepThere is not enough evidence for its decisive advantage
Magnesium oxide is worthlessIt is less well absorbed, but may have a laxative effect
A normal result completely rules out a deficiencyThe serum level does not perfectly show tissue stores
Everyone needs 400 mg from a supplementThe requirement also includes magnesium from food
Magnesium is safe in any amountAn excess can be dangerous, especially with kidney disease

Frequently asked questions

Should everyone supplement magnesium?

No. Supplementation is most justified with a confirmed deficiency, a high risk of one, or a specific clinical indication. A healthy person who regularly eats whole grains, legumes, nuts, seeds and vegetables can cover their requirement from diet.

Can you have a deficiency with a normal result?

A normal serum level does not perfectly reflect total stores, because most magnesium is found in bones and cells. This does not mean, however, that everyone with a normal result has a "hidden deficiency". A combined assessment of diet, symptoms, medications and diseases is needed.

Is it worth testing magnesium in red blood cells?

The test is sometimes presented as more accurate than the serum level, but it is not a universally recognised diagnostic standard. None of the available methods perfectly assesses the body's magnesium stores. In routine practice the serum level is most often used together with a clinical assessment.

Is citrate better than oxide?

Citrate is on average more soluble and better absorbed. Oxide is absorbed less well and more often has a laxative effect. This does not mean citrate is best in every situation. With constipation the osmotic effect may be desirable, whereas with diarrhoea it will be a drawback.

Is magnesium glycinate best for sleep?

There is not enough research confirming that glycinate is decisively more effective than other well-absorbed forms. It may be well tolerated by some people, but its marketing popularity is greater than the amount of strong clinical data on sleep.

Does magnesium have to be combined with vitamin B6?

No. Magnesium can be used without vitamin B6. Combining the two ingredients is not necessary for proper magnesium absorption. It should also be remembered that chronically taking high doses of vitamin B6 may lead to neuropathy. Before choosing a preparation, check the amount of B6 per serving and account for other supplements.

Does magnesium help with cramps?

If the cramps result from a deficiency, magnesium replacement may help. In adults with typical nocturnal leg cramps without a confirmed deficiency, however, studies do not show a clear benefit.

Does magnesium help with migraine?

It may be one element of prevention. The effect is usually moderate, and the doses used in studies may exceed the general limits for self-administered supplementation. It is worth establishing the plan with a doctor, especially when other medications are being taken or kidney disease is present.

Does magnesium help you fall asleep?

It may slightly support some people, especially with a low intake. The study results are, however, inconclusive and involve different preparations. Chronic insomnia requires assessment of its cause, not just a change in the form of magnesium.

Does magnesium work from the first dose?

It depends on the goal. With a deficiency, improvement may require time and removing the cause of the losses. In the case of migraine, the preventive effect is usually assessed after regular use, not after a single capsule. The laxative effect of some forms may, on the other hand, appear quickly.

Do you have to take it in the evening?

No. It can be used at any time, as long as an appropriate interval from medications is kept. People with a sensitive stomach can take magnesium with a meal or split the dose.

Does coffee flush out magnesium?

Caffeine may briefly increase urine output, but moderate coffee drinking does not automatically lead to a magnesium deficiency. Coffee itself may provide some amount of this mineral. The risk depends more on the whole diet, diseases, medications and actual losses than on a single cup.

Does stress use up magnesium?

Stress affects many physiological processes, but it does not automatically mean that every stressed person has a deficiency. With chronic stress, diet, sleep and meal regularity often worsen, which may indirectly reduce nutrient intake.

Can magnesium be combined with vitamin D?

Usually yes, but not everyone needs both supplements. With very high doses of vitamin D, kidney disease or calcium disorders, the supplementation plan should be established individually.

Can magnesium be combined with iron?

It can, but with high doses of several minerals it may be reasonable to separate the preparations to improve tolerance and limit potential absorption disturbances. What matters most, however, is keeping an interval from medications for which the interaction is clinically significant.

Can magnesium cause diarrhoea?

Yes. This is the most common side effect of supplementation. Reducing the dose, splitting it into two portions, taking it with a meal or changing the form of the preparation may help. Persistent diarrhoea may itself lead to a loss of magnesium and other electrolytes, so it should not be treated as a sign of "cleansing".

Is supplementation safe with kidney disease?

It should not be started on your own. The kidneys are responsible for removing excess magnesium. With impaired filtration, it may accumulate and become toxic, even if the dose seems standard.

Can magnesium be taken in pregnancy?

It may be used when there are indications and the dose has been accounted for in the whole supplementation plan. You should not automatically add a separate preparation without checking the composition of the prenatal vitamins and consulting the person overseeing the pregnancy.

Can children take magnesium?

A child should not receive a preparation intended for adults without a dose assessment. The requirement and upper limits depend on age. Cramps, sleep problems, irritability or fatigue in a child require a broader assessment than choosing a supplement.

How long can magnesium be taken?

The duration depends on the goal. With a confirmed deficiency, it is worth setting a follow-up date and checking whether its cause has been removed. With supplementation that complements the diet, it should be periodically assessed whether the preparation is still needed. There is no point taking it for years just because it was once recommended.

Summary

Magnesium is an essential mineral involved in muscle and nervous system function, energy production, and the regulation of blood glucose, blood pressure and heart rhythm.

This does not mean, however, that every symptom of fatigue, a cramp or an eyelid twitch indicates a deficiency.

Supplementation is most justified when:

  • hypomagnesaemia has been diagnosed,
  • there are chronic losses or malabsorption,
  • the medications being taken increase the risk of a deficiency,
  • the diet provides clearly too little magnesium,
  • there is a specific indication, for example as part of migraine prevention.

The data on sleep, stress, recovery and PMS are promising, but not clear enough to recommend a supplement to everyone.

The best starting point remains a diet containing whole grains, legumes, nuts, seeds, cocoa and green vegetables. If a supplement is needed, pay attention to the amount of elemental magnesium, not just the name of the compound or a large number on the front of the package.

People with kidney disease, or taking levothyroxine, antibiotics, bisphosphonates, diuretics or many other medications, should discuss supplementation with a doctor or pharmacist beforehand.

This material is educational and does not replace an individual medical or dietary consultation. You should not self-treat a severe deficiency or take high doses of magnesium with kidney disease.


At Optimals we do not assume upfront that everyone needs magnesium. We start with diet, symptoms and results, and we choose a supplement only when it truly makes sense. See what a free start looks like →


References

  1. National Institutes of Health, Office of Dietary Supplements. Magnesium: Fact Sheet for Health Professionals. Update available in 2026.
  2. EFSA Panel on Dietetic Products, Nutrition and Allergies. Scientific Opinion on Dietary Reference Values for Magnesium. EFSA Journal. 2015;13(7):4186.
  3. European Food Safety Authority. Summary of Tolerable Upper Intake Levels. Document update, 2024–2025.
  4. Touyz R.M., de Baaij J.H.F., Hoenderop J.G.J. Magnesium Disorders. New England Journal of Medicine. 2024;390(21):1998–2009.
  5. Royal Cornwall Hospitals NHS Trust. Treatment of Hypomagnesaemia in Adults Clinical Guideline. Version 4.0, 2024.
  6. Argeros Z. et al. Magnesium Supplementation and Blood Pressure: A Systematic Review and Meta-Analysis of Randomized Controlled Trials. Hypertension. 2025;82(11):1844–1856.
  7. Amiri A. et al. Oral Magnesium Supplements and Insulin Resistance in Individuals With Diabetes and Pre-diabetes: An Updated Systematic Review and Meta-analysis of Randomized Controlled Trials. BMC Nutrition. 2026.
  8. Yang J. et al. Oral Magnesium Supplementation Improves Glycemic Control in Older Chinese Adults With Pre-diabetes and Hypomagnesemia: A Randomized Controlled Trial. Frontiers in Nutrition. 2026;13:1765308.
  9. Rawji A. et al. Examining the Effects of Supplemental Magnesium on Self-Reported Anxiety and Sleep Quality: A Systematic Review. Cureus. 2024;16(4):e59317.
  10. Lopresti A.L., Smith S.J. The Effects of Magnesium L-threonate on Cognitive Performance and Sleep Quality in Adults: A Randomised, Double-Blind, Placebo-Controlled Trial. Frontiers in Nutrition. 2026;12:1729164.
  11. Efficacy of Magnesium Supplementation in the Prophylaxis of Migraine: A Systematic Review of Clinical Trials Comparing Oral Magnesium to Placebo or Standard Care. Egyptian Journal of Neurology, Psychiatry and Neurosurgery. 2026.
  12. The Role of Electrolytes in Muscle Pain Syndromes: A Systematic Review and Meta-Analysis With Implications for Temporomandibular Disorder. International Dental Journal. 2026.
  13. Fiorentini D. et al. Effects of Magnesium Supplementation on Muscle Soreness in Different Types of Physical Activities: A Systematic Review. Journal of Translational Medicine. 2024.
  14. Modzelewski S. et al. Premenstrual Syndrome: New Insights Into Etiology and Review of Treatment Methods. Frontiers in Psychiatry. 2024;15:1363875.
  15. Oboza P. et al. Relationships Between Premenstrual Syndrome and Diet Composition, Dietary Patterns and Eating Behaviors. Nutrients. 2024;16(12):1911.
  16. Garrison S.R., Korownyk C.S., Kolber M.R. et al. Magnesium for Skeletal Muscle Cramps. Cochrane Database of Systematic Reviews. 2020;9:CD009402.
Magnesium: when supplementation may make sense