Electrolytes While Fasting: Sodium, Potassium, Magnesium
By Dr. Eric Berg
This article is for information only and is not medical advice. Talk to your doctor before starting a fast, especially if you are pregnant or nursing, have type 1 diabetes, a history of eating disorders, kidney or heart disease, or take medication that must be taken with food.
It is day two of your fast. Your head aches, you stand up too fast and the room tilts, and you wonder whether you are doing something wrong — or whether this is just what fasting feels like.
Most of the time, it is neither willpower nor “detox.” It is electrolytes. When you stop eating, your body starts losing salt faster than usual, water follows the salt out, and the result is the classic day-two wobble: headache, dizziness on standing, fatigue, and leg cramps at 3 a.m.
This post gives you the honest version of the numbers every fasting page repeats. The doses below are widely used in fasting programs, but they are program practice, not trial-tested precision. Nobody has run a trial that proves an exact daily dose for a fasting person. The table in this post says so, row by row — because a dose presented as settled science, when it is not, is worse than no dose at all.
Why fasting drains your electrolytes
The mechanism is simple, and it starts with insulin. When you eat, insulin helps your kidneys hold on to sodium. When you fast, insulin falls, and the kidneys loosen their grip. Sodium leaves in urine, and water follows it. That is called the natriuresis of fasting, and it is strongest in the first 24–48 hours.
Ketones add a second drain. As your body makes ketone bodies for fuel, those ketones leave the body bound to sodium and potassium. So the early fast loses minerals two ways at once — which is why the first two days feel worst, and why the symptoms ease as the body adapts and ammonium starts replacing sodium in urine.
The three minerals that matter most are:
- Sodium — the volume mineral. It holds water in your blood. Lose sodium and your blood volume drops, so you feel dizzy when you stand.
- Potassium — the rhythm mineral. It keeps heart and muscles working steadily. You need it, but supplementing it is where the real danger sits (see the warning box below).
- Magnesium — the slow mineral. It depletes more gradually, and its signature is cramps, twitching and poor sleep on multi-day fasts.
The symptoms, mapped to the fix
Do not guess from a generic list. Match what you feel to the fix, in this order — sodium first, then potassium, then magnesium.
- Dizzy on standing, or a day-two headache → sodium + water first. A pinch of salt in water, or a salty broth, is the low-effort fix. Sit down for 20 minutes. Fainting or confusion is not a symptom to push through — break the fast and get checked.
- Night cramps → sodium first, then potassium later in the day, magnesium before bed. Cramps that arrive after several days of fasting are rarely a single-mineral story.
- Heart flutter or palpitations → stop potassium at once, sit down, and get medical review. This is a stop sign, not a dosing puzzle to solve by adjusting the amount.
- Wired but exhausted at night → magnesium glycinate in the evening, and caffeine finished by noon. Caffeine late in the day costs you the sleep that would otherwise help you recover.
If a symptom does not improve after the sodium fix, do not keep adding minerals on top of each other. That is how a simple salt problem turns into a potassium problem.
How much you actually need
The table below is organised by fast length, because a 16:8 faster and a five-day faster do not have the same problem. Read the evidence-strength column as part of the dose, not as a footnote.
| Fast length | What to take | Evidence strength |
|---|---|---|
| 16:8 daily fasting | Food in your eating window usually covers it. On hard days, a pinch of salt in water is enough. No supplement protocol needed. | Well established: normal diet plus normal kidney function covers daily losses |
| 24–48 hours | Sodium is the main fix: roughly 3–5 g of sodium per day (about 1.5–2.5 teaspoons of salt), taken with water through the day, not in one go. | Program practice: widely used in fasting programs, not trial-tested as a precise dose |
| 48 hours and longer | The full protocol: sodium 3–5 g/day, potassium 1–3.5 g/day, magnesium 300–500 mg/day. Potassium must always be split across the day and dissolved in water — never a single large dose. | Program practice, not trial-tested precision; magnesium needs are supported by dietary reference data, fasting doses are not |
Two rules apply to every row:
- Sodium and water go together. Salt without water does not restore blood volume, and water without salt dilutes it (see “The water mistake” below).
- Potassium is split, dissolved, and modest. A single large potassium dose is the one mistake in this post that can genuinely hurt you.
For reference, normal daily adequate intakes outside fasting are about 2.3 g of sodium and 2.6–3.4 g of potassium. Fasting recommendations run higher on sodium because fasting itself increases sodium loss — but “higher than normal” is not the same as “more is better.” More potassium, in particular, is not better.
The potassium warning
RED FLAG — READ THIS BEFORE YOU SUPPLEMENT POTASSIUM
Large single doses of potassium can destabilise heart rhythm. That risk is higher if you have kidney disease, take diuretics, or take blood pressure medicines such as ACE inhibitors or ARBs, which already raise blood potassium.
If any of those apply to you, the numbers on this page are not your numbers. You need a clinician’s plan, not a table. And if you ever feel palpitations or a heart flutter while supplementing, stop, sit down, and get medical review — do not try to fix it with another dose.
This box is not decoration. It is the reason this post exists in this form: most fasting pages print the same potassium range with no warning at all, and the people most at risk from it are the least likely to know they are at risk.
The water mistake
Drinking more water sounds like the obvious fix for a headache. On a fast, it can make things worse.
If you drink large amounts of plain water without salt, you dilute the sodium left in your blood. That is dilutional hyponatremia: too much water relative to salt, with headache, nausea and confusion that look a lot like the symptoms you were trying to fix. In severe cases it is dangerous.
The rule is volume plus sodium together. Drink to thirst, add salt through the day, and do not force litres of plain water on the theory that flushing yourself out helps. It does not. Your kidneys are already losing salt; giving them extra water to lose it in is the wrong direction.
Do electrolytes break a fast?
Pure minerals do not. Sodium, potassium and magnesium salts contain no calories and cause no meaningful insulin response, so they do not break a fast by any mechanism that matters.
The risk is not the minerals — it is what comes with them. Flavoured electrolyte mixes can contain maltodextrin, sugar or sweeteners, and those can add calories or an insulin signal. The bitter test works well here: if it tastes salty or bitter, it is probably just minerals. If it tastes sweet or strongly flavoured, read the label. If the label lists sugar, maltodextrin or a sweetener blend, it is no longer a pure mineral question, and for a strict fast it counts against you.
This is also why the “snake juice” recipes passed around online need care: the recipe itself may be fine, but the form matters. Dissolved, split through the day, modest — that is the safe version. A concentrated shot of potassium salts is not.
After a long fast: the refeeding turn
After about five days without food, the electrolyte story flips. It stops being a supplement question and becomes a medical one.
When you start eating again after a long fast, phosphate, potassium and magnesium shift rapidly into cells. That is refeeding syndrome, and it can cause heart and breathing problems. Clinical guidance (NICE) calls for replacing potassium, phosphate and magnesium in parallel with feeding, plus thiamine — not for a DIY supplement schedule.
So the rule is plain: fasts of five days or longer end under medical guidance, with refeeding planned, not improvised. The full refeeding guide is a separate post in this series, and it is the one to read before you start a long fast, not after you finish one.
Safety box
Fasts of 48 hours or more need medical supervision. If you are pregnant or nursing, have type 1 diabetes, a history of eating disorders, kidney or heart disease, or take blood pressure or diabetes medication, talk to your doctor before fasting at all. Palpitations, fainting or confusion mean stop and get reviewed. This article is for information only and is not medical advice.
FAQ
Do I need electrolytes for 16:8?
Usually not from supplements. If your eating windows are nutrient-dense, food covers your needs, and a pinch of salt on hard days is the low-effort fix. A supplement protocol is for longer fasts, not daily windows.
Do electrolytes break a fast?
Pure sodium, potassium and magnesium salts do not: they have no calories and no meaningful insulin response. The risk is additives in flavoured mixes — maltodextrin, sugars or sweeteners — which can add calories and count against a strict fast.
How much salt per day while fasting?
For fasts beyond 24 hours, programs commonly use 3–5 g of sodium per day with water, split through the day. That range is program practice, not a trial-tested dose, and for 16:8 you usually need nothing beyond food and a pinch of salt.
Why do I get headaches when fasting?
A day-two headache is mostly a sodium and volume problem, not detox. Insulin falls, the kidneys excrete sodium, and water follows it, so blood volume drops. Salt plus water is the first fix; a headache that does not improve needs medical review, not more supplements.
Can drinking more water fix it?
No — and over-watering without salt makes it worse. Extra plain water dilutes blood sodium, causing dilutional hyponatremia, whose symptoms mimic the headache you were trying to fix. Drink to thirst, with salt, not litres of plain water alone.
Which magnesium form is best while fasting?
Glycinate or citrate, at 300–400 mg per day, are the usual choices for fasting. Magnesium oxide is poorly absorbed and acts mainly as a laxative, so it is a poor choice when you are already losing fluid and minerals.
What are the signs of too much potassium?
Palpitations or a heart flutter are the warning signs. Stop supplementing, sit down, and get medical review. Do not try to adjust the dose yourself — this is a stop sign, and it matters most if you have kidney disease or take potassium-raising medicines.
Sources
- Kerndt, P. R. et al. (1982). Influence of insulin and glucagon on sodium balance in obese subjects during fasting and refeeding. International Journal of Obesity — the classic natriuresis-of-fasting study.
- Heyman, S. N. et al. (2020). Fasting-Induced Natriuresis and SGLT: A New Hypothesis for an Old Enigma. Frontiers in Endocrinology — modern review of the early-fast sodium loss mechanism.
- Wilhelmi de Toledo, F. et al. (2019). Safety, health improvement and well-being during a 4 to 21-day fasting period in an observational study including 1,422 subjects. PLoS One — supervised Buchinger program; adverse effects mostly mild and transient.
- NICE refeeding guidance (via PMC review, 2008) — after 5–10 days without food, refeeding risks rapid phosphate, potassium and magnesium shifts; replacement in parallel with feeding plus thiamine.
- NIH Office of Dietary Supplements, Magnesium fact sheet — adult needs of 300–400 mg/day; magnesium as a cofactor in 300+ enzymatic reactions.
- National Academies of Sciences, Engineering, and Medicine (2019). Dietary Reference Intakes for Sodium and Potassium — adequate intake baselines (sodium 2.3 g/day; potassium 3.4 g men / 2.6 g women).
