Electrolytes keep your nerves firing, your muscles contracting, your heart beating in rhythm, and your body’s water supply in the right places. They are electrically charged minerals dissolved in your blood and other body fluids, and nearly every major system depends on them. The key electrolytes are sodium, potassium, calcium, magnesium, and bicarbonate, and each one plays a distinct role.
Nerve Signaling and Muscle Function
Sodium and potassium ions generate the electrical signals that travel along your nerve cells. Every time you feel a sensation, move a limb, or process a thought, those two minerals are creating tiny voltage changes across cell membranes to relay the message. Without the right balance of sodium outside your cells and potassium inside them, nerve communication slows or misfires.
Calcium is the trigger for muscle contraction. When a nerve signal reaches a muscle fiber, calcium floods in and causes the fiber to shorten and produce force. This applies to every muscle in your body, from your biceps to your heart. Magnesium works on the other side of that equation, helping muscles relax after contraction and supporting energy production inside cells by converting nutrients into usable fuel.
Keeping Your Heart in Rhythm
Your heart is an electrical organ, and potassium is the electrolyte that matters most for its rhythm. Potassium controls the resting electrical charge of heart cells, the speed at which electrical impulses travel through the heart, and whether the heart generates extra, unwanted beats. Research published by the American Heart Association describes potassium as having “a pronounced effect on both conduction and automaticity,” meaning it influences both how signals spread through the heart and how the heart paces itself. When potassium levels swing too high or too low, dangerous irregular heartbeats can follow.
Calcium and sodium also play supporting roles in cardiac function, but potassium imbalances are the ones most likely to cause clinically significant rhythm problems. This is why doctors check electrolyte levels routinely in anyone with heart symptoms or on medications that affect mineral balance.
Fluid Balance Throughout Your Body
Your body is roughly 60% water, and electrolytes determine where that water goes. The principle is simple: water follows dissolved minerals. If one compartment of your body (say, inside your cells) has a higher concentration of electrolytes than the fluid outside, water moves in to even things out. This process, called osmosis, happens constantly across every cell membrane.
Sodium is the main electrolyte controlling fluid volume outside your cells, while potassium governs the balance inside them. When you eat a very salty meal, your body retains extra water to dilute that sodium, which is why you might feel puffy or bloated the next day. Conversely, losing large amounts of sodium through sweat without replacing it throws off this balance and can lead to dangerous swelling of cells, particularly brain cells.
Blood pH Regulation
Your blood needs to stay within a very narrow pH range of 7.35 to 7.45. Even small shifts outside that window can impair enzyme function and organ performance. Bicarbonate, an electrolyte you rarely hear about in sports drink ads, is the primary buffer that keeps your blood pH stable. It works by neutralizing excess acid in your tissues and bloodstream. Your kidneys constantly fine-tune bicarbonate levels, reabsorbing it when your blood is too acidic and excreting it when things tip too alkaline.
What Happens When Levels Drop
Low sodium (below 135 mmol/L, compared to the normal range of 135 to 145) produces symptoms that can range from mild to life-threatening. Early signs include nausea, headache, fatigue, and confusion. If levels drop further or fall rapidly, muscle spasms, seizures, and coma can follow. Chronic, gradual drops tend to cause milder symptoms because the brain has time to adapt, but acute drops are a medical emergency because rapid brain swelling can be fatal.
Low potassium often shows up as muscle weakness, cramping, and fatigue. Because of potassium’s central role in heart rhythm, significant drops can cause palpitations or dangerous arrhythmias. Low magnesium frequently accompanies low potassium and can cause muscle twitching, numbness, and irritability. Low calcium affects muscle and nerve function, sometimes causing tingling in the fingers or involuntary muscle spasms.
The Risk of Drinking Too Much Plain Water
Most people worry about dehydration, but overhydration is a real and underappreciated danger, especially during prolonged exercise. When you drink more water than your kidneys can process (roughly more than one liter per hour at rest), blood sodium gets diluted to dangerous levels. During exercise, that threshold is even lower because kidney blood flow drops by 20 to 60%, which slashes urine production and your body’s ability to clear excess water.
This condition, called exercise-associated hyponatremia, is most common in endurance athletes like marathon runners. Smaller athletes are at higher risk because it takes less excess fluid to dilute their blood. Athletes who sweat heavily and produce especially salty sweat are also more vulnerable. The safest approach during long exercise is to drink to thirst rather than forcing fluids on a rigid schedule, and to include some sodium through a sports drink or salty snack when exercising for more than an hour.
Best Food Sources of Electrolytes
You can meet your electrolyte needs entirely through food. Here are the top whole-food sources for each major mineral:
- Potassium (daily target: 3,400 mg for men, 2,600 mg for women): avocados, sweet potatoes, potatoes, bananas, dried apricots, beans, and lentils.
- Calcium (daily target: 1,000 mg for most adults under 50): dairy products like yogurt and cheese, leafy greens such as kale and spinach, fortified cereals, and tofu made with calcium sulfate.
- Magnesium (daily target: around 400 mg for men, 310 mg for women aged 19 to 30): nuts, seeds, spinach, beans, lentils, and potatoes.
- Sodium: most people get more than enough from table salt and processed foods. Active people who sweat heavily during long workouts may need to intentionally add some salt.
Coconut water contains potassium, magnesium, and calcium and works as a natural electrolyte drink for light to moderate activity. For intense or prolonged exercise, purpose-made electrolyte drinks or tablets tend to provide a more targeted mineral profile, particularly for sodium replacement.
Who Needs to Pay Extra Attention
Everyday hydration with water and a balanced diet covers electrolyte needs for most people. But certain situations raise the stakes. Heavy sweating during long workouts or outdoor labor in heat depletes sodium and potassium faster than food alone can replace. Illness involving vomiting or diarrhea drains electrolytes quickly, which is why oral rehydration solutions contain both sugar and salt rather than plain water. Older adults are more vulnerable to imbalances because kidney function declines with age, making it harder to regulate mineral levels. And certain common medications, particularly diuretics, can shift electrolyte levels enough to require monitoring.
If you eat a variety of fruits, vegetables, dairy or fortified alternatives, nuts, and legumes, you are likely covering your bases. Supplemental electrolyte drinks or tablets are worth considering mainly when you are sweating hard for over an hour, recovering from illness, or eating a very restricted diet.

