Skip to main content
Tool / Nutrition

Keto Electrolyte Calculator.

Cutting carbs drops insulin, and low insulin makes your kidneys dump sodium. Most of what gets called keto flu is that, not ketosis. This gives you a sodium target, a magnesium range, and the potassium number to hit from food.

Sex (sets the potassium reference)
Where you are
Training load
Before we show potassium

Potassium is the one electrolyte where taking too much is more dangerous than taking too little. Tick anything that applies to you.

Educational reference, not medical advice. Sodium is not harmless for everyone: if you have high blood pressure, heart failure, or kidney disease, the right sodium intake is a clinical decision. Persistent cramps, palpitations, confusion or fainting during a fast are reasons to stop and get seen, not reasons to take more salt.

Frequently Asked Questions

Why do you need more sodium on keto?+

Insulin tells the kidney to hold on to sodium. Cut carbohydrate and insulin falls, so the kidney stops holding it and starts excreting it, taking water with it. The same thing happens during a fast, and more sharply, because ketone anions produced under low insulin have to leave the body paired with a cation. That is the natriuresis of fasting, and it is well-described physiology rather than a keto talking point.

Is keto flu just low electrolytes?+

A large part of it is. Headache, fatigue, light-headedness on standing, muscle cramps and poor exercise tolerance in the first weeks map closely onto sodium and magnesium depletion, and they often resolve within a day of correcting sodium. That is not the same as saying every symptom is electrolytes. If you feel genuinely unwell rather than flat, treat that as a reason to check in with a clinician.

How much salt is that in practice?+

A level teaspoon of table salt is roughly 2,300 mg of sodium, so a 4,000 mg target is under two teaspoons across a whole day, most of which you get by salting food normally and drinking a mug or two of broth. Spread it out. Taking it in one hit tends to cause stomach upset rather than better absorption.

Why will you not give me a potassium supplement dose?+

Because potassium is the electrolyte where too much is more dangerous than too little. Blood potassium that runs high can cause fatal heart rhythms, and the people most at risk are exactly the people who often do not know they are at risk: reduced kidney function, or common blood-pressure medicines like ACE inhibitors, ARBs and potassium-sparing diuretics. Supplement makers voluntarily stop at 99 mg per tablet to stay below the threshold at which potassium salt products must carry warning labelling, a rule that exists because larger single doses were linked to bowel injury. The number this page shows is the ordinary dietary reference intake to reach through food, which is what a clinical ketogenic programme also recommends.

Do I need electrolytes during a water fast?+

Sodium in particular, yes, and the need does not go away just because you are not eating. Losses continue for as long as insulin stays low. Magnesium matters for cramps and sleep. Potassium is the one to be careful with, and it is also the one you cannot get from food while fasting, which is another reason to keep long fasts short and supervised rather than improvised.

The ScienceUpdated 2026-08-22

Why cutting carbs makes you lose salt.

Insulin does more than move glucose. One of its quieter jobs is telling the kidney to hold on to sodium. Cut carbohydrate far enough and insulin falls, the signal to retain sodium weakens, and the kidney starts letting it go, taking water out with it. That is why the scale drops several pounds in the first week of keto and why the drop is not fat.

During a fast the same mechanism runs harder. Low insulin and rising glucagon push the liver to make ketones, and ketones are anions: they cannot leave the body alone, so they leave paired with a positively charged partner, and early in a fast that partner is largely sodium. Physiologists have a name for it, the natriuresis of fasting, and it has been described in the literature since the 1970s. Ammonium takes over the job later, which is part of why the effect eases after the first days.

This is the honest reason a keto or fasting electrolyte target is higher than a general population one. It is not a supplement-industry invention. It is what happens when the hormone that tells your kidney to keep salt stops being secreted.

What "keto flu" usually is.

Headache, fatigue, light-headedness when you stand up, muscle cramps, and feeling like your training has fallen off a cliff. Those are the classic first-fortnight complaints, and most of them are the symptoms of a contracted blood volume rather than anything to do with ketones themselves. Correcting sodium often resolves them within a day, which is a strong clue about the cause.

The claim worth resisting is the stronger one, that every symptom in the first weeks is electrolytes and can be salted away. Feeling flat is common and usually fixable. Feeling genuinely unwell is not the same thing, and persistent palpitations, confusion, fainting or severe cramps deserve a clinician rather than another spoon of salt.

The one drug interaction that hides from a ketone meter.

SGLT2 inhibitors, the diabetes and heart-failure drugs whose names end in -flozin, work by making the kidney dump glucose into the urine. Combine that with a ketogenic diet or a fast and the body can slide into ketoacidosis while blood glucose still reads normal or only slightly high. It has a name, euglycemic diabetic ketoacidosis, and there are published case series of it happening specifically to people who started keto or intermittent fasting on one of these drugs.

What makes it dangerous is the reassurance. The number most people check to decide whether something is wrong, blood glucose, stays unremarkable, so the picture gets dismissed and treatment is delayed. A ketone reading looks like deep ketosis rather than an emergency, and a ratio like GKI cannot separate the two at all, because both numbers move in the direction that looks like success.

This is why the calculator asks about these drugs before it shows anything. If you take one, the question is not how much sodium to take. It is whether to fast at all without talking to the person who prescribed it, and whether the drug should be paused first.

Potassium is the one to be careful with.

Sodium and magnesium are forgiving in healthy people: overshoot and you get thirst or loose stools. Potassium is not like that. Blood potassium that runs too high interferes with cardiac conduction and can be fatal, and the body clears the excess through the kidney, so anything that impairs the kidney or blocks the hormonal pathway that drives potassium excretion changes the arithmetic completely.

That is why this calculator asks about kidney disease, ACE inhibitors, ARBs and potassium-sparing diuretics before it will show a potassium figure, and why the number it does show is the ordinary dietary reference intake rather than a supplement dose. Oral potassium tablets are limited to 99 mg in the United States precisely because larger single doses have caused harm. Clinical ketogenic programmes give the same advice: get potassium from vegetables, avocado and broth, not from a bottle.

One consequence worth stating plainly: during a water fast you cannot reach a potassium target from food, because you are not eating. That is a genuine argument for keeping unsupervised fasts short rather than for improvising with supplements.

← All Tools · Nutrition

For education, not medical advice. Results are estimates, not a diagnosis. Discuss any abnormal value or health concern with a qualified clinician.

Free / PDF Guide

50 High-Protein Snacks. Free.

Drop your email. We'll send the PDF straight to your downloads and add you to the weekly research drop. Unsubscribe anytime.

See what's inside →