Most whole foods contain electrolytes, but some are far richer sources than others. The five electrolytes your body uses most are sodium, potassium, magnesium, calcium, and phosphorus. Each one shows up in different food groups, so eating a varied diet is the simplest way to keep them all in balance. Your body also absorbs electrolytes from food more efficiently than from supplements or sports drinks, making what you eat the best first-line strategy.
What Electrolytes Do in Your Body
Electrolytes are minerals that carry an electrical charge when dissolved in your blood and other body fluids. That charge is what makes your nerves fire and your muscles contract. When a nerve cell is stimulated, sodium ions rush in and create a current that travels along the nerve, eventually reaching a muscle cell and triggering it to contract. Potassium then helps reset the system so the nerve and muscle can fire again. Without the right balance of these minerals, everything from your heartbeat to your ability to grip a cup of coffee can be affected.
Beyond nerve and muscle function, electrolytes regulate how much water stays inside and outside your cells, maintain your blood’s pH, and support bone density. Losing them through sweat, illness, or simply not eating enough of the right foods can cause fatigue, cramping, and brain fog.
Potassium-Rich Foods
Potassium is the electrolyte most people fall short on. Adults need about 2,600 to 3,400 mg per day, and several common foods can put a real dent in that number. A baked potato with the skin on delivers 926 mg per medium potato, making it one of the single best sources available. A cup of cooked spinach provides 839 mg, and a cup of cooked lima beans comes in at 955 mg.
Bananas get all the credit for potassium, but a medium banana contains only 451 mg, roughly half of what a potato or a serving of lima beans offers. That said, bananas are portable, cheap, and easy to eat after a workout, which explains their reputation. Other beans are also excellent: half a cup of adzuki beans has 612 mg, white beans have 502 mg, and even black beans provide 306 mg. Virtually any bean you cook will add a meaningful amount of potassium to your plate.
Magnesium-Rich Foods
Seeds and nuts dominate the magnesium category. One ounce of roasted pumpkin seeds packs 156 mg of magnesium, which is roughly 37% of what most adults need daily. Chia seeds deliver 111 mg per ounce. Among nuts, almonds provide 80 mg per ounce and cashews 74 mg. Even two tablespoons of peanut butter add 49 mg.
Dark leafy greens, whole grains, and dark chocolate are also solid contributors. Because magnesium is part of chlorophyll (the pigment that makes plants green), the darker the green, the more magnesium it tends to contain. Cooked spinach pulls double duty here, offering both potassium and magnesium in a single serving.
Calcium Beyond Dairy
Dairy products remain the most concentrated everyday source of calcium. A cup of yogurt provides about 450 mg, a cup of milk delivers 300 mg, and an ounce of Swiss cheese contains 270 mg. Hard cheeses like cheddar and mozzarella each offer around 200 mg per ounce.
If you avoid dairy, there are plenty of alternatives. Sardines are a standout at 370 mg per three-ounce serving, largely because you eat the soft, tiny bones. Among vegetables, a cup of raw arugula has 125 mg, and a cup of cooked spinach provides 240 mg, though spinach contains compounds that reduce how much calcium your body actually absorbs. Calcium-fortified soy milk ranges from 200 to 400 mg per cup depending on the brand, making it comparable to cow’s milk.
Sodium and Chloride
Sodium is the one electrolyte most people get too much of rather than too little. Processed and packaged foods are the primary source, but sodium also occurs naturally in smaller amounts in meat, seafood, and some vegetables like celery and beets. Chloride almost always tags along with sodium. It’s found naturally in seaweed, shrimp, and other seafood, and any food containing sodium will typically provide chloride as well.
For most people, the goal isn’t to seek out more sodium but to be aware that it counts as an electrolyte you’re already consuming. The exception is heavy sweating: if you exercise intensely for over an hour or work outside in the heat, adding a pinch of salt to food or water can help replace what you’ve lost.
Phosphorus Sources
Phosphorus is the electrolyte you’re least likely to think about, partly because it’s in almost everything. Dairy products account for about 20% of the average American’s phosphorus intake, and bakery products like bread and tortillas contribute another 10%. Meat, poultry, fish, eggs, nuts, legumes, and grains all contain meaningful amounts.
Some specific numbers: a six-ounce container of plain yogurt has 245 mg, a cup of milk provides 226 mg, and three ounces of cooked salmon delivers 214 mg. A chicken breast has 182 mg, half a cup of lentils has 178 mg, and a single hard-boiled egg provides 86 mg. Phosphorus from animal sources is absorbed more efficiently than phosphorus from plants, with absorption rates ranging from 40% to 70% depending on the food. Processed foods often contain added phosphate compounds that bump up phosphorus content by an average of 67 mg per serving compared to their unprocessed equivalents.
Foods That Cover Multiple Electrolytes at Once
Some foods are electrolyte multitaskers, which makes meal planning simpler. Dairy products supply calcium, phosphorus, potassium, and sodium in a single serving. Cooked spinach is rich in potassium, magnesium, and calcium. Salmon offers phosphorus, potassium, and magnesium. Beans and lentils deliver potassium, magnesium, and phosphorus together.
Seeds deserve special mention. Pumpkin seeds and chia seeds provide magnesium and phosphorus in concentrated amounts, and they’re easy to sprinkle on salads, oatmeal, or yogurt without changing your entire meal. Nuts like almonds and cashews hit the same two electrolytes and work as snacks on their own.
Replacing Electrolytes After Exercise
For casual exercise lasting under an hour, water and normal meals are enough to restore what you’ve lost. When you sweat heavily for longer periods, food-based recovery works well and avoids the added sugars found in many sports drinks. A post-workout snack combining a banana (potassium), a handful of pumpkin seeds (magnesium), and a cup of yogurt (calcium, phosphorus) covers four electrolytes without any special products.
Watermelon is another practical option after exercise. It’s roughly 92% water, contains potassium and magnesium, and the natural sugars help your body absorb fluid faster. Citrus fruits, coconut water, and even a glass of milk all serve as effective recovery drinks. If you prefer something you can sip throughout the day, mixing citrus juice with a small amount of salt and honey in water creates a simple homemade electrolyte drink that you can keep in the fridge.