A fluttering, pounding or skipping heartbeat is unsettling, and magnesium is the supplement people reach for first. The logic is not made up: magnesium really is essential for the heart's electrical system, a genuine deficiency really can provoke extra beats, and hospitals really do use magnesium for certain dangerous rhythms. The question this article answers is narrower and more useful: does swallowing a magnesium capsule actually help palpitations, and if so, for whom?
The honest answer has two halves. If you are genuinely low in magnesium, correcting that is sound and can settle things down. If your magnesium is already normal, the evidence that an extra supplement relieves palpitations is thin, and the dramatic magnesium-and-rhythm results you may have read about come from grams of magnesium given into a vein in a hospital, which is a different thing entirely. Here is what the research shows, what it does not, and how to tell which situation you are in.
The short version
- Most palpitations are benign, but not all. Fainting, chest pain, breathlessness, palpitations during exertion, a sustained very fast beat, or known heart disease are reasons to see a doctor rather than reach for a supplement.
- A real magnesium deficiency can cause extra beats. Correcting it is reasonable, largely because magnesium lets the body hold on to potassium. The people most likely to be low take acid-reducing drugs or diuretics, drink heavily, have poorly controlled diabetes, or are older.
- In people who are not low, the benefit is weak. The largest, best-blinded trial trimmed the number of extra beats on a monitor but did not make patients feel better. Only one small trial used a symptom score and found relief.
- The hospital evidence does not transfer. Intravenous magnesium helps in emergencies such as torsades de pointes (a life-threatening heart rhythm) and fast atrial fibrillation, but that is grams into a vein, often working even when magnesium is normal. It says little about a capsule at home.
- Food first, and respect the limit. The upper limit for supplemental magnesium is 350 mg a day, set because more causes diarrhea. Too much magnesium can itself disturb the heart's rhythm.
- Do not take magnesium supplements if your kidneys are impaired without medical advice, and be careful if you take heart or blood-pressure drugs.
What palpitations are, and when to worry
Palpitations are the sensation of your own heartbeat: a racing or fluttering feeling, a pounding in the chest, a skipped or extra beat, or a thump in the neck. They are common and, as a clinical review puts it, carry a low mortality rate, though frequent episodes can wear on quality of life. The most common causes are benign. Everyday triggers include caffeine from coffee, energy drinks and pre-workout, alcohol, nicotine, decongestants such as pseudoephedrine, stress, anxiety and panic, dehydration, exercise, fever and hormonal shifts. The classic harmless palpitation is a premature beat, an early extra beat from the upper chambers (a premature atrial contraction, or PAC) or the lower chambers (a premature ventricular contraction, or PVC), felt as a skip followed by a thump.
Some causes are not benign and magnesium cannot fix them. An overactive thyroid is a leading mimic of palpitations and needs a thyroid blood test, not a mineral. Anemia, low blood sugar, and heart conditions such as sustained supraventricular tachycardia, atrial fibrillation or ventricular arrhythmias all cause palpitations and all need a diagnosis. The practical point is that palpitations are a symptom, not a disease, and the first job is to find the cause.
Your palpitations come with fainting or near-fainting, chest pain or pressure, or shortness of breath. They start during or right after exertion. They are sustained, very fast, or will not stop. You have known heart disease (a prior heart attack, heart failure, cardiomyopathy or a valve problem) or a family history of sudden death or an inherited heart-rhythm condition. You take digoxin or a diuretic. In any of these cases the question is what rhythm or condition is causing the palpitations, which is a medical evaluation, usually an ECG plus a thyroid test and a blood count, not a supplement decision.
Why magnesium gets suggested
Magnesium is the second most abundant mineral inside the body's cells, and it is a required partner for the machinery that keeps heart cells electrically stable. It is the cofactor for the sodium-potassium pump that maintains the charge across every heart-cell membrane, it is needed for ATP, the cell's energy currency, to work, and it acts as a natural brake on calcium entering cells. All of this is real physiology, and it is why a serious magnesium deficiency shows up on the list of things that can cause an abnormal heart rhythm.
The most important link, though, runs through potassium. When magnesium inside cells runs low, the kidney starts wasting potassium, and crucially the resulting low potassium is often refractory, meaning it will not correct until the magnesium is fixed first. Potassium is the main determinant of a heart cell's resting electrical state, so a cell that cannot hold potassium is more prone to firing off extra beats. Much of magnesium's reputation as a rhythm mineral is really this potassium story.
Here is the essential caveat, and the rest of this article turns on it. Every one of these is a mechanism, a reason magnesium could matter. A mechanism is not proof that taking extra magnesium helps a person whose level is already normal. Plausible and proven are different claims, and magnesium is a good example of a gap between the two.
What the evidence actually shows
The table below sorts the claims from the ones with some support to the ones that are really hospital medicine. The sections after it walk through each.
| The claim | What was tested | Best evidence | Our read |
|---|---|---|---|
| Correcting a genuine magnesium deficiency | Restoring magnesium in people who are actually low (long-term proton pump inhibitor users, people on diuretics, heavy drinkers) | In symptomatic mitral valve prolapse patients who were low in magnesium, a crossover trial roughly halved the symptom count, palpitations included | Reasonable when you are genuinely low |
| Benign palpitations in someone who is not low | Oral magnesium in people with a fluttering or skipping heartbeat and no heart disease | One small single-center trial of magnesium pidolate reported symptom relief; the largest and best-blinded trial cut the count of extra beats but did not change how patients felt | Weak, not established |
| Extra beats (PVCs and PACs) on a monitor | Oral magnesium, usually with potassium | MAGICA (232 people) found a modest drop in the number of ventricular extra beats and no change in symptoms; a pilot trial found no change in atrial extra-beat burden | A small effect on the monitor, not on symptoms |
| Preventing atrial fibrillation in everyday life | Oral magnesium in the general outpatient setting | No adequately powered trial found; low blood magnesium is linked to more atrial fibrillation in population studies, which is an association, not proof a supplement prevents it | Not established |
| Preventing atrial fibrillation after heart surgery | Oral or intravenous magnesium given around cardiac surgery | A 2025 meta-analysis found fewer cases of new atrial fibrillation; one oral trial before bypass surgery cut it from 22 to 10 percent | Real, but a hospital surgical setting |
| Slowing a fast heart rate in acute atrial fibrillation | Intravenous magnesium added to standard drugs in the emergency department | Intravenous magnesium improves rate control; whether it converts the rhythm back to normal is inconsistent across analyses | Hospital intravenous use only |
| Dangerous rhythms such as torsades de pointes | Intravenous magnesium in a monitored hospital setting | Intravenous magnesium is a first-line emergency treatment, and it works even when blood magnesium is normal | An emergency hospital drug, not a supplement |
These summaries describe research, much of it in hospital patients or selected groups, and are not claims about what a supplement does for a healthy person.
The oral supplement trials
This is the evidence that actually bears on a person considering a magnesium capsule, and there is less of it than the confident marketing suggests. It is small, mostly old, and weighted toward counting beats on a monitor rather than asking how the patient feels.
The biggest trial: fewer beats, but no better. The largest and best-designed study is MAGICA, published in 1997, which randomized 232 people with frequent ventricular extra beats (more than 720 a day) to a daily oral magnesium-and-potassium supplement or placebo for three weeks. Magnesium plus potassium cut the number of extra beats by a median of 17.4 percent, about 2.4 times the drop on placebo. That is a real but modest effect on the count. The catch is in the same results: there was no effect on repetitive or upper-chamber arrhythmias, and, in the authors' own words, no effect on the "clinical symptoms of the patients." Fewer beats on the monitor did not translate into feeling better, which for a palpitation sufferer is the outcome that matters.
The one symptom trial in people who were not low. The one trial in people whose magnesium was not already low that used how people felt as an endpoint and found a benefit is a small single-center trial from Sao Paulo, published in 2012. It gave 60 people who had frequent extra beats and no structural heart disease either magnesium pidolate, 260 mg of elemental magnesium a day, or placebo for 30 days. The magnesium group did better on both counts: most had their extra-beat density fall by more than 70 percent, and symptom improvement was far more common than on placebo. It is the most directly relevant positive result, people with benign palpitations feeling better on a real dose of magnesium, but it is one small trial at a single center, and a 15-month follow-up by the same group found that a sizable minority relapsed, so the effect is not a cure. A separate small pilot trial of a magnesium-potassium-B-vitamin-CoQ10 combination product found no significant difference in extra beats.
When magnesium was low to begin with. The cleanest positive signal comes from correcting a deficiency. In a study of people with heavily symptomatic mitral valve prolapse, a common and usually benign condition, 60 percent turned out to have low blood magnesium. When the low-magnesium patients were given magnesium or placebo in a double-blind crossover, their average symptom count roughly halved, with significant reductions specifically in palpitations, chest pain and anxiety. The benefit was tied to fixing a shortfall, in a selected low-magnesium group, which is exactly the pattern the rest of the evidence supports.
Atrial fibrillation. For the most common serious arrhythmia, oral magnesium has barely been tested outside one narrow setting. A 2022 trial gave 200 people magnesium tablets or placebo before bypass surgery and cut post-surgery atrial fibrillation from 22 to 10 percent, a genuine oral result but one about a surgical complication, not everyday life. A pilot study in the general population raised blood magnesium with a daily tablet but found no change in the burden of atrial extra beats, and it was explicitly a feasibility study for a larger trial that, as far as we can find, has not reported. There is no adequately powered trial of oral magnesium to keep people in a normal rhythm or lower atrial fibrillation in daily life.
The hospital magnesium evidence, and why it does not transfer
Search for magnesium and heart rhythm and you will find striking results. Almost all of them share a feature that is easy to miss and changes everything: they are grams of magnesium pushed into a vein, in a monitored hospital, in someone who is already in or about to enter an abnormal rhythm. An intravenous bolus is 2 grams of magnesium sulfate and up, delivered in minutes, briefly driving the blood level far above normal. An oral supplement is a few hundred milligrams a day, of which only about a third is absorbed over hours, while the kidney holds the blood level nearly flat. Oral dosing simply cannot reproduce the rapid, high blood concentration the intravenous effect depends on.
Fast atrial fibrillation in the emergency department. Added to standard rate-control drugs, intravenous magnesium helps slow a racing heart in acute atrial fibrillation. In one randomized trial it was more likely than placebo to bring the rate below 100 beats a minute, and meta-analyses agree on better rate control. Whether it actually converts the rhythm back to normal is less certain: one meta-analysis found a benefit, another found no significant effect on conversion. In US guidelines, adding intravenous magnesium to standard rate control in this setting is considered reasonable.
Torsades de pointes. This is the clearest illustration of why the route matters. Torsades is a life-threatening rhythm linked to a prolonged QT interval (a delay in the heart's electrical recovery, seen on an ECG), and intravenous magnesium is the first-line emergency treatment. In the foundational case series, a single 2-gram bolus stopped it within minutes in most patients. The telling detail: blood magnesium was normal in every patient measured, and magnesium did not help a similar rhythm when the QT was normal. The effect is an acute drug action on the heart's membranes, not the correction of a deficiency, which is precisely why it cannot be read across to taking magnesium because you might be a little low.
After heart surgery, and a digoxin note. Atrial fibrillation is common after cardiac surgery, and a 2025 meta-analysis of 24 trials found that magnesium given around surgery, mostly intravenously but including the oral trial above, reduced it, with the more reliable trials showing roughly a 30 percent relative reduction. That is a real effect, but it belongs to the acute, electrolyte-shifting setting of open-heart surgery, not to daily palpitations. Magnesium is also a recognized hospital adjunct for the arrhythmias of digoxin toxicity, typically in people depleted by years of diuretics, which again is a medical situation, not a reason to self-dose.
The cautionary tale. If you need a reason to be humble about even the intravenous evidence, it is the magnesium-and-heart-attack story. A promising mid-sized trial in 1992 reported that intravenous magnesium cut deaths after a heart attack. Then the huge ISIS-4 trial, in more than 58,000 patients, found no benefit and a hint of harm, and the later MAGIC trial, built specifically to retest it in high-risk patients, confirmed no benefit at all. An attractive magnesium signal collapsed under large, rigorous testing. That is the backdrop against which any confident claim that magnesium is antiarrhythmic should be read.
When low magnesium is the real cause
The thread that ties the credible evidence together is deficiency. Where magnesium helps palpitations, it is usually because the person was short to begin with. So the useful question is not "will magnesium help my palpitations" but "am I actually low, and why."
Who runs low. Some causes are well established. Long-term use of proton pump inhibitors, the acid-reducing drugs such as omeprazole and esomeprazole, can lower magnesium; the US Food and Drug Administration warned about this in 2011, noting it tends to appear after a year or more of use, that it can cause an irregular heartbeat, and that in about a quarter of cases a supplement did not fix it and the drug had to be stopped. Loop and thiazide diuretics make the kidney waste magnesium. Heavy alcohol use, poorly controlled diabetes, and ongoing digestive losses from conditions such as Crohn's disease or celiac disease all deplete it, and older adults absorb less and lose more. If one of these describes you and you have palpitations, a magnesium shortfall is a plausible contributor worth checking with your clinician.
What the population studies show, and their limits. Large community studies back up the deficiency angle, but in a specific way. In the Framingham Offspring study, people in the lowest quarter of blood magnesium were about 50 percent more likely to develop atrial fibrillation, though the result was borderline. In the larger ARIC study, the risk was concentrated at the low end: the lowest group had a modestly higher rate, while higher levels were not progressively more protective, and dietary magnesium intake showed no association at all. Separate cohorts have linked low blood magnesium to sudden cardiac death. The pattern across all of them is consistent: low magnesium is a risk marker, but more magnesium once you are adequate is not a benefit, and these are associations that cannot prove a supplement prevents anything.
The measurement problem travels with those numbers. All of that rests on blood magnesium, which is an imperfect gauge. Less than 1 percent of the body's magnesium is in the blood; most is in bone and inside cells, and the body defends the blood level by drawing on those stores even as they fall. On top of that, the standard normal range was derived decades ago from how common a value was in a survey population, not from what level protects the heart. So a normal blood magnesium is reassuring but does not fully rule out a tissue shortfall, and there is no cheap, routine test of total-body magnesium. This is exactly why the deficiency story is hard to pin down in any one person, and why correcting a plausible shortfall is reasonable while megadosing on a hunch is not.
Dose, forms and the upper limit
Food first. The daily target is 400 to 420 mg for men and 310 to 320 mg for women, and by national survey data roughly half of Americans get less than they should from food. Magnesium is abundant in leafy greens, nuts, seeds, legumes, whole grains and dark chocolate, and food magnesium carries no upper limit, because healthy kidneys simply excrete any excess. For most people, closing a dietary gap is the first and safest move.
The supplemental upper limit. If you add a supplement, the National Institutes of Health sets a Tolerable Upper Intake Level of 350 mg a day for supplemental magnesium, on top of whatever you get from food. It is worth understanding why that number is lower than the daily requirement: the requirement counts magnesium from all sources, while the upper limit counts only supplements and medications, and the limit exists because supplemental magnesium draws water into the gut and causes diarrhea, not because of any heart risk at that level. The trials that reported any benefit for extra beats used modest doses of elemental magnesium, up to 260 mg a day in the symptom trial, within this range. More is not better.
Forms. Supplement labels list the elemental magnesium, not the weight of the whole compound, so a 500 mg capsule of magnesium oxide does not supply 500 mg of magnesium. Oxide is cheap and magnesium-dense but poorly absorbed and the most likely to cause diarrhea; a closely related compound, magnesium hydroxide, is the active ingredient in milk of magnesia. In a human comparison, the organic forms citrate and an amino-acid chelate were absorbed better than oxide, with magnesium oxide performing no better than placebo on absorption markers. The forms marketed specifically for the heart, magnesium taurate and magnesium orotate, are a different matter: as far as we can find, neither has a trial testing it for palpitations or irregular heartbeat. Orotate's heart reputation rests on a small survival trial in severe heart failure, a very different population. For closing a dietary shortfall, a well-absorbed, well-tolerated form such as citrate or glycinate at an adequate dose matters more than the exact salt. Our guide to which magnesium for which goal and our best magnesium supplements roundup go deeper on choosing one.
Magnesium-containing laxatives and antacids count toward your total. Milk of magnesia provides about 500 mg of elemental magnesium per tablespoon, and some antacids add more. That is usually harmless in a person with healthy kidneys, because most of it is not absorbed and the rest is excreted, but it matters if your kidney function is reduced, where magnesium can accumulate. Add up every source, not just the bottle labeled magnesium.
Safety, kidney disease and interactions
The kidney is the whole safety story. In a healthy person the kidneys clear any excess magnesium, which is why food magnesium is not capped and ordinary supplement doses are well tolerated apart from loose stools. In someone with reduced kidney function or kidney failure, that safety valve is weakened, magnesium can build up, and high magnesium, called hypermagnesemia, causes exactly what a worried reader is trying to avoid: low blood pressure, a slow or irregular heartbeat, and, in the extreme, cardiac arrest. The irony is worth sitting with. At normal levels magnesium supports the rhythm; at toxic levels it disturbs it. More is not better for the heart. Anyone with chronic kidney disease or impaired kidney function should not take magnesium supplements without medical advice.
Drug interactions that matter for this audience. Many people with palpitations are already on heart or blood-pressure drugs, which is where the nuance lives. Loop and thiazide diuretics lower magnesium, so they are a reason someone might be low. But potassium-sparing diuretics such as spironolactone and amiloride, and ACE inhibitors and ARBs (two common classes of blood-pressure drug), do the opposite and raise magnesium, so adding a supplement on top can push it too high, especially if the kidneys are not at full strength. Magnesium can also add to the blood-pressure-lowering effect of these drugs. Separately, magnesium binds certain medicines in the gut and blocks their absorption: take it at least two hours apart from oral bisphosphonates for osteoporosis, and two hours before or four to six hours after tetracycline and quinolone antibiotics. Our guide to supplement and drug interactions covers the rest. The safe move for anyone on cardiac or blood-pressure medication is to let the prescriber manage electrolytes, not to self-dose.
A note on atrial fibrillation and fish oil. If you are reading about palpitations because you have or worry about atrial fibrillation, it is worth knowing that another popular heart supplement, high-dose fish oil, has been linked to more atrial fibrillation in trials, the opposite of what people expect, as our review of fish oil and atrial fibrillation explains. It is a reminder that supplements marketed for the heart deserve the same scrutiny as anything else.
Frequently asked questions
Can magnesium stop heart palpitations?
Sometimes, if low magnesium is the cause. If you are genuinely depleted, from long-term acid-reducer use, diuretics, heavy drinking or poorly controlled diabetes, correcting the shortfall can settle extra beats, partly because magnesium is needed to hold on to potassium. If your magnesium is already normal, the evidence is weak: the largest, best-blinded trial reduced the number of extra beats on a monitor but did not make people feel better, and there is no large trial showing magnesium relieves palpitations in people who are not low. It is reasonable to make sure you get enough, but magnesium is not a proven treatment for palpitations.
How much magnesium should I take for palpitations?
Food first: the daily target is about 400 to 420 mg for men and 310 to 320 mg for women, and roughly half of Americans fall short. If you add a supplement, the National Institutes of Health sets an upper limit of 350 mg a day from supplements (on top of food), and that limit exists because higher doses cause diarrhea, not because of the heart. The trials that reported any benefit used modest doses of elemental magnesium, up to 260 mg a day in the one trial that measured symptoms. More is not better, and very high intakes can themselves disturb the heart's rhythm. This describes what studies used, not a dose recommendation for you.
Which form of magnesium is best for palpitations?
No form has been shown to beat another for palpitations. Magnesium taurate and magnesium orotate are the ones marketed for the heart, but as far as we can find, neither has a trial testing it for palpitations or irregular heartbeat. What the comparative evidence does show is that magnesium oxide, the cheapest form, is poorly absorbed and the most likely to cause diarrhea, while citrate and other organic forms absorb better. For correcting a shortfall, a well-absorbed, well-tolerated form such as citrate or glycinate at an adequate dose matters more than the exact salt. Our guide to which magnesium for which goal covers the forms.
Can low magnesium cause heart palpitations?
Yes. A real magnesium deficiency can trigger extra beats and, in population studies, tracks with a higher rate of atrial fibrillation. Much of that is actually a potassium story: without enough magnesium, the kidney wastes potassium, and the low potassium is hard to correct until the magnesium is fixed. The people most likely to be low are long-term users of acid-reducing drugs called proton pump inhibitors, people on loop or thiazide diuretics, heavy drinkers, people with poorly controlled diabetes or ongoing diarrhea, and older adults.
Should I get my magnesium level checked?
A blood magnesium test is reasonable, especially if you take a proton pump inhibitor or a diuretic, but it has a real limitation worth knowing. Less than 1 percent of the body's magnesium is in the blood, so a normal blood level does not fully rule out a shortfall in the tissues, and the standard normal range was set decades ago from how common a value was, not from what level protects the heart. A normal result is reassuring but not the whole story, and there is no cheap routine test of total-body magnesium.
How long does magnesium take to work for palpitations?
In the trials that reported a benefit, magnesium was taken daily for several weeks, around 30 days in the symptom trial of people without heart disease. So if a deficiency is the cause and you correct it, expect weeks, not minutes. If palpitations are frequent, severe, or come with other symptoms, that time is better spent getting them evaluated than waiting on a supplement.
Who should not take magnesium for palpitations?
Anyone with reduced kidney function or kidney disease should not take magnesium supplements without medical advice, because the kidneys are what clear excess magnesium, and when they cannot, magnesium builds up and can itself cause a slow or irregular heartbeat, low blood pressure and, in extreme cases, cardiac arrest. Be cautious too if you take heart or blood-pressure drugs: potassium-sparing diuretics and ACE inhibitors or ARBs raise magnesium, so adding a supplement compounds the risk. Keep magnesium at least two hours apart from certain antibiotics and osteoporosis drugs, which it can block.
When should I see a doctor about palpitations?
See a clinician promptly if palpitations come with fainting or near-fainting, chest pain, or shortness of breath, if they start during exertion, if they are sustained and very fast, or if you have known heart disease or a family history of sudden death. Those are signs that the question is what rhythm or condition is behind the palpitations, which needs an evaluation such as an ECG, a thyroid test and a blood count, not a supplement. Most palpitations turn out to be benign, but that is a conclusion to reach with a doctor, not an assumption.
The bottom line
Magnesium is genuinely essential for a steady heartbeat, and a real deficiency can contribute to extra beats and palpitations, mostly by destabilizing potassium. That deficiency is common in long-term users of acid-reducing drugs and diuretics, heavy drinkers, people with poorly controlled diabetes or ongoing digestive losses, and older adults. In that situation, correcting the shortfall is sound. For someone whose magnesium is already normal, the case is much weaker: the best-blinded trial reduced the count of extra beats but not the symptoms, the only symptom-relief trials are one small study and a selected low-magnesium group, and the dramatic results come from intravenous hospital dosing that does not transfer to a capsule. Getting enough magnesium is reasonable and low-risk, food first, supplements up to the 350 mg daily limit that exists for diarrhea, not the heart. But magnesium is not a proven treatment for palpitations. If yours are frequent, severe, or come with fainting, chest pain or breathlessness, or if your kidneys are impaired or you take heart drugs, that is a conversation with a clinician, not a supplement you choose on your own.
