If there is one thing that separates people who sail through the start of keto from those who feel dreadful and quit, it is electrolytes. Get them right and the so-called keto flu largely disappears. Get them wrong and you feel headachy, tired, crampy and foggy and blame the diet itself. But the standard keto advice to “salt everything and supplement your electrolytes” has a blind spot that matters, because one of these minerals is genuinely dangerous to overdo. Here is the practical guide, including the part the keto forums skip.
Why keto burns through electrolytes
The mechanism is simple. When you cut carbohydrate, your insulin levels fall, and lower insulin tells your kidneys to release sodium and water rather than hold onto them. As the sodium and water go, potassium and magnesium tend to follow. This is why people drop weight quickly in the first week, much of it water, and it is also why they feel rough: that flush of minerals leaves you depleted, producing the headaches, fatigue, muscle cramps, lightheadedness and brain fog of the keto flu. Replacing what you are losing is what prevents it.
Sodium: the one most people need more of
Sodium is the master electrolyte on keto and the one the usual “eat less salt” advice gets backwards here. Because you are excreting so much of it, most people on keto need more salt, not less, particularly in the early weeks and if they exercise. Salting food to taste, adding a little salt to water, or sipping broth are all reasonable ways to keep it up, and doing so resolves a large share of keto flu symptoms on its own. The caveats are specific rather than general: if you have salt-sensitive high blood pressure, heart failure or kidney disease, you should not freely increase salt and should follow your doctor’s guidance instead. For most healthy people, though, generous salt is the right call on keto, which feels counterintuitive after years of the opposite message.
Potassium: the one to be careful with
Potassium matters just as much, but it is the mineral where the casual “supplement your electrolytes” advice becomes genuinely risky, and this is the part to read carefully. The safe approach is to get potassium from food, where it is almost impossible to overdo: avocados, leafy greens, mushrooms, salmon, nuts and other low-carb foods are rich in it. The danger lies in supplements and salt substitutes, the potassium-chloride based products sold as low-sodium “lite salt”, and potassium pills. Taken in large amounts, these can push blood potassium too high, a condition called hyperkalemia, which interferes with the heart’s rhythm and can be life-threatening. People have genuinely sent themselves to A&E this way, having decided that if some electrolytes are good, megadosing must be better.
The risk is far higher for some people than others, and two groups must be especially careful. Anyone with reduced kidney function is at risk, because the kidneys are what clear excess potassium, and anyone taking medication that retains potassium, which includes the common blood-pressure drugs known as ACE inhibitors and ARBs, and potassium-sparing diuretics such as spironolactone and amiloride. If that is you, do not take potassium supplements or use potassium-based salt substitutes without medical advice. For everyone, the rule is the same: get potassium from food, treat any supplement or salt substitute with respect and modest amounts, and remember that with this mineral more is not better, it is dangerous.
Magnesium: helpful, and hard to overdo dangerously
Magnesium is the third piece, and many people are somewhat low in it even before keto. Topping it up helps with muscle cramps, sleep and constipation, all common early-keto complaints, so a magnesium supplement is one of the more useful additions for most people. Reassuringly, magnesium is much more forgiving than potassium: if you take too much, the usual result is diarrhoea as the body dumps the excess, which is unpleasant but self-limiting rather than dangerous, at least in people with healthy kidneys. Well-absorbed forms like magnesium glycinate or citrate are gentler and more effective than cheap magnesium oxide, which mostly just acts as a laxative. As with the others, people with kidney disease should be cautious, since they cannot clear excess.
The honest balance
Put together, the sensible plan is this. Keep your salt generously up, especially in the first weeks and around exercise. Get your potassium primarily from food, and be cautious and modest with any potassium supplement or salt substitute, avoiding them entirely if you have kidney problems or take potassium-retaining medication. Add a well-absorbed magnesium supplement if you are cramping or sleeping badly. Drink enough water, but do not drown yourself, since vast amounts of plain water flush minerals out further. The goal is to replace what keto makes you lose, not to turn electrolytes into a megadosing project. If you ever notice an irregular or pounding heartbeat, marked muscle weakness or numbness, treat that as a reason to seek medical advice rather than to take more.
The bottom line
Electrolytes make or break the early keto experience, and the keto flu is usually just a mineral deficit. Salt up, because most people need more sodium on keto, not less. Get potassium mainly from food and treat supplements and lite-salt with real caution, because too much potassium causes dangerous hyperkalemia, especially if your kidneys are impaired or you take ACE inhibitors, ARBs or potassium-sparing diuretics. Use a good magnesium supplement for cramps and sleep. Replace what you lose, respect that potassium has a narrow safe window, and the first fortnight stops being something to endure.
This is general information about the ketogenic diet, not medical advice. If you have kidney disease, heart conditions, or take blood-pressure or diuretic medication, do not use potassium supplements or salt substitutes without your doctor, and seek urgent care for an irregular heartbeat or severe muscle weakness.