Hypomagnesemia (Low Magnesium): Heart Palpitations
A palpitation is the unsettling moment when you suddenly become aware of your own heartbeat — a thud, a flutter, a skipped beat, or a run of rapid pounding that you feel in your chest, throat, or neck. When magnesium runs low, one of the most common and most frightening things people notice is exactly this: extra beats that feel like the heart “flips” or “stumbles,” often when lying down at night. Magnesium is a quiet stabilizer of the heart's electrical system, and when it is depleted the heart becomes electrically irritable — quicker to fire off the early, out-of-sequence beats that we feel as palpitations, and in serious cases more prone to dangerous rhythms. This page explains why low magnesium specifically makes the heart skip and race, when palpitations are harmless versus when they are an emergency, and how the problem is confirmed and corrected.
Table of Contents
- What Magnesium-Related Palpitations Feel Like
- The Mechanism: Magnesium and the Heart's Electrical Calm
- Honest Truth: Palpitations Have Many Causes
- Clues That Point to Low Magnesium
- Common Situations That Deplete Magnesium
- Getting Tested
- Correcting Low Magnesium Safely
- When to Seek Care / Red Flags
- Key Research Papers
- Connections
- Featured Videos
What Magnesium-Related Palpitations Feel Like
Palpitations are a sensation, not a diagnosis, and the words people reach for are remarkably consistent. The most common descriptions tied to low magnesium are:
- A skipped or “missed” beat — the heart seems to pause, then deliver a single forceful thump. What you usually feel is not the skip itself but the strong beat that follows the brief pause, as the chamber has had a moment longer to fill. These are typically extra beats (ectopic beats) firing out of turn.
- A flutter or “flip-flop” — a brief, quivering or tumbling feeling in the chest, as if the heart turned over.
- A pounding or racing run — a short burst of fast, hard beats that may start and stop abruptly, sometimes with a few seconds of light-headedness.
- Most noticeable at rest — a hallmark of benign extra beats is that people feel them most when lying in bed, sitting quietly, or just drifting off to sleep, and they often fade once you get up and move. (Palpitations that appear only with exertion are a different and more concerning pattern — see red flags.)
The two kinds of extra beats behind most of these sensations are premature atrial contractions (PACs), which arise in the heart's upper chambers, and premature ventricular contractions (PVCs), which arise in the lower chambers. Both are extremely common, both can occur in completely healthy hearts, and both become more frequent when magnesium is low. An occasional skipped beat that comes and goes is, for most people, a nuisance rather than a danger — but because the sensation overlaps with that of serious arrhythmias, it is always worth understanding what is driving it.
The Mechanism: Magnesium and the Heart's Electrical Calm
Every heartbeat is an electrical event. A heart muscle cell charges up (depolarizes) to fire a beat, then carefully resets (repolarizes) to a stable, negatively charged resting state before the next beat. The smoothness of that reset — and the cell's willingness to wait its turn rather than firing early — is what keeps the rhythm regular. Magnesium sits at the center of this calm in three connected ways.
It powers the pumps that reset each beat. The cell restores its resting charge largely through the Na⁺/K⁺-ATPase pump, which trades sodium out for potassium in, and through magnesium-dependent potassium channels. That pump runs on ATP — and ATP only works as the complex Mg-ATP. Magnesium is, in effect, the partner that lets the cell's energy currency do its job. When magnesium is scarce, the pumps falter, the reset is sluggish and incomplete, and a cell that has not fully reset is a cell that is quicker to misfire.
It guards potassium inside the cell. Magnesium is required for the kidney and the cells to hold on to potassium. When magnesium is low, potassium leaks away and is wasted in the urine, and the low potassium that results is frequently refractory — it simply will not come up — until the magnesium is replaced first. This is a well-documented mechanism: magnesium deficiency relieves the normal block on a potassium channel (ROMK), so potassium pours out and the body cannot retain it. Because potassium is itself central to a steady heartbeat, a magnesium problem often shows up through a potassium problem, and the two derangements together make the heart far more irritable than either alone.
It steadies calcium handling and slows the “trigger.” Magnesium behaves like the body's natural calcium-channel blocker, restraining the inward flow of calcium that drives contraction and excitability. When magnesium is depleted, calcium handling becomes jittery, and heart cells are prone to small, premature voltage oscillations during the reset phase — called early and delayed afterdepolarizations. These tiny extra blips can reach the threshold to fire a whole extra beat. That is the cellular event you feel as a skip, and at the extreme it is the same mechanism that can launch the dangerous rhythm torsades de pointes.
An analogy. Picture each heart cell as a metronome that must swing fully back to center before the next tick. Magnesium is the steady hand that lets it settle — it keeps the pendulum's reset smooth and resists little nudges that would make it tick early. When magnesium is low, the reset is shaky and the slightest nudge sends an extra tick in between the beats. The metronome hasn't broken; it has lost its damping. Restore magnesium and the swing settles back into an even, predictable rhythm — which is exactly why intravenous magnesium can quiet certain arrhythmias even when the blood magnesium reading looks “normal,” because most of the body's magnesium lives inside cells where the blood test can't see it.
Honest Truth: Palpitations Have Many Causes
It is important to be straight about this: feeling palpitations does not prove your magnesium is low. Palpitations are one of the most common reasons people see a doctor, and most of the time the heart is structurally normal. Low magnesium is one contributor among many, and often it is not the cause at all. The common alternatives are worth knowing, because chasing magnesium while ignoring one of these is a mistake:
- Stimulants and substances — caffeine (especially energy drinks), nicotine, decongestants, certain asthma inhalers, recreational stimulants, and alcohol (the “holiday heart” pattern of palpitations or atrial fibrillation after a drinking binge).
- Adrenaline states — anxiety, panic attacks, acute stress, and even the awareness that comes with lying quietly at night. Many people feel a normal heartbeat as a palpitation. See anxiety and insomnia, which frequently travels alongside this symptom.
- An overactive thyroid (hyperthyroidism) — a classic and very treatable cause of a fast, pounding heartbeat, often with weight loss, tremor, and heat intolerance. A simple thyroid blood test rules it in or out.
- Anemia and low blood volume — when blood is thin or you are dehydrated, the heart beats faster and harder to compensate.
- Other electrolytes — low potassium and, less often, low calcium both provoke extra beats; because low magnesium drags potassium down with it, these often coexist.
- Genuine arrhythmias and structural heart disease — atrial fibrillation, supraventricular tachycardia, and other true arrhythmias produce palpitations and need their own evaluation.
- Hormonal shifts, fever, and certain medications — pregnancy, perimenopause, and a fever all raise the resting heart rate; a number of prescription drugs list palpitations as a side effect.
The honest bottom line: an occasional skipped beat in an otherwise healthy person is usually benign, but new, frequent, or severe palpitations deserve a proper look — not a bottle of magnesium bought on a hunch. Magnesium becomes a likely player when the clues below line up.
Clues That Point to Low Magnesium
Low magnesium is more likely to be the driver of palpitations when the heartbeat sensation arrives in company — alongside the other classic signs of magnesium depletion, and in a person whose situation makes depletion plausible. Look for this constellation:
- Muscle cramps, twitches, or eyelid flutter alongside the palpitations — magnesium steadies skeletal muscle and heart muscle by the same mechanisms, so the two often show up together. See muscle cramps and twitches.
- A potassium level that won't stay up — if a blood test shows low potassium that keeps relapsing despite supplements, an unaddressed magnesium deficiency is a leading reason, and correcting the magnesium is often what finally fixes both.
- Restless sleep, anxiety, or tension — magnesium depletion tends to raise the body's overall state of arousal; palpitations that cluster with anxiety and poor sleep fit the pattern.
- A plausible cause of depletion — long-term use of a proton-pump inhibitor or a diuretic, heavy alcohol use, poorly controlled diabetes, chronic diarrhea, or a diet low in greens, nuts, and whole grains (see causes).
- Fatigue and headaches rounding out the picture — the broader fingerprint of low magnesium often includes fatigue and headaches.
One palpitation, in isolation, tells you little. But palpitations plus cramps plus a stubbornly low potassium plus a reason to be magnesium-depleted is a pattern that genuinely points toward low magnesium — and one that is easy and inexpensive to test.
Common Situations That Deplete Magnesium
The body holds most of its magnesium in bone and inside cells, and it works hard to keep the blood level steady — which is why depletion can build quietly for a long time. A handful of situations account for most clinically meaningful cases:
- Diuretics (“water pills”) — loop and thiazide diuretics make the kidneys excrete magnesium along with potassium. They are a leading cause of combined magnesium-and-potassium depletion, and a common reason for new palpitations in someone treated for blood pressure or heart failure.
- Proton-pump inhibitors (PPIs) — long-term use of acid-suppressing drugs such as omeprazole can lower magnesium absorption from the gut; the effect is well enough recognized that drug regulators have warned about it. Palpitations and cramps in a long-term PPI user are worth connecting to this.
- Alcohol use — alcohol increases magnesium loss in the urine and often accompanies poor intake; magnesium depletion is common in heavy drinkers and contributes to the irregular beats of “holiday heart.”
- Poorly controlled diabetes — high blood sugar drives magnesium out through the kidneys, so people with diabetes are frequently depleted.
- Diarrhea and gut disorders — magnesium is absorbed in the gut, so chronic diarrhea, inflammatory bowel disease, or major bowel surgery can drain it.
- Low dietary intake — a diet light on the foods that actually carry magnesium — leafy greens, pumpkin seeds, almonds, legumes, whole grains, and dark chocolate — leaves stores chronically marginal, which surveys suggest is common in Western populations.
Knowing which situation is at work matters, because the durable fix differs: changing a diuretic, reviewing a long-term PPI, controlling blood sugar, or treating the bowel problem does more than any supplement on its own.
Getting Tested
Confirming low magnesium is inexpensive, but it carries one important catch. A serum (blood) magnesium level can be ordered as part of a workup — and notably, magnesium is not included on a standard Comprehensive Metabolic Panel (CMP), so it has to be requested specifically. The CMP is still worth doing, because it reports potassium, calcium, kidney function, and glucose, all of which bear on palpitations and help find the underlying cause.
The catch is this: a normal blood magnesium does not rule out a meaningful deficiency. Less than one percent of the body's magnesium circulates in the blood; the rest is locked in bone and inside cells. Someone can be genuinely depleted at the tissue level while the blood reading still looks normal. Because of that, clinicians weigh the whole picture — the symptoms, the situation, and especially a low or hard-to-correct potassium, which is one of the most reliable external signs that magnesium is low — rather than relying on the number alone.
For the palpitations themselves, the central test is an electrocardiogram (ECG), which records the heart's rhythm. Because extra beats come and go, a brief in-office ECG often misses them, so a doctor may fit a portable Holter monitor (24–48 hours) or a longer-term patch or event recorder to catch the rhythm at the moment a palpitation is felt. That recording is what distinguishes harmless extra beats from a true arrhythmia such as atrial fibrillation. A thyroid blood test and a check for anemia are commonly added, since both are frequent, treatable causes.
Correcting Low Magnesium Safely
How magnesium is replaced depends on how low it is and how the heart is behaving. The guiding principle is to match the pace to the danger — food and oral supplements for everyday depletion, urgent intravenous magnesium for a dangerous rhythm under monitoring.
- Food first, for everyday depletion. When magnesium is only modestly low and the heart is otherwise stable, magnesium-rich whole foods are the foundation: leafy greens such as spinach, pumpkin seeds, almonds, lentils and other legumes, whole grains, avocado, and dark chocolate. Whole-food magnesium comes packaged with potassium and other nutrients and carries essentially no risk of overshoot.
- Oral magnesium supplements. When diet isn't enough or a cause keeps draining magnesium, oral supplements help. Well-absorbed organic forms such as magnesium glycinate or citrate are gentler on the gut than magnesium oxide, which is poorly absorbed and tends to cause loose stools (its main “side effect” is a laxative one). The practical guide to rebuilding stores is on the Magnesium Replenishment page.
- Replace potassium alongside it. Because the two minerals are linked, magnesium often will not fix an irritable heart until potassium is restored too — and, conversely, low potassium frequently will not correct until the magnesium is addressed. Clinicians routinely check and replace both together.
- Intravenous (IV) magnesium — reserved for a hospital setting, for dangerous arrhythmias (it is a first-line treatment for the rhythm torsades de pointes, given even when the blood level reads normal), for severe symptomatic deficiency, or for anyone who cannot take it by mouth. IV magnesium is given at a controlled rate with heart-rhythm monitoring.
- Fix the cause. Reviewing a diuretic or a long-term PPI, controlling diabetes, or addressing alcohol or a gut problem is what makes the correction last; replacing magnesium without it only buys time.
One caution that cuts the other way: people with reduced kidney function clear magnesium poorly and can build up dangerously high levels if they take supplements without guidance — so magnesium replacement is individualized, not one-size-fits-all.
When to Seek Care / Red Flags
An occasional skipped beat that comes and goes in an otherwise well person is usually benign and can be raised at a routine appointment. But certain features mean get medical help right away — by emergency services, not a routine visit:
- Palpitations with chest pain or pressure, or pain spreading to the arm, neck, or jaw.
- Palpitations with fainting or near-fainting — passing out, or feeling you are about to, during a racing or irregular beat is a serious warning sign.
- Palpitations with breathlessness, severe dizziness, or sudden weakness.
- A sustained, fast, regular or irregular racing that does not stop on its own after a few minutes — especially a new irregularly irregular beat.
- Palpitations that appear with exertion rather than at rest — the reverse of the benign pattern, and more likely to signal a true arrhythmia.
- Known heart disease, a weakened heart muscle, or a family history of sudden cardiac death — palpitations in this setting are taken more seriously, because the same depletion that triggers extra beats can, rarely, set off life-threatening rhythms.
The pattern to fear is palpitations combined with fainting, chest pain, or breathlessness, because at that point the rhythm itself may be compromising blood flow. When in doubt, be seen — an ECG and a single blood panel can quickly tell a harmless skipped beat from something that needs urgent treatment.
Key Research Papers
- DiNicolantonio JJ, Liu J, O'Keefe JH (2018). Magnesium for the prevention and treatment of cardiovascular disease. Open Heart;5(2):e000775. — DOI: 10.1136/openhrt-2018-000775
- DiNicolantonio JJ, O'Keefe JH, Wilson W (2018). Subclinical magnesium deficiency: a principal driver of cardiovascular disease and a public health crisis. Open Heart;5(1):e000668. — DOI: 10.1136/openhrt-2017-000668
- Del Gobbo LC, Imamura F, Wu JHY, et al. (2013). Circulating and dietary magnesium and risk of cardiovascular disease: a systematic review and meta-analysis of prospective studies. American Journal of Clinical Nutrition;98(1):160-173. — DOI: 10.3945/ajcn.112.053132
- Peacock JM, Ohira T, Post W, et al. (2010). Serum magnesium and risk of sudden cardiac death in the Atherosclerosis Risk in Communities (ARIC) Study. American Heart Journal;160(3):464-470. — DOI: 10.1016/j.ahj.2010.06.012
- Markovits N, Kurnik D, Halkin H, et al. (2016). Database evaluation of the association between serum magnesium levels and the risk of incident atrial fibrillation. International Journal of Cardiology;205:142-146. — DOI: 10.1016/j.ijcard.2016.02.027
- Huang CL, Kuo E (2007). Mechanism of Hypokalemia in Magnesium Deficiency. Journal of the American Society of Nephrology;18(10):2649-2652. — DOI: 10.1681/ASN.2007070792
- Sueta CA, Clarke SW, Dunlap SH, et al. (1994). Effect of acute magnesium administration on the frequency of ventricular arrhythmia in patients with heart failure. Circulation;89(2):660-666. — DOI: 10.1161/circ.90.5.7955222
- Severino P, Netti L, Mariani MV, et al. (2024). The Role of Dietary Magnesium in Cardiovascular Disease. Nutrients;16(23):4223. — DOI: 10.3390/nu16234223
- Gennari FJ (1998). Hypokalemia. New England Journal of Medicine;339(7):451-458. — DOI: 10.1056/NEJM199808133390707
- Palmer BF (2015). Regulation of Potassium Homeostasis. Clinical Journal of the American Society of Nephrology;10(6):1050-1060. — DOI: 10.2215/CJN.08580813
- Hindricks G, Potpara T, Dagres N, et al. (2021). 2020 ESC Guidelines for the diagnosis and management of atrial fibrillation. European Heart Journal;42(5):373-498. — DOI: 10.1093/eurheartj/ehaa612
- Al-Khatib SM, Stevenson WG, Ackerman MJ, et al. (2018). 2017 AHA/ACC/HRS Guideline for Management of Patients With Ventricular Arrhythmias and the Prevention of Sudden Cardiac Death. Circulation;138(13):e272-e391. — DOI: 10.1161/CIR.0000000000000549
- Tzivoni D, Banai S, Schuger C, et al. Treatment of torsade de pointes with intravenous magnesium sulfate. — PubMed
PubMed Topic Searches
- PubMed — Hypomagnesemia, arrhythmia, and palpitations
- PubMed — Magnesium and premature ventricular contractions
- PubMed — Magnesium deficiency and refractory hypokalemia
- PubMed — Serum magnesium and atrial fibrillation risk
- PubMed — Proton-pump inhibitors and hypomagnesemia
Connections
- Hypomagnesemia Symptom Hub
- Magnesium Deficiency and Muscle Cramps
- Magnesium Deficiency, Anxiety & Insomnia
- Magnesium Deficiency, Fatigue & Headaches
- Magnesium Overview
- Magnesium Replenishment
- Potassium
- Calcium
- Arrhythmia
- Atrial Fibrillation
- Heart Palpitations
- Comprehensive Metabolic Panel
- Spinach
- Pumpkin Seeds
- Almonds
- Dark Chocolate