Does Keto Help With Anxiety? What Research Shows

A ketogenic diet may help reduce anxiety through several brain-related mechanisms, but the human evidence is still limited and mixed. The strongest biological case centers on how ketones shift the balance of brain chemicals toward a calmer state, though most of this research comes from animal and cell studies rather than large clinical trials in people with anxiety disorders.

How Ketones Change Brain Chemistry

The most compelling mechanism involves two key brain chemicals: GABA, which calms neural activity, and glutamate, which excites it. When your body produces ketones during carbohydrate restriction, the primary ketone body (beta-hydroxybutyrate, or BHB) increases the ratio of GABA to glutamate in the brain. This is the same general mechanism that makes drugs like benzodiazepines effective for anxiety: they boost GABA’s calming influence. A 2023 study published in Nature detailed exactly how this works. BHB triggers a chain of events that preserves more glutamate for conversion into GABA, effectively tipping the brain’s excitatory-inhibitory balance toward calm.

This isn’t a subtle shift. In epilepsy research, where ketogenic diets have decades of clinical use, the relief from seizures depends on achieving a high GABA level and a high GABA-to-glutamate ratio. Since anxiety and seizure disorders both involve excessive neural excitation, the overlap in mechanism is what makes researchers optimistic about keto’s potential for anxiety.

Reducing Brain Inflammation

A second pathway involves inflammation. BHB suppresses a specific inflammatory complex in cells called the NLRP3 inflammasome, which acts as a trigger for chronic inflammation throughout the body, including the brain. This finding has been widely reproduced in cell and animal models across a range of conditions, from Parkinson’s disease and Alzheimer’s to diabetes and liver injury. BHB appears to work by preventing the flow of potassium ions that would normally activate this inflammatory cascade, while also increasing resistance to oxidative stress.

Why does brain inflammation matter for anxiety? Chronic, low-grade inflammation in neural tissue is increasingly linked to mood and anxiety disorders. If ketones can dampen that inflammation, the downstream effect on anxiety symptoms could be meaningful. But it’s important to note that most of this evidence comes from lab and animal research, not from tracking anxiety scores in humans on a ketogenic diet.

Gut Bacteria and the Brain Connection

Your gut microbiome communicates with your brain through at least five known pathways: it influences your stress hormone system, alters inflammatory signals, stimulates the vagus nerve (a direct line between your gut and brain), produces neurotransmitters, and even affects how nerve cells are insulated in your prefrontal cortex. A ketogenic diet appears to reshape the gut microbiome in ways that could support these pathways.

In a randomized crossover trial involving people with mild cognitive impairment, a ketogenic-style diet increased levels of Akkermansia, a beneficial gut bacterium, while boosting production of butyrate and propionate, two short-chain fatty acids that support gut barrier integrity and reduce inflammation. A separate weight-loss trial found that a very low-carbohydrate ketogenic diet increased overall gut microbiome diversity compared to a standard low-calorie diet. Another trial in obese individuals found that only the ketogenic group saw an increase in Faecalibacterium prausnitzii, a bacterium associated with anti-inflammatory effects. These changes are promising, though researchers are still working to confirm whether they translate directly into anxiety relief.

What Human Trials Actually Show

Here’s where the picture gets less clear. Despite strong biological plausibility, controlled human trials specifically measuring anxiety outcomes are scarce. A 2025 systematic review and meta-analysis published in JAMA Psychiatry concluded that the therapeutic value of ketogenic diets in psychiatric populations “remains uncertain.” One of the more rigorous trials, which randomized 88 participants with treatment-resistant depression to either a ketogenic diet or a plant-rich comparison diet, found no differences in anxiety between the two groups after 12 weeks.

That doesn’t mean keto can’t help with anxiety. It means we don’t yet have the kind of large, well-controlled trials needed to say so with confidence. Much of the positive evidence comes from case reports, small uncontrolled studies, and the biological mechanisms described above. A commentary in European Psychiatry noted that the diet “could be effective in anxiety disorders treatment” based on its GABA-boosting properties and suggested it might help sustain remission and prevent relapse, but framed this as a hypothesis rather than a proven finding.

The First Week Can Feel Worse

If you do try a ketogenic diet for anxiety, be prepared for a rough transition. The so-called “keto flu” typically hits two to seven days after starting and can include irritability, difficulty sleeping, foggy thinking, headache, and fatigue. These symptoms can easily mimic or amplify anxiety, which is counterproductive if anxiety reduction is your goal. The good news is that energy and mood generally stabilize within about a week, and some people report feeling better than baseline after the adjustment period.

Electrolyte shifts during the transition deserve attention too. When you drastically cut carbs, your kidneys excrete more sodium, which pulls magnesium and potassium along with it. Low magnesium in particular can cause muscle tension, restlessness, and heart palpitations that feel a lot like anxiety. Staying on top of sodium, magnesium, and potassium intake during the first few weeks can help you distinguish between true anxiety and electrolyte-driven symptoms that will resolve on their own.

How It Compares to Medication

Benzodiazepines work fast for anxiety because they directly enhance GABA activity at the receptor level. A ketogenic diet influences GABA through a slower, more indirect route: increasing GABA production over days to weeks rather than minutes. The trade-off is that benzodiazepines carry risks of dependence and cognitive dulling with chronic use, while a ketogenic diet, once established, doesn’t have those particular downsides.

That said, calling a ketogenic diet a replacement for medication would overstate the evidence. The diet’s GABA-modulating effect is real but gentler and less predictable than a pharmaceutical designed to target that exact pathway. For someone with severe anxiety, the diet is better thought of as a potential complement to other approaches rather than a standalone treatment. For someone with mild, persistent anxiety who is also interested in metabolic health, the overlapping benefits may make it worth exploring.