Electrolytes are ions that your body needs to carry out functions like nerve impulses, fluid balance, and muscle contractions. These electrolytes are mostly obtained through diet but, can also be supplemented when low. Magnesium is one of these vital electrolytes; it serves a key role in muscle and nerve functioning, bone, and immune system health, and the regulation of blood glucose levels. The deficiency of this mineral, also known as hypomagnesemia, can cause muscle cramps or twitches, high blood pressure, and irregular heartbeat, muscle fatigue and weakness, and more. When following a ketogenic diet, it is extremely important to make sure you are consuming enough of this mineral. Electrolytes are depleted on keto due to decreased insulin levels and increased water excretion. To make sure you are consuming enough sodium, try to eat foods like pumpkin seeds, fish, dark chocolate, or leafy greens. If you find you are having too difficult of a time getting all your magnesium in through diet, consider supplementing with 200-400mg of magnesium with a meal.
Shrimanker I, Bhattarai S. Electrolytes. [Updated 2020 Jan 20]. In: StatPearls [Internet]. Treasure Island (FL): StatPearls Publishing; 2020 Jan-.