If one thing separates people who settle into keto comfortably from people who struggle, it is electrolytes. Get them right and most of the early misery never arrives. Ignore them and you spend your first month tired, crampy and wondering why everyone raves about this.
Why keto changes your needs
On a normal carbohydrate intake your body holds extra water and sodium. Cut the carbs and that retained water is released, taking a good deal of sodium with it. Lower insulin levels tell the kidneys to shed yet more. The upshot is that a keto eater loses minerals faster than someone eating bread and pasta, and needs to replace them more deliberately. This is the root of the keto flu, and it is entirely manageable.
The three that matter
Sodium is the big one, and the one people get most wrong because they have spent years being told to cut salt. On keto you usually need more, not less. Salting food properly and drinking a cup of broth, especially in the first weeks, covers most of it.
Potassium works alongside sodium and is the one most likely to be low in a hurried keto diet. Leafy greens, avocado, salmon and mushrooms are good sources. A salt substitute that is part potassium chloride is an easy way to lift both at once.
Magnesium is the quiet one. A shortfall shows up as muscle cramps, twitchy legs at night and poor sleep. It is hard to get enough from food alone on any diet, so a fair number of keto eaters take a magnesium supplement in the evening, which tends to help sleep as a bonus.
How much, roughly
Guidance varies, but as a rough picture many keto eaters aim for somewhere around three to five grams of sodium a day, a few grams of potassium, and a few hundred milligrams of supplemental magnesium. These are general figures for healthy adults, and they are higher than standard advice precisely because keto flushes more out.
The easy routine
You do not need sachets of expensive electrolyte powder, though they are convenient. Salt your meals without guilt, drink broth when you feel flat, eat greens and avocado, and take magnesium at night if you cramp or sleep badly. Build that in from day one rather than waiting until you feel rough, and the adjustment to keto is far smoother. The keto flu piece covers the early-days version of this in more detail.
This is general information about the ketogenic diet, not medical advice. People with kidney problems, heart conditions or on blood-pressure medication should be careful with sodium and potassium and should speak to a doctor before changing their intake.