Keto Leg Cramps: The Three-Step Fix
Leg cramps are a common complaint during the early stages of a ketogenic diet. When carbohydrate intake drops sharply, the body sheds water weight rapidly—along with essential electrolytes like sodium, potassium, and magnesium. This imbalance can lead to painful muscle contractions, particularly at night.
Why electrolytes matter
On a standard diet, insulin helps retain sodium. Ketosis lowers insulin levels, increasing sodium excretion through urine. A 2013 study in the European Journal of Clinical Nutrition found that low-carb diets alter levels of key minerals within days (Sumithran et al., 2013). Magnesium—critical for muscle relaxation—is also depleted when glycogen stores empty.
The three-step solution
1. Increase sodium intake
Aim for 3-5 g of sodium daily—more if you exercise heavily. Add ¼ teaspoon of sea salt to water twice daily, or drink broth. Sainsbury’s sells 1 kg tubs of sea salt for £1.20.
2. Prioritise potassium-rich foods
Avocados (500 mg per fruit), spinach (840 mg per 100 g), and mushrooms (400 mg per 100 g) are excellent sources. keto-friendly vegetables like courgettes and aubergines also contribute.
3. Supplement magnesium
Glycinate or citrate forms absorb best. Take 200-400 mg in the evening to prevent nocturnal cramps. Holland & Barrett’s magnesium citrate costs £8.99 for 90 capsules.
What this means in practice
During colder months, when we sweat less, electrolyte needs may decrease slightly—but heating systems dehydrate indoor air. Keep a water bottle with a pinch of salt handy. NHS guidelines note that healthy adults can safely consume up to 6 g of sodium daily when medically indicated.
Frequently asked questions
How long do keto leg cramps last?
Most people see improvement within a week of correcting electrolytes. Cramps that persist beyond a month may indicate underlying magnesium deficiency needing medical review.
Can’t I just drink sports drinks?
Most contain sugar and trivial electrolyte amounts. A 500 ml bottle of Lucozade Sport provides just 45 mg magnesium—less than 10% of daily needs.
Are calf cramps dangerous?
Occasional cramps are harmless, but frequent episodes with swelling or skin changes warrant a GP visit to rule out circulation issues.
The bottom line
Keto leg cramps resolve quickly with targeted electrolyte replenishment. Track your sodium, potassium, and magnesium intake as diligently as your macros. If you’d rather not do the macro maths yourself, the Keto Dieting app does it for you on Google Play and the App Store.
References
- Sumithran P, Prendergast LA, Delbridge E, et al. (2013). Ketosis and appetite-mediating nutrients and hormones after weight loss. European Journal of Clinical Nutrition. https://doi.org/10.1038/ejcn.2013.90
- Hyde PN, Sapper TN, Crabtree CD, et al. (2019). Dietary carbohydrate restriction improves metabolic syndrome independent of weight loss. JCI Insight. https://doi.org/10.1172/jci.insight.128308

