science · 14 min read · · Updated

How to Get Electrolytes on Keto: Food Sources and Supplements

A practical guide to meeting elevated electrolyte needs on a ketogenic diet through keto-friendly foods, supplements, and smart meal planning.

By Clay Lengel, Staff Writer for saltstackapp.com

Key Takeaways

  • Keto dieters need substantially more electrolytes than the general population: 4,000-5,000 mg sodium, 3,500-4,700 mg potassium, and 400-600 mg magnesium daily.
  • Many traditional electrolyte-rich foods are not keto-compatible. Bananas, potatoes, beans, and whole grains are excellent potassium and magnesium sources -- and all are too high in carbohydrates for standard keto.
  • Keto-friendly alternatives exist for every electrolyte. Avocados, spinach, salmon, nuts, seeds, and bone broth can cover a significant portion of your needs without breaking ketosis.
  • Food sources alone are usually insufficient. Strategic supplementation bridges the gap between what keto-friendly foods provide and what your body requires.
  • Ketoade -- a homemade electrolyte drink -- is the most cost-effective and customizable supplementation strategy for keto dieters.

The Keto Electrolyte Challenge

The ketogenic diet creates a specific electrolyte problem. On one hand, your body excretes more sodium, potassium, and magnesium than it would on a standard diet, because reduced insulin levels signal the kidneys to flush sodium, and water, potassium, and magnesium follow. On the other hand, many of the richest dietary sources of potassium and magnesium -- bananas, sweet potatoes, beans, lentils, whole grains -- are too high in carbohydrates to fit within a 20 to 50 gram daily carb limit.

This is not an insurmountable obstacle. It just requires intentional planning. Understanding which keto-compatible foods are highest in each electrolyte, supplementing strategically, and tracking your intake ensures you get what you need without compromising ketosis.

For the science behind why keto elevates electrolyte requirements, see why you need electrolytes on keto. For the role electrolytes play in preventing keto flu, see our keto flu guide.

Sodium: The Easiest Electrolyte to Get on Keto

Of the three key electrolytes, sodium is the simplest to manage on keto. You are not limited by carbohydrate restrictions -- salt has zero carbs and can be added liberally to any food.

Keto-Friendly Sodium Sources

Salt your food generously. This is the single most impactful habit. A quarter teaspoon of table salt contains approximately 575 mg of sodium. Salting each meal to taste can easily add 1,500 to 2,500 mg of sodium to your daily intake.

Bone broth. One cup of homemade or store-bought bone broth provides 500 to 900 mg of sodium, plus trace minerals including potassium, magnesium, and calcium. Bone broth is also rich in collagen and is virtually zero-carb, making it an ideal keto staple. Sipping a cup in the morning or as an afternoon pick-me-up covers a meaningful portion of your sodium target.

Brined vegetables. Fermented and brined vegetables like sauerkraut, kimchi, and brined cucumbers are high in sodium with negligible carbohydrates. A quarter cup of sauerkraut provides roughly 200 to 350 mg of sodium plus probiotics that support gut health.

Olives. Ten large olives provide approximately 400 to 500 mg of sodium along with healthy fats. Green olives tend to be higher in sodium than black olives.

Cheese. Hard cheeses like parmesan (approximately 450 mg sodium per ounce) and feta (approximately 315 mg per ounce) are keto-friendly sodium sources that also contribute protein and fat.

Cured and smoked meats. Bacon, prosciutto, salami, and smoked salmon are all high in sodium and compatible with keto macros. Two slices of bacon provide roughly 300 to 400 mg of sodium.

Sodium Daily Target: 4,000-5,000 mg

Between salting food, a daily cup of broth, and high-sodium keto foods, many people can reach 3,000 to 3,500 mg from food alone. Electrolyte drinks or salt capsules bridge the remaining gap. The electrolyte product comparison tool can help you find the right supplement for your sodium needs.

Potassium: The Harder Electrolyte to Get on Keto

Potassium is where keto meal planning gets more challenging. The highest potassium foods in the standard American diet -- bananas (422 mg), baked potatoes (610 mg), orange juice (496 mg per cup), and beans (600-700 mg per cup) -- are all high in carbohydrates. Keto dieters must rely on a different set of foods.

Keto-Friendly Potassium Sources

Food Potassium (mg) Net Carbs (g) Serving
Avocado (whole) 975 3 1 medium
Swiss chard (cooked) 960 4 1 cup
Spinach (cooked) 840 3 1 cup
Coconut water (limited) 600 9 1 cup
Mushrooms (cooked) 555 4 1 cup
Salmon 534 0 6 oz fillet
Brussels sprouts 495 5 1 cup
Zucchini (cooked) 475 3 1 cup
Broccoli (cooked) 460 4 1 cup
Pork chop 382 0 6 oz
Hemp seeds 335 1 3 tbsp

Avocados are the single best keto potassium source. One medium avocado provides nearly 1,000 mg of potassium with only about 3 grams of net carbs and a generous dose of healthy fats. Eating one avocado per day covers roughly a quarter of your potassium target.

Leafy greens are essential. Cooked spinach and Swiss chard are potassium powerhouses at keto-compatible carb levels. A daily serving of cooked greens can contribute 800 to 1,000 mg of potassium.

Salmon and other fatty fish provide potassium alongside omega-3 fatty acids and protein, all with zero carbs.

The Potassium Gap

Even with deliberate food choices, hitting 3,500 to 4,700 mg of potassium from keto-friendly foods alone is difficult. A realistic keto day might provide:

  • 1 avocado: 975 mg
  • 1 cup cooked spinach: 840 mg
  • 6 oz salmon: 534 mg
  • 1 cup broccoli: 460 mg
  • Total from food: approximately 2,809 mg

That leaves a gap of 700 to 1,900 mg depending on your target. This is where supplementation and ketoade come in.

Potassium chloride (sold as salt substitute under brands like Nu-Salt or No Salt) is an inexpensive way to supplement potassium. A quarter teaspoon provides approximately 650 mg of potassium. Adding it to ketoade or sprinkling it on food alongside regular salt is a simple strategy.

A note on supplement limits: FDA regulations limit potassium supplements to 99 mg per tablet or capsule, far too little to be practical for meeting daily targets. Potassium chloride salt substitute is the most cost-effective supplemental source, followed by electrolyte drink mixes with meaningful potassium content.

For more on the consequences of inadequate potassium, see our guide on potassium deficiency symptoms.

Magnesium: The Most Commonly Under-Supplemented

According to NIH data, 48% of Americans already consume less than the recommended amount of magnesium -- and that is on a standard diet. Keto often makes it worse by eliminating magnesium-rich foods like beans, whole grains, and certain fruits.

Keto-Friendly Magnesium Sources

Food Magnesium (mg) Net Carbs (g) Serving
Hemp seeds 197 1 3 tbsp
Spinach (cooked) 157 3 1 cup
Pumpkin seeds 156 2 1 oz
Swiss chard (cooked) 150 4 1 cup
Flax seeds 110 0 2 tbsp
Mackerel 82 0 3 oz
Almonds 80 3 1 oz
Dark chocolate (85%+) 65 7 1 oz
Avocado 58 3 1 medium

Pumpkin seeds and hemp seeds are the keto magnesium champions -- high in magnesium, low in net carbs, and easy to add to meals or eat as snacks.

Spinach appears again. Cooked spinach is a potassium and magnesium double threat, providing roughly 157 mg of magnesium per cup alongside 840 mg of potassium. A daily serving of cooked spinach is one of the most efficient moves a keto dieter can make.

Magnesium Supplementation

Even with optimal food choices, most keto dieters benefit from magnesium supplementation. A realistic keto day might provide 200 to 300 mg from food, leaving a gap of 100 to 300 mg to reach the 400 to 600 mg target.

Choose bioavailable forms:

  • Magnesium glycinate: Well-absorbed, minimal GI side effects, good for general supplementation and sleep support
  • Magnesium citrate: Well-absorbed, mild laxative effect (which some keto dieters find helpful since constipation is a common side effect of the diet)
  • Magnesium L-threonate: Crosses the blood-brain barrier, may support cognition and sleep

Avoid magnesium oxide, which has absorption rates of only 4 to 15% according to research cited by the NIH.

The NIH sets the tolerable upper intake for supplemental magnesium at 350 mg per day. This refers to supplements only -- magnesium from food has no established upper limit. Stay within this range unless directed otherwise by a healthcare provider.

For a deep dive into magnesium forms, benefits, and dosing, see our magnesium benefits guide and magnesium for sleep guide.

The Ketoade Recipe: Your Daily Electrolyte Foundation

Ketoade is the keto community's term for a homemade electrolyte drink. It is cheap, customizable, and provides meaningful amounts of all three key electrolytes. Once you establish a recipe you like, it takes less than a minute to prepare.

Basic Ketoade Recipe

  • 24 oz (3 cups) of water
  • 1/2 teaspoon of table salt or sea salt (~1,150 mg sodium)
  • 1/4 teaspoon of potassium chloride salt substitute (~650 mg potassium)
  • 1-2 tablespoons of lemon or lime juice (flavor and trace minerals)
  • Optional: liquid stevia or a splash of sugar-free flavor enhancer (like Mio)

Stir or shake until dissolved. Sip throughout the morning or afternoon.

Cost: Less than $0.10 per serving, compared to $1.00-$1.50 for commercial electrolyte packets.

Enhanced Ketoade (with Magnesium)

Add 1/2 teaspoon of Natural Calm (magnesium citrate powder, approximately 160 mg magnesium) to the basic recipe. This gives you a three-electrolyte drink in one serving.

Note that magnesium citrate powder can have a laxative effect if consumed too quickly. Sipping slowly over an hour or two is preferable to drinking it all at once.

Ketoade Variations

Warm broth ketoade: Replace water with bone broth for a savory version that provides additional collagen and trace minerals. Skip the lemon juice and sweetener.

Sparkling ketoade: Use sparkling water instead of still water for a more refreshing option. Add a squeeze of lime and a pinch of salt substitute.

Pre-workout ketoade: Double the sodium content for a pre-workout version. The additional sodium supports plasma volume and can improve exercise performance, as documented in research published in PMC on sodium and endurance sports. For more on electrolytes during exercise, see our electrolytes for athletes guide.

Keto Meal Planning for Electrolytes

Planning meals around electrolyte content does not require a radical overhaul of your keto diet. A few strategic choices make a significant difference.

Sample High-Electrolyte Keto Day

Breakfast: Spinach and Cheese Omelet

  • 3 eggs scrambled with 1 cup raw spinach (wilted) and 1 oz cheddar cheese
  • Salt generously
  • Sodium: ~500 mg | Potassium: ~350 mg | Magnesium: ~50 mg

Morning ketoade: Basic recipe

  • Sodium: ~1,150 mg | Potassium: ~650 mg | Magnesium: 0 mg (or ~160 mg with magnesium powder)

Lunch: Salmon Avocado Bowl

  • 6 oz grilled salmon over 2 cups mixed greens with 1/2 avocado, olive oil, and salt
  • Sodium: ~400 mg | Potassium: ~1,100 mg | Magnesium: ~100 mg

Afternoon: Bone Broth + Snack

  • 1 cup bone broth + 1 oz pumpkin seeds
  • Sodium: ~700 mg | Potassium: ~250 mg | Magnesium: ~170 mg

Dinner: Pork Chop with Sauteed Swiss Chard

  • 6 oz pork chop with 1 cup sauteed Swiss chard in butter, salted
  • Sodium: ~500 mg | Potassium: ~1,340 mg | Magnesium: ~190 mg

Evening: 200 mg magnesium glycinate supplement

Daily Totals:

  • Sodium: ~3,250 mg from food (add ketoade or salt for remaining 750-1,750 mg)
  • Potassium: ~3,690 mg (within target range)
  • Magnesium: ~670 mg including supplement (within target range)

This sample day demonstrates that with deliberate food choices, you can get close to your potassium and magnesium targets from food and modest supplementation. Sodium still benefits from additional supplementation via ketoade, salting, or electrolyte products.

Weekly Keto Electrolyte Staples

Keep these items stocked to make high-electrolyte keto eating effortless:

Produce: Avocados, spinach, Swiss chard, broccoli, zucchini, mushrooms, lemons, limes

Protein: Salmon (fresh or canned), pork, chicken thighs (bone-in for broth), eggs

Fats and Seeds: Pumpkin seeds, almonds, hemp seeds, flax seeds, olive oil, coconut oil

Pantry: Table salt, potassium chloride salt substitute, bone broth (boxed or homemade), olives, sauerkraut, magnesium supplement

Dairy: Parmesan, feta, cheddar, cream cheese, full-fat yogurt (unsweetened, in moderation)

Commercial Supplement Options

When food and ketoade are not enough, or when convenience matters, commercial electrolyte products fill the gap. Here are the key considerations for keto dieters.

What to Look For

  • Zero sugar. Many electrolyte products contain substantial sugar. On keto, this can interfere with ketosis and adds unnecessary carbohydrates. Choose products sweetened with stevia, monk fruit, or nothing at all.
  • Meaningful sodium content. Products with less than 200 mg of sodium per serving are not providing enough to matter for keto needs. Look for 500 mg or more per serving.
  • Potassium and magnesium included. Products that only provide sodium miss two-thirds of the equation.
  • No unnecessary fillers. Artificial colors, maltodextrin (a hidden carb source), and excessive additives are common in electrolyte products and undesirable for keto dieters.
  • LMNT: 1,000 mg sodium, 200 mg potassium, 60 mg magnesium per packet. Zero sugar. The high sodium content makes it particularly useful during keto adaptation.
  • Re-Lyte: 810 mg sodium, 400 mg potassium, 50 mg magnesium per serving. Zero sugar. Uses real salt with trace minerals.
  • Keto Chow Daily Minerals: Specifically formulated for keto dieters with sodium, potassium, magnesium, and trace minerals. Unflavored drops that can be added to any beverage.

For a side-by-side comparison, see our best electrolyte drink guide and the electrolyte product comparison tool.

Tracking Your Electrolyte Intake

The difference between guessing and knowing is the difference between suffering through keto adaptation and handling it smoothly. Electrolyte tracking does not need to be complicated, but it should be consistent, especially during the first month.

What to track: Sodium, potassium, and magnesium from all sources -- food, ketoade, supplements, and electrolyte drinks.

How to track: The SaltStack app is built specifically for electrolyte tracking. It lets you log all three minerals from both food and supplements, set custom daily targets, and visualize your trends over time. The electrolyte calculator can help you determine the right targets based on your diet and activity level.

When to track: Daily for at least the first four weeks of keto. After that, weekly spot-checks are usually sufficient unless symptoms return or you make significant dietary changes.

Frequently Asked Questions

Can I get all my electrolytes from food on keto?

Sodium: yes, if you salt food aggressively and include broth, brined vegetables, and other high-sodium keto foods. Potassium: it is possible but requires very deliberate meal planning -- avocados, spinach, Swiss chard, and salmon at nearly every meal. Magnesium: unlikely without supplementation, especially during the first month. Most keto dieters benefit from a combination of food sources and targeted supplementation.

How much ketoade should I drink per day?

One to three servings is typical. During the first two weeks of keto, more is generally better. After adaptation, one serving per day is often sufficient as a maintenance strategy, assuming your food provides additional electrolytes.

Is coconut water keto-friendly?

In limited amounts. One cup of coconut water contains approximately 600 mg of potassium but also 9 grams of net carbs. If your daily carb budget is 20 grams, a full cup uses nearly half. A half cup (4 grams of net carbs) is more manageable and still provides 300 mg of potassium.

Do I need to supplement electrolytes forever on keto?

The most aggressive supplementation is needed during the first two to four weeks. After adaptation, many people reduce their supplementation but do not eliminate it entirely. The insulin-mediated sodium excretion mechanism persists as long as you remain on keto, so some degree of elevated intake is necessary long-term. Most long-term keto practitioners settle into a routine of salting food liberally, drinking one serving of ketoade or an electrolyte drink daily, and taking a magnesium supplement.

Can too many electrolytes kick me out of ketosis?

Electrolyte minerals themselves (sodium, potassium, magnesium) have zero carbohydrates and do not affect ketosis. However, some electrolyte products contain hidden carbs from sugar, maltodextrin, or other additives. Always check labels. Pure salt, potassium chloride, and magnesium supplements are all carb-free.

Disclaimer: This content is for informational purposes only and is not medical advice. Consult your healthcare provider before making changes to your electrolyte intake.

Related Articles