Foods high in electrolytes include potatoes, leafy greens, nuts, seeds, dairy products, beans, bananas, and seafood. Electrolytes are minerals that carry an electrical charge in your body, and they control everything from muscle contraction to fluid balance to heart rhythm. Most people can get all the electrolytes they need from a varied diet, but knowing which foods pack the biggest punch helps if you’re active, recovering from illness, or just trying to eat smarter.
The Electrolytes Your Body Uses
Seven electrolytes do most of the work in your body. Sodium and chloride control how much fluid you retain, and both help maintain blood pressure and blood volume. Potassium keeps your cells, heart, and muscles functioning properly. Calcium and phosphate work together to build strong bones and teeth. Magnesium supports muscle and nerve function while also helping regulate blood sugar and blood pressure. Bicarbonate maintains your body’s pH balance and shuttles carbon dioxide through your bloodstream.
Each one has to stay within a fairly tight range. When levels drop or spike, you can experience muscle cramps, fatigue, irregular heartbeat, weakness, or confusion. The good news is that whole foods tend to deliver these minerals in balanced amounts, which makes dietary sources more effective than supplements for most people.
Potassium-Rich Foods
Potassium is the electrolyte most Americans fall short on, and the foods highest in it might surprise you. A medium baked potato with the skin delivers 926 mg of potassium, making it one of the single best sources available. One cup of cooked spinach provides 839 mg. A medium banana, the food most people associate with potassium, comes in at 451 mg, which is solid but less than half of what a potato offers. A half cup of cooked lentils adds 366 mg.
Other strong sources include avocados, sweet potatoes, white beans, and dried apricots. Spreading these throughout the day is more practical than trying to load up at one meal.
Top Sources of Magnesium
Seeds and nuts dominate the magnesium rankings. One ounce of roasted pumpkin seeds contains 150 mg of magnesium, the highest concentration you’ll find in a small serving. Chia seeds deliver 111 mg per ounce, followed by roasted almonds at 80 mg and roasted cashews at 72 mg.
Cooked greens are another reliable source. A half cup of cooked spinach has 78 mg, and the same amount of Swiss chard has 75 mg. Dark chocolate with 70% to 85% cocoa provides 64 mg per ounce, which makes it one of the more enjoyable ways to boost your intake. Black beans, quinoa, and edamame each contribute around 50 to 60 mg per half-cup serving.
Calcium Beyond Dairy
Milk, yogurt, and cheese are well-known calcium sources, but several non-dairy foods match or beat them. Tofu prepared with calcium sulfate tops the list at 434 mg per half cup. Fortified almond milk delivers 442 mg per cup, which actually exceeds the calcium in a glass of cow’s milk. Fortified soy milk provides 301 mg per cup, and fortified rice milk offers 283 mg.
Among whole foods, canned sardines (eaten with their soft, edible bones) supply 325 mg per three-ounce serving. A cup of cooked collard greens provides 268 mg. If you eat dairy, an eight-ounce serving of plain low-fat yogurt adds about 42 mg of magnesium alongside its calcium, giving you two electrolytes in one food.
Sodium and Chloride Sources
Most people get more than enough sodium from everyday cooking and packaged foods, so deliberately seeking it out is rarely necessary. Table salt provides both sodium and chloride at once. Beyond salt, foods naturally higher in chloride include seaweed, rye bread, tomatoes, celery, olives, and lettuce. These same foods contribute modest amounts of other electrolytes, too, which makes them useful additions to a well-rounded diet.
If you exercise heavily, sweat a lot, or have been vomiting or dealing with diarrhea, sodium becomes more important. That’s one of the few situations where intentionally adding salt to your food or drink helps restore balance.
Electrolyte Drinks Compared
Coconut water and sports drinks both provide electrolytes, but their profiles are almost opposite. In a 12-ounce serving, coconut water delivers 594 mg of potassium but only 93.6 mg of sodium. Gatorade flips that ratio: 166 mg of sodium and just 46.8 mg of potassium. Coconut water also contains calcium and phosphorus that sports drinks lack.
Which one works better depends on what you need. For everyday hydration or replacing potassium after a moderate workout, coconut water has the edge. For heavy, prolonged sweating where sodium loss is the bigger concern (think long runs in the heat), a sports drink’s sodium content is more useful. For most casual exercisers, plain water plus a balanced meal afterward covers everything.
When Electrolyte Replacement Matters Most
During exercise lasting under an hour at moderate intensity, water alone is usually sufficient. Once you push past an hour, or you’re training at high intensity or in extreme heat, adding electrolytes to your fluids becomes more beneficial. Aiming for about 200 mL (roughly 7 ounces) of fluid every 15 to 20 minutes during activity helps maintain hydration without overwhelming your stomach.
After exercise, you typically need to replace 100% to 150% of the fluid you lost through sweat. A simple way to estimate sweat loss: weigh yourself before and after exercise. Each kilogram (2.2 pounds) lost represents roughly one liter of sweat. Eating and drinking within two hours after activity helps replenish fluids, electrolytes, carbohydrates, and protein together, which is more effective than replacing any one of those in isolation.
A Simple Homemade Rehydration Drink
You don’t need to buy premade electrolyte packets. The World Health Organization’s oral rehydration recipe calls for just three ingredients: a little over 4 cups (about 1 liter) of water, half a teaspoon of salt, and 2 tablespoons of sugar. The sugar isn’t just for taste; it helps your intestines absorb sodium and water more efficiently.
For a version with more flavor, mix three-quarters of a cup of 100% apple or grape juice with about 3ΒΌ cups of water and half to three-quarters of a teaspoon of salt. A broth-based option works well if you prefer savory: dissolve one regular-sodium bouillon cube in 4 cups of water, then stir in a quarter teaspoon of salt and 2 tablespoons of sugar. All of these recipes deliver a balance of sodium, fluid, and a small amount of carbohydrate that closely mirrors what commercial products provide.
Putting It Together
The most electrolyte-dense meals tend to combine several of these foods naturally. A grain bowl with quinoa, black beans, spinach, and pumpkin seeds covers magnesium, potassium, calcium, and smaller amounts of sodium and chloride in a single sitting. A snack of yogurt with sliced banana and a handful of almonds does the same. The pattern is consistent: whole, minimally processed foods deliver electrolytes in the combinations and ratios your body is designed to use, without the added sugars that come in many commercial electrolyte products.

