What Are Electrolytes? Types, Functions, and Sources

The essential electrolytes are sodium, potassium, calcium, magnesium, chloride, phosphate, and bicarbonate. These seven minerals carry electrical charges when dissolved in your body’s fluids, and they control everything from your heartbeat to the fluid balance inside each of your cells. Understanding what each one does, where to get it, and what happens when levels drop gives you a practical framework for keeping your body running well.

The Seven Essential Electrolytes

Sodium is the primary electrolyte outside your cells. It controls how much fluid your body retains and plays a direct role in nerve and muscle function. Your kidneys regulate sodium levels moment to moment, adjusting how much gets excreted in urine.

Potassium is sodium’s counterpart inside your cells. It keeps your heart, muscles, and cells working properly. Sodium and potassium work as a pair: a pump embedded in every cell membrane moves three sodium ions out for every two potassium ions it pulls in. This constant exchange creates an electrical charge across the membrane, which is the foundation for nerve signaling, muscle contraction, and the regulation of cell volume.

Calcium is best known for building and maintaining bones and teeth, but it also triggers muscle contraction and is essential for nerve communication. When a nerve signal reaches the end of a nerve cell, calcium floods in and causes the release of chemical messengers that carry the signal to the next cell. Without calcium, your nerves can’t talk to your muscles.

Magnesium supports proper muscle, nerve, and heart function while also helping regulate blood pressure and blood sugar. It’s involved in over 300 enzyme reactions in the body, making it one of the most versatile electrolytes.

Chloride helps control the amount of fluid in your body and supports healthy blood volume and blood pressure. It typically travels alongside sodium and shifts wherever sodium goes.

Phosphate partners with calcium to strengthen bones and teeth. It also plays a role in how your body stores and uses energy.

Bicarbonate acts as your blood’s primary pH buffer. It neutralizes acids that enter the bloodstream, keeping blood pH steady at around 7.4. When acid levels rise, bicarbonate absorbs the excess. When conditions become too alkaline, the system shifts in the other direction. This buffering system also helps move carbon dioxide from your tissues to your lungs for exhalation.

What Electrolytes Actually Do in Your Body

At the most basic level, electrolytes maintain the electrical charge across every cell membrane in your body. That charge, called membrane potential, is what allows nerves to fire and muscles to contract. The sodium-potassium pump creates this charge by keeping more positively charged ions outside each cell than inside, building a tiny voltage difference. When a nerve or muscle cell needs to activate, it briefly reverses that charge, producing an electrical impulse.

Beyond electrical signaling, electrolytes regulate how much water sits inside versus outside your cells. Sodium pulls water toward it, so wherever sodium concentrates, water follows. This is why eating a high-sodium meal causes temporary water retention and why severe sodium loss can lead to dangerous swelling in the brain. Potassium balances this effect from inside the cell.

Electrolytes also move nutrients into cells and waste products out, keep your heart rhythm steady, and maintain stable blood pressure. These aren’t separate jobs performed by separate minerals. They’re interconnected processes where multiple electrolytes work together simultaneously.

How Much You Need Each Day

Daily requirements vary by age and sex. For adults aged 19 to 50, here are the key targets:

  • Potassium: 3,400 mg for men, 2,600 mg for women. Pregnant women need about 2,900 mg.
  • Magnesium: 400 to 420 mg for men (depending on age), 310 to 320 mg for women. The upper limit for supplemental magnesium is 350 mg, meaning the rest should come from food.
  • Sodium: The adequate intake is about 1,500 mg per day, though most adults consume well over double that amount.
  • Calcium: 1,000 mg for most adults, rising to 1,200 mg for women over 50.

You don’t need to track bicarbonate, chloride, or phosphate separately. Your body produces bicarbonate on its own, chloride comes naturally with sodium in salt, and phosphate is abundant in protein-rich foods. The electrolytes most people fall short on are potassium and magnesium.

Best Food Sources

Potassium-rich foods include bananas, white potatoes with skin, beans, and leafy greens. But potassium is widely distributed, so a diet with plenty of fruits, vegetables, and legumes generally covers your needs.

Magnesium is concentrated in nuts and seeds (especially pumpkin seeds, almonds, and cashews), black and kidney beans, cooked spinach, Swiss chard, brown rice, whole oats, and dark chocolate with at least 70% cocoa. Soymilk, yogurt, peanut butter, salmon, and beef also contribute meaningful amounts. Despite how many foods contain magnesium, surveys consistently show that a large portion of adults don’t hit their daily target, largely because processed foods lose much of their magnesium content during manufacturing.

Sodium and chloride come primarily from table salt and processed foods. Most people get far more than they need without trying. Calcium is found in dairy products, fortified plant milks, sardines, and leafy greens like kale and bok choy. Phosphate is plentiful in meat, dairy, nuts, and beans.

Signs of Electrolyte Imbalance

Because electrolytes govern so many basic functions, imbalances tend to show up as vague but widespread symptoms. Mild imbalances commonly cause muscle cramps, fatigue, headaches, dizziness, and irregular heartbeat. More significant drops or spikes produce more alarming effects.

Low sodium can cause nausea, confusion, and in serious cases, seizures. This happens most often in endurance athletes who drink large volumes of plain water without replacing sodium lost through sweat. Low potassium typically shows up as muscle weakness and cramping, while dangerously high potassium (above 6 to 7 milliequivalents per liter in blood) can cause ascending muscle paralysis, respiratory failure, and life-threatening heart rhythm changes. Low calcium can trigger numbness and tingling in the fingers, muscle spasms, and in severe cases, heart problems.

Low magnesium often flies under the radar because symptoms overlap with so many other conditions: fatigue, muscle twitches, poor appetite, and nausea. Chronic low magnesium can worsen potassium and calcium imbalances because magnesium helps regulate both of those minerals.

Common Causes of Electrolyte Loss

Sweating is the most familiar cause. You lose primarily sodium and chloride in sweat, with smaller amounts of potassium and magnesium. A hard workout in hot weather can deplete enough sodium to cause noticeable symptoms within hours.

Vomiting and diarrhea drain electrolytes rapidly, which is why oral rehydration solutions contain both salt and sugar rather than plain water. Certain medications, particularly diuretics, increase electrolyte loss through urine. Kidney disease can impair the body’s ability to excrete or retain specific electrolytes, creating imbalances in either direction. Heavy alcohol use depletes magnesium, and very low-carb diets often increase sodium and potassium excretion in the first few weeks.

For most healthy adults eating a varied diet, serious electrolyte imbalances are uncommon. The people at highest risk are endurance athletes, those with chronic digestive issues, anyone on diuretic medications, and older adults whose kidneys are less efficient at maintaining balance. If you’re in one of those groups, paying closer attention to electrolyte-rich foods (or targeted supplementation) is a practical step worth taking.