Why the heart needs magnesium
Clinical review pending
Magnesium shapes the heart's electrical activity. What a deficiency does, what studies show, and why kidney function and medications matter.
What magnesium does in the heart, and why a deficiency disrupts the rhythm
Magnesium is the fourth most abundant positively charged ion in the body and, after potassium, the second most abundant inside cells. In the heart it acts as a key regulator of electrical excitability, ion channel activity and the contraction of the heart muscle. Calcium drives muscle contraction and electrical depolarization. Magnesium works the other way, as a physiological calcium antagonist: it regulates how much calcium enters heart cells and keeps them from becoming overexcited.
The heart’s electrical system depends on the coordinated movement of sodium, potassium, calcium and magnesium across cell membranes. Magnesium stabilizes this system by regulating ion channels, especially the L-type calcium channels that control the plateau phase of the cardiac action potential. When magnesium levels fall, these calcium channels become overactive and let too much calcium flow in. That disturbs the normal rhythm of depolarization and repolarization and sets the stage for arrhythmias, ranging from extra beats in the ventricles, which are often harmless, to life-threatening ventricular tachycardia and torsades de pointes.
Regulating the cell’s ion pumps
Magnesium regulates the sodium-potassium ATPase pump, which maintains the electrochemical gradient the heart needs to stay excitable. A deficiency impairs this pump, so potassium runs low inside the cell and sodium builds up. The result is an unstable resting membrane potential and a greater susceptibility to abnormal electrical impulses. This is why magnesium deficiency so often occurs together with hypokalemia (low potassium), and why correcting potassium alone, without addressing a coexisting magnesium deficiency, often fails to fix the rhythm disturbance.
The limits of the usual blood test
The trouble with detecting magnesium deficiency is that serum magnesium, the standard test, reflects only the extracellular stores, which make up less than 1% of the body’s total magnesium. Most of it sits inside cells, particularly in bone, muscle and soft tissue. A normal serum value therefore does not reliably rule out depleted tissue stores. The source article presents magnesium in red blood cells (RBC or erythrocyte magnesium) as a more accurate marker. How well this test reflects the magnesium status of heart tissue, and whether it supports treatment decisions, needs to be checked separately.
What studies show about magnesium deficiency and heart rhythm disorders
Several studies have documented the link between low magnesium and a higher risk of arrhythmia. A 2022 systematic review in BMC Cardiovascular Disorders found that magnesium supplementation significantly reduced the incidence of postoperative atrial fibrillation in cardiac surgery patients, with an odds ratio of 0.42 compared with placebo. The effect was clearest when magnesium was given preventively rather than as an emergency measure.
In patients with documented hypomagnesemia (low blood magnesium), the link with ventricular arrhythmias is especially strong. Low serum magnesium has been associated with more frequent ventricular extra beats, ventricular tachycardia and torsades de pointes, particularly alongside other electrolyte disturbances or QT-prolonging medications (observational study, 2018). Magnesium sulfate is used for the acute treatment of torsades de pointes, even when the serum level is normal. The source article explains this as a stabilization of the cell membrane and a shortening of the QT interval that goes beyond simply correcting a deficiency; the claim about QT shortening in particular needs expert review. Source
The evidence that magnesium supplements help prevent heart rhythm disorders in the general population is more mixed. A 2019 study in Circulation: Genomics and Precision Medicine looked at serum magnesium and calcium levels in relation to the risk of atrial fibrillation. Higher magnesium levels were associated with a lower risk of atrial fibrillation, but the relationship was not linear, and supplementation studies in people with normal baseline magnesium have not consistently shown a benefit (meta-analysis, 2025). This suggests that magnesium’s antiarrhythmic effect matters most in people who are deficient or at the low end of the normal range. Source
Which groups have a higher risk of deficiency
Certain groups are at higher risk of magnesium deficiency and its consequences for the heart:
-
Patients taking diuretics, especially loop and thiazide diuretics, lose more magnesium through the kidneys.
-
Proton pump inhibitors impair magnesium absorption in the gut.
-
People with diabetes lose more magnesium in their urine because of osmotic diuresis.
-
Older adults absorb less from the gut and are more likely to take medications that affect magnesium status.
How magnesium regulates the heart’s electrical activity and vascular tone
Magnesium’s antiarrhythmic properties rest on its role as a natural calcium antagonist. Calcium is the main driver of heart muscle contraction and electrical excitation. When calcium enters heart cells through voltage-gated L-type calcium channels, it triggers the release of more calcium from stores inside the cell, which sets off a contraction. Magnesium competes with calcium for binding sites on these channels, reducing calcium influx and preventing excessive depolarization.
This mechanism matters most during the plateau phase of the cardiac action potential, when the calcium channels stay open and calcium keeps flowing into the cell. The source article attributes the protection against early afterdepolarizations to a shortening of this plateau phase and of the refractory period. These extra electrical impulses can trigger torsades de pointes. The exact electrophysiological explanation, and how it depends on dose and baseline status, still needs expert review.
Regulating potassium channels
Magnesium also modulates the potassium channels responsible for repolarization (the process by which a heart cell returns to its resting state after depolarization). Magnesium deficiency impairs potassium channel function, prolongs repolarization and raises the risk of delayed afterdepolarizations. This can give rise to what are called reentry arrhythmias, in which electrical impulses circulate abnormally through the heart tissue.
Effects on the autonomic nervous system
Beyond its direct action on ion channels, magnesium influences the autonomic nervous system, which regulates heart rate and rhythm. Magnesium deficiency increases sympathetic nervous system activity, which raises catecholamine levels and heart rate. This heightened sympathetic tone makes arrhythmias more likely, particularly in people with underlying structural heart disease or ischemia. The source article describes lower sympathetic activity and better heart rate variability with magnesium. The evidence cited is a 2018 observational study on magnesium levels and heart rate variability; on its own, it does not show that taking magnesium has this effect. Source
Vascular smooth muscle and blood pressure
Magnesium relaxes vascular smooth muscle by inhibiting calcium entry into smooth muscle cells, which widens blood vessels and lowers blood pressure. Chronic magnesium deficiency contributes to endothelial dysfunction, increased vascular resistance and high blood pressure, all of which add to the strain on the heart and the risk of rhythm disorders. The relationship between magnesium and blood pressure is dose-dependent. Meta-analyses show that supplementation at doses of 300 to 400 mg per day modestly lowers systolic and diastolic blood pressure in people with hypertension (meta-analysis, 2016). Source
Supplement forms, dosage and timing
Not all magnesium supplements are absorbed equally well. Compounds such as citrate, glycinate and malate have higher bioavailability than inorganic salts such as magnesium oxide. Magnesium oxide is poorly absorbed, with a bioavailability of about 4%, and is used more often as a laxative than as a supplement for heart health. For heart health, magnesium glycinate is often preferred because it is well absorbed and less likely to cause gastrointestinal side effects.
Dose
The recommended daily magnesium intake given in the source article is 400 to 420 mg per day for men and 310 to 320 mg per day for women (literature review, 2021). These figures refer to total intake for preventing a deficiency, not to an added dose for treating heart conditions. Clinical trials that examined magnesium’s effects on heart rhythm disorders and blood pressure used doses of 300 to 600 mg per day, typically split into two or three doses to improve absorption and minimize stomach and gut discomfort (meta-analysis, 2016). The tolerable upper intake level for supplemental magnesium is 350 mg per day from supplements alone, not counting magnesium from food (perspective article, 2023; the reference framework for this upper limit should be checked separately). Doses above this threshold raise the risk of diarrhea, the most common side effect of magnesium supplements. Source Source Source
Timing
Magnesium is best absorbed when taken with food, because stomach acid increases its solubility. Taking magnesium in the evening may also support sleep, since magnesium promotes relaxation through its effects on GABA receptors and the hypothalamic-pituitary-adrenal axis. With bisphosphonates, tetracycline antibiotics and certain thyroid medications, magnesium can interfere with absorption. The source article gives a gap of at least two hours. The spacing needed, however, depends on the specific drug and should be clarified from its own dosing instructions.
Interactions with other electrolytes
Magnesium does not act in isolation. It works together with potassium, and a deficiency in one often coexists with a deficiency in the other. Correcting hypokalemia without treating magnesium is often ineffective, because magnesium is needed for the sodium-potassium ATPase pump to work properly. Magnesium and calcium, likewise, have an inverse relationship: a high calcium intake can impair magnesium absorption, and taking a lot of supplemental calcium without enough magnesium can harm cardiovascular health. The ideal ratio of calcium to magnesium intake is debated, but a 2:1 ratio is often cited.
Who benefits most from magnesium supplements, and who should be careful?
Magnesium supplements are most beneficial for people with a documented deficiency or a high risk of depleted magnesium stores:
-
Patients taking diuretics, proton pump inhibitors or other medications that impair magnesium absorption or increase its excretion through the kidneys.
-
People with diabetes, especially those with poorly controlled blood sugar, who lose magnesium through osmotic diuresis.
-
Older adults, who absorb less from the gut and often take several medications.
-
People with a history of arrhythmias, especially atrial fibrillation or extra beats from the ventricles.
-
Athletes and people under chronic stress, who may need more magnesium because of greater losses through sweat and the effects of cortisol on how the kidneys handle magnesium.
When particular caution is needed
Magnesium supplements are not risk-free. People with chronic kidney disease, especially those with a glomerular filtration rate below 30 mL/min, are at risk of hypermagnesemia (too much magnesium in the blood), because the kidneys are the main route for clearing magnesium. High magnesium levels can cause muscle weakness, low blood pressure, a slowed heartbeat and, in severe cases, cardiac arrest. Patients with advanced kidney disease should take magnesium only under medical supervision.
Magnesium can also interact with certain medications. It enhances the effect of calcium channel blockers and, taken together with them, can cause a sharp drop in blood pressure or an overly slow heartbeat. It can reduce the absorption of bisphosphonates, tetracycline antibiotics and levothyroxine. People taking these medications should space out their magnesium supplement appropriately or consult a doctor.
Pregnancy and breastfeeding
Magnesium needs rise during pregnancy and breastfeeding. In obstetrics, magnesium sulfate is used, among other things, to prevent seizures in preeclampsia. The source article also mentions delaying preterm labor; this indication needs expert review and should be kept distinct from other obstetric uses. Oral magnesium supplements are generally considered safe during pregnancy, but the dose should not exceed the tolerable upper limit without medical advice. Pregnant women with a history of heart rhythm disorders or high blood pressure may benefit from magnesium supplements, but this should be decided individually, based on baseline status and clinical context.
Serum and red blood cell magnesium: what the tests tell you
Serum magnesium is the test most often ordered, but it is a poor indicator of the body’s total magnesium status. Because only 1% of magnesium is extracellular, serum levels can stay normal even when the stores inside cells are depleted. This is why people with normal serum magnesium can still have deficiency symptoms such as palpitations, muscle cramps and fatigue.
RBC magnesium measures the magnesium content of red blood cells, which correlates more closely with the magnesium stores inside cells of other tissues, including the heart. The source article calls RBC magnesium a more sensitive marker of deficiency, especially when stores are depleted gradually. The evidence linked is a 2024 observational study in critically ill children. How well it applies to routine cardiac testing in adults is unclear. On top of that, red blood cell magnesium is not widely included in standard lab panels, and many doctors are unfamiliar with how to interpret it. Source
Another option is the magnesium loading test, in which a known dose of magnesium is given intravenously or by mouth and the magnesium excreted in urine is measured over 24 hours. A high retained fraction is taken as a sign of deficiency. This test is more cumbersome and is usually reserved for research or for cases where a deficiency is strongly suspected but cannot be confirmed by other methods.
Reading magnesium levels in context
Magnesium status should not be judged in isolation. Measuring calcium, potassium and vitamin D at the same time gives a fuller picture of electrolyte balance and cardiovascular risk. A magnesium deficiency often goes hand in hand with a potassium deficiency, and correcting one without the other does not work. Vitamin D deficiency impairs magnesium absorption, and magnesium is needed to activate vitamin D, which creates a two-way relationship that affects both bone and cardiovascular health.
Inflammation markers such as high-sensitivity C-reactive protein are relevant too, because chronic inflammation can raise magnesium needs and contribute to depleted stores. Ferritin is mainly a marker of iron stores, but it is also an acute-phase protein that can rise with inflammation regardless of iron stores, which complicates the interpretation of other nutrient markers.
Looking at heart symptoms in the full context
Palpitations and rhythm disorders can arise from electrolyte shifts, thyroid disease, disturbances in autonomic regulation or structural heart disease. A magnesium test alone therefore does not explain the cause. The source article also lists calcium, potassium, sodium, vitamin D, thyroid and inflammation markers, plus apolipoprotein B and lipoprotein(a) for risk assessment. It further suggests red blood cell magnesium. Which tests make sense depends on the specific medical question; an extensive lab panel is no substitute for a proper workup of the rhythm disorder.
Frequently asked questions
Why does magnesium deficiency cause palpitations?
Magnesium stabilizes the cardiac action potential by regulating the L-type calcium channels and the sodium-potassium ATPase pump. When magnesium levels fall, the calcium channels become overactive, allowing too much calcium to flow in, which disturbs the normal rhythm of depolarization and repolarization. This electrical instability creates conditions for arrhythmias, including ventricular extra beats and torsades de pointes, which are often felt as palpitations or skipped beats.
What is the difference between serum magnesium and RBC magnesium tests?
Serum magnesium reflects only the extracellular stores, which make up less than 1% of the body’s total magnesium. This means values can look normal even when the stores inside cells of the heart, muscles and bones are depleted. RBC magnesium measures magnesium in red blood cells. The source article infers from this that it is more sensitive to deficiencies that develop gradually. Whether this measurement reflects the supply to other organs more reliably, and leads to better decisions in everyday practice, needs to be checked separately.
Which groups are at highest risk of a magnesium deficiency that affects the heart?
Four groups face a higher risk: patients taking loop or thiazide diuretics, which increase magnesium loss through the kidneys; people taking proton pump inhibitors, which impair absorption from the gut; people with diabetes, who lose magnesium through osmotic diuresis; and older adults, who absorb less from the gut and are more likely to take several medications that affect magnesium status. Athletes under chronic stress also have higher needs because of sweat losses and cortisol-related changes in magnesium excretion.
How does magnesium act as a natural calcium channel blocker in heart tissue?
Magnesium competes with calcium for binding sites on voltage-gated L-type calcium channels, reducing calcium influx into heart cells. The source article uses this to explain a shortening of the plateau phase and refractory period, along with the suppression of early afterdepolarizations that can trigger torsades de pointes. This simplified electrophysiological explanation still needs expert review. Pharmacologically, the mechanism resembles that of calcium channel blocker drugs, but physiologically it is mediated by the magnesium concentration inside the cell.
What did a 2022 systematic review show about magnesium and atrial fibrillation after heart surgery?
A 2022 systematic review in BMC Cardiovascular Disorders found that magnesium supplementation reduced the incidence of postoperative atrial fibrillation in cardiac surgery patients, with an odds ratio of 0.42 compared with placebo. That corresponds to 58% lower odds, which is not automatically the same as an equally large relative risk reduction. The protective effect was most pronounced when magnesium was given preventively before surgery, rather than as emergency treatment after the rhythm disorder had started.
Why does correcting potassium alone often fail to resolve heart rhythm disorders?
Magnesium is needed for the sodium-potassium ATPase pump to work. This pump maintains the electrochemical gradient that keeps heart cells electrically stable. In a magnesium deficiency the pump is impaired, which leads to low potassium inside the cell and a buildup of sodium, even when potassium is being supplemented. Unless the magnesium deficiency is corrected, the pump cannot work properly, and the hypokalemia comes back or persists regardless of potassium replacement.
Which form of magnesium is best for cardiovascular support, and at what dose?
Magnesium glycinate is generally preferred for cardiovascular support because it is well absorbed and causes fewer gastrointestinal side effects than inorganic forms such as magnesium oxide, which has a bioavailability of only about 4%. Clinical trials on heart rhythm disorders and blood pressure used doses of 300 to 600 mg of elemental magnesium per day, split into two or three doses. The recommended total daily intake given in the source article is 400 to 420 mg per day for men and 310 to 320 mg per day for women.
Can people with kidney disease safely take magnesium supplements for heart health?
People with chronic kidney disease, especially those with a glomerular filtration rate below 30 mL/min, have a substantial risk of hypermagnesemia, because the kidneys are the main route for clearing magnesium. High magnesium levels can cause muscle weakness, low blood pressure, a slowed heartbeat and, in severe cases, cardiac arrest. In this group, magnesium supplements should be taken only under direct medical supervision, with regular monitoring of both magnesium levels and kidney function.
Sources and references
Lazzerini PE, Bertolozzi I, Finizola F, Acampa M, Natale M, Vanni F, Fulceri R, Gamberucci A, Rossi M, Giabbani B, Caselli M, Lamberti I, Cevenini G, Laghi-Pasini F, Capecchi PL (2018). Proton Pump Inhibitors and Serum Magnesium Levels in Patients With Torsades de Pointes. Frontiers in pharmacology, 9, 363. https://doi.org/10.3389/fphar.2018.00363 Publication
Ghazizadeh S, Malektojari A, Javidfar Z, Lahuti S, Shokraei R, Zeinaee M, Badele A, Mirzadeh R, Ashrafi M, Afra F, Hamed Ersi M, Heydari M, Ziaei A, Rezvani Z, Mah J, Zeraatkar D, Abbaszadeh S, Pitre T (2025). Magnesium for Prevention of New-onset Postoperative Atrial Fibrillation Following Cardiac Surgery: A Systematic Review and Meta-analysis of Randomized Controlled Trials. Heart international, 19(1), 3-11. https://doi.org/10.17925/HI.2025.19.1.6 Publication
University of Medicine and Pharmacy “Grigore T. Popa” Iași, România, Matei D, Luca C, University of Medicine and Pharmacy “Grigore T. Popa” Iași, România, Andrițoi D, University of Medicine and Pharmacy “Grigore T. Popa” Iași, România, Sărdaru D, University of Medicine and Pharmacy “Grigore T. Popa” Iași, România, Corciovă C, University of Medicine and Pharmacy “Grigore T. Popa” Iași, România (2018). THE RELATIONSHIP BETWEEN LOWER SERUM MAGNESIUM LEVELS AND HEART RATE VARIABILITY INDICES. Balneo Research Journal, 9(4), 426-432. https://doi.org/10.12680/balneo.2018.226 Publication
Zhang X, Li Y, Del Gobbo LC, Rosanoff A, Wang J, Zhang W, Song Y (2016). Effects of Magnesium Supplementation on Blood Pressure: A Meta-Analysis of Randomized Double-Blind Placebo-Controlled Trials. Hypertension (Dallas, Tex. : 1979), 68(2), 324-33. https://doi.org/10.1161/HYPERTENSIONAHA.116.07664 Publication
Fiorentini D, Cappadone C, Farruggia G, Prata C (2021). Magnesium: Biochemistry, Nutrition, Detection, and Social Impact of Diseases Linked to Its Deficiency. Nutrients, 13(4). https://doi.org/10.3390/nu13041136 Publication
Costello R, Rosanoff A, Nielsen F, West C (2023). Perspective: Call for Re-evaluation of the Tolerable Upper Intake Level for Magnesium Supplementation in Adults. Advances in nutrition (Bethesda, Md.), 14(5), 973-982. https://doi.org/10.1016/j.advnut.2023.06.008 Publication
Veldscholte K, Al Fify M, Catchpole A, Talwar D, Wadsworth J, Vanhorebeek I, Casaer MP, Van den Berghe G, Joosten KFM, Gerasimidis K, Verbruggen SCAT (2024). Plasma and red blood cell concentrations of zinc, copper, selenium and magnesium in the first week of paediatric critical illness. Clinical nutrition (Edinburgh, Scotland), 43(2), 543-551. https://doi.org/10.1016/j.clnu.2024.01.004 Publication