How much sodium, potassium and magnesium should I have on a ketogenic diet?

By Dr. Stephen Phinney and the Virta Team

In short, 3000-5000 mg of sodium and 3000-4000 mg of potassium on average are needed as part of a well-formulated ketogenic diet. For sodium and potassium (aka electrolytes), rather than trying to track them directly (which is frustrating at best), we recommend salting food to taste, adding 2 grams of sodium as broth or bouillon, and eating 5 servings of non-starchy vegetables daily. For magnesium, 300-500 mg is an initial recommendation. Muscle cramps are our best indicator of depletion, and to replenish one’s intracellular magnesium, we generally recommend 3 tabs per day of Slow-Mag or the generic slow-release equivalent for 3-6 weeks.

Back to Keto FAQ

Related blog posts

Dr. Stephen Phinney on Nutritional Ketosis and Ketogenic Diets: Video Series - Dr. Stephen Phinney put together a three-part video series on ketogenic diets and nutritional ketosis. You'll learn the nutrition science ... Read More
Ketone Supplements: The Pros and Cons - Ketone supplements rapidly and transiently increase blood concentrations of BOHB. On the surface, this seems like it should promote positive ... Read More
Sarah Hallberg, DO, MS Reversing Diabetes 101 with Dr. Sarah Hallberg: The Truth About Carbs, Blood Sugar and Reversing Type 2 Diabetes - You may have heard a lot about type 2 diabetes – but do you know what it actually does to ... Read More


  1. I have hart PVC and trying to find the best potassium magnesium foods I can help PVCs trying to find a balance with food intake of the daily requirement for a man what’s the magnesium potassium sodium being of my heart condition and what the foods are and how much to intake to achieve that number, free better functioning heart ECT. Thanks


    1. Virta Health

      Hi Robert. We are unable to provide specific medical advice via this forum. We would encourage you to speak with your physician or a medical provider that is familiar with your medical history.


Leave a reply

Your email address will not be published.