The best foods for electrolytes are ones you probably already eat: bananas, potatoes, leafy greens, dairy, nuts, seeds, and seafood. The key electrolytes your body needs from food are potassium, magnesium, calcium, and sodium, and each one shows up in different concentrations across different food groups. Rather than relying on sports drinks or supplements, a varied diet can cover all four.
How Electrolytes Work in Your Body
Electrolytes are minerals that carry an electrical charge when dissolved in your body’s fluids. Your cells use them to conduct the electrical signals that make muscles contract, nerves fire, and your heart beat in rhythm. They also control hydration at the cellular level: sodium and potassium work as a pair, shuttling in and out of cells to keep fluids balanced on both sides of every cell membrane. Chloride partners with sodium to fine-tune that fluid balance further.
This is why losing electrolytes through sweat, illness, or not eating enough can leave you feeling weak, crampy, or foggy. Your body can’t manufacture these minerals on its own, so they need to come from what you eat and drink.
Potassium: The Electrolyte Most People Lack
Potassium is the electrolyte Americans fall shortest on. The adequate intake for adults is 2,600 mg per day for women and 3,400 mg for men, and most people don’t come close. Fortunately, potassium is abundant in vegetables, fruits, beans, dairy, and fish.
The single richest common source is cooked beet greens, which deliver 1,309 mg per cup. Other standouts include Swiss chard (961 mg per cup cooked), a baked potato with skin (926 mg), cooked spinach (839 mg per cup), and acorn squash (896 mg per cup). Sweet potatoes, mushrooms, and carrots are solid choices too.
On the fruit side, bananas get all the credit but only provide 451 mg per medium fruit. Guava (688 mg per cup), kiwifruit (562 mg per cup), cantaloupe (473 mg per cup), and even a cup of orange juice (496 mg) all deliver more. A quarter cup of raisins adds 307 mg as an easy snack.
Dairy is another reliable source. A cup of plain nonfat yogurt has 625 mg of potassium, and a cup of skim milk provides 382 mg. Among proteins, clams (534 mg per 3 ounces), skipjack tuna (444 mg), and rainbow trout (383 mg) lead the list. Unsweetened coconut water provides about 396 mg per cup, making it a popular liquid option.
The ideal ratio of potassium to sodium in your diet is roughly 3 to 1, according to UCLA Health. That ratio helps maintain healthy blood pressure by counteracting the fluid-retaining effects of sodium. In practical terms, this means eating several servings of potassium-rich vegetables and fruits each day while keeping sodium moderate.
Magnesium: Seeds, Nuts, and Beans
The daily value for magnesium is 420 mg for adults. Seeds and nuts are the most concentrated sources by far. One ounce of roasted pumpkin seeds provides 156 mg, covering 37% of your daily value in a single handful. An ounce of chia seeds delivers 111 mg (26%), and an ounce of dry-roasted almonds provides 80 mg (19%). Cashews and peanuts are close behind.
Beans and whole grains fill in the rest. Half a cup of cooked black beans gives you 60 mg, and half a cup of brown rice provides 42 mg. A packet of instant oatmeal adds 36 mg. For comparison, white rice has only 10 mg per half cup, which illustrates why whole grains matter for mineral intake. Cooked spinach pulls double duty here too, delivering 78 mg of magnesium per half cup on top of its potassium.
Low magnesium can be hard to spot because symptoms are vague: muscle cramps, fatigue, and irritability. What makes it especially important is that magnesium depletion makes it harder for your body to hold onto potassium. The two deficiencies tend to travel together and make each other worse.
Calcium Beyond Dairy
Calcium is the most abundant mineral in your body, and most of it sits in your bones and teeth. But a small fraction circulates in your blood as an electrolyte, essential for muscle contraction and nerve signaling. Adults need about 1,000 to 1,200 mg per day.
Dairy foods are the most efficient source. A cup of milk provides roughly 300 mg, and an 8-ounce serving of yogurt is similar. But if you avoid dairy, plenty of other foods contribute meaningful amounts. Canned sardines with bones are one of the best non-dairy options at 350 mg per 4 ounces. Firm tofu made with calcium sulfate has about 260 mg per half cup. Cooked collard greens provide 175 mg per half cup, and cooked spinach has 140 mg (though spinach also contains compounds that reduce calcium absorption). Kale, bok choy, and turnip greens each contribute 80 to 100 mg per half cup cooked.
Sodium and Chloride: Usually Not a Problem
Sodium and chloride are the two electrolytes most people get plenty of without trying. The American Heart Association recommends no more than 2,300 mg of sodium per day, with an ideal limit of 1,500 mg. Most adults consume well over that from processed and restaurant foods.
For everyday purposes, you don’t need to seek out extra sodium. The exception is heavy or prolonged sweating, whether from intense exercise, outdoor labor in heat, or illness. In those situations, a pinch of salt in water or a salty snack alongside potassium-rich foods helps restore balance. Whole food sources of sodium and chloride include meat, seafood, shrimp, and seaweed, though these amounts are small compared to what table salt or seasoning adds.
Putting It Together After Exercise
After a hard workout, your priority is replacing fluids plus the sodium and potassium you sweated out. A practical post-workout snack combines a carbohydrate source with a potassium and sodium source. Low-fat chocolate milk is a classic option because it delivers potassium, sodium, calcium, fluid, and carbohydrates in one package. A banana with a handful of salted almonds covers potassium, magnesium, and sodium. A baked potato with yogurt hits potassium, calcium, and magnesium all at once.
For most people who exercise at a moderate level, water and regular meals are sufficient. Sports drinks become more relevant during exercise lasting longer than 60 to 90 minutes or in extreme heat, when sweat losses are high enough that food alone can’t keep up in real time.
A Simple Daily Framework
You don’t need to track milligrams obsessively. A few habits cover most of your electrolyte needs:
- Eat a leafy green daily. Spinach, Swiss chard, and beet greens are potassium, magnesium, and calcium powerhouses.
- Include a starchy vegetable. Baked potatoes, sweet potatoes, and squash are among the highest-potassium foods available.
- Snack on seeds or nuts. Pumpkin seeds, almonds, and cashews are the most efficient way to get magnesium.
- Eat fruit. Kiwi, cantaloupe, guava, oranges, and bananas all contribute potassium along with other nutrients.
- Don’t fear dairy or fortified alternatives. Yogurt, milk, and calcium-set tofu cover calcium and potassium together.
- Eat fish a couple times a week. Sardines, tuna, and trout supply potassium, and sardines with bones add significant calcium.
The common thread is that whole, minimally processed foods are naturally rich in potassium, magnesium, and calcium, while being lower in sodium. Processed foods flip that ratio, delivering lots of sodium with very little of the other three. Shifting your plate toward whole foods is the single most effective way to get your electrolytes in balance.

