references
  
      Virta Health: What Causes Muscle Cramps on a Ketogenic Diet?
    
      Slideshare.net: The Art and Science of Low Carbohydrate Performance (Jeff S. Volek)
    
      Virta Health: How Much Sodium, Potassium and Magnesium Should I Have on a Ketogenic Diet?
    
      Diet Doctor: Low Carb and Keto Side Effects – Leg Cramps
    
      YouTube: Dr. Eric Berg – Taking Minerals Yet Still Having Leg Cramps
    
      Medical News Today: Keto Diet Benefits
    
      SELFNutritionData: Foods Highest in Potassium and Lowest in Sugars and Starch
    
      University of Michigan Health System: Potassium Content of Foods
    
      USDA Food Composition Database: Avocado
    
      Diet Doctor: Do You Need Electrolyte Supplements?
    
      Diet Doctor: Six Ways to Kick Nasty Leg Cramps
    
      Keto Diet App: Beat Keto Flu With Homemade Electrolyte Drink
    
      Now Foods: Vitamin E
    
      Centers for Disease Control and Prevention: Study of U.S. Adults Finds Strong Association Between Higher Sodium Excretion and Higher Blood Pressure and Association Between Higher Potassium Excretion and Lower Blood Pressure

Is this an emergency? If you are experiencing serious medical symptoms, please see the National Library of Medicine’s list of signs you need emergency medical attention or call 911.

Leg cramps can interfere with sleep and exercise when you're starting a ketogenic diet.

Image Credit: Lifemoment/iStock/GettyImages

Image Credit: Lifemoment/iStock/GettyImages

      Virta Health: What Causes Muscle Cramps on a Ketogenic Diet?
    
      Slideshare.net: The Art and Science of Low Carbohydrate Performance (Jeff S. Volek)
    
      Virta Health: How Much Sodium, Potassium and Magnesium Should I Have on a Ketogenic Diet?
    
      Diet Doctor: Low Carb and Keto Side Effects – Leg Cramps
    
      YouTube: Dr. Eric Berg – Taking Minerals Yet Still Having Leg Cramps
    
      Medical News Today: Keto Diet Benefits
    
      SELFNutritionData: Foods Highest in Potassium and Lowest in Sugars and Starch
    
      University of Michigan Health System: Potassium Content of Foods
    
      USDA Food Composition Database: Avocado
    
      Diet Doctor: Do You Need Electrolyte Supplements?
    
      Diet Doctor: Six Ways to Kick Nasty Leg Cramps
    
      Keto Diet App: Beat Keto Flu With Homemade Electrolyte Drink
    
      Now Foods: Vitamin E
    
      Centers for Disease Control and Prevention: Study of U.S. Adults Finds Strong Association Between Higher Sodium Excretion and Higher Blood Pressure and Association Between Higher Potassium Excretion and Lower Blood Pressure