Can Low Magnesium Cause Atrial Fibrillation (AFib)?

Low magnesium does not cause AFib on its own the way one broken part stops a machine, but people with the lowest blood levels are more likely to develop it, at roughly 1.3 to 1.5 times the risk. Magnesium is best thought of as one of several things that can tip a vulnerable heart into an irregular rhythm, alongside age, blood pressure and heart disease.

How Magnesium Keeps the Heartbeat Steady

Atrial fibrillation, or AFib, happens when the upper chambers of the heart quiver chaotically instead of squeezing in rhythm. It can feel like fluttering, pounding, breathlessness or tiredness, though some people feel nothing at all. It matters because it raises the risk of stroke and can strain the heart over time.

Inside heart muscle cells, magnesium controls the tiny channels that let calcium and potassium in and out.1PubMed. Cardiovascular actions of magnesium That matters because each heartbeat is an electrical wave created by these charged particles moving across the cell wall. When magnesium inside cells rises, calcium flow drops and the electrical phase of each beat gets shorter.2PubMed. Cytosolic magnesium modulates calcium channel activity in mammalian ventricular cells In effect, magnesium acts as a brake on the calcium surges that can make heart cells fire too easily.

A shortage removes that brake. Magnesium dampens the small, early extra electrical blips that can set off irregular rhythms.3PubMed Central. The Role of Hypomagnesemia in Cardiac Arrhythmias: A Clinical Perspective It also helps potassium move into heart cells, which evens out how different parts of the heart reset between beats.3PubMed Central. The Role of Hypomagnesemia in Cardiac Arrhythmias: A Clinical Perspective With too little magnesium, cells become jumpy and out of step, which is the setting in which AFib can start.

This is also why magnesium and potassium usually travel together. Low magnesium makes it harder for the body to hold on to potassium, so doctors often check and correct both at the same time. Fixing potassium alone may not work until magnesium is replaced too.

How Much Low Magnesium Raises AFib Risk

Doctors measure blood magnesium with a standard blood test; your lab report may list it as serum magnesium. In a study following about 4,000 adults for roughly 18 years, those with the lowest blood magnesium developed AFib at 9.4 per 1,000 people a year versus 6.3 in the highest group.4PubMed Central. Low Serum Magnesium and the Development of Atrial Fibrillation in the Community: The Framingham Heart Study Their risk was about 1.5 times higher.4PubMed Central. Low Serum Magnesium and the Development of Atrial Fibrillation in the Community: The Framingham Heart Study In another study of more than 14,000 adults over 20 years, the lowest group had about 34 percent higher risk than people with average levels near 0.80 to 0.83 mmol/L.5Circulation Journal. Serum and Dietary Magnesium and Incidence of Atrial Fibrillation in Whites and in African Americans – Atherosclerosis Risk in Communities (ARIC) Study – The link held equally for white and Black participants.5Circulation Journal. Serum and Dietary Magnesium and Incidence of Atrial Fibrillation in Whites and in African Americans – Atherosclerosis Risk in Communities (ARIC) Study –

Only the low end seems to matter. Risk was not lower among people with high-normal levels than among those in the middle.4PubMed Central. Low Serum Magnesium and the Development of Atrial Fibrillation in the Community: The Framingham Heart Study The same pattern, higher risk only in the bottom fifth, appeared in the larger study.5Circulation Journal. Serum and Dietary Magnesium and Incidence of Atrial Fibrillation in Whites and in African Americans – Atherosclerosis Risk in Communities (ARIC) Study –

People with type 2 diabetes show a stronger link. In this group, higher blood magnesium was tied to about 40 percent lower AFib risk over six years.6CrossRef / Figshare. Serum Magnesium Is Inversely Associated With Heart Failure, Atrial Fibrillation, and Microvascular Complications in Type 2 Diabetes Low magnesium in diabetes was also tied to heart failure and to kidney, eye and foot complications.6CrossRef / Figshare. Serum Magnesium Is Inversely Associated With Heart Failure, Atrial Fibrillation, and Microvascular Complications in Type 2 Diabetes

A link is not proof of cause. People with low magnesium often have other risks, such as a poor diet, diuretic use or kidney problems. Researchers adjusted for many of these and the link remained, but they cannot rule out all of them. The trial evidence in later sections is what tests whether fixing magnesium changes anything.

Most people with low magnesium will never develop AFib. In the first study only 5 percent of everyone developed it over nearly two decades. Age, blood pressure, weight, alcohol and heart disease usually matter more.

Magnesium Pills and AFib Prevention

The direct test of pills was small and found nothing. In a small trial, magnesium pills taken for several weeks did not reduce extra beats from the upper chambers compared with a dummy pill.7PubMed Central. A Pilot Randomized Trial of Oral Magnesium Supplementation on Supraventricular Arrhythmias But the trial was short, small and included people at low AFib risk, so it could not settle the question.8bioRxiv. A Pilot Randomized Trial of Oral Magnesium Supplementation on Supraventricular Arrhythmias One study also found no link between magnesium in the diet and AFib risk.9PubMed Central. Atrial fibrillation risk factor management with a plant‐based diet: A review There is currently no good evidence that pills prevent AFib in people with normal levels.

That runs against a common online claim that magnesium is a natural AFib cure. Those claims often borrow from hospital drip results that do not apply to pills. Pills raise blood levels slowly and modestly, and much of the magnesium is not absorbed. Never stop prescribed AFib medicine or blood thinners in favor of magnesium.

The difference comes down to the gut. Magnesium from a pill must pass through the digestive tract, and only a fraction is absorbed; the rest stays in the bowel. Taking more at once does not raise absorption proportionally and mainly risks loose stools. In a person with normal levels, the kidneys simply pass extra magnesium out, so blood levels barely move. A drip result in hospital cannot be assumed to carry over to a daily capsule.

Pills do make sense in one situation. If a blood test shows your magnesium is low, correcting it is reasonable, since the low end is where risk rises. Ask for a level before starting supplements rather than taking them on a hunch.

Food is a sensible first step. Leafy greens, beans, nuts, seeds and whole grains are rich sources, and magnesium from food rarely causes overload when kidneys are healthy. Many adults eat less than recommended, so diet changes are worth trying.

Magnesium in the Hospital for Surgery and Fast AFib

AFib is common in the days after heart surgery. The operation irritates the heart, and inflammation around the upper chambers can trigger extra beats. Fluid shifts and medicines in the first days can also lower magnesium and potassium. AFib after surgery usually appears in the first few days and often settles, but it can prolong the hospital stay.

Magnesium through a drip cut the chance of AFib after heart surgery by about a third in the most reliable trials.10PubMed Central. Magnesium for Prevention of New-onset Postoperative Atrial Fibrillation Following Cardiac Surgery: A Systematic Review and Meta-analysis of Randomized Controlled Trials It also shortened hospital stays slightly, by about a third of a day, and worked best when started before surgery at lower doses.11PubMed. Impact of intravenous magnesium on post-cardiothoracic surgery atrial fibrillation and length of hospital stay: a meta-analysis

If you are having heart surgery, your team may check magnesium before and after the operation. Giving it through a drip is routine in many hospitals and low risk. You can ask whether magnesium is part of the plan to prevent AFib afterward.

Magnesium also helps control fast AFib in the emergency room. Added to usual treatment, a magnesium drip brought heart rate under control in 63 percent of patients versus 40 percent with usual treatment alone.12PubMed. Intravenous magnesium in the management of rapid atrial fibrillation: A systematic review and meta-analysis It restored a normal rhythm in 21 percent versus 14 percent.12PubMed. Intravenous magnesium in the management of rapid atrial fibrillation: A systematic review and meta-analysis It may work best in hearts that have not yet been heavily reshaped by long-standing AFib.13PubMed Central. Intravenous Magnesium Sulfate Reduces the Need for Antiarrhythmics during Acute-Onset Atrial Fibrillation in Emergency and Critical Care

A drip works where pills have not because it raises blood levels quickly and fully. The effect is short-term support, not long-term prevention.

It has limits. For long-lasting AFib treated with an electric shock, a magnesium drip did not make the shock more successful.14PubMed. Efficacy of Intravenous Magnesium in Facilitating Cardioversion of Atrial Fibrillation After an ablation procedure, both low and high blood magnesium were linked to more AFib coming back than middle levels.15Heart Rhythm O2. Serum magnesium levels and risk of atrial arrhythmia recurrence after catheter ablation: A prospective multicenter cohort study

Common Causes of Low Magnesium

Low magnesium, called hypomagnesemia on medical records, often comes from medicines.16Taylor & Francis Online / PubMed Central. Adverse cardiovascular and blood pressure effects of drug-induced hypomagnesemia Water pills used for high blood pressure and heart failure can drain magnesium.16Taylor & Francis Online / PubMed Central. Adverse cardiovascular and blood pressure effects of drug-induced hypomagnesemia Long-term acid reflux pills such as omeprazole can lower it too.16Taylor & Francis Online / PubMed Central. Adverse cardiovascular and blood pressure effects of drug-induced hypomagnesemia Low levels from these drugs should be found and treated to protect heart rhythm.16Taylor & Francis Online / PubMed Central. Adverse cardiovascular and blood pressure effects of drug-induced hypomagnesemia

Loop and thiazide water pills make the kidneys excrete more salt and water, and magnesium goes out with them. The loss tends to build up over years of use. Potassium-sparing diuretics tend to hold on to magnesium instead.

If you take a water pill or acid reflux pill, ask your doctor whether your magnesium has been checked. Do not stop either medicine on your own. Report cramps, twitching or palpitations, which can be among the signs of low levels, though they have many other causes.

Modern diets supply less as well. Diets low in whole grains and vegetables, food processing, older age and chronic illness all contribute to low intake.17PubMed. Global Dietary Magnesium Deficiency: Prevalence, Underlying Causes, Health Consequences, and Strategic Solutions Intensive farming has lowered magnesium in soil and in cereals, fruits and vegetables.18PubMed Central. Going to the roots of reduced magnesium dietary intake: A tradeoff between climate changes and sources Refining grains removes the magnesium-rich bran and germ, and boiling leaches it into cooking water.19Food Reviews International. Magnesium Constraints and Losses Across the Soil – Crop – Food Continuum: Implications for Food Processing, Bioavailability, and Human Health

Other everyday drains add up. Heavy drinking increases magnesium loss in urine, and so does poorly controlled diabetes. Long bouts of diarrhea or vomiting deplete it. Some people also absorb less as they age.

Why a Normal Blood Test Can Miss Low Magnesium

Almost all the body’s magnesium is in bones and cells, with only about 1 percent in blood. Magnesium measured inside cells matched levels in heart tissue, but blood magnesium did not.20PubMed. Noninvasive measurement of tissue magnesium and correlation with cardiac levels There is no routine test for magnesium inside cells.20PubMed. Noninvasive measurement of tissue magnesium and correlation with cardiac levels

The usual test measures total magnesium in the liquid part of blood, which includes magnesium attached to proteins and the free, active portion. Because it counts both, a change in blood proteins can shift the total without changing the active amount. The body also keeps blood levels steady by drawing on stores in bone, so blood can look normal while stores fall. The test is useful when low, but a normal result does not fully exclude a shortage.

Some labs can measure ionized magnesium, the active free form, alongside the usual total level.21PubMed Central. Ionized Magnesium: Interpretation and Interest in Atrial Fibrillation Whether it predicts AFib after surgery better than the standard test is not yet proven.22PubMed Central. Ionized magnesium levels and atrial fibrillation in patients undergoing cardiac surgery – The iMagic Prospective Cohort Study

When reading your result, a typical normal range is about 0.70 to 1.0 mmol/L, or 1.7 to 2.4 mg/dL. Results near the bottom of normal can still be worth discussing, since symptoms and risk factors matter alongside the number. Ask whether potassium and calcium were checked too.

When Magnesium Becomes Too Much

Too much magnesium is rare and usually comes from excess intake of supplements, laxatives or antacids rather than food.23PubMed Central. Magnesium Administration in Chronic Kidney Disease Healthy kidneys filter magnesium from blood and excrete the surplus in urine, which is why food rarely causes a problem. They can increase excretion when intake rises, so the blood level stays within a narrow range. When kidney function falls, this safety valve works less well and extra magnesium accumulates.

Weaker kidneys remove less magnesium, so buildup is most common in older adults and people with kidney disease using magnesium laxatives or antacids.23PubMed Central. Magnesium Administration in Chronic Kidney Disease Symptoms usually appear only above about 1.6 to 2.0 mmol/L.23PubMed Central. Magnesium Administration in Chronic Kidney Disease Serious complications occur above about 3.0 mmol/L.24PubMed Central. Oral Magnesium Supplementation in Chronic Kidney Disease Stages 3 and 4: Efficacy, Safety, and Effect on Serum Calcification Propensity—A Prospective Randomized Double-Blinded Placebo-Controlled Clinical Trial

Signs of overload include nausea, flushing, dizziness, drowsiness, confusion, weak muscles, low blood pressure and slow heartbeat.23PubMed Central. Magnesium Administration in Chronic Kidney Disease Some kidney specialists advise against more magnesium once levels exceed 1.2 mmol/L.23PubMed Central. Magnesium Administration in Chronic Kidney Disease Still, in one trial, supervised magnesium pills were safe for 8 weeks even with kidney filtering numbers (eGFR, shown on lab reports) as low as 15.24PubMed Central. Oral Magnesium Supplementation in Chronic Kidney Disease Stages 3 and 4: Efficacy, Safety, and Effect on Serum Calcification Propensity—A Prospective Randomized Double-Blinded Placebo-Controlled Clinical Trial

For safe use of supplements, check with a doctor first if you have kidney disease. Count magnesium in laxatives and antacids toward your total. Loose stools are often the first sign of taking too much by mouth.

Pregnancy is a special case. In pregnant women given magnesium drips for high blood pressure, arrhythmia risk was higher afterward.25Journal of the American Heart Association. Increased Cardiac Arrhythmia After Pregnancy‐Induced Hypertension: A South Korean Nationwide Database Study Anyone who received magnesium in pregnancy and later notices palpitations should mention it.

Questions to Ask Your Doctor

Ask for magnesium and potassium tests if you have AFib, palpitations, or take water pills or acid reflux pills. If your level is low, ask whether food, pills or a medicine change is the best fix. Before heart surgery, ask whether magnesium will be used to lower AFib risk.

Bring a list of every medicine and supplement, including over-the-counter reflux and laxative products. Ask whether a magnesium level has ever been checked and, if so, what it was.

Magnesium belongs inside the bigger AFib picture. Blood thinners and rate or rhythm control remain the core treatments, and weight, alcohol, sleep apnea and blood pressure have larger effects. Magnesium is a supporting piece that matters most when it is low.

Some symptoms need urgent care. Chest pain, fainting or severe breathlessness with a racing heart need emergency care. Sudden weakness, face drooping or slurred speech can signal a stroke from AFib. A new irregular heartbeat should be checked with an ECG.