Skip to content
Scinergy

Electrolytes and Heart Health: The Science of Magnesium, Sodium, and Potassium

How electrolytes actually work, why magnesium in particular matters for cardiovascular health, and what the peer reviewed research says about intake, food sources, and blood pressure.

Published July 5, 2026 by Scinergy, roughly 14 minute read.

Electrolyte marketing tends to collapse into two extremes: a pinch of salt in your water bottle solves everything, or a fizzy tablet is a health product because it says "electrolytes" on the label. Neither matches the research. The evidence actually supports something narrower: the sodium-to-potassium ratio in your diet tracks with blood pressure outcomes, magnesium intake sits below recommended levels in roughly half the population, and magnesium has a deeper cardiovascular research base than sodium alone. This article covers the physiology, the studies behind the headlines, and where exercise and food fit in. If you are also tracking the rest of your nutrition, the macro calculator is a reasonable place to see where your intake stands before making changes.

One note before any of the science: this article is educational, not medical advice. If you have kidney disease, a heart condition, or take diuretics or blood pressure medication, talk to your doctor before changing your electrolyte intake or starting any supplement, since several of the interactions described below, particularly with potassium and magnesium, can be genuinely dangerous in those groups.

What electrolytes actually are and why cells need them

An electrolyte is a mineral that carries an electrical charge once dissolved in body fluid. The primary ones are sodium (Na+), potassium (K+), magnesium (Mg2+), calcium (Ca2+), chloride (Cl-), phosphate, and bicarbonate. Dissolved in blood, plasma, and fluid inside and around cells, these charged particles create the electrical gradients that nerves use to fire signals, muscles use to contract, and kidneys use to manage fluid balance, the baseline electrical system behind a resting heart beating in rhythm.

The clearest illustration is the sodium-potassium pump, technically Na+/K+ ATPase, which sits in the membrane of essentially every cell in the body. Using energy from ATP, it continuously moves 3 sodium ions out of the cell for every 2 potassium ions it moves in, maintaining the gradient that sets the cell's resting electrical potential. In heart cells, this gradient allows the cardiac action potential to sweep through and trigger synchronized contraction. When sodium, potassium, or magnesium drift outside their normal range, that electrical timing can become unstable, part of why severe electrolyte imbalances are a recognized cause of cardiac arrhythmia in clinical medicine.

Sodium, potassium, and the ratio that actually predicts blood pressure

Sodium's relationship with blood pressure is one of the most studied, most argued-about questions in nutrition science, because the picture is more nuanced than "salt is bad." The DASH-Sodium trial, led by Sacks and colleagues in the New England Journal of Medicine in 2001, randomized 412 adults to a typical American diet or the DASH diet (rich in fruits, vegetables, and low-fat dairy), each tested at high (3,300 mg), intermediate (2,400 mg), and low (1,500 mg) sodium for 30 days apiece. Reducing sodium lowered blood pressure at every level on both diets, and DASH combined with the lowest sodium level produced an 11.5 mmHg drop in systolic pressure in participants with hypertension versus the high-sodium control diet, similar in size to a single blood pressure medication.

The more contested evidence is the Prospective Urban Rural Epidemiology (PURE) study, led by Mente and colleagues in The Lancet in 2018, which tracked sodium and potassium intake across more than 90,000 adults in 18 countries and found a U-shaped relationship: higher sodium intake was linked to increased cardiovascular events mainly in communities averaging above roughly 5 grams per day, a level common in parts of China but rare in the United States, while very low intake, under about 3 grams per day, was also linked to increased risk. This put PURE at odds with the American Heart Association, which still recommends under 2,300 mg per day. PURE is observational and cannot prove cause and effect the way DASH-Sodium's randomized design can, and its sodium estimates came from a single morning urine sample, a method other researchers consider imprecise at the individual level.

What both camps agree on is potassium. A 2013 meta-analysis by Aburto and colleagues in the BMJ, pooling randomized and observational data, found increased potassium intake reduced systolic blood pressure by an average of 3.49 mmHg and was linked to a 24 percent lower stroke risk, with no adverse effect on blood lipids or kidney function in people with normal renal function. Potassium promotes sodium excretion through the kidney, acting like a mild, built-in diuretic, which is why researchers increasingly frame sodium as a ratio problem. According to CDC data and Harvard's Nutrition Source, the average American man takes in roughly 3,016 mg of sodium daily against only 2,320 to 2,640 mg of potassium, well under half the NIH Adequate Intake of 3,400 mg for men and 2,600 mg for women, largely because processed food dominates sodium intake while potassium-rich whole foods shrink on the average plate.

Magnesium: the electrolyte with the most direct cardiovascular research

If sodium gets most of the public attention, magnesium has the more consistent, underappreciated evidence base for cardiovascular health, and it is the electrolyte most people are actually short on. A widely cited 2018 review by DiNicolantonio, O'Keefe, and Wilson in Open Heart estimates that roughly 50 percent of the US population consumes less magnesium than the Estimated Average Requirement, based on NHANES data, and notes that because less than 1 percent of the body's magnesium circulates in blood, a normal serum reading often masks a real intracellular shortfall, attributed partly to soil mineral depletion, refined flour milling, and declining intake of leafy greens, legumes, and nuts.

The dose-response data is substantial. A 2016 meta-analysis by Fang and colleagues in BMC Medicine, pooling 40 prospective cohort studies with more than 1 million participants, found each 100 mg per day increment in dietary magnesium was associated with a 22 percent lower risk of heart failure and a 7 percent lower risk of stroke. An earlier meta-analysis by Del Gobbo and colleagues in the American Journal of Clinical Nutrition in 2013, covering more than 313,000 people across 16 studies, found each 0.2 mmol/L increase in circulating magnesium was linked to a 30 percent lower risk of total cardiovascular disease, and each 200 mg per day increase in dietary magnesium was linked to a 22 percent lower risk of ischemic heart disease. Both describe correlation, not proof, but the consistency across more than a million person-years of data is hard to dismiss as noise.

Blood pressure is where magnesium has the most direct experimental support. Kass and colleagues' 2012 meta-analysis in the European Journal of Clinical Nutrition pooled 22 randomized trials covering 1,173 participants, supplemental doses from 120 to 973 mg per day, and found an overall reduction of 3 to 4 mmHg systolic and 2 to 3 mmHg diastolic blood pressure, growing larger above roughly 370 mg per day, modest but similar in scale to a moderate sodium reduction. Mechanistically, magnesium is often called nature's calcium channel blocker: it competes with calcium for entry into vascular smooth muscle cells, and when calcium influx is reduced the vessel wall relaxes rather than constricts, the same broad target prescription calcium channel blockers act on, though at a far smaller magnitude from diet.

On arrhythmia specifically, a 2013 analysis by Chiuve and colleagues using Nurses' Health Study data, published in the American Journal of Clinical Nutrition, found women in the highest quartile of plasma magnesium had roughly a 39 percent lower risk of fatal coronary heart disease than the lowest quartile, with a weaker association for sudden cardiac death, tied to magnesium's role in Na+/K+ ATPase activity and intracellular potassium retention, both contributors to abnormal heart rhythm.

Calcium, chloride, phosphate, and bicarbonate: the shorter stories

Calcium triggers the actin-myosin contraction inside heart muscle cells once the electrical signal from the sodium-potassium system arrives. Supplementation is where it gets complicated: a 2010 meta-analysis by Bolland and colleagues in the BMJ, pooling 11 randomized trials and around 12,000 participants, found calcium supplements taken without co-administered vitamin D were associated with a roughly 27 to 31 percent increased risk of heart attack. This has been debated since and does not appear to extend to calcium from food, which multiple reviews describe as neutral to protective. The takeaway is not that calcium is dangerous, since it is essential for bone and cardiac function, but that routinely supplementing high-dose calcium absent a deficiency discussed with a doctor is not supported as cardiovascular-neutral by this data. Chloride travels with sodium in sweat and blood and forms part of stomach acid, rarely needing separate attention since table salt supplies both together. Phosphate is central to how cells generate ATP and is abundant enough in ordinary diets that deficiency is uncommon. Bicarbonate is the blood's primary pH buffer, tightly regulated by the kidneys and lungs.

Where electrolytes matter for exercise, and where they do not

Sweat is not pure water: it carries sodium plus smaller amounts of potassium, calcium, and magnesium. A widely cited 2017 review by Baker in Sports Medicine documents that sweat sodium concentration varies roughly tenfold between individuals, from about 10 to 90 mmol per liter, depending on genetics and fitness level, which is why generic "everyone needs an electrolyte drink" advice does not hold up. For most gym sessions or runs under about 60 minutes in moderate conditions, normal food and water intake over the day replaces what is lost. Past 60 to 90 minutes, especially in heat, cumulative sodium losses can become large enough that plain water alone may not maintain fluid and electrolyte balance, which is where a sports drink or salted food becomes reasonable rather than a marketing upsell.

The flip side is exercise-associated hyponatremia, a dangerous drop in blood sodium caused not by losing too much sodium in sweat but by drinking too much low-sodium fluid relative to what is lost. Almond and colleagues' 2005 analysis of the Boston Marathon, published in the New England Journal of Medicine, found that 13 percent of runners studied finished with some degree of hyponatremia, and the strongest predictor was weight gained during the race, a sign of overdrinking, not low sodium intake; whether runners drank plain water or a sports drink made no difference to risk. The lesson is less about chasing sodium during exercise and more about not overdrinking.

Muscle cramping is another place electrolytes get blamed constantly, and the evidence is more mixed than marketing suggests. An influential 2009 review by Schwellnus in the British Journal of Sports Medicine concluded that support for the electrolyte-depletion hypothesis comes mainly from anecdotal case reports, while four prospective cohort studies found no meaningful difference in serum electrolyte levels or hydration status between athletes who cramped and those who did not. Schwellnus proposed an "altered neuromuscular control" theory instead, tied to fatigue, since cramps localize to specific overworked muscles rather than appearing body-wide. This does not mean electrolytes play zero role, but the once-standard explanation is now considered incomplete. For lifters, most strength sessions do not need a dedicated electrolyte strategy beyond normal meals. Our guide to weekly training volume for muscle gain covers what actually drives results, a bigger factor for most lifters than electrolyte timing.

Food sources: where to actually get these minerals

Magnesium is concentrated in dark leafy greens (spinach, Swiss chard), pumpkin seeds, almonds, cashews, black beans, dark chocolate, avocado, whole grains, and salmon. Potassium is highest in sweet potato, potato with the skin on, bananas, avocado, spinach, beans, salmon, yogurt, and coconut water. Sodium is easy to find, table salt, olives, pickles, and broths all supply it, but food processing hides most of it: bread, deli meat, canned soup, and restaurant meals typically contribute far more than a home salt shaker. Calcium comes primarily from dairy, sardines eaten with the bones, kale, broccoli, tofu set with calcium sulfate, and fortified plant milks. Worth calling out: many of the same plant foods that supply magnesium and potassium, particularly leafy greens, also carry the dietary nitrate compounds covered in our piece on natural vasodilators for workouts, so a diet built around vegetables, legumes, nuts, and seeds tends to support blood vessel function and electrolyte status at once.

Practical intake targets

For magnesium, the RDA from the Institute of Medicine is 400 to 420 mg per day for adult men and 310 to 320 mg per day for adult women, depending on age, according to the NIH Office of Dietary Supplements. A practical way to hit that from food is 3 to 5 servings of leafy greens plus 1 to 2 servings of nuts or seeds most days, since a cup of cooked spinach supplies around 157 mg and an ounce of almonds or pumpkin seeds supplies 80 to 150 mg. For potassium, the NIH Adequate Intake is 3,400 mg per day for men and 2,600 mg for women, best reached through food rather than supplements, which carry a real risk of dangerously high blood potassium (hyperkalemia) in anyone with reduced kidney function and should only be used under medical supervision. For sodium, the American Heart Association recommends staying under 2,300 mg per day, with a lower target of 1,500 mg for people with hypertension, though as the PURE data illustrates, individual targets vary and this is a conversation for a doctor, not a one-size-fits-all rule.

This is also the point to repeat the caution from the start of this article: none of these numbers are a substitute for medical care. If you take a diuretic, an ACE inhibitor, or another blood pressure medication, if you have kidney disease, or if you have a diagnosed heart condition, talk to your doctor before increasing potassium or magnesium intake meaningfully or before starting a supplement, since these medications and conditions change how your body handles these minerals and can turn a normally safe food choice into a risk. Electrolyte intake from a varied, whole-food diet is a reasonable target for most healthy adults to pursue on their own; supplementation and any change to prescribed medication is not. Needs also shift across the lifespan, particularly for women; our article on macros for perimenopause and postmenopause covers why magnesium becomes a bigger priority as estrogen declines, since estrogen influences magnesium retention and bone mineral metabolism.

A worked example: a day of eating that hits these targets

Take an 85 kg lifter aiming to hit both targets from whole food alone. Breakfast: oatmeal (61 mg magnesium, 164 mg potassium per cup cooked), a quarter cup of almonds (95 mg magnesium, 200 mg potassium), and a half cup of berries (60 mg potassium). Lunch: a salmon salad with 2 cups of spinach (48 mg magnesium, 340 mg potassium), a quarter cup of pumpkin seeds (37 mg magnesium, 150 mg potassium), half an avocado (29 mg magnesium, 490 mg potassium), and a 5 ounce salmon fillet (31 mg magnesium, 450 mg potassium). Snack: a banana (32 mg magnesium, 420 mg potassium) and an ounce of dark chocolate, 70 percent cocoa or higher (65 mg magnesium, 200 mg potassium). Dinner: a roasted sweet potato (33 mg magnesium, 540 mg potassium), a 6 ounce chicken breast (30 mg magnesium, 330 mg potassium), and a cup of sauteed Swiss chard (150 mg magnesium, 960 mg potassium).

Total for the day: roughly 611 mg of magnesium and 4,244 mg of potassium, both comfortably above the 420 mg magnesium and 3,400 mg potassium targets for an adult man, without a single powder or pill. Sodium before adding any salt during cooking lands in the 400 to 600 mg range, leaving real room to season food to taste and still land under the 2,300 mg guideline, which is why the food-first approach tends to solve the ratio problem described earlier rather than requiring separate tracking of every mineral. Running your own numbers through the macro calculator is a practical way to see how a day like this fits into your broader calorie and protein targets.

Bottom line

Electrolytes are minerals with distinct, well-mapped roles in nerve signaling, muscle contraction, and cardiac rhythm, and the research treats each differently. Sodium's relationship with cardiovascular risk depends on total intake and the balance with potassium, not sodium in isolation, as the DASH-Sodium and PURE data show from different angles. Magnesium has the more consistent evidence tying low intake to cardiovascular risk, with roughly half of Americans falling short, and a research base spanning blood pressure, heart failure, stroke, and sudden cardiac death that is unusually deep for a single nutrient. Calcium's story diverges by source: food calcium looks fine while high-dose supplements carry a signal worth taking seriously. For most gym training, dedicated electrolyte products matter less than marketing suggests. None of this changes the fact that anyone managing a heart condition, kidney disease, or blood pressure medication should make electrolyte and supplement decisions with their doctor, not from an article like this one.

Keep learning