Why electrolytes are so crucial on keto
Electrolyte deficiency is one possible reason people feel terrible at the start of keto, and the easiest one to do something about. Yet most beginners overlook it completely.
Here is the mechanism: When you cut carbohydrates sharply, your insulin level drops. Insulin normally signals the kidneys to hold on to sodium. Without that signal, the kidneys excrete significantly more sodium and water. During the first few days you can lose a couple of kilos of water weight, more in some people, and along with that water go essential electrolytes: sodium, potassium and magnesium.
This may be part of the explanation for what many call the "keto flu": headache, fatigue, dizziness, muscle cramps, brain fog, nausea and irritability. Not everyone gets it. Many people find that electrolytes from day one ease the symptoms, but this has not been tested in randomized trials, and part of the picture may have other causes that salt and magnesium do not touch: a short gap before there are enough ketones for the brain, and your gut getting used to much more fat.
In 2020 an Australian study in Frontiers in Nutrition analyzed 448 forum posts from 300 users about keto flu. Of those 300, 101 described their own experience, and among them a general flu-like feeling was the most common (about 45%), followed by headache (about 25%); brain fog came in at about 11% (our review of the study), and the advice users most often gave each other was about salt and other electrolytes, but the study did not test it. Another article dives into the mechanisms of the induction phase and what specifically helps.
Talk to your doctor before following the advice here if you:
- have kidney disease, heart disease or high blood pressure
- have heart failure, where both extra fluid and extra salt can make things worse
- take blood pressure medication (such as ACE inhibitors or ARBs, two common types) or any other prescription medication
- take diuretics: thiazides can lower sodium and potassium, loop diuretics can lower potassium and magnesium, and potassium-sparing diuretics (spironolactone, eplerenone, amiloride) can raise potassium, so the three types do not get the same advice
- take lithium (a mood-stabilizing medication for bipolar disorder): your kidneys get rid of lithium along with salt, so both the salt loss in the first weeks of keto and changes in your salt intake can change your lithium level. Start only with your psychiatrist's agreement, and have the level checked
- take an SSRI or SNRI antidepressant: it can cause too little sodium (salt) in the blood, especially in older people and people with low body weight, and the salt loss at the start of keto pulls the same way. Headache and nausea can be signs of it, so have your sodium checked, and contact your doctor the same day if you become confused
- have diabetes and take blood sugar-lowering medication, especially insulin or sulfonylureas (tablets that make the pancreas release more insulin), which can cause low blood sugar, or an SGLT2 inhibitor (such as Jardiance and Farxiga), which can cause ketoacidosis, a dangerous buildup of acid, even with normal blood sugar
- have adrenal insufficiency, where the risk of an electrolyte crisis is increased
- are pregnant or nursing, are under 18, or have a history of eating disorders
The figures are practice ranges for healthy adults on keto, not official public health recommendations, and they have not been reviewed by a physician.
The three essential electrolytes
Sodium: the most important
Sodium is the electrolyte you lose the most of on keto, and the one that triggers symptoms fastest when you fall short.
Daily need on keto: 1-2 grams of extra sodium a day, for example as 1-2 cups of broth, is the level our review of the induction phase points to for healthy adults during the first weeks. There are no dosing trials behind that number, only physiological reasoning and practice experience. As a tool: ½ teaspoon of salt is roughly 1,100 mg of sodium. There are no official public health recommendations for keto.
For comparison, the WHO recommends less than 2,000 mg of sodium per day for the general population on a standard diet, precisely because a high salt intake can strain blood pressure, and the Nordic Nutrition Recommendations 2023 set the limit at 2,300 mg of sodium a day for adults. The difference comes down to your kidneys excreting far more sodium when insulin is very low.
If you have high blood pressure, heart or kidney disease, or take diuretics or blood pressure medication, do NOT increase your salt intake without your doctor's approval. If you take lithium, any change in salt intake needs your doctor's approval and blood tests, because changes in salt intake can change your lithium level.
Deficiency symptoms: Headache, fatigue, dizziness (especially when you stand up quickly), brain fog, muscle weakness, nausea.
How to get enough:
- Salt water: Add ¼ teaspoon of unrefined salt (Himalaya salt or Celtic sea salt) to a large glass of water, about half a liter. That gives roughly 550 mg of sodium. Drink this 2-3 times a day.
- Salt your food generously: Use unrefined salt (Himalaya or Celtic sea salt) instead of ordinary table salt. Unrefined salt is free of anti-caking agents and contains trace minerals in small amounts.
- Broth or bone broth: A glass of warm broth or bone broth provides sodium plus the amino acid glycine and the protein collagen. Good in the morning on an empty stomach.
- Olives and pickled vegetables: Naturally high in sodium and keto-friendly.
Quick test: If you have a headache or feel sluggish on keto, you can try a large glass of water with ½ teaspoon of salt. If the symptoms ease afterward, that is a first attempt and not proof, because the same symptoms can come from low blood sugar on diabetes medication, poorly controlled blood pressure or ketoacidosis on an SGLT2 inhibitor. If you have high blood pressure, heart or kidney disease, or take diuretics, skip the attempt. If the symptoms get worse, stop and contact your doctor.
Potassium: the overlooked one
Potassium works together with sodium to regulate fluid balance, nerve signals and muscle contractions. A deficiency can cause serious symptoms.
Daily need on keto: 3,000-4,000 mg — from food, not pills. That is in line with the official reference intake: the NIH lists 2,600 mg (women) and 3,400 mg (men) as an adequate daily intake for adults.
Deficiency symptoms: Muscle cramps (especially in the legs at night), heart palpitations, fatigue, constipation, numbness or tingling.
How to get enough:
- Avocado: One whole avocado contains about 1,000 mg of potassium, and it is also packed with healthy fats and fiber. Eat one a day if you can.
- Spinach: 100 grams of cooked spinach provides about 470 mg of potassium and about 85 mg of magnesium; raw spinach is around 560 mg of potassium per 100 grams. Add it to eggs, salads or as a side dish.
- Salmon: 150 grams of wild-caught salmon contains about 600 mg of potassium plus anti-inflammatory omega-3 fatty acids.
- Mushrooms: Mushrooms are surprisingly high in potassium and low in carbohydrates.
- Lite Salt / Lo Salt (potassium-enriched salt): A blend of sodium chloride and potassium chloride. Use it as a replacement for or supplement to ordinary salt, and you get sodium AND potassium at once.
Warning about supplements: Over-the-counter potassium supplements only give small doses, typically under 100 mg per pill, and larger doses are prescription-only. That is far from enough. Focus on foods and Lite Salt rather than pills.
Important: If you take blood pressure medication (especially ACE inhibitors or ARBs), potassium-sparing diuretics (spironolactone, eplerenone, amiloride), trimethoprim or NSAIDs, or have kidney problems, talk to your doctor before increasing your potassium intake. These conditions and medications can affect the body's ability to clear potassium, and too much can be dangerous.
Magnesium: the silent deficiency
Magnesium is involved in over 300 enzymatic processes in the body. Many people already have a magnesium deficit before they start keto, and keto amplifies it. Research shows that magnesium lowers blood pressure and inflammation in metabolic syndrome.
Daily need on keto: 310-420 mg in total per day (the NIH reference intake for adults) — food counts toward it. Important: the NIH upper limit for magnesium from supplements is 350 mg per day; more can cause diarrhea and stomach trouble, and higher doses belong with your doctor. A supplement of 200-350 mg covers most people on keto.
If your kidney function is reduced, do not take a magnesium supplement without your doctor's approval, because magnesium is cleared by the kidneys and accumulates when they work less well. If you take antibiotics or bisphosphonates, take magnesium at least 2 hours apart, and diuretics and proton pump inhibitors increase magnesium excretion.
Deficiency symptoms: Muscle cramps, sleep problems, anxiety and restlessness, irregular heart rhythm, fatigue.
How to get enough:
- Supplements: Magnesium glycinate and magnesium citrate are the most widely used forms. Glycinate is the one many people take in the evening (see the timing tip below). Citrate is well absorbed but has a laxative effect that can be strong in some people, so start with a low dose (100-200 mg) and increase gradually; it can help if you are constipated. Avoid magnesium oxide, which your body absorbs poorly.
- Almonds: 30 grams of almonds provide about 80 mg of magnesium.
- Spinach: Another reason to eat spinach daily, it is rich in both potassium and magnesium.
- Dark chocolate (85%+ cocoa): 30 grams provide about 65 mg of magnesium and 5-7 grams of net carbohydrates depending on the brand, so check the label. A small square after dinner can become your daily magnesium ritual.
Timing tip: Take magnesium glycinate 30-60 minutes before bedtime. Magnesium is not part of making GABA itself (a neurotransmitter that promotes relaxation), but it dampens the NMDA receptor and modulates the GABA-A receptor, and that can have a relaxing effect that helps sleep in some people. Research on circadian rhythms suggests that fasting and eating patterns affect sleep, but the strongest evidence comes from animal studies and says nothing about when you should take magnesium.
Electrolyte balance week by week
Week 1-2: The critical period
This is when the need is greatest. Your body loses water weight quickly, and the electrolyte loss is significant. Be aggressive with salt and fluids:
- Drink to thirst, for most people a couple of liters a day, and add salt. Plain water does not wash your salts out, but drinking liter after liter without salt while you are already losing sodium can dilute the sodium in your blood, which is a real risk on thiazides or SSRIs and in heart failure. If you have heart failure or kidney disease, agree your fluid intake with your doctor.
- Salt water 2-3 times a day (¼ tsp salt per glass)
- Eat avocado daily
- Start magnesium glycinate in the evening
- Consider Lite Salt for extra potassium
Signs that are not keto flu
Some symptoms in the first weeks look like keto flu but are something else:
- An irregular heartbeat, chest pain or fainting: See a doctor the same day, and do not take more potassium on your own.
- Shakiness, dizziness or confusion on insulin or sulfonylureas: It may be low blood sugar rather than keto flu, so check your blood sugar.
- Nausea, vomiting or feeling unwell on an SGLT2 inhibitor: It may be ketoacidosis rather than keto flu, so see a doctor the same day.
- Nausea, vomiting or shortness of breath while breastfeeding: It may be ketoacidosis rather than keto flu, so get medical help right away.
- Signs of mania: If you sleep much less than usual without feeling tired, have unusually high energy, or your thoughts race during your first months of keto, contact your doctor or psychiatrist the same day. This is called hypomania, or mania in its more severe form. It applies even if you have never had bipolar disorder.
If the symptoms become severe or have not eased after four weeks, talk to your doctor.
Week 3-4: Stabilization
- Keep up the salt water at least once a day
- Maintain the magnesium supplement in the evening
- Eat potassium-rich foods daily
Long-term maintenance
The extra salt loss through the kidneys eases after about two weeks. But keto cuts out bread and processed food, which supply much of the salt people otherwise get, so many still need to salt their food on purpose. Make it a habit.
Mineral-rich salt vs. table salt
Ordinary table salt is heavily processed, what remains is pure sodium chloride plus anti-caking agents (typically sodium aluminosilicate) and added iodine.
Himalaya salt and Celtic sea salt contain trace minerals, but in such small amounts that they do not cover your daily need for minerals like potassium or magnesium. The main benefit of unrefined salt is the absence of anti-caking agents, not the mineral content.
Important about iodine: In many countries, ordinary table salt is fortified with iodine (check the label), which is essential for your thyroid. Unrefined salt usually is not, so if you switch, make sure to get iodine from other sources: fish (especially cod and saithe), eggs, shellfish and seaweed. Alternatively, you can take an iodine supplement (150 µg daily).
You do not need to buy the most expensive salt, but an unrefined alternative free of additives is preferable.
Ketoade, your daily electrolyte drink
A simple homemade electrolyte drink is an easy way to get salt and potassium, especially in the first few weeks. Here is a recipe you can adjust to taste:
- 1 liter of water
- ½ tsp unrefined salt (Himalaya salt or Celtic sea salt)
- ¼ tsp Lite Salt (potassium-enriched salt) for potassium
- Juice from half a lemon or lime
Drink 1-2 liters of this mixture daily. It is far easier to get the electrolytes down when it tastes good. If you have one of the conditions or take any of the medications in the box at the top, agree the amount of salt and Lite Salt with your doctor before drinking this daily.
Apple cider vinegar: A useful supplement
Apple cider vinegar (ACV) is a popular supplement on keto, and there are good reasons for it:
- Can help stabilize blood sugar, see what the research says about apple cider vinegar and blood sugar
- Acts as an appetite suppressant for some
- Supports digestion
Add 1-2 tablespoons to a large glass of water and drink it with or just before a meal that contains carbohydrates, not on an empty stomach. Always dilute it in water to protect your tooth enamel, and rinse your mouth afterward. Do not mix it into a liter of ketoade you sip all day, which exposes your teeth to acid hour after hour. If you take insulin or another blood sugar-lowering medication, talk to your doctor first: the combination can cause low blood sugar.
Other minerals you should know about
Beyond the three big electrolytes, there are two minerals that are often overlooked on restrictive diets:
- Zinc and immune function, zinc is crucial for the immune system and can be hard to get enough of on keto (good keto-friendly sources: oysters, beef and pumpkin seeds).
- Iron deficiency on keto in women, women are at particular risk of iron deficiency, which is amplified by restrictive diets (good keto-friendly sources: liver, beef and mussels).
When should you seek help?
Contact a doctor if you experience:
- Dizziness that does not pass once you have had salt and fluid
- Muscle cramps that do not respond to magnesium
- Persistent nausea or vomiting
Some of these symptoms can also come from an illness that has nothing to do with keto.
Your daily electrolyte routine
Here is the simplest possible daily routine that covers all three electrolytes. It is written for healthy adults; if you have one of the conditions or take any of the medications in the box at the top, go through it with your doctor first:
Morning: A large glass of ketoade (see recipe above) or water with ¼ tsp unrefined salt and a pinch of Lite Salt. Black coffee or tea.
Mid-morning: Another glass of salt water. Save the apple cider vinegar for a meal that contains carbohydrates.
Lunch/first meal: Avocado + spinach + salmon or eggs. Salt generously.
Dinner: Protein + vegetables. Salt to taste. 30 grams of dark chocolate (85%+) as a magnesium source.
Bedtime: 200-350 mg magnesium glycinate with a glass of water, and not without your doctor's approval if your kidney function is reduced.
That is all there is to it. It takes no extra time and costs very little.
