Can a Low-Carb Diet Cause Anxiety?

Cutting carbs does not reliably cause anxiety in most people, but certain biological shifts during the transition can produce symptoms that feel a lot like it. Two recent meta-analyses of controlled trials found no consistent link between low-carb eating and increased anxiety overall, yet both flagged scenarios where the risk appeared real, particularly in the first few weeks and at very low carbohydrate intakes. The picture is more nuanced than either “low-carb cures anxiety” or “low-carb causes anxiety,” and the mechanisms pulling in each direction help explain why individual experiences vary so widely.

What Clinical Trials Actually Show

The best evidence comes from pooled analyses of multiple controlled studies. A 2025 systematic review and meta-analysis published in JAMA Psychiatry examined nine randomized controlled trials on ketogenic diets and anxiety and found essentially no effect in either direction. The pooled result was nearly zero, meaning participants on ketogenic diets were no more or less anxious than those eating normally.1PubMed Central. Ketogenic Diets and Depression and Anxiety: A Systematic Review and Meta-Analysis Interestingly, that same review found that less rigorous study designs (quasi-experimental studies without full randomization) consistently showed reduced anxiety on ketogenic diets. That gap matters: it suggests that people who self-select into low-carb eating and stick with it may experience improvements, while the average person randomly assigned to the diet does not.

A separate 2022 meta-analysis in the Journal of Affective Disorders reached a similar overall conclusion but added an important wrinkle. While the pooled result across all trials showed no significant change in anxiety, subgroup analyses told a different story. In studies where carbohydrate intake dropped below about a quarter of total calories, anxiety scores increased meaningfully. And when one outlier study was removed from the analysis, the remaining trials collectively pointed toward a small but real increase in anxiety on low-carb diets.2PubMed. Effect of low-carbohydrate diet on depression and anxiety: A systematic review and meta-analysis of controlled trials The takeaway: how far you cut carbs seems to matter more than whether you cut them at all.

The Serotonin Pathway

One of the most plausible mechanisms linking carb restriction to anxiety involves serotonin, the neurotransmitter closely tied to mood regulation. When you eat carbohydrates, the resulting insulin surge clears several amino acids from your bloodstream but leaves tryptophan relatively untouched. With less competition, tryptophan crosses into the brain more easily, where it serves as the raw material for serotonin production.3PubMed. Recent research on the behavioral effects of tryptophan and carbohydrate Meals that are high in carbohydrate and low in protein are especially effective at boosting this process, because protein-rich foods flood the blood with competing amino acids that block tryptophan from getting through.4PubMed. Carbohydrate craving, obesity and brain serotonin

Strip the carbs away, and this insulin-driven boost to brain serotonin weakens. That does not mean serotonin production stops. Your body has other ways to make it, and tryptophan is present in many protein-rich foods. But the fast, meal-triggered bump that many people unconsciously rely on for a calming effect gets blunted. For someone already on the lower end of serotonin function, this could plausibly tip the balance toward anxious feelings, especially early on before the body adapts to running on fat and ketones.

Cortisol Spikes in the Short Term

Cortisol is the hormone most directly associated with the stress response, and low-carb diets appear to push it upward in a pattern that tracks closely with what anxious dieters report. A systematic review and meta-analysis found that during the first three weeks or so of a low-carb diet, resting cortisol levels rose moderately compared to higher-carb diets. After that initial window, the effect on resting cortisol faded and became inconsistent.5PubMed Central. Low-carbohydrate diets and men’s cortisol and testosterone: Systematic review and meta-analysis

Exercise made the cortisol picture more dramatic. People on low-carb diets who performed longer bouts of exercise (twenty minutes or more) had substantially higher post-exercise cortisol that stayed elevated for at least two hours compared to people eating more carbs.5PubMed Central. Low-carbohydrate diets and men’s cortisol and testosterone: Systematic review and meta-analysis If you are starting a low-carb diet and also exercising regularly, you may be stacking two cortisol triggers on top of each other. Racing heart, restlessness, difficulty winding down at night — these cortisol-driven symptoms overlap heavily with what people describe as anxiety.

The GABA Counterweight

If serotonin and cortisol effects tilt toward anxiety, why do some people on strict ketogenic diets actually feel calmer? A strong candidate is GABA, the brain’s primary inhibitory neurotransmitter, the one that quiets neural chatter and is the target of anti-anxiety medications like benzodiazepines.

When carbohydrate intake drops low enough to produce ketone bodies, one ketone in particular — beta-hydroxybutyrate, or BHB — appears to shift brain chemistry toward more GABA production. Research in cultured brain cells found that ketone body metabolism diverts glutamate (an excitatory neurotransmitter) away from one chemical pathway and toward GABA synthesis instead.6PubMed. Ketone bodies and brain glutamate and GABA metabolism Cultured neurons given BHB alongside glucose used BHB preferentially as building material for both GABA and glutamate.7PubMed. β-Hydroxybutyrate is the preferred substrate for GABA and glutamate synthesis while glucose is indispensable during depolarization in cultured GABAergic neurons A 2024 study went further, showing that BHB specifically (not other ketone bodies) activated a genetic pathway that both preserved glutamate for GABA production and increased the enzyme that converts glutamate to GABA, raising the overall GABA-to-glutamate ratio in the brain.8PubMed Central. Ketogenic diet-produced β-hydroxybutyric acid accumulates brain GABA and increases GABA/glutamate ratio to inhibit epilepsy

This GABA-boosting effect is well established enough that ketogenic diets have been used for nearly a century to treat epilepsy, which involves runaway neural excitation. But there is an important catch for the anxiety question: these GABA changes require sustained ketosis. A person who merely cuts carbs to moderate levels, say from 50% of calories down to 30%, is unlikely to produce significant ketones and would not get this benefit. Meanwhile, they might still experience the serotonin and cortisol effects described above. The GABA upside appears to require going deep into ketosis, not just “eating fewer carbs.”

The Miserable First Few Weeks

Much of the anxiety people attribute to low-carb dieting clusters in the early transition period, often called “keto flu.” A study that analyzed self-reported symptoms from 300 ketogenic diet users found that about a third reported flu-like symptoms, with headache, fatigue, nausea, dizziness, and brain fog dominating the list. Anxiety itself was relatively uncommon, reported by about 2% of users, with panic attacks at about 3%.9PubMed Central. Consumer Reports of “Keto Flu” Associated With the Ketogenic Diet Symptom reports peaked in the first week and faded substantially after four weeks.9PubMed Central. Consumer Reports of “Keto Flu” Associated With the Ketogenic Diet

Even though frank anxiety was uncommon, many of the commonly reported symptoms — dizziness, heart palpitations, feeling faint, brain fog — are the exact sensations that people with anxiety disorders recognize as triggers. If you already tend toward health anxiety or panic, feeling dizzy and foggy for reasons you cannot explain may activate the worry cycle even if the underlying cause is metabolic rather than psychological. The symptoms are real and physical; the anxiety they provoke is also real, even if it is secondary.

Magnesium, Sodium, and the Electrolyte Problem

Part of what makes the transition rough is electrolyte loss. Low-carb diets cause rapid water and sodium excretion, and magnesium often follows. This matters for anxiety because magnesium plays an inhibitory role in the stress response at the level of neurotransmission. Research has documented a feedback loop: psychological stress increases magnesium excretion, and magnesium deficiency in turn makes the body more reactive to stress.10PubMed Central. Magnesium Status and Stress: The Vicious Circle Concept Revisited If you enter a low-carb diet already marginal on magnesium, the additional losses from carb restriction could push you into a zone where your nervous system is more excitable than usual.

Sodium depletion can cause its own anxiety-mimicking symptoms. Low sodium triggers the adrenal glands to release aldosterone (which retains sodium) and can also stimulate adrenaline release. The result is a racing pulse, lightheadedness, and a jittery feeling that many people describe as anxiety but is really the body scrambling to maintain blood pressure. Liberally salting food during the first weeks of a low-carb diet is standard advice in ketogenic communities precisely because it blunts these symptoms.

Gut Microbiome Shifts and the Brain

A less obvious route from diet to mood runs through the gut. A 2025 pilot study compared ketogenic and Mediterranean diets in people with obesity and found something provocative: while both diets improved mood to some degree in the human participants, fecal transplants from the ketogenic diet group actually induced anxiety-like behavior in recipient mice. The researchers tied this to changes in gut bacteria composition and shifts in brain metabolites, including altered levels of several amino acids.11PubMed. Ketogenic diet is less effective in ameliorating depression and anxiety in obesity than Mediterranean diet: A pilot study for exploring the GUT-brain axis This is early-stage research, and mice are not humans, but it points to the possibility that extreme carb restriction reshapes gut bacteria in ways that could independently affect mood through the gut-brain axis.

A 2025 review examining the relationship between ketogenic diets and the gut microbiome took a broader view, noting that the diet’s effects on gut bacteria could influence both cognition and mood through anti-inflammatory pathways and neurotransmitter precursor production.12PubMed Central. Ketogenic Diet and Gut Microbiota: Exploring New Perspectives on Cognition and Mood The picture is genuinely unsettled: the same dietary pattern that reduces inflammation in the brain may simultaneously create a gut environment that promotes anxiety through different pathways. Whether the net effect is positive or negative for any individual likely depends on their starting microbiome, how extreme the carb restriction is, and what foods replace the carbs.

Thyroid Hormone Changes

There is another hormonal shift worth knowing about. A randomized crossover trial found that participants on a ketogenic diet had significantly lower levels of T3, the most metabolically active thyroid hormone, compared to their baseline values or to when they ate a high-carb diet.13PubMed Central. Could the ketogenic diet induce a shift in thyroid function and support a metabolic advantage in healthy participants? A pilot randomized-controlled-crossover trial Low T3 is classically associated with fatigue and sluggishness, but some people experience it as irritability and nervousness instead, particularly if the drop is rapid. Whether this contributes meaningfully to anxiety on low-carb diets is not well studied, but it adds one more variable to the hormonal environment that shifts when carbs are cut sharply.

When Cutting Carbs May Actually Reduce Anxiety

For some people, particularly those with metabolic dysfunction, the anxiety picture reverses. A case series published in Frontiers in Nutrition documented three patients with major depression and generalized anxiety who achieved full remission of both conditions on a therapeutic ketogenic diet. Two reached remission of anxiety within seven weeks; the third took twelve weeks. The researchers noted that anxiety responded and remitted faster than depression in all three cases.14PubMed Central. Complete remission of depression and anxiety using a ketogenic diet: case series These patients also lost a significant percentage of their body weight and saw metabolic markers improve, which makes it hard to separate the psychological effects of the diet from the psychological effects of improved health overall.

Similarly, reactive hypoglycemia — where blood sugar crashes after high-carb meals, triggering adrenaline release and anxiety-like symptoms — is a scenario where reducing carbs directly addresses the root cause. A published case report described a patient with generalized anxiety disorder whose symptoms decreased substantially when protein, fat, and fiber were added to her diet to smooth out blood sugar swings. A brief return to her original high-carb diet caused the anxiety to return, and restarting the modified diet improved it again.15PubMed Central. Generalized Anxiety Disorder and Hypoglycemia Symptoms Improved with Diet Modification For people whose anxiety is driven by blood sugar instability, a moderate reduction in carbs with more protein and fat may be genuinely therapeutic.

Nutrient Gaps on Restrictive Diets

Any diet that eliminates large food groups creates opportunities for nutritional shortfalls, and low-carb diets are no exception. Fruits, whole grains, and legumes are common casualties of carb restriction, and they happen to be major sources of B vitamins, magnesium, zinc, and fiber. Deficiencies in several of these nutrients — including B vitamins, magnesium, zinc, selenium, and omega-3 fatty acids — have been linked to impacts on brain and nervous system function that can contribute to mood disturbances.16PubMed Central. Dietary Nutrient Deficiencies and Risk of Depression

The risk here is not about the macronutrient ratio itself but about what people actually eat when they go low-carb. A diet built around eggs, fatty fish, leafy greens, nuts, and avocados can be micronutrient-dense. A diet built around bacon, cheese, and butter-in-coffee may not be. The anxiety-relevant nutrients to watch include magnesium (already discussed), B6 (crucial for synthesizing both serotonin and GABA), and omega-3 fatty acids (which modulate inflammation in the brain). People who feel increasingly anxious weeks or months into a low-carb diet, well past the initial transition, may be dealing with a creeping deficiency rather than a direct effect of carb restriction.

Sleep Quality on Low-Carb Diets

Sleep and anxiety feed each other in a well-documented loop: poor sleep worsens anxiety, and anxiety disrupts sleep. So how low-carb diets affect sleep matters. A cross-sectional study of women with overweight or obesity found that greater adherence to a low-carbohydrate diet was associated with better overall sleep quality scores, possibly mediated by reductions in inflammatory markers.17PubMed Central. Association between low carbohydrate diet (LCD) and sleep quality by mediating role of inflammatory factors in women with overweight and obesity: A cross‐sectional study That finding runs counter to the common complaint that low-carb diets cause insomnia, though it is worth noting this was a cross-sectional study (a snapshot in time, not a controlled experiment) and focused on women who were already overweight.

Anecdotally, many people report sleep disruption in the first couple of weeks of a low-carb diet, consistent with the cortisol and electrolyte changes discussed earlier. If sleep normalizes or improves after the adaptation period, any anxiety tied to sleep loss would be expected to improve as well. If it does not, the culprit may be excessive caffeine use (common when people feel fatigued on a new diet), inadequate sodium, or eating too close to bedtime.

Individual Differences That Shape the Outcome

The reason “can low-carb cause anxiety?” produces such conflicting answers is that the diet activates several biological systems simultaneously, and whether the net effect is anxiogenic or anxiolytic depends on factors specific to each person. Someone with insulin resistance, reactive hypoglycemia, and chronic inflammation may experience substantial anxiety relief as blood sugar stabilizes and inflammation drops. Someone with healthy metabolic function, borderline magnesium status, and a tendency toward cortisol reactivity may experience the opposite, particularly if they dive into very low carb intake without a gradual transition.

How strict the carb restriction is also matters enormously. As the 2022 meta-analysis showed, the signal for increased anxiety appeared specifically in diets below about 26% of calories from carbohydrates. Moderate low-carb approaches that stay above that threshold may sidestep the anxiety risk almost entirely while still offering metabolic benefits. And for those who do go deep into ketosis, the GABA-boosting effects of sustained ketone production may eventually counterbalance the early cortisol and serotonin disruptions, but only after a transition period that can last several weeks and feel genuinely rough.

People already taking medication for anxiety or mood disorders should be aware that dramatic dietary changes can alter how those medications are absorbed and metabolized. Working with a doctor who understands both the diet and the medication is not optional in that situation — it is a safety issue.