Ketogenic Diet and Constipation

Read this first. Constipation that persists beyond 2 to 3 weeks, comes with severe abdominal pain, blood in the stool, unintentional weight loss, or vomiting is not just a keto side effect. Get evaluated. Anyone with IBD, IBS, prior bowel surgery, diverticulitis, thyroid disease, or on chronic opioids or anticholinergics should talk to their clinician before starting keto. Nothing here is a substitute for medical care.

Keto Constipation: Why It Happens and What Actually Fixes It

Constipation is one of the most common early complaints on keto, and it usually isn’t a mystery. Cutting carbs cuts fiber sources most people were relying on: bread, oats, beans, fruit, pasta. Add the water losses that come with lower insulin, plus a heavier protein load that slows transit, and the plumbing complains.

The good news is this is fixable without ditching keto. The bad news is the standard advice (“just drink more water”) only solves part of it.

What’s on This Page

Why Keto Constipates in the First Place

Four mechanisms stack up in the first weeks:

  • Fiber drops. Typical Western fiber intake sits around 15 g/day. Cutting bread, cereal, rice, fruit, and beans often takes people below 10 g without a replacement plan.
  • Water loss. Lower insulin tells kidneys to release sodium and water. Stool ends up drier and harder.
  • Slower transit. High-protein meals produce more heat and take longer to move through the gut. Johnston, Day, and Swan showed postprandial thermogenesis roughly doubles on high-protein vs. high-carb meals, and slower transit tracks with that shift. (6)
  • Microbiome reshuffle. The gut bacteria that ferment fiber into short-chain fatty acids (which help motility) have less to work with. Composition changes fast on keto, and it can take weeks to reach a new equilibrium. (9, 10)

The pediatric keto literature captures this pattern too. Neal and colleagues’ randomized trial of the ketogenic diet for childhood epilepsy noted constipation as a common but usually transient side effect. (3, 7)

What Counts as Constipation

Rome IV criteria (the standard clinical definition) call it constipation if you have two or more of the following for at least three months: fewer than three bowel movements a week, hard or lumpy stools more than a quarter of the time, straining, incomplete evacuation, sensation of blockage, or needing manual maneuvers to pass stool. (11) Under that definition, plenty of people entering keto qualify within the first two weeks.

Keto-Friendly Fiber Sources That Actually Work

The most efficient fiber additions on keto:

FoodServingFiberNet carbs
Chia seeds2 tbsp (28 g)~10 g~2 g
Ground flaxseed2 tbsp (14 g)~4 g~0 g
Psyllium husk1 tbsp (5 g)~4 g~0 g
Avocado1/2 medium~5 g~2 g
Raspberries1/2 cup~4 g~3 g
Cooked spinach1 cup~4 g~3 g
Broccoli1 cup~2 g~4 g
Almonds1 oz (28 g)~3.5 g~3 g
Cocoa powder (unsweetened)2 tbsp~4 g~2 g

How to use them

  • Psyllium: 1 to 2 teaspoons in a big glass of water once daily. Start low and increase over a week. Take with plenty of water or it worsens constipation.
  • Chia: stir into Greek yogurt, coconut cream, or a keto smoothie. Let it sit 10 minutes to gel.
  • Flaxseed: ground, not whole. Add to eggs, coffee, or a chia pudding.
  • Leafy greens at every meal: a fistful of arugula or spinach on the side.

Target: 25 to 30 g of fiber daily on keto. That’s aggressive but achievable if you make chia, flax, or psyllium a daily habit.

Water, Magnesium, and Electrolytes

Water alone isn’t enough; the body doesn’t hold onto it without sodium. Two moves that make a real difference:

  • Salt your food. 3 to 5 g sodium daily during keto adaptation. Add a pinch to a couple glasses of water. Broth (bone broth, chicken bouillon) is a comforting delivery system.
  • Magnesium citrate, 300 to 400 mg at bedtime. It doubles as a mild osmotic laxative and helps with sleep and cramps. Magnesium oxide is cheaper but less absorbable and hits harder. Talk to your clinician if you have CKD.

Fluids: aim for 2.5 to 3 liters daily, more if you’re active or in a hot climate. Pale yellow urine is the target.

Microbiome Shifts and What to Do About Them

Your gut bacteria eat what you feed them. Cut carbs and fiber sources, and populations shift within days. Lim and colleagues’ 2022 review of keto and the microbiome describes reduced abundance of some fiber-fermenting bacteria and increased abundance of bile-tolerant species. (10) The practical takeaway isn’t “keto ruins your gut,” it’s that a keto that includes fibrous vegetables, seeds, and fermented foods maintains microbial diversity better than one built entirely on meat, cheese, and oil.

  • Include fermented foods: sauerkraut, kimchi, unsweetened Greek yogurt, kefir
  • Rotate vegetables (don’t eat only spinach or only broccoli every day)
  • Consider a resistant-starch source occasionally (green banana flour in small amounts if your carb budget allows)

7-Day Action Plan

  1. Day 1: Add 2 tbsp chia seeds to breakfast. Salt your food. Set a water target (aim for 3 L).
  2. Day 2: Add 300 mg magnesium citrate at bedtime.
  3. Day 3: Add a big salad with olive oil at lunch. Rotate greens.
  4. Day 4: Introduce 1 tsp psyllium in a big glass of water in the morning. Do not skimp on the water.
  5. Day 5: Add a fermented food serving (2 tbsp sauerkraut or 1/2 cup kefir).
  6. Day 6: A gentle 20-minute walk after each main meal to nudge motility.
  7. Day 7: Reassess. If things are moving, hold this pattern. If not, add MCT oil (1 tsp working up to 1 tbsp) which has a mild motility-stimulating effect.

When to Worry

  • No bowel movement for 7+ days
  • Severe abdominal pain or bloating you can’t relieve
  • Blood in the stool (bright red or dark tarry)
  • Vomiting
  • Unintentional weight loss beyond what keto usually produces
  • New symptoms after age 50 or with family history of colon cancer

Any of those, contact a clinician. Constipation that hasn’t budged after two weeks of consistent fiber, fluid, magnesium, and movement warrants a call regardless of severity.

Frequently Asked Questions

Is it normal to be constipated on keto?

Yes, in the first 2 to 4 weeks. It usually resolves as the body adapts and as you dial in fiber, water, and electrolytes. Persistent constipation beyond that is a signal to change the plan.

Do fiber grams count against my carb limit?

No. Fiber is subtracted from total carbs to get net carbs. Chia, flax, psyllium, and cocoa powder are basically free from a keto-math perspective.

Does MCT oil help constipation?

Often yes, in small doses. Start with 1 teaspoon and work up. Too much MCT oil causes the opposite problem: urgent diarrhea.

Is coffee OK on keto for constipation?

Yes. Coffee stimulates the gastrocolic reflex and can help. Just watch for dehydration if you’re a heavy coffee drinker.

Are laxatives OK short-term?

Osmotic laxatives like polyethylene glycol (Miralax) are safer for short-term use than stimulant laxatives. Ask your clinician before making them a routine. Chronic laxative use can worsen motility long-term.

Does exercise help?

Yes. A 20-minute walk after meals is one of the most reliable motility interventions. It doesn’t need to be intense.

How long until things normalize?

Most people see improvement within a week of adding fiber, water, magnesium, and movement. Full microbial adaptation to a new eating pattern takes 4 to 12 weeks.

See Also

Current Version
August 4, 2026
Edited By
Damla Sengul
Medically Reviewed By
Franco Cuevas, MD
August 1, 2026
Edited By
Damla Sengul
Medically Reviewed By
Franco Cuevas, MD

1. Kang, H.C., Chung, D.E., Kim, D.W. and Kim, H.D. (2004), Early- and Late-onset Complications of the Ketogenic Diet for Intractable Epilepsy. Epilepsia, 45: 1116-1123.

2. Schmidt, M., Pfetzer, N., Schwab, M. et al. Effects of a ketogenic diet on the quality of life in 16 patients with advanced cancer: A pilot trial. Nutr Metab (Lond) 8, 54 (2011).

3. Elizabeth G Neal, Hannah Chaffe, Ruby H Schwartz, Margaret S Lawson, Nicole Edwards, Geogianna Fitzsimmons, Andrea Whitney, J Helen Cross. The ketogenic diet for the treatment of childhood epilepsy: a randomised controlled trial, The Lancet Neurology, Volume 7, Issue 6, 2008, Pages 500-506.

4. Ruiz Herrero J, Cañedo Villarroya E, González Gutiérrez-Solana L, García Alcolea B, Gómez Fernández B, Puerta Macfarland LA, Pedrón-Giner C. Classic Ketogenic Diet and Modified Atkins Diet in SLC2A1 Positive and Negative Patients with Suspected GLUT1 Deficiency Syndrome: A Single Center Analysis of 18 Cases. Nutrients. 2021; 13(3):840.

5. William S. Yancy, Maren K. Olsen, John R. Guyton, et al; A Low-Carbohydrate, Ketogenic Diet versus a Low-Fat Diet To Treat Obesity and Hyperlipidemia: A Randomized, Controlled Trial. Ann Intern Med.2004;140:769-777.

6. Carol S. Johnston, Carol S. Day & Pamela D. Swan(2002)Postprandial Thermogenesis Is Increased 100% on a High-Protein, Low-Fat Diet versus a High-Carbohydrate, Low-Fat Diet in Healthy, Young Women, Journal of the American College of Nutrition, 21:1, 55-61.

7. Neal, E.G., Chaffe, H., Schwartz, R.H., Lawson, M.S., Edwards, N., Fitzsimmons, G., Whitney, A. and Cross, J.H. (2009), A randomized trial of classical and medium-chain triglyceride ketogenic diets in the treatment of childhood epilepsy. Epilepsia, 50: 1109-1117.

8. Bolla AM, Caretto A, Laurenzi A, Scavini M, Piemonti L. Low-Carb and Ketogenic Diets in Type 1 and Type 2 Diabetes. Nutrients. 2019; 11(5):962.

9. Vanegas, A. P. P. A literature review on the effects of the ketogenic diet on the gut microbiota and weight-loss. Cantaurus May 2021; Vol. 29, 45-50.

10. Lim, J. M., Letchumanan, V., Tan, L. T. H., Hong, K. W., Wong, S. H., Ab Mutalib, N. S., … & Law, J. W. F. (2022). Ketogenic Diet: A Dietary Intervention via Gut Microbiome Modulation for the Treatment of Neurological and Nutritional Disorders (a Narrative Review). Nutrients, 14(17), 3566.

11. Jackson Aeja, Forsyth Christopher B., Shaikh Maliha, Voigt Robin M., Engen Phillip A., Ramirez Vivian, Keshavarzian Ali. Diet in Parkinson’s Disease: Critical Role for the Microbiome. Frontiers in Neurology. 2019; Vol. 1.

References

  1. Kang HC, Chung DE, Kim DW, Kim HD. Early- and Late-onset Complications of the Ketogenic Diet for Intractable Epilepsy. Epilepsia. 2004;45(9):1116-1123.
  2. Schmidt M, Pfetzer N, Schwab M, et al. Effects of a ketogenic diet on the quality of life in 16 patients with advanced cancer: A pilot trial. Nutr Metab (Lond). 2011;8:54.
  3. Neal EG, Chaffe H, Schwartz RH, et al. The ketogenic diet for the treatment of childhood epilepsy: a randomised controlled trial. Lancet Neurol. 2008;7(6):500-506.
  4. Ruiz Herrero J, Canedo Villarroya E, Gonzalez Gutierrez-Solana L, et al. Classic Ketogenic Diet and Modified Atkins Diet in SLC2A1 Positive and Negative Patients with Suspected GLUT1 Deficiency Syndrome. Nutrients. 2021;13(3):840.
  5. Yancy WS, Olsen MK, Guyton JR, et al. A Low-Carbohydrate, Ketogenic Diet versus a Low-Fat Diet To Treat Obesity and Hyperlipidemia: A Randomized, Controlled Trial. Ann Intern Med. 2004;140:769-777.
  6. Johnston CS, Day CS, Swan PD. Postprandial Thermogenesis Is Increased 100% on a High-Protein, Low-Fat Diet versus a High-Carbohydrate, Low-Fat Diet in Healthy, Young Women. J Am Coll Nutr. 2002;21(1):55-61.
  7. Neal EG, Chaffe H, Schwartz RH, et al. A randomized trial of classical and medium-chain triglyceride ketogenic diets in the treatment of childhood epilepsy. Epilepsia. 2009;50(5):1109-1117.
  8. Bolla AM, Caretto A, Laurenzi A, Scavini M, Piemonti L. Low-Carb and Ketogenic Diets in Type 1 and Type 2 Diabetes. Nutrients. 2019;11(5):962.
  9. Vanegas APPA. A literature review on the effects of the ketogenic diet on the gut microbiota and weight-loss. Cantaurus. 2021;29:45-50.
  10. Lim JM, Letchumanan V, Tan LTH, et al. Ketogenic Diet: A Dietary Intervention via Gut Microbiome Modulation for the Treatment of Neurological and Nutritional Disorders. Nutrients. 2022;14(17):3566.
  11. Bharucha AE, Pemberton JH, Locke GR. American Gastroenterological Association technical review on constipation. Gastroenterology. 2013;144(1):218-238. PMID: 23261065. pubmed.ncbi.nlm.nih.gov/23261065

Written and medically reviewed by Franco Cuevas, MD.

  1. Harvard T.H. Chan School of Public Health. Diet Review: Ketogenic Diet for Weight Loss. Source
  2. Mayo Clinic. Is the keto diet safe? What are the risks? Source
  3. Cleveland Clinic. What is the keto diet? Source
  4. Bueno NB, et al. Very-low-carbohydrate ketogenic diet v. low-fat diet for long-term weight loss: meta-analysis. Br J Nutr. 2013. Source
  5. USDA FoodData Central. Source
Tags: