The seven electrolytes your body relies on are sodium, potassium, chloride, bicarbonate, calcium, phosphate, and magnesium. Each carries an electrical charge when dissolved in body fluids, and together they govern everything from heartbeat rhythm to bone strength to the acid-base balance of your blood. While they are often lumped together on a lab panel or a sports-drink label, each one has distinct jobs and interacts with the others in ways that matter for your health.
Sodium and Potassium
Sodium is the most abundant positively charged electrolyte in the fluid outside your cells, and potassium is its counterpart inside your cells. That separation is not accidental. Every cell in your body maintains it through a dedicated pump embedded in its membrane. This pump uses energy from ATP to push three sodium ions out of the cell while pulling two potassium ions in, creating an electrochemical gradient across the membrane that powers nerve impulses, muscle contractions, and the absorption of nutrients in your gut.1PubMed Central. Cryo-EM structures of recombinant human sodium-potassium pump determined in three different states This pump runs constantly in every animal cell and accounts for a meaningful share of your resting energy expenditure.2PubMed Central. Structural basis for gating mechanism of the human sodium-potassium pump
Sodium’s role in fluid balance is probably the one most people know about. Your body adjusts how much water it retains based partly on sodium concentration, which is why eating a very salty meal can leave you bloated the next morning. But sodium is also critical for nerve signaling: when a nerve fires, sodium rushes into the cell through channels that open for just a fraction of a millisecond, generating the electrical impulse that travels down the nerve fiber.
Potassium, for its part, is essential to how your heart beats. About ten distinct potassium channel types in heart cells help shape each heartbeat’s electrical cycle, with some channels responsible for the early recovery phase after a contraction and others active throughout the entire cycle.3PubMed. Cardiac potassium channel subtypes: new roles in repolarization and arrhythmia Cardiac muscle cells have unusually long electrical impulses compared to skeletal muscle, and that length depends on the behavior of potassium currents that slowly restore the cell’s resting charge after each beat.4Physiology. Role of Delayed Rectifier Potassium Channels in Cardiac Repolarization and Arrhythmias This is why potassium imbalances show up so dramatically on an ECG and why doctors take abnormal potassium levels seriously.
Chloride and Bicarbonate
Chloride is the major negatively charged electrolyte in your blood and the fluid between cells. It typically travels with sodium, helping maintain fluid balance and electrical neutrality. But chloride has a less obvious job that is arguably more impressive: it is central to how your body transports carbon dioxide from your tissues to your lungs.
Here is how that works. When your cells produce carbon dioxide as a metabolic waste product, roughly 80% of it gets converted into bicarbonate ions inside red blood cells.5PubMed. Chloride–bicarbonate exchange in red blood cells: physiology of transport and chemical modification of binding sites But those red blood cells can only hold so much bicarbonate before they run out of room. So the bicarbonate gets swapped out of the red blood cell in exchange for chloride ions from the surrounding plasma, freeing up space inside the cell to convert more carbon dioxide.6PubMed Central. Bicarbonate-chloride exchange in erythrocyte suspensions. Stopped-flow pH electrode measurements This chloride-bicarbonate shuttle happens within milliseconds and is a beautifully efficient recycling system.
Bicarbonate’s other headline role is as the body’s primary pH buffer. The carbon dioxide-bicarbonate system accounts for roughly 85% of the buffering capacity outside your cells, keeping arterial blood pH in the narrow range of 7.35 to 7.45.7PubMed Central. Acid-base balance: a review of normal physiology Your lungs and kidneys work together to adjust the ratio of carbon dioxide to bicarbonate in your blood, and that ratio determines pH. If blood becomes too acidic, your breathing rate increases to blow off more carbon dioxide. If it becomes too alkaline, the kidneys excrete more bicarbonate. The whole system is remarkably responsive, which is why blood pH stays stable even through significant physical exertion or dietary shifts.
Calcium
Most people associate calcium with bones and teeth, and that is fair: about 99% of the calcium in your body is stored in skeletal tissue. But the remaining 1% circulating in blood and soft tissues is doing work that is arguably more urgent on a moment-to-moment basis. Every time a muscle contracts, it does so because calcium floods into the cell and triggers the molecular machinery that shortens muscle fibers.8PubMed Central. Signaling in muscle contraction That calcium surge also kicks off downstream signaling pathways that regulate how forcefully and how long a muscle contracts. This applies to every muscle in your body, from your bicep to your heart.
Calcium is also essential for blood clotting, nerve transmission, and hormone secretion. Because so many critical processes depend on it, the body defends blood calcium levels aggressively. When blood calcium drops, parathyroid hormone pulls calcium out of bones to restore it. This is why chronic calcium deficiency does not always show up as low blood calcium on a lab test; instead, it shows up years later as weakened bones, because the skeleton has been serving as a calcium ATM.
Phosphate
Phosphate is calcium’s partner in bone formation and its rival in blood levels. Bones and teeth are built from hydroxyapatite, a mineral crystal made of calcium and phosphate. But phosphate also plays a pivotal role in energy metabolism: the energy currency of your cells, ATP, is literally adenosine triphosphate, three phosphate groups chained together. When a phosphate bond breaks, energy is released to power cellular work.
Maintaining phosphate within a tight range is critical for processes ranging from cell signaling to skeletal development. In growing children, adequate phosphate is required for the normal sequence of cartilage maturation and bone formation in growth plates. Without enough phosphate, the cells that need to die off and make room for new bone tissue cannot complete that process, which can lead to rickets and stunted growth. In adults, low phosphate leads to softening of existing bone.9PubMed Central. Phosphate homeostasis and its role in bone health
Magnesium
Magnesium is a cofactor for more than 600 enzymes involved in cell metabolism and a wide range of biological processes.10PubMed Central. Magnesium-An Ion with Multiple Invaluable Actions, Often Insufficiently Supplied: From In Vitro to Clinical Research That number alone makes it one of the most broadly important minerals in human physiology. It is involved in DNA synthesis, protein production, blood sugar regulation, and nerve and muscle function. Despite this, subclinical magnesium deficiency is thought to be fairly common in Western diets, partly because processed foods tend to lose magnesium during manufacturing.
One of magnesium’s more interesting roles is its relationship with calcium. Magnesium acts as a natural calcium channel blocker, meaning it helps regulate how much calcium enters cells. This has implications for blood pressure: magnesium promotes vasodilation (widening of blood vessels), improves the function of blood vessel linings, and boosts production of nitric oxide, a molecule that relaxes blood vessel walls.11PubMed Central. The role of magnesium in hypertension and cardiovascular disease The calcium-magnesium interplay is a good example of why thinking about electrolytes in isolation misses the bigger picture.
How Your Kidneys Manage the Balance
Your kidneys are the master regulators of electrolyte levels. They filter your entire blood volume many times a day and then selectively reabsorb the electrolytes your body needs while letting the excess pass into urine. This filtering-and-reabsorbing process is how the kidneys maintain the plasma concentration of calcium, phosphate, magnesium, sodium, potassium, and chloride within their respective ranges.12PubMed Central. Renal control of calcium, phosphate, and magnesium homeostasis
Different electrolytes are handled at different points along the kidney’s tubular system. Magnesium, for example, is reabsorbed in two main locations. In the earlier segments of the kidney tubule, magnesium slips between cells through a passive route that piggybacks on the work already being done to reabsorb sodium. Farther along, in the distal convoluted tubule, magnesium is actively transported through cells using dedicated channel proteins, though even here the process depends on sodium reabsorption.13PubMed Central. Magnesium Handling in the Kidney This is why kidney disease can disrupt multiple electrolytes simultaneously: if the kidney’s sodium-handling machinery breaks down, the downstream effects ripple through magnesium, calcium, and other ions.
What You Lose in Sweat
Sweat is not just water. It contains meaningful amounts of sodium and chloride, and smaller amounts of potassium. The concentrations vary considerably from person to person and are influenced by exercise intensity, environmental heat, fitness level, and whether someone is heat-acclimated.14PubMed Central. Sweating Rate and Sweat Sodium Concentration in Athletes: A Review of Methodology and Intra/Interindividual Variability
One study measuring whole-body sweat losses during cycling found that moving from low to moderate intensity roughly doubled sodium losses, from about 660 milligrams to about 1,565 milligrams over the session. Chloride losses followed a similar pattern, jumping from about 930 milligrams to nearly 2,400 milligrams.15PubMed Central. Exercise intensity effects on total sweat electrolyte losses and regional vs- whole-body sweat [Na + ], [Cl − ], and [K + ] These numbers explain why heavy sweaters or endurance athletes sometimes develop salt crusts on their clothing and why plain water is not always sufficient for rehydration during prolonged exercise.
That said, the bigger risk during endurance events is not running low on electrolytes from sweat loss alone. It is drinking so much plain water that sodium in the blood becomes dangerously diluted.
When Electrolytes Go Wrong
Exercise-associated hyponatremia, where blood sodium drops below 135 mmol/L during or within 24 hours after prolonged activity, has been reported in nearly every type of endurance sport.16PubMed Central. Exercise-Associated Hyponatremia The primary cause is not excessive sodium loss through sweat, as you might expect. Instead, it is excessive water intake combined with the body’s continued secretion of a hormone (vasopressin) that tells the kidneys to hold onto water, diluting the sodium already in the blood.17PubMed Central. Pathophysiology and treatment of exercise-associated hyponatremia Severe cases can cause brain swelling and, in rare instances, death. The practical takeaway for endurance athletes is to drink to thirst rather than forcing fluids on a rigid schedule.
On the potassium side, both too much and too little can be life-threatening because of how tightly potassium governs heart rhythm. In hyperkalemia (high potassium), characteristic ECG changes include tall, peaked T waves and a widened QRS complex. In hypokalemia (low potassium), ECG changes include flattened T waves and the appearance of U waves. Both conditions can progress to dangerous heart rhythms and require urgent treatment.18PubMed Central. ECG frequency changes in potassium disorders: a narrative review These are among the electrolyte disturbances doctors worry about most in hospital settings.
Calcium, magnesium, and phosphate imbalances tend to develop more gradually and often stem from chronic conditions like kidney disease, parathyroid disorders, or long-term medication use rather than from acute events like heavy exercise.
Medications That Shift Electrolyte Levels
Several common drug classes can knock electrolytes out of balance as a side effect. Blood pressure medications are frequent culprits. Diuretics, beta-blockers, ACE inhibitors, and angiotensin receptor blockers are all associated with electrolyte disturbances, which can include low sodium, low potassium, high potassium, low magnesium, low phosphate, or high calcium, depending on the specific drug.19PubMed. Blood pressure drug therapy and electrolyte disturbances Thiazide diuretics, for instance, tend to lower potassium and magnesium while raising calcium. Potassium-sparing diuretics do the opposite and can push potassium dangerously high, especially in people with impaired kidney function.
This is one reason doctors order periodic blood panels for people on long-term blood pressure medication. An electrolyte shift that develops slowly over months can go unnoticed until it causes symptoms like muscle cramps, fatigue, irregular heartbeat, or confusion. If you are on any of these medications and experience new or unexplained symptoms in those categories, an electrolyte panel is a reasonable thing to ask about.
How Your Gut Absorbs Them
Electrolytes are not all absorbed in the same part of the digestive tract. Calcium is primarily absorbed in the upper small intestine, while magnesium absorption happens mainly in the lower portions of the intestine.20PubMed. Segmental transport of Ca²⁺ and Mg²⁺ along the gastrointestinal tract At low dietary intakes, both minerals rely on active transport through dedicated channel proteins. At higher intakes, a passive route between cells becomes more important, which is less tightly regulated.
For magnesium specifically, bioavailability varies widely depending on the form of magnesium and what else you are eating. Proteins and certain fermentable carbohydrates like resistant starch and inulin enhance magnesium uptake, while high doses of other minerals, phytate (found in grains and legumes), and oxalate (found in spinach and rhubarb) reduce it.21PubMed Central. Intestinal Absorption and Factors Influencing Bioavailability of Magnesium-An Update This means a magnesium supplement taken with a high-calcium supplement may deliver less of both minerals than if they were taken separately. It also means that the magnesium content listed on a food label does not tell you how much your body will actually absorb.
The Discovery That Changed Global Health
One of the most consequential applications of electrolyte science was the development of oral rehydration therapy. In the 1950s, researchers discovered that sodium and glucose are absorbed together through a co-transport mechanism in the intestinal lining. Even when the gut is ravaged by cholera and losing massive amounts of fluid, that co-transport system keeps working. This insight led to the development of simple oral rehydration solutions containing sodium, glucose, and other electrolytes dissolved in water.22PubMed. History of the development of oral rehydration therapy
Clinical studies in Dhaka and Calcutta in the 1960s and 1970s showed that oral rehydration could replace nearly 80% of the intravenous fluid that would otherwise be needed for cholera patients. After the World Health Organization adopted and promoted the approach globally, it dramatically reduced deaths from acute diarrheal diseases, particularly in children in low-resource settings. The Lancet once called it “potentially the most important medical advance” of the twentieth century. The whole thing hinges on the relationship between sodium, glucose, and water at the surface of intestinal cells, a piece of basic electrolyte physiology that ended up saving millions of lives.