Training
Muscle cramps on keto: why a workout seizes the muscle, and what to do
Cramps in a workout, legs that feel like cotton, unexpected fatigue on keto. In most cases the same shortage sits behind all three. A closer look at electrolytes: what each one does under a load, how to cover what leaves in sweat, and what to do right now.
The short version, if you need a fast answer. Cramps on keto are almost always tied to losing electrolytes. On low carbohydrate the kidneys let go of more sodium, and sweat carries still more sodium, potassium, and magnesium out with it. Most often the muscle seizes from a shortage of magnesium and of sodium. Right now: gently stretch the muscle and massage it. Then, as a system: water with a pinch of salt before and after the workout, potassium from food (avocado, greens, salmon), magnesium as glycinate or malate in the evening. Below I take each electrolyte, what leaves in sweat, and a protocol for before, during, and after the workout.
"My calf seized right there on the treadmill"
Katya has been running for two years. When she moved to keto, the first days went reasonably well, because she had read about adaptation. If you are only starting on keto and you do not yet feel steady in workouts, look at the piece on the first week. It takes apart, honestly, what happens to strength and why that is temporary. In the second week she decided to get back to running, and right in the middle of an interval session a cramp twisted her calf. Sharp, and unexpected. Katya stopped, stretched the leg, and it let go. She got to the locker room and wrote me: "Maria, am I doing something wrong?"
No. Katya was doing everything right. She simply did not know one thing that almost nobody explains in enough detail. When you train on keto, your body loses electrolytes MUCH faster than at rest. This is not merely an inconvenience. It literally switches off the ordinary work of muscles and nerves.
That is what we are talking about today.
Why keto loses more electrolytes in the first place
In short, the mechanism is taken apart in the piece on the first week: a fall in insulin on keto makes the kidneys let go of more sodium, and water and the other electrolytes leave after the sodium. This is ordinary physiology, not a breakdown.
Here is what an active person needs to understand. At rest this process runs in the background, and many people barely notice it. As soon as you add a workout, the losses jump sharply. Sweat, faster breathing, and the kidneys working harder under the load. Together that makes a shortage the body simply does not have time to cover on its own.
That is why electrolytes for someone training on keto are not "a useful add-on for the list." They are a real necessity. Let us take each one on its own, because they work differently and they leave differently.
Three electrolytes: the role, the losses, the replacement
| Electrolyte | Role under a load | Shortage signs in people who train | Sources and forms | Landmarks |
|---|---|---|---|---|
| Sodium | Sets plasma volume and the nerve signal to the muscle. Without enough sodium the muscle does not "hear" the nerve | Sudden fatigue at the start of a workout, dizziness, a drop in strength, a heavy feeling, a pull toward salt | Ordinary table salt, the simplest way; salty broth; electrolyte mixes with no sugar | Extra salt on top of food when you train regularly, and more of it for each hour of hard work or for a workout in the heat |
| Potassium | Lets the muscle relax after a contraction. Sodium "starts" the muscle, potassium "lets it go." Critical for heart rhythm under a load | Muscle weakness, legs that feel wooden, next-day soreness stronger than usual, rhythm disturbances during intense work | Avocado, leafy greens (spinach, chard), salmon, beef, nuts, seeds. Supplements only with caution, and only when a clinician has a reason | When you are training, mostly from food |
| Magnesium | Takes part in more than 300 enzyme reactions. Directly runs muscle relaxation. Needed to make ATP, the cell's main energy currency | Muscle cramps, especially at night after a workout, twitches, broken sleep after hard work, constant fatigue even with enough sleep | Nuts, dark greens, pumpkin seeds. In a supplement, glycinate or malate, which are absorbed much better than oxide or citrate-oxide | In the evening. For people who train, this is the one to keep in view |
Here is what I like to say about electrolytes. If the muscle is a light bulb, electrolytes are the wiring and the current in it. The bulb can be whole and screwed in correctly, and if the wires are broken or the current is weak, it does not light. The muscle is the same. However long you train, without a normal electrolyte balance it will not get the full signal.
Sweat is not just water
Here is what most people do not count on. What leaves in sweat is not only water. Sodium is dissolved in it, and in some people noticeably more than in others, plus small amounts of potassium and magnesium.
Now count it. An hour of moderate work can lose 2.1 cup (500 ml) of sweat or more, depending on the temperature and on your physiology. A workout on a hot day, or in a hot room, loses still more. Add the baseline losses through the kidneys on keto, and the picture is clear: without a deliberate replacement, the balance goes negative fast.
Katya, by the way, was training in a room where it was very warm. That is what played a part. The sodium lost in sweat stacked on the sodium lost through the kidneys, and at some point the body simply could not hold an ordinary contraction of the calf. Not weakness, not a mistake, not "keto does not fit." Ordinary physics of a loss.
Cramps: what sits behind them
Cramps are a complicated topic, and I want to be honest with you. Their causes are many, and electrolytes are not the only one. Overtiredness, dehydration, a short warm-up, and neuromuscular fatigue also play a part.
Even so, in people who train on keto, cramps are most often tied exactly to a shortage of magnesium and of sodium, or of both. Here is why:
- Magnesium is needed for the muscle to relax after a contraction. When it is short, the muscle seems to get stuck in the contracted state. That is what we feel as a cramp.
- Sodium sets the fluid balance inside and outside the muscle cell. When that balance is off, the cell becomes oversensitive, and the muscle contracts from a minimal irritation.
- Potassium works in a pair with sodium in the sodium-potassium pump. That mechanism literally recharges the nerve cell after an impulse. Without a normal potassium level, the nerve cannot properly rest between signals.
What to do in an acute cramp: stretch the muscle gently, take a few slow breaths, massage it. If the cramps repeat, that is already a signal for systematic work on electrolytes, not a one-time measure.
What to do as prevention is in the protocol below.
A practical protocol: before, during, and after
- Before the workout (30–60 minutes ahead)
Drink 0.8–1.3 cup (200–300 ml) of water with a small amount of salt, literally a pinch. If the workout is in the morning, this matters especially, because overnight the body is already losing fluid and electrolytes, and keto is on top of that
If the workout runs longer than an hour, or hard work is ahead, you can use an electrolyte mix with no sugar. Nothing complicated or expensive is required. A basic mix works.
During the workout
For a load up to 60 minutes at a moderate intensity, water is usually enough. For a longer workout, or a hot room, add sodium: an electrolyte drink, or simply salted water.
A landmark: if you notice white marks from sweat on your clothes or on your skin, you are a "salty sweater," and you need to replace sodium more actively than the average person.
After the workout, within the hour
The priorities: protein for the muscle to recover, plus electrolytes. Ordinary food already contains sodium and potassium: eggs, meat, fish, greens, avocado. If the workout was intense, or you lost a lot of sweat, add a pinch of salt to the food or to the water.
Magnesium is best in the evening, apart from food. It helps the muscles relax, and it improves sleep after hard work. This is especially noticeable if you fall asleep poorly after workouts, or you wake with heavy legs.
In the heat, and on long efforts of an hour and a half or more
Raise the sodium. Extra salt for each hour of work in a hot room is a reasonable landmark. Do not drink plain water only. Drink water with salt, or an electrolyte drink. Watch the color of your urine. Pale yellow is good. Dark means you need more fluid. Almost clear, together with weakness, can mean you are diluting the electrolytes. Add salt.
On long efforts, replace potassium through food. A banana is not an option on keto. Avocado, a handful of nuts, a solid portion of leafy greens, or a portion of salmon after the workout will give what you need.
The landmarks, and why they are not a personal recipe
These are general landmarks, not a personal recipe. Your real need depends on how hard you train, the temperature, how you sweat, your health, and other factors. If something still feels off even though you are following these landmarks, that is a reason to talk with a specialist, not a reason to add still more supplements at random.
Signs the balance is off
Sometimes the body speaks clearly enough. We simply do not hear it at once. Here are the signals worth taking seriously:
- Cramps during or after a workout, especially at night after the load
- Legs that feel like cotton, or heavy, from the very start of the session
- Dizziness, or vision dimming, when you stand up quickly
- A heart rate that runs high on a load that used to feel easier
- Constant fatigue that does not lift even after a good sleep
- A pull toward salt. The body is literally asking for what is short
None of these symptoms, on its own, means "keto is bad" or "I am doing something wrong." They are hints. And the good news is that most of them leave once the electrolyte balance is back to normal.
Katya, by the way, added morning water with salt, started taking an electrolyte drink to the workout, and started glycinate magnesium in the evening. Two weeks later she wrote: "I ran the interval session with no hint of a cramp. I cannot believe it was this simple."
Simple does not mean insignificant.
Questions I hear often
Why does keto seize a muscle?
Because of a loss of electrolytes. Low insulin makes the kidneys let go of sodium. Water leaves with it, and sweat takes more potassium and magnesium. Magnesium is what the muscle needs in order to relax after a contraction. Sodium and potassium keep the nerve impulse in order. Without them the muscle gets stuck in the contracted state.
What do I do for a cramp on keto right now?
Gently stretch the muscle, massage it, take a few slow breaths. The cramp will let go. If the cramps repeat, that is a signal for systematic work on electrolytes, not for a one-time measure.
Which magnesium for cramps on keto?
Glycinate or malate. They are absorbed noticeably better than oxide. Take it in the evening, apart from food. If you have kidney or heart disease, or you are on medication, discuss the dose with a clinician.
How much salt on keto, so the cramps stop?
The simplest way: a glass of water with a pinch of salt in the morning and after a workout.
Night cramps on keto: is that electrolytes too?
Most often yes, especially after a daytime workout. Sodium and magnesium were lost through the day, and at night the muscle cannot relax. Magnesium in the evening, and water with salt after the load, help. If the cramps do not leave once electrolytes are in order, discuss it with a clinician.
This is education, not medical care. Ketones are a fuel the liver makes from fat. If you are pregnant, nursing, have diabetes, kidney or liver disease, an eating disorder, or you give this food pattern to a child, talk with your clinician before you change how you eat.