Ketogenic diets do raise cortisol, but the spike is mostly temporary. Resting cortisol increases during the first three weeks of carbohydrate restriction, then typically returns to baseline as your body adapts to burning fat and ketones for fuel. The real problem is the factors that keep cortisol elevated beyond that window: poor sleep, intense exercise, calorie restriction, and electrolyte gaps. Here’s what’s actually happening and what you can do about it.
Why Keto Raises Cortisol in the First Place
Your body treats the sudden absence of its preferred fuel as a metabolic stressor. When available glucose drops low enough to trigger ketosis, the liver produces a hormone called FGF21, which crosses into the brain and directly activates the stress-response system (the HPA axis). That system then signals the adrenal glands to release more cortisol. Animal studies confirm this chain of events: blocking FGF21 significantly blunted the cortisol response to ketosis, though it didn’t eliminate it entirely, meaning other factors are also involved.
Cortisol itself plays a useful role during this transition. It helps mobilize amino acids and glycerol so your liver can produce the small amount of glucose your brain and red blood cells still need. In other words, the cortisol bump isn’t a malfunction. It’s part of how your body bridges the gap between glucose dependence and fat adaptation.
The Three-Week Adaptation Window
A systematic review and meta-analysis of low-carbohydrate diet studies found a clear pattern: resting cortisol rises moderately during the first three weeks, then returns to baseline. Four out of five studies that tracked cortisol over time showed this same trend. The initial increase appears to be part of the adaptation process rather than a sign of harm.
One important caveat: while resting cortisol normalizes, post-exercise cortisol tends to stay elevated even after adaptation. People on a ketogenic diet showed significantly higher cortisol during moderate and high-intensity exercise, and even during the recovery period afterward, compared to people eating a mixed diet. If you’re layering hard training on top of a new keto diet, you’re stacking two cortisol triggers at once.
Signs Your Cortisol May Be Too High
Elevated cortisol on keto doesn’t always announce itself with a single obvious symptom. Instead, you get a cluster of subtle signals that are easy to blame on other things. Persistent trouble falling or staying asleep is one of the most common. Weight that collects stubbornly around your midsection despite being in a calorie deficit is another, since cortisol specifically promotes central fat storage. Other signs include waking up wired at 3 a.m., feeling anxious or on edge for no clear reason, retaining water despite adequate sodium, and plateauing on fat loss even when your macros look right.
These overlap heavily with normal “keto flu” symptoms, which makes the first few weeks hard to read. If they persist well beyond the three-week mark, cortisol is worth investigating as a contributing factor.
Don’t Stack Stressors During Adaptation
Calorie restriction is itself a cortisol trigger, independent of carbohydrate intake. Combining a steep calorie deficit with a new ketogenic diet doubles down on metabolic stress signals. During the first three to four weeks, eating at maintenance calories (or only a mild deficit) gives your HPA axis less reason to stay activated. You can tighten your deficit once your body has adapted to using ketones efficiently.
The same logic applies to exercise. On keto, cortisol concentrations during high-intensity exercise are significantly higher than on a mixed diet, and they remain elevated into the recovery period. Sticking to lower-intensity movement like walking, easy cycling, or light resistance training during the first few weeks avoids compounding the cortisol response. Once you’re fat-adapted, you can gradually reintroduce harder sessions.
Prioritize Magnesium
Magnesium is one of the most depleted minerals on keto because insulin, which drops sharply in ketosis, normally signals the kidneys to retain it. A 24-week randomized controlled trial found that 350 mg of magnesium citrate per day significantly reduced urinary cortisol excretion compared to placebo. The effect was meaningful and sustained over the full study period.
Most keto dieters are already supplementing magnesium for cramps and sleep, but the form matters. Magnesium citrate and magnesium glycinate are well absorbed. Magnesium oxide, the cheapest form, is poorly absorbed and more likely to cause digestive issues. Prioritizing magnesium-rich foods like spinach, pumpkin seeds, and almonds helps too, and all of those fit easily into keto macros.
Add Omega-3s at the Right Dose
A randomized controlled trial in 138 adults tested two doses of omega-3 fatty acids against placebo over four months. The higher dose, 2.5 grams per day, reduced total cortisol output during a stress test by 19% compared to placebo. The lower dose of 1.25 grams per day didn’t produce a statistically significant effect. This suggests there’s a threshold you need to hit for omega-3s to meaningfully blunt the cortisol response.
Fatty fish like salmon, sardines, and mackerel are ideal keto-friendly sources. If supplementing, look for products that deliver at least 2 grams of combined EPA and DHA per day, since that’s roughly the effective range from the trial. Many fish oil capsules contain only 300 to 500 mg of actual EPA/DHA per capsule, so check the label rather than going by the total “fish oil” amount.
Keep Electrolytes Consistent
Ketosis causes your kidneys to excrete sodium at an accelerated rate. Low sodium is a known activator of the same stress-response system that cortisol belongs to, because the body needs cortisol to help retain the sodium it has left. This creates a feedback loop: keto lowers sodium, low sodium raises cortisol, and elevated cortisol can worsen sleep and recovery.
Most keto practitioners need 4,000 to 5,000 mg of sodium per day, which is well above the standard dietary recommendation but appropriate for the increased excretion rate in ketosis. Salting your food generously, drinking bone broth, and adding a pinch of salt to water are all practical ways to stay ahead. Potassium (from avocados, leafy greens, or a supplement) and magnesium round out the electrolyte picture.
Protect Your Sleep
Sleep loss is one of the most potent cortisol amplifiers, and it compounds with the metabolic stress of carbohydrate restriction. Even partial sleep deprivation raises next-day cortisol levels significantly. On keto, where the HPA axis is already primed to be more reactive, short sleep can keep cortisol elevated well past the normal adaptation period.
Aim for seven to nine hours consistently, particularly during the first month. If you notice the pattern of falling asleep easily but waking at 2 or 3 a.m. and feeling alert, that’s often a cortisol-driven awakening. A small amount of salt before bed and adequate magnesium in the evening can help, since both support the physiological conditions your body needs to stay asleep through cortisol’s natural early-morning rise.
Consider Strategic Carbohydrate Timing
If cortisol symptoms persist beyond four to six weeks despite addressing sleep, electrolytes, and exercise intensity, a targeted approach to carbohydrates can help without derailing ketosis. Eating 15 to 30 grams of carbohydrates around intense training sessions provides just enough glucose to blunt the exercise-induced cortisol spike. Most people return to ketosis within a few hours, especially if the carbs are consumed immediately before or after a workout when muscles are most receptive to glucose uptake.
Another option is a cyclical approach, where you include one higher-carb day per week (150 to 200 grams). This temporarily lowers HPA axis activation and can reset cortisol patterns that have become chronically elevated. Neither strategy is necessary for everyone, but both are practical tools if you’re experiencing persistent signs of elevated cortisol and want to stay broadly ketogenic.

