You get electrolytes from food, drinks, and (when needed) supplements. Most people who eat a varied diet already take in enough of the key electrolytes without trying, but certain situations like heavy sweating, illness, or restrictive diets can leave you short. Understanding which foods and beverages deliver which electrolytes helps you fill gaps without overthinking it.
What Electrolytes Actually Do
Your body relies on seven main electrolytes: sodium, potassium, magnesium, calcium, chloride, phosphate, and bicarbonate. Each one carries an electrical charge when dissolved in your body’s fluids, which is what makes nerve signaling, muscle contraction, and fluid balance possible. Sodium and chloride control how much water your body holds and help maintain blood pressure. Potassium keeps your heart rhythm steady and your cells functioning. Magnesium supports muscle and nerve function while also helping regulate blood sugar. Calcium and phosphate work together to build and maintain bones and teeth.
When any of these drop too low, you feel it. Low sodium can cause nausea, headaches, confusion, muscle cramps, and fatigue. In severe cases it leads to seizures or loss of consciousness. Low potassium produces similar muscle weakness and cramping, along with heart rhythm irregularities. The good news: for most people, food is more than enough to keep levels where they should be.
Potassium-Rich Foods
Potassium is the electrolyte people most commonly fall short on. Adult men need about 3,400 mg per day, and adult women need 2,600 mg. A single cup of cooked beet greens delivers 1,309 mg, nearly 40% of a man’s daily target. Other standouts include cooked Swiss chard (961 mg per cup), cooked lima beans (955 mg), and a medium baked potato with the skin on (926 mg). Cooked spinach, acorn squash, and sweet potatoes all land in the 570 to 840 mg range per cup.
Fruits contribute meaningful amounts too. A cup of guava provides 688 mg of potassium. Kiwifruit delivers 562 mg per cup, a cup of cantaloupe has 473 mg, and a medium banana offers 451 mg. Orange juice (100%) adds 496 mg per cup. On the protein side, 3 ounces of clams pack 534 mg, and tuna, trout, and sardines each contribute 340 to 444 mg per serving. Even a cup of plain nonfat yogurt gives you 625 mg.
The takeaway: if you eat a few servings of vegetables, a piece of fruit, and some protein each day, you’re likely covering your potassium needs without counting milligrams.
Where You Get Sodium, Calcium, and Magnesium
Sodium is the one electrolyte most people get too much of rather than too little. International guidelines recommend capping intake around 2,000 to 2,300 mg per day. Processed foods, bread, cheese, canned soups, and restaurant meals are the primary sources. If you eat a typical Western diet, sodium deficiency is rarely a concern unless you sweat heavily for prolonged periods or have a medical condition that affects sodium balance.
Calcium is easy to get from dairy: a cup of milk provides roughly 300 mg, and yogurt offers similar amounts. If you avoid dairy, cooked collard greens (133 mg per half cup), cooked spinach (136 mg per half cup), and turnip greens (124 mg per half cup) are strong plant-based options. Calcium-fortified orange juice can deliver around 350 mg per cup, and fortified cereals provide 200 to 300 mg per ounce. Dried figs, bok choy, almonds, and white beans all contribute smaller but useful amounts.
Magnesium needs run about 400 to 420 mg per day for adult men and 310 to 320 mg for adult women. Dark leafy greens, nuts, seeds, legumes, and whole grains are the richest food sources. A half cup of cooked spinach, an ounce of pumpkin seeds, or a serving of black beans each supplies a meaningful portion of your daily target. One thing to know about magnesium supplements: the tolerable upper limit from supplements specifically is 350 mg per day for adults. Magnesium from food doesn’t carry that same risk, so getting it through diet is preferable when possible.
Electrolyte Drinks: What They Offer
Sports drinks, coconut water, and electrolyte powders all work, but they deliver very different profiles. A cup of Gatorade contains about 97 mg of sodium but only 37 mg of potassium. A cup of unsweetened coconut water flips that ratio: 64 mg of sodium and 404 mg of potassium, plus more calcium and magnesium than a typical sports drink. Coconut water is also lower in sugar.
Sports drinks are designed for a specific scenario: intense or prolonged exercise lasting more than an hour. Their higher sodium and carbohydrate content helps your body absorb water faster. This works because of a transport system in your small intestine where sodium and glucose are absorbed together, pulling water along with them. That’s why oral rehydration solutions used for dehydration from illness also pair sodium with a small amount of sugar.
For everyday hydration, a casual workout, or mild sweating, coconut water or plain water alongside electrolyte-rich meals does the job without the added sugar of sports drinks. Electrolyte powders and tablets vary widely in their mineral content, so check the label for the specific electrolytes you’re looking for rather than assuming they cover everything.
When Food Isn’t Enough
Certain situations drain electrolytes faster than food alone can replace them. Vomiting and diarrhea deplete sodium, potassium, and chloride rapidly. Heavy sweating during long workouts or hot weather increases sodium and potassium losses through the skin. Athletes are generally advised to increase sodium intake before, during, and after exercise to maintain hydration and performance, though research suggests that the standard recommended sodium intake (around 1,500 mg per day) is sufficient for most people even during athletic activity.
Restrictive diets can also create gaps. Very low-carb and ketogenic diets tend to flush sodium and potassium through increased urination, especially in the first few weeks. People who avoid dairy may need to be more intentional about calcium. Those who eat few vegetables or whole grains often run low on magnesium.
If you experience persistent muscle cramps, unusual fatigue, brain fog, or an irregular heartbeat, an electrolyte imbalance is worth considering. A basic blood test can check your levels. For most people, though, the fix is simpler than a supplement: eat more vegetables, include a source of dairy or fortified alternative, and salt your food to taste.
A Quick-Reference Cheat Sheet
- Potassium: Baked potatoes, cooked greens, beans, bananas, yogurt, fish
- Sodium: Table salt, broth, pickled foods, cheese (most people get plenty already)
- Magnesium: Pumpkin seeds, spinach, black beans, almonds, whole grains
- Calcium: Dairy, fortified plant milks, collard greens, tofu prepared with calcium, fortified juice
- Chloride: Paired with sodium in salt, so it follows the same sources
- Phosphate: Dairy, meat, fish, lentils, nuts
Building meals around whole foods, especially vegetables, legumes, and a protein source, covers the vast majority of your electrolyte needs without powders, tablets, or specialty drinks.

