You can balance your electrolytes naturally by eating a variety of whole foods rich in potassium, magnesium, calcium, and sodium, and by adjusting your intake based on how much you sweat, how you eat, and what your body signals. Most healthy people don’t need supplements or sports drinks. A well-rounded diet handles the job, as long as you know which foods to prioritize and which situations demand extra attention.
What Electrolytes Actually Do
Electrolytes are minerals that carry an electrical charge in your body’s fluids. The four that matter most for daily balance are sodium, potassium, magnesium, and calcium. Each plays a distinct role, and they work in pairs.
Sodium is the most abundant electrolyte in your body. It regulates fluid balance inside and outside your cells and helps cells absorb nutrients. Potassium works opposite to sodium: when a sodium ion enters a cell, a potassium ion leaves. This back-and-forth drives nerve signals, muscle contractions, and is especially critical for heart function. Magnesium helps your cells convert nutrients into energy, and your brain and muscles depend heavily on it. Calcium does far more than build bones. It controls muscle movement, transmits nerve signals, and helps manage your heart rhythm.
Your kidneys are the central control system. A hormone called aldosterone tells the kidneys to hold onto or release sodium based on how concentrated your blood is. Another hormone, antidiuretic hormone (ADH), controls how much water your kidneys reabsorb. When you’re dehydrated, ADH increases so your kidneys retain water. When you’re overhydrated, it decreases so you produce more dilute urine. This system keeps things in a tight range automatically, but it needs raw materials from your diet to work with.
The Best Food Sources for Each Electrolyte
Potassium
Most adults need around 2,600 to 3,400 mg of potassium daily, and most fall short. The richest sources aren’t limited to bananas (which provide about 420 mg each). White beans, baked potatoes with the skin, beet greens, spinach, and avocados all deliver 500 mg or more per serving. Dried apricots, lentils, kidney beans, and plain yogurt are also potassium-dense. Coconut water provides roughly 600 mg per cup, making it one of the simplest natural electrolyte drinks available.
Magnesium
Adult men need about 400 to 420 mg of magnesium per day, and women need 310 to 320 mg. Pumpkin seeds are one of the most concentrated sources, with roughly 150 mg per ounce. Almonds, cashews, dark chocolate (70% cacao or higher), black beans, and edamame are all strong options. Leafy greens like spinach deliver magnesium alongside potassium and calcium, making them triple contributors.
Calcium
Dairy products remain the most efficient calcium sources. A cup of milk or yogurt provides roughly 300 mg, and adults generally need 1,000 to 1,200 mg per day. If you don’t eat dairy, sardines with bones, fortified plant milks, tofu made with calcium sulfate, collard greens, and kale are reliable alternatives. Calcium absorption improves when paired with vitamin D, so getting some sunlight or eating fatty fish helps your body use the calcium you take in.
Sodium
Sodium is the one electrolyte most people get too much of, not too little. The typical American diet delivers around 4,000 mg daily, well above the recommended 2,300 mg ceiling. Natural sodium sources include celery, beets, carrots, and small amounts of sea salt or Himalayan salt added during cooking. The goal for most people is moderation, not addition. The exception is if you’re sweating heavily, fasting, or eating very low-carb, which are covered below.
Why the Sodium-to-Potassium Ratio Matters
Balancing electrolytes isn’t just about hitting individual targets. The ratio between sodium and potassium in your diet has a direct effect on blood pressure and cardiovascular health. The modern American diet produces a sodium-to-potassium ratio of about 1.6, meaning people eat far more sodium than potassium. Hunter-gatherer diets, by contrast, had an estimated ratio of 0.07, with roughly 768 mg of sodium against 10,500 mg of potassium.
You don’t need to hit ancestral ratios, but the takeaway is clear: most people benefit from eating more potassium-rich foods while keeping sodium moderate. Swapping regular table salt for a salt substitute that blends sodium chloride with potassium chloride (typically a 75/25 mix) is one of the simplest changes you can make. Research published in the American Heart Association’s journal Hypertension found this single swap can meaningfully shift the ratio toward a healthier range.
How Exercise Drains Electrolytes
Sweat contains far more sodium than any other electrolyte, and the harder you work, the more you lose. During low-intensity exercise, trained athletes lose roughly 706 mg of sodium per hour. At moderate intensity, that jumps to about 1,389 mg per hour. At high intensity, losses average 2,196 mg per hour, roughly three times the low-intensity rate.
Potassium losses are smaller but still significant: around 359 mg per hour at low intensity, rising to about 581 mg per hour at high intensity. Sweat rate and sodium concentration in sweat also increase together, so people who sweat heavily lose disproportionately more sodium per liter of sweat.
For casual exercise under an hour, water and a balanced meal afterward are typically enough. For prolonged or intense sessions, especially in heat, you need to actively replace sodium and potassium during or immediately after activity. A simple homemade electrolyte drink works well: combine about 1¾ cups of water or coconut water with ⅛ teaspoon of salt, 2 teaspoons of honey, and ¼ cup of lemon or lime juice. The salt provides sodium, the honey gives a small amount of glucose to help your intestines absorb sodium faster, and the citrus adds potassium and flavor.
Low-Carb and Keto Diets Need Extra Attention
If you eat a very low-carbohydrate or ketogenic diet, electrolyte balance requires deliberate effort. Here’s why: cutting carbs sharply drops your insulin levels by more than 50%. Insulin normally tells your kidneys to hold onto sodium. When insulin falls, your kidneys release sodium rapidly, and water follows it out. This is the main reason people lose several pounds of water weight in the first week of a keto diet.
The sodium and potassium flushing is most intense during days one through four and stops quickly if you reintroduce carbohydrates. This electrolyte dump is the primary driver of “keto flu” symptoms like headaches, fatigue, muscle cramps, and brain fog. It’s not an inevitable cost of low-carb eating. It’s a sign you need more electrolytes.
Practical fixes include salting your food more liberally than you would on a standard diet, drinking broth or bone broth daily (a cup provides roughly 500 to 800 mg of sodium), eating avocados and leafy greens for potassium and magnesium, and using the homemade electrolyte drink recipe above. Many people on keto need 3,000 to 5,000 mg of sodium daily, plus extra potassium and magnesium, to feel normal.
Signs Your Electrolytes Are Off
Mild imbalances usually show up as everyday discomforts that are easy to dismiss. Low sodium often causes nausea, headaches, fatigue, and confusion. Low potassium produces weakness, leg cramps, fatigue, and constipation. Low magnesium shows up as muscle cramps, twitching, and feeling mentally “off.” Low calcium can cause tingling in your fingers, toes, or around your mouth, along with muscle cramps.
These symptoms overlap, which is why fixing electrolyte balance through a broad dietary approach works better than guessing which single mineral you’re missing. If you’re experiencing muscle cramps after exercise, for example, you likely need sodium and potassium, not just one or the other.
Severe imbalances are a different situation entirely. Confusion, seizures, heart palpitations, difficulty breathing, or loss of consciousness can all signal dangerous electrolyte levels that need emergency care, not a glass of coconut water. These extremes are rare in healthy people eating regular meals, but they can occur with prolonged vomiting, diarrhea, excessive water intake without electrolytes, or certain medications.
A Practical Daily Framework
You don’t need to track milligrams obsessively. Building a few habits into your daily eating pattern covers most people’s needs:
- Eat a potassium-rich food at every meal. A banana with breakfast, a baked potato at lunch, spinach salad at dinner. This alone can close the gap most people have.
- Include magnesium-rich snacks. A handful of pumpkin seeds or almonds, a square of dark chocolate, or a serving of edamame.
- Get calcium from whole foods first. Yogurt, cheese, fortified plant milk, or leafy greens like kale and collard greens.
- Use salt intentionally, not excessively. Season home-cooked food with salt to taste, but rely less on packaged foods where sodium is hidden and potassium is absent.
- Match fluids to losses. Drink water throughout the day, and add electrolytes (through food or a homemade drink) when you sweat heavily, are in hot weather, or are eating very low-carb.
The core principle is straightforward: eat a wide variety of whole, minimally processed foods, and adjust when your activity level, diet, or environment increases your losses. Your kidneys handle the fine-tuning. Your job is to give them enough to work with.

