The ketogenic diet is safe for most healthy adults, but several medical conditions, medications, and life stages make it genuinely dangerous. Some of these are rare metabolic disorders you’d likely already know about. Others are surprisingly common situations, like taking a widely prescribed diabetes medication, where combining it with keto can trigger a medical emergency.
Rare Metabolic Disorders That Make Keto Dangerous
A small number of inherited conditions prevent the body from properly converting fat into energy. For people with these disorders, flooding the body with fat while cutting off its carbohydrate supply can cause severe, life-threatening complications. These are considered absolute contraindications, meaning keto is never safe.
The most relevant conditions include primary carnitine deficiency, where cells lack the molecule needed to shuttle fats into the energy-producing parts of cells. Without it, a high-fat diet can trigger dangerously low blood sugar and an inability to produce the ketones the diet depends on. This affects roughly 1 in 100,000 people globally, though it’s more common in Japan (1 in 40,000) and China (1 in 20,000).
Carnitine palmitoyltransferase (CPT) deficiency, both type 1 and type 2, similarly cripples the body’s ability to use fat for fuel. CPT1 deficiency is extremely rare, with only about 60 cases ever reported worldwide, while CPT2 deficiency affects roughly 1 to 9 in 100,000 people. Pyruvate carboxylase deficiency, which impairs the body’s ability to make its own glucose, also makes keto unsafe because these individuals depend heavily on dietary carbohydrates. Porphyria, a group of disorders affecting how the body makes a component of red blood cells, rounds out the list of absolute contraindications.
Most of these conditions are diagnosed in childhood through newborn screening. If you’ve never been told you have a fatty acid oxidation disorder or metabolic condition, this category probably doesn’t apply to you.
People Taking SGLT2 Inhibitors for Diabetes
This is one of the most practically important warnings because the medications involved are extremely common. SGLT2 inhibitors are a class of diabetes drugs that work by causing the kidneys to flush excess glucose into the urine. They’re prescribed to millions of people with type 2 diabetes, and sometimes used off-label in type 1 diabetes.
Combining these medications with a ketogenic diet creates a perfect storm for a condition called euglycemic diabetic ketoacidosis. Normal ketoacidosis shows up with very high blood sugar, which prompts people to seek help. The euglycemic version is far more deceptive: blood sugar stays normal or only mildly elevated (under 250 mg/dL), but acid levels in the blood climb dangerously. Because the blood sugar reading looks fine, it’s easy to miss until it becomes a medical emergency.
Here’s the mechanism: SGLT2 inhibitors already push the body toward burning fat by blocking glucose reabsorption. They also stimulate glucagon release and reduce the body’s ability to clear ketones through the kidneys. Layer a ketogenic diet on top of that, and ketone production can spiral out of control. The rate of ketoacidosis in people with type 1 diabetes taking SGLT2 inhibitors is 5% to 12%, compared with less than 0.1% in type 2 diabetes. Low-carbohydrate diets are specifically listed as a precipitating factor for this complication.
The clinical guidance is straightforward: if you take an SGLT2 inhibitor, you should not follow a ketogenic diet. If you’re interested in lower-carb eating, talk to your prescriber about adjusting your medication first.
People With Type 1 Diabetes
Type 1 diabetes carries an inherent risk of ketoacidosis because the body produces little or no insulin. Insulin is the brake pedal for ketone production. Without enough of it, ketones can accumulate rapidly, and a diet designed to maximize ketone levels adds fuel to that fire. Some people with type 1 diabetes do follow low-carb diets under close medical supervision with frequent blood ketone monitoring, but doing so independently is risky. Any reduction in insulin dosing, illness, or missed meal can tip the balance from nutritional ketosis into dangerous ketoacidosis within hours.
Pregnant and Breastfeeding Women
Pregnancy demands a broad spectrum of nutrients in higher quantities than usual, and the ketogenic diet’s restrictions make it difficult to meet those needs. Research reviews have flagged risks of mineral and vitamin deficiencies, low protein levels, and the potential development of fatty liver and kidney stones. Perhaps more concerning, animal and human studies suggest the diet may cause epigenetic changes in the fetus, alterations to gene activity that could affect the child’s health well into adulthood.
The developing brain relies heavily on glucose, and while ketones can serve as an alternative fuel, the long-term effects of sustained maternal ketosis on fetal brain development are not well enough understood to consider it safe. Breastfeeding presents similar concerns, as the mother’s nutritional status directly affects milk composition, and the metabolic demands of milk production can amplify the risk of nutrient gaps.
People With Pancreatitis or High Triglycerides
The pancreas produces enzymes that digest fat. When it’s inflamed, whether from a single acute episode or chronic disease, a diet that’s 70% to 80% fat by calories puts enormous strain on an already damaged organ. Case reports have linked the ketogenic diet directly to episodes of acute pancreatitis, and the proposed mechanism is straightforward: the high fat content can worsen pancreatic inflammation and cause further tissue damage.
There’s also a triglyceride connection. Some people experience significant increases in blood triglycerides on keto, and elevated triglycerides are one of the most common triggers for pancreatitis. If you have a history of pancreatitis or already have high triglyceride levels, the diet creates risk from both directions: more fat to process and potentially higher triglycerides making recurrence more likely.
People With Advanced Kidney Disease
The relationship between keto and kidney health is nuanced. In early-stage kidney disease, some research shows modest decreases in filtration rate that may actually reflect a reduction in harmful hyperfiltration rather than damage. But for people with advanced kidney disease, particularly stage 5 who are not on dialysis, the diet is considered unsafe due to the risk of clinical instability.
The concern centers on the diet’s higher protein content (compared to the very low protein diets often recommended for advanced kidney disease) and the metabolic byproducts of heavy fat burning, which compromised kidneys may struggle to clear. If your kidney function is significantly reduced, the metabolic shifts keto produces can be difficult for your body to manage safely.
People With a History of Eating Disorders
Keto requires tracking macronutrients closely, eliminating entire food groups, and maintaining rigid dietary rules. For someone with a history of anorexia, bulimia, or other restrictive eating patterns, these behaviors can reactivate disordered thinking. The diet’s strict boundaries can easily become a socially acceptable framework for food restriction.
There’s also a neurological dimension. Research suggests that in people prone to anorexia, the brain may actually function more efficiently on ketones than glucose during periods of high anxiety, which means the subjective feeling of clarity and energy during food restriction becomes self-reinforcing. The person feels better while eating less, which strengthens the cycle of restriction. Even after weight recovery, fears of weight gain and body dissatisfaction can persist for years, and any highly restrictive diet poses a relapse risk.
People Who See Extreme Cholesterol Spikes
This one isn’t about who should avoid starting keto. It’s about who should stop. Some people experience dramatic increases in LDL cholesterol on the diet, a phenomenon sometimes called “hyper-responding.” In one documented case, a 38-year-old man with previously normal cholesterol saw his LDL skyrocket fourfold to 496 mg/dL after starting keto. He had no known genetic cholesterol disorder before the dietary change.
This extreme response appears to occur more often in people who are already lean, and it can happen even without a family history of high cholesterol. The practical takeaway: if you start a ketogenic diet, get your lipid panel checked within the first few months. If your LDL climbs substantially, the diet may not be metabolically compatible with your body, regardless of how good you feel otherwise.
After Gallbladder Removal
This isn’t a strict contraindication, but it’s a practical barrier worth knowing about. Your gallbladder stores bile, which your body uses to break down and absorb dietary fat. After gallbladder removal, bile drips continuously into the intestine in small amounts rather than being released in a concentrated burst when you eat a fatty meal. For some people, this means significantly reduced fat tolerance, with symptoms like bloating, diarrhea, and cramping after high-fat meals.
If you’ve had your gallbladder removed and want to try keto, spreading fat intake across many small meals rather than a few large ones can help. Consuming fats in emulsified forms (think cream, sour cream, and yogurt rather than straight oil or butter) also aids digestion. Some people adapt over time, but others find that a diet requiring 70% or more of calories from fat simply doesn’t work with their post-surgical digestion.

