Electrolytes are minerals that carry an electrical charge when dissolved in water. Your body relies on them for some of its most basic operations: sending nerve signals, contracting muscles, balancing fluid levels, and keeping your blood at the right pH. The major electrolytes in your body are sodium, potassium, calcium, magnesium, chloride, phosphate, and bicarbonate.
How Electrolytes Work in Your Body
Certain chemical elements naturally hold a positive or negative charge. When a mineral like sodium chloride (table salt) dissolves in water, it splits into separate charged atoms called ions. These ions can conduct electricity through the liquid, and your cells use that electrical activity to do work. This is, at its most basic level, how your muscles contract and your nerves fire.
Your body is roughly 60% water, and that water is packed with dissolved electrolytes. Every heartbeat, every thought, every movement depends on tiny electrical signals generated by the flow of these charged particles across cell membranes.
Nerve Signals and Muscle Contraction
Your nerve cells communicate through rapid bursts of electrical activity called action potentials. These signals depend heavily on sodium and potassium. In a resting nerve cell, potassium concentrations are high inside the cell and sodium concentrations are high outside. When the cell needs to fire, special channels open and sodium rushes in, flipping the electrical charge. This triggers a chain reaction: the change in voltage forces even more sodium channels to open, sending the signal racing down the nerve.
Almost immediately after, potassium channels open and potassium flows out, resetting the cell’s charge so it can fire again. This entire cycle takes just milliseconds. The same basic mechanism drives muscle contraction, including the rhythmic contractions of your heart. Calcium also plays a key role, triggering muscle fibers to shorten and generate force. Disorders involving faulty sodium, potassium, calcium, or chloride channels in muscle and nerve cells are well documented and can cause muscle weakness, cramping, or abnormal heart rhythms.
Fluid Balance and Hydration
Your body’s water is split between two main compartments: inside your cells and outside them (in your blood, lymph, and the spaces between cells). Water moves freely between these compartments, but electrolytes do not cross as easily. This difference is what keeps fluid distributed where it needs to be.
The principle at work is osmosis. Water naturally moves toward the side of a membrane that has a higher concentration of dissolved particles. Sodium is the dominant electrolyte outside your cells, while potassium dominates the interior. By controlling sodium levels, your body controls how much water stays in your bloodstream versus inside your cells. This is why eating a very salty meal can make you retain water and feel bloated, and why severe sodium imbalances are dangerous. A rapid drop in blood sodium causes water to flood into cells, making them swell. In the brain, where there’s no room to expand, this can lead to seizures, coma, or death. A rapid rise in sodium does the opposite, shrinking cells and potentially causing permanent damage.
Acid-Base Balance
Your blood needs to stay within a very narrow pH range to function properly. Bicarbonate, one of the lesser-known electrolytes, acts as a buffer against excess acid. It circulates through your blood mostly as dissolved carbon dioxide, and your kidneys and lungs work together to keep the balance right. Your lungs exhale excess CO2, and your kidneys filter acid into urine while holding onto the right amount of bicarbonate. A healthy blood bicarbonate level falls between 22 and 29 milliequivalents per liter. When it drops below 22, the body becomes too acidic, which can impair organ function over time.
Signs of an Electrolyte Imbalance
Mild imbalances are common and often go unnoticed. But as levels shift further from normal, symptoms become harder to ignore:
- Muscle cramps, spasms, or weakness
- Fatigue
- Headaches
- Nausea, vomiting, diarrhea, or constipation
- Confusion or irritability
- Numbness or tingling in your hands, feet, or fingers
- Irregular or fast heart rate
Severe imbalances can be life-threatening, potentially causing seizures, cardiac arrest, or coma. Imbalances most often result from prolonged vomiting or diarrhea, heavy sweating, kidney problems, certain medications (especially diuretics), or simply not eating enough variety of foods over time.
Best Food Sources of Electrolytes
Most people can maintain healthy electrolyte levels through diet alone. The richest sources tend to be whole, minimally processed foods:
- Potassium: bananas, potatoes, avocado, white beans, salmon, beet greens, mushrooms, milk
- Magnesium: spinach, pumpkin seeds, almonds, lima beans, tuna, brown rice
- Calcium: milk, yogurt, cheese, spinach, tofu, okra, trout
- Sodium: present in most prepared foods, table salt, broth, and pickled items
The recommended daily targets for adults vary by age and sex. For potassium, men need about 3,400 mg and women about 2,600 mg. For magnesium, the range is 310 to 420 mg depending on age and sex. Calcium goals sit at 1,000 mg for most adults, rising to 1,200 mg for women over 50 and men over 70. Sodium intake should stay at or below 2,300 mg per day. Most Americans get plenty of sodium but fall short on potassium and magnesium.
When Water Alone Isn’t Enough
For everyday hydration, plain water works fine. If you’re exercising for less than an hour, you generally don’t need anything extra. But workouts lasting longer than an hour, especially intense sessions or exercise in heat, can deplete electrolytes through sweat fast enough that water alone won’t fully replace what you’ve lost. In those situations, a drink containing sodium and potassium can help maintain performance and prevent cramping.
Not everyone sweats the same way. Some people lose significantly more sodium in their sweat than others. People with very high sweat rates (above about 2.5 liters per hour) or unusually salty sweat may benefit from sodium supplementation during activity. But for most recreational exercisers, a balanced diet and adequate water intake cover the bases. The National Athletic Trainers’ Association recommends individual sweat testing before supplementing beyond normal losses, since there’s no evidence that extra sodium helps if you’re not actually deficient.
Sports drinks, electrolyte tablets, and coconut water all provide electrolytes in varying amounts. If you’re choosing a commercial product, check the label for sodium and potassium content and watch for added sugars. For light to moderate activity, the electrolytes in your next meal will typically replenish whatever you lost.