Magnesium and Blood Sugar: Diet, Diabetes & Safety
Magnesium and blood sugar are closely linked, with this essential mineral playing a key role in insulin secretion, glucose metabolism, and insulin sensitivity. Magnesium is involved in over 300 enzymatic reactions in the body, and low levels have been associated with poorer glycaemic control and an increased risk of type 2 diabetes. Whether you have diabetes, are at risk of developing it, or simply want to support your metabolic health, understanding how magnesium affects blood sugar can help you make informed decisions about your diet and, where appropriate, supplementation.
Summary: Magnesium supports blood sugar regulation by improving insulin secretion and sensitivity, and low levels are associated with poorer glycaemic control in people with type 2 diabetes.
- Magnesium acts as a cofactor in insulin receptor signalling; deficiency impairs this pathway, contributing to insulin resistance and elevated blood glucose.
- People with type 2 diabetes are significantly more likely to have low serum magnesium, partly because high blood glucose increases urinary magnesium excretion.
- The NHS Reference Nutrient Intake for magnesium is 300 mg per day for adult men and 270 mg per day for adult women, achievable through a varied whole-food diet.
- The NHS advises that taking 400 mg or less of elemental magnesium daily from supplements is unlikely to cause harm in most adults with normal kidney function.
- People with chronic kidney disease should not take magnesium supplements without medical supervision, as impaired excretion can lead to dangerous accumulation.
- NICE NG28 does not recommend routine magnesium testing or supplementation for diabetes management, but encourages magnesium-rich foods such as vegetables, legumes, and whole grains.
Table of Contents
- How does magnesium affect blood sugar levels?
- Can low magnesium make it harder to control diabetes?
- Magnesium-Rich Foods and Their Role in Blood Sugar Balance
- Should you take magnesium supplements if you have diabetes?
- What do NHS and NICE guidelines say about magnesium and diabetes?
- Safety Considerations and Side Effects of Magnesium Supplements
- Scientific References
- Frequently Asked Questions
| Side Effect or Interaction | Frequency | Severity | Management |
|---|---|---|---|
| Loose stools, diarrhoea, nausea, abdominal cramping | Common, especially with magnesium oxide or sulfate | Mild | Switch to chelated forms such as magnesium glycinate or citrate |
| Hypermagnesaemia (abnormally high blood magnesium) | Rare in people with normal kidney function | Severe | Avoid supplementation without medical supervision if CKD is present |
| Reduced antibiotic absorption (tetracyclines, fluoroquinolones) | Occurs if taken simultaneously | Moderate | Separate magnesium dose by at least two hours before or after antibiotic |
| Impaired bisphosphonate absorption | Occurs if taken together | Moderate | Follow BNF or product label guidance on dose separation |
| Increased magnesium loss from thiazide or loop diuretics | Common in people with diabetes on these medicines | Moderate | Discuss serum magnesium monitoring with GP |
| Hypomagnesaemia associated with long-term proton pump inhibitor use | Recognised risk, MHRA Drug Safety Update issued | Moderate | Consider checking magnesium levels before and during prolonged treatment |
| Muscle weakness, low blood pressure, slowed breathing (magnesium accumulation) | Rare, primarily in chronic kidney disease | Severe | Do not supplement without explicit medical supervision if kidney function is impaired |
How does magnesium affect blood sugar levels?
Magnesium supports insulin secretion and activates tyrosine kinase in the insulin receptor pathway; insufficient magnesium reduces cellular insulin responsiveness, promoting insulin resistance and raised blood glucose.
Magnesium plays a direct role in blood sugar regulation by supporting insulin secretion and improving the ability of cells to respond to insulin. It is an essential mineral involved in more than 300 enzymatic reactions in the body, including those that govern glucose metabolism.[1] When magnesium is present in adequate amounts, the pancreatic beta cells that produce insulin function more efficiently, and peripheral tissues such as muscle and fat are better able to take up glucose from the bloodstream.
The mechanism centres on magnesium's role as a cofactor for enzymes involved in glycolysis and glucose transport. Magnesium is required for the activity of tyrosine kinase, an enzyme that forms part of the insulin receptor signalling pathway.[11] Without sufficient magnesium, this pathway becomes less responsive, a state known as insulin resistance, which can lead to elevated blood glucose levels over time.
Research published in peer-reviewed journals has consistently shown an association between higher dietary magnesium intake and a lower risk of developing type 2 diabetes. Meta-analyses of prospective cohort studies, including analyses published in Diabetes Care, have found that each 100 mg per day increment in magnesium intake is associated with a modest reduction in the risk of type 2 diabetes.[5][6] It is important to note that association does not confirm causation, and the magnitude of benefit in individuals varies depending on baseline magnesium status, diet, and other health factors. The NHS notes that magnesium is important for normal energy metabolism and the functioning of the nervous system, and that most people should be able to obtain adequate amounts from a varied diet.
Can low magnesium make it harder to control diabetes?
Yes. Low magnesium impairs insulin sensitivity, and high blood glucose increases urinary magnesium loss, creating a self-reinforcing cycle that makes glycaemic control more difficult.
Low magnesium levels, a condition known as hypomagnesaemia, can make blood sugar control more difficult in people who already have diabetes. Studies have found that people with type 2 diabetes are significantly more likely to have low serum magnesium compared with those without the condition, and that lower magnesium levels are associated with poorer glycaemic control as measured by HbA1c.[12][13]
Several factors contribute to this cycle. People with poorly controlled diabetes lose more magnesium through the kidneys because elevated blood glucose increases urinary magnesium excretion. This creates a self-reinforcing pattern: high blood sugar depletes magnesium, and low magnesium impairs insulin sensitivity, making blood sugar harder to manage. Some blood pressure medicines commonly used in people with diabetes, such as thiazide or loop diuretics, can also increase urinary magnesium losses.[9][10] Other recognised causes of hypomagnesaemia include gastrointestinal disorders, chronic diarrhoea, and excessive alcohol intake.
Symptoms of low magnesium are often non-specific and can include muscle cramps, fatigue, irritability, and in more severe cases, cardiac arrhythmias. Because these symptoms overlap with many other conditions, hypomagnesaemia is frequently underdiagnosed. If you have diabetes and are experiencing unexplained muscle cramps or fatigue, it is worth discussing a serum magnesium test with your GP, as this is a straightforward blood test available through NHS primary care.
It is worth noting that serum magnesium reflects only a small fraction of total body magnesium, most of which is stored in bone and soft tissue. A normal serum result does not always rule out functional magnesium insufficiency. Alternative tests such as red blood cell magnesium measurement are not routinely used in UK primary care, which is why dietary intake and clinical context remain important considerations alongside laboratory values.
Magnesium-Rich Foods and Their Role in Blood Sugar Balance
Dark leafy greens, nuts, seeds, legumes, and whole grains are among the richest dietary sources of magnesium and also carry a low glycaemic index, supporting blood sugar balance.
Increasing magnesium intake through food is the most straightforward and safest approach to supporting blood sugar balance, and a varied diet rich in whole foods can provide adequate amounts for most people. According to the NHS, the Reference Nutrient Intake (RNI) for magnesium is 300 mg per day for adult men and 270 mg per day for adult women, and most people should be able to meet these needs through diet alone without needing supplements.[1]
The following foods are among the richest dietary sources of magnesium:
-
Dark leafy greens such as spinach and kale
-
Nuts and seeds, particularly pumpkin seeds, almonds, and cashews
-
Legumes including black beans, chickpeas, and lentils
-
Whole grains such as brown rice, oats, and wholemeal bread
-
Dark chocolate (70% cocoa or above, in moderate amounts)
-
Avocado and bananas
-
Oily fish such as mackerel and salmon
Many of these foods also have a low glycaemic index, meaning they cause a slower, more gradual rise in blood glucose. This dual benefit makes them particularly valuable for people managing diabetes or at risk of developing it. A diet built around vegetables, legumes, whole grains, and lean proteins aligns closely with both the NHS Eatwell Guide and NICE guidance on dietary management of type 2 diabetes (NG28).
For people with diabetes, it is advisable to discuss significant dietary changes with a registered dietitian, particularly if carbohydrate intake is being adjusted alongside efforts to increase magnesium-rich foods. NHS diabetes care teams can provide personalised dietary advice as part of structured diabetes education programmes such as DESMOND or X-PERT.
Should you take magnesium supplements if you have diabetes?
Magnesium supplements may modestly improve fasting glucose and HbA1c in people with low magnesium levels, but should only be started after discussion with a GP or diabetes care team.
Magnesium supplements may be beneficial for people with diabetes who have confirmed or suspected low magnesium levels, but they should not be started without first discussing this with a GP or diabetes care team. There is no universal recommendation for routine magnesium supplementation in people with diabetes, and the evidence base, while promising, does not yet support blanket prescribing.
Several small randomised controlled trials have shown that magnesium supplementation can modestly improve fasting blood glucose and HbA1c in people with type 2 diabetes who have low or borderline magnesium levels.[14][15] However, the quality and size of these trials vary, and larger, well-designed studies are needed to establish optimal doses and long-term outcomes. The most commonly studied supplemental forms include magnesium glycinate, magnesium citrate, and magnesium oxide, which differ in their bioavailability and tolerability.
If supplementation is considered appropriate, typical doses used in clinical studies have ranged from 250 mg to 400 mg of elemental magnesium per day.[14][15] The NHS advises that taking 400 mg or less of magnesium per day from supplements is unlikely to cause harm for most adults, and that you should not exceed the dose stated on the product label unless advised by a clinician.[1] The right dose for an individual depends on their baseline levels, kidney function, and other medications. People with impaired kidney function should be particularly cautious, as the kidneys are responsible for excreting excess magnesium, and supplementation in this group carries a risk of accumulation.
Bolt Pharmacy is a GPhC-registered UK online pharmacy offering online weight-management and metabolic health consultations, with prescriber review and pharmacist support, where clinicians can discuss whether supplementation may be appropriate as part of a broader care plan. Always inform your GP or diabetes nurse of any supplements you are taking, as they can interact with certain medications and affect laboratory results.
What do NHS and NICE guidelines say about magnesium and diabetes?
NICE NG28 does not recommend routine magnesium testing or supplementation for diabetes, but indirectly supports adequate intake by encouraging vegetables, whole grains, and legumes.
NICE guidance on type 2 diabetes in adults (NG28) does not recommend routine magnesium testing or supplementation as a standard component of diabetes management.[2][3] NICE guidelines focus primarily on lifestyle modification, structured education, and pharmacological management with agents such as metformin, SGLT-2 inhibitors, and GLP-1 receptor agonists.[2][3] Magnesium is not listed as a recommended intervention within these pathways.
However, NICE NG28 and NHS healthy eating guidance for people with diabetes both encourage consumption of vegetables, whole grains, and legumes as part of a balanced dietary pattern. These foods are naturally high in magnesium, so following this guidance indirectly supports adequate magnesium intake without making it an explicit clinical target.
In clinical practice, serum magnesium testing may be requested by a GP or specialist when there is a clinical reason to suspect deficiency, such as unexplained muscle cramps, cardiac arrhythmias, or persistent difficulty with glycaemic control despite appropriate treatment. This is a matter of clinical judgement rather than a standard protocol. If hypomagnesaemia is confirmed, treatment is guided by its severity and underlying cause, and may include dietary advice, oral supplementation, or in severe cases, intravenous magnesium administered in a hospital setting.
Local commissioning decisions about which tests and treatments are routinely funded are made by Integrated Care Boards (ICBs) in England. Different arrangements apply in Scotland, Wales, and Northern Ireland, where separate health service structures determine local provision. If you believe magnesium deficiency may be contributing to difficulties with blood sugar control, raising this with your GP is the appropriate first step.
Safety Considerations and Side Effects of Magnesium Supplements
Common side effects are gastrointestinal, including diarrhoea and nausea; the most serious risk is hypermagnesaemia, which is rare in healthy adults but dangerous in those with chronic kidney disease.
Magnesium supplements are generally well tolerated at recommended doses, but they can cause side effects, particularly when taken in excess or by people with certain health conditions. The most common adverse effects are gastrointestinal and include loose stools, diarrhoea, nausea, and abdominal cramping. These effects tend to be more pronounced with magnesium oxide and magnesium sulfate, and less common with chelated forms such as magnesium glycinate or magnesium citrate.
The most serious risk associated with magnesium supplementation is hypermagnesaemia, an abnormally high level of magnesium in the blood. This is rare in people with normal kidney function, as the kidneys efficiently excrete excess magnesium. However, in people with chronic kidney disease (CKD), magnesium can accumulate to dangerous levels, potentially causing low blood pressure, muscle weakness, slowed breathing, and in severe cases, cardiac arrest. People with CKD should not take magnesium supplements without explicit medical supervision.
Magnesium can also interact with certain medications relevant to people with diabetes:
-
Antibiotics (particularly tetracyclines and fluoroquinolones): magnesium can reduce their absorption if taken at the same time. To minimise this, take magnesium supplements at least two hours before or after these antibiotics, in line with product-specific advice.
-
Bisphosphonates used for bone health: absorption may be impaired if taken together. Follow the product label or BNF guidance on dose separation.
-
Diuretics: some increase magnesium loss, while potassium-sparing diuretics may reduce excretion.
-
Proton pump inhibitors: the MHRA has issued a Drug Safety Update noting that long-term use of proton pump inhibitors is associated with low magnesium levels (hypomagnesaemia), and recommends that clinicians consider checking magnesium levels before and periodically during prolonged treatment.[17]
If you experience an unexpected or severe reaction to a magnesium supplement, contact your GP or call NHS 111 for advice. Suspected adverse reactions to supplements can be reported to the MHRA via the Yellow Card scheme at yellowcard.mhra.gov.uk. Always store supplements out of reach of children and follow the dosage instructions on the product label.
Scientific References
- Vitamins and minerals – Others.
- Type 2 diabetes in adults: management (NG28).
- Type 2 diabetes in adults: management (NG28) – Recommendations chapter.
- Type 2 diabetes in adults: choosing, reviewing and stopping medicines – NG28 visual summary.
- Magnesium intake and risk of type 2 diabetes: a meta-analysis (Larsson & Wolk, 2007).
- Magnesium intake and risk of type 2 diabetes (Dong et al., Diabetes Care, 2011).
- Hyperglycaemia enhances renal magnesium excretion in patients with type 1 diabetes mellitus (Djurhuus et al., 2000).
- Increased renal calcium and magnesium transporter abundance in streptozotocin-induced diabetes mellitus (Kidney Int, 2006).
- Thiazide but not loop diuretics is associated with hypomagnesaemia (Kieboom et al., Eur J Prev Cardiol, 2018).
- Diuretics – Treatment summaries (BNF/NICE).
- Regulation of heart insulin receptor tyrosine kinase activity by magnesium (Paxton et al., 2005).
- Effects of magnesium supplementation on improving hyperglycemia, hypercholesterolemia, and hypertension in type 2 diabetes: a pooled analysis of 24 RCTs (Front Nutr, 2023).
- Impact of oral magnesium supplementation on glycemic and cardiometabolic outcomes in prediabetic adults: a systematic review and meta-analysis (J Diabetes Metab Disord, 2025).
- Effect of magnesium supplements on improving glucose control, blood pressure and lipid profile in patients with type 2 diabetes mellitus: meta-analysis of 23 RCTs (Sultan Qaboos Univ Med J, 2025).
- Effects of oral magnesium supplementation on glycaemic control in type 2 diabetes: a meta-analysis of randomized double-blind controlled trials (Diabet Med, 2006).
- Comparison of nutritional supplements for glycemic control in type 2 diabetes: a systematic review and network meta-analysis (Diabetes Res Clin Pract, 2022).
- Proton pump inhibitors in long-term use: reports of hypomagnesaemia.
- Magnesium – Interactions (BNF/NICE).
Frequently Asked Questions
Can taking magnesium supplements lower blood sugar in people with type 2 diabetes?
Some small randomised controlled trials suggest magnesium supplementation can modestly improve fasting blood glucose and HbA1c in people with type 2 diabetes who have low or borderline magnesium levels. However, evidence is not yet strong enough to support routine supplementation, and you should discuss this with your GP or diabetes care team before starting.
How can I tell if I have low magnesium levels?
Symptoms of low magnesium can include muscle cramps, fatigue, and irritability, but these are non-specific and overlap with many other conditions. A serum magnesium blood test, available through NHS primary care, is the standard way to check, and your GP can arrange this if there is a clinical reason to suspect deficiency.
Which magnesium supplement form is best tolerated?
Chelated forms such as magnesium glycinate and magnesium citrate are generally better tolerated and cause fewer gastrointestinal side effects than magnesium oxide or magnesium sulfate. The most suitable form and dose for you depends on your health status and other medications, so seek advice from a pharmacist or GP before starting.
The health-related content published on this site is based on credible scientific sources and is periodically reviewed to ensure accuracy and relevance. Although we aim to reflect the most current medical knowledge, the material is meant for general education and awareness only.
The information on this site is not a substitute for professional medical advice. For any health concerns, please speak with a qualified medical professional. By using this information, you acknowledge responsibility for any decisions made and understand we are not liable for any consequences that may result.
Any third-party brands or services referenced on this site are included for informational purposes only; we are entirely independent and have no affiliation, partnership, or collaboration with any companies mentioned.






