Electrolytes are minerals that carry an electrical charge when dissolved in your body’s fluids. They do a surprising amount of heavy lifting: balancing the water inside and outside your cells, transmitting every nerve signal, triggering each heartbeat, and keeping your blood from becoming too acidic or too alkaline. The major electrolytes include sodium, potassium, calcium, magnesium, chloride, bicarbonate, and phosphate.
How Electrolytes Control Fluid Balance
Your body holds water in three main compartments: inside your cells, in the fluid surrounding your cells, and in your blood plasma. Electrolytes determine where that water goes. Water naturally moves toward whichever side of a cell membrane has a higher concentration of dissolved minerals, a process called osmosis. Sodium is the dominant electrolyte outside your cells, while potassium dominates the inside. This tug-of-war between the two keeps each compartment at the right volume.
When this balance tips, cells respond immediately. If the fluid around a cell becomes too dilute (too little sodium relative to water), water rushes in and the cell swells. If the surrounding fluid is too concentrated, water drains out and the cell shrinks. Either scenario disrupts normal function, which is why your kidneys work constantly to fine-tune electrolyte concentrations.
Nerve Signaling and Brain Function
Every thought, sensation, and movement depends on electrical impulses traveling along nerve cells. Those impulses are powered entirely by electrolytes. At rest, a nerve cell maintains a negative charge inside its membrane (about -60 millivolts) by keeping potassium concentrated inside and sodium concentrated outside. Specialized pumps embedded in the cell membrane maintain this gradient around the clock.
When a nerve fires, sodium channels snap open and sodium floods into the cell, rapidly flipping the charge from negative to positive. This is the electrical impulse. Milliseconds later, potassium channels open more slowly, allowing potassium to flow out and reset the charge back to negative. The slight delay between sodium rushing in and potassium flowing out is what creates the sharp, fast signal your nervous system relies on. After the impulse passes, those sodium-potassium pumps restore everything to its starting position so the nerve can fire again.
This is why low sodium or potassium levels can cause confusion, fatigue, irritability, and in severe cases, seizures. The electrical machinery of your brain literally runs on these two minerals.
Muscle Contraction
Muscles contract through a similar electrical process, but calcium plays a starring role. When a nerve signal reaches a muscle fiber, calcium ions flood into the muscle cell and bind to proteins that are physically blocking the connection points between the two types of filaments that make muscles move. Calcium pulls those blocking proteins out of the way, allowing the filaments to grab onto each other and slide together. That sliding motion is what you experience as a muscle contraction.
When calcium is pumped back out of the muscle cell, the blocking proteins snap back into place and the muscle relaxes. This is why calcium imbalances cause muscle cramps, spasms, or weakness. Magnesium supports the relaxation side of this cycle and also helps regulate calcium’s movement in and out of cells.
Heart Rhythm Stability
Your heart is both a muscle and an electrical organ, making it especially sensitive to electrolyte levels. Potassium is the most critical electrolyte for heart rhythm. It sets the baseline electrical charge of heart cells, which determines how fast electrical signals travel through the heart and how quickly each cell can reset between beats.
When potassium levels drop too low, heart cells become more excitable and can fire spontaneously, creating irregular rhythms. When potassium climbs too high (above roughly 6 to 7.5 millimoles per liter), electrical conduction through the heart slows and can eventually stall. Calcium influences the threshold at which heart cells fire: too much calcium lowers that threshold, potentially triggering dangerous rhythms, while too little raises it. Extreme elevations in either mineral can cause life-threatening conduction problems, which is why hospitals monitor electrolyte levels closely in cardiac patients.
Blood pH Regulation
Your blood must stay within a very narrow pH range of 7.35 to 7.45. Even small deviations can impair enzyme function and organ performance. Bicarbonate, one of the key electrolytes, acts as a chemical buffer to keep pH stable.
The system works through a simple equilibrium. Carbon dioxide (a waste product of metabolism) dissolves in your blood and combines with water to form carbonic acid. That carbonic acid then breaks apart into bicarbonate and a hydrogen ion. When your blood becomes too acidic (too many hydrogen ions), bicarbonate absorbs the excess. When blood becomes too alkaline, the reaction reverses and releases hydrogen ions. Your lungs and kidneys work together to adjust both sides of this equation, breathing off carbon dioxide or retaining bicarbonate as needed.
Bone and Tooth Structure
Calcium and phosphorus aren’t just floating around in your blood. About 65% of bone tissue is made of an insolite mineral called hydroxyapatite, a crystalline compound of calcium and phosphorus that gives bones their hardness. More than half the mineral mass of bone is phosphorus, tightly bound to calcium in these crystals, which are layered into a framework of collagen protein. Your teeth use the same material: very dense hydroxyapatite crystals embedded in collagen fibers form the hard enamel and dentin that withstand daily chewing forces.
Your bones also serve as a reservoir. When blood calcium drops, your body pulls calcium from bone to keep nerve and muscle function running. Chronically low calcium intake means this withdrawal never gets repaid, gradually weakening bone density over years.
Electrolyte Loss During Exercise
Sweat contains significant amounts of electrolytes, particularly sodium. During low-intensity exercise, trained athletes lose an average of about 700 mg of sodium per hour. At high intensity, that average jumps to roughly 2,200 mg per hour, with some individuals losing over 6,000 mg per hour. Potassium losses are smaller but still meaningful: around 360 mg per hour at low intensity and 580 mg per hour at high intensity.
The variation between individuals is enormous. Two people doing the same workout can lose vastly different amounts of sodium, which is why some people develop headaches or cramps during exercise while others feel fine. If you’re exercising intensely for more than an hour, especially in heat, replacing sodium matters more than most people realize. Water alone can actually make things worse by diluting the sodium that remains in your blood, a condition called hyponatremia. Symptoms of low sodium include nausea, headache, confusion, muscle cramps, and in severe cases, seizures or loss of consciousness.
Best Food Sources of Electrolytes
Most people can maintain healthy electrolyte levels through food alone. Here are the richest sources of the three electrolytes people most commonly fall short on:
Potassium (Goal: 2,600 mg/day for women, 3,400 mg/day for men)
- Potato: 926 mg per medium potato
- Spinach: 839 mg per cup (cooked)
- Plain nonfat yogurt: 625 mg per cup
- White beans: 502 mg per half cup
- Orange juice: 496 mg per cup
- Banana: 451 mg per medium banana
- Avocado: 364 mg per half cup
Calcium (Goal: 1,000 to 1,200 mg/day)
- Tofu (prepared with calcium sulfate): 434 mg per half cup
- Plain low-fat yogurt: 415 mg per 8 oz
- Sardines (canned): 351 mg per 3.75 oz
- Cheddar cheese: 303 mg per 1.5 oz
- Fat-free milk: 300 mg per cup
Magnesium (Goal: 310 to 320 mg/day for women, 400 to 420 mg/day for men)
Top sources include pumpkin seeds, almonds, spinach, black beans, and dark chocolate. A quarter cup of pumpkin seeds alone provides roughly 40% of most adults’ daily magnesium needs.
Sodium is rarely a concern for deficiency in typical Western diets, where most adults consume well above the recommended limit of 2,300 mg per day. The exception is during prolonged exercise or heavy sweating, when deliberate sodium replacement becomes important.

