Apply
Functional nutritionist guidance on how gut health, blood sugar, and nutrient status affect anxiety and depression

Is It Anxiety, or Is It Your Biology? The Nutrition Behind Mood

Most people who come to me carrying anxiety or low mood have already tried the obvious levers. They have read about sleep and stress. They may be in therapy, on medication, or both. And still, something underneath feels like it is working against them, a low hum of unease that does not seem to map cleanly onto anything happening in their life.

Here is the reframe I offer them, and the one I want to offer you: anxiety and depression are not only stories your mind tells. They are also chemistry. They are built, moment to moment, out of the food you eat, the stability of your blood sugar, the balance of your gut, and the raw materials your brain has on hand to make the chemicals that keep you calm. When one of those inputs is off, the feeling that shows up can be indistinguishable from a psychological problem, because to your nervous system, it is one.

This is not a claim that food replaces mental health care. It does not, and I will say that more than once. It is a claim that the body underneath the symptoms is a legitimate place to look, and often an overlooked one. Let me walk you through what the research actually shows.

Your Gut Is Running More of Your Mood Than You Think

The gut and the brain are in constant conversation. They talk through the nervous system, the immune system, and the endocrine system, and the gut's own microbial population is an active voice in that exchange, not a bystander. This is the territory I spend most of my clinical time in, and it is one of the most useful places to start, because so much mood chemistry is manufactured below the neck.

The numbers surprise people. Roughly 90 to 95 percent of the body's serotonin is produced in the gut rather than the brain, synthesized largely by specialized enterochromaffin cells in the intestinal lining. Beneficial bacteria are directly involved in making calming neurotransmitters as well: strains of Lactobacillus and Bifidobacterium can produce GABA, the brain's primary inhibitory, settle-down signal. So the composition of your microbiome is not a digestive footnote. It is part of how your nervous system regulates itself.

When that microbial community falls out of balance, a state called dysbiosis, mood tends to follow. Researchers have linked dysbiosis to depression, anxiety, and related conditions, and the field now treats the microbiota-gut-brain axis as one of the most promising frontiers in understanding mood disorders rather than a fringe idea. A growing body of recent reviews maps consistent patterns across these conditions: disrupted short-chain fatty acid production, altered immune signaling, and shifts in the bacterial populations that help govern neurotransmitter balance.

What does this mean for you, practically? If you live with digestive symptoms, bloating, irregularity, reflux, or a diagnosed condition like SIBO or IBS, alongside anxiety or low mood, those two things may not be a coincidence. They may be two expressions of the same imbalance. This is exactly the connection I work on with clients, and you can read more about my approach to gut health and the gut-brain connection if it resonates.

The encouraging part is that this system responds to change. Diets rich in fiber, prebiotics, fermented foods, and a wide range of plant foods feed the bacteria that make the metabolites your brain depends on, and intervention studies using probiotics, prebiotics, and dietary shifts have shown meaningful reductions in depressive and anxiety symptoms, particularly in people with elevated baseline stress or subthreshold depression.

The Blood Sugar Roller Coaster Your Nervous System Is Riding

This is one of the most underrated drivers of anxiety I see in practice, and one of the most fixable.

Picture a fast-acting meal: a pastry on an empty stomach, a sweetened latte, a plate of refined carbohydrates with nothing to slow them down. Your blood sugar climbs quickly, your body releases a surge of insulin to bring it back, and that correction often overshoots. Glucose dips below where it started. That low, called reactive hypoglycemia, sets off a stress response: your body releases adrenaline and cortisol to haul glucose back up. The sensations that adrenaline produces, a racing heart, shakiness, irritability, a sudden sense of dread, are nearly identical to a wave of anxiety. Your body is not anxious about anything. It is correcting a fuel crisis. But you experience it as panic.

This is not just a story about individual sugar crashes. The pattern shows up at the population level. Greater swings in blood sugar, the variability itself rather than the average, have been associated with higher risk of both depression and anxiety, and this holds regardless of whether someone has diabetes. In other words, you can have a normal average glucose and still be riding a roller coaster that keeps your nervous system on edge.

There is also a metabolic and inflammatory layer underneath this. Diets that drive frequent glucose spikes promote inflammatory signaling and insulin resistance over time, and both of those are bidirectionally tied to depression. The good news inside all of this is that blood sugar is one of the most controllable inputs you have. The strategies are not dramatic: pair carbohydrates with protein, fiber, and healthy fat so the spike is blunted; do not skip meals; front-load protein earlier in the day; and watch liquid sugar, which hits the bloodstream fastest. These small shifts take the physiological roller coaster out from under you, so the calm you are trying to build is not undercut by a crash at four in the afternoon.

The Nutrient Shortfalls That Wear the Costume of a Mental Illness

Your brain is a manufacturing plant. It builds serotonin, dopamine, GABA, and other mood-regulating chemicals out of raw materials that come from your diet. When a key material runs short, production drops, and the result can look and feel exactly like a mood disorder. A broad body of research links specific shortfalls, in B vitamins, vitamin D, magnesium, zinc, selenium, iron, and omega-3 fatty acids, to a higher risk of depressive symptoms. A few are worth a closer look because they are common and frequently missed.

B vitamins (B6, B12, and folate): These are essential cofactors for building the very neurotransmitters that stabilize mood. When they run low, the brain cannot manufacture adequate serotonin, GABA, and dopamine. B12 deficiency is especially deceptive, capable of producing anxiety, brain fog, and panic-like symptoms long before it registers on routine bloodwork.

Magnesium: Often called the relaxation mineral, magnesium helps regulate the stress response, and it is notoriously hard to measure. Most of the body's magnesium is held in bone and soft tissue rather than circulating in blood, so a standard serum test can read normal in someone who is functionally depleted. A meta-analysis of randomized trials found that magnesium supplementation significantly reduced depression scores in adults with depressive disorder.

Vitamin D: Low levels have been consistently linked to anxiety, depression, and seasonal mood changes, and deficiency is common in people who live in northern climates or spend most of their day indoors. You can read more in my work on the critical role of vitamin D in your health.

Iron: This one is frequently mistaken for a panic disorder. When blood cannot carry enough oxygen to tissues, the heart compensates by working harder, producing palpitations, breathlessness, and a racing-heart sensation that the nervous system reads as alarm. The connection is particularly strong in women.

Omega-3 fatty acids: Of all the nutrients studied for mood, these have some of the most robust support, and major psychiatric bodies have recognized them as an evidence-based add-on for unipolar depression.

I want to be responsible here, because supplements are not a free-for-all and more is not better. High-dose folate can mask a B12 deficiency. Long-term zinc can deplete copper. Iron can interfere with thyroid medication, which matters enormously for anyone with an autoimmune thyroid condition. This is why the first move is testing, not guessing. In my practice I give clients a specific list of biomarkers to check so we correct what is actually low instead of chasing a generic protocol. That precision matters most for anyone with a condition like Hashimoto's, where nutrient absorption and thyroid function are deeply intertwined; I write more about that in my work on Hashimoto's and nutrition.

The Inflammation and Cortisol Loop That Keeps Everything Stuck

There is a thread that runs through everything above, and it is worth naming on its own, because it explains why these problems compound rather than stay in their lanes.

Chronic stress and an inflamed, imbalanced gut both push the HPA axis, your central stress-response system, into overdrive. That means more cortisol, more inflammatory signaling, and a nervous system held in a low-grade state of alarm. Elevated cortisol and inflammation, in turn, degrade gut barrier integrity, disrupt the microbiome, and interfere with serotonin production, which feeds right back into anxiety and low mood. It is a loop, and once it is running, each part keeps the others going.

This is also where the modern food environment does real damage. Ultra-processed foods, the packaged, hyperpalatable products engineered for overconsumption, have been associated in large reviews with measurably higher risk of depression and anxiety, through several of the exact mechanisms in this loop: HPA-axis hyperactivity and excess cortisol, immune-inflammatory signaling from a pro-inflammatory diet, insulin resistance, and disruption of the gut microbiome. The encouraging flip side is that the loop runs in both directions. Steady the blood sugar, calm the gut, lower the inflammatory load, and the same feedback that was working against you starts working for you.

Can Changing How You Eat Actually Change How You Feel?

It is fair to ask whether any of this holds up when it is actually tested, not just observed in a survey but put to a real intervention. It does.

The landmark study here is the SMILES trial, the first randomized controlled trial designed to test whether dietary change could improve symptoms of major depression. Participants who received nutritional support and followed a modified Mediterranean-style diet experienced significantly greater reductions in depression symptoms than those who received social support alone, and the effect was not subtle. That is a meaningful finding. It means improving diet quality is not merely supportive in the abstract; for some people it functions as an effective intervention in its own right, working alongside the therapeutic and medical care they are already receiving.

Since then, the broader literature has continued to point the same direction: Mediterranean-style dietary patterns associated with lower depression and anxiety risk, ultra-processed intake associated with higher risk, and targeted nutritional strategies showing benefit as part of a whole-person plan.

How This Fits With the Care You Already Have

I am protective of this point, so let me be direct. None of this replaces mental health care. Persistent anxiety and depression deserve real clinical support, and if you are struggling, please keep working with your therapist and your physician. What I offer is a complementary layer underneath that work: a root-cause look at the body beneath the symptoms.

Think of it this way. Talk therapy helps you rewire patterns, process experience, and build resilience. But if your blood sugar is crashing every afternoon, your gut is inflamed, and your brain is short on the raw materials it needs to make serotonin, you are asking that work to happen on unstable ground. Steady the physiology, and the psychological work has far better ground to take root in. The two are not competing. They are reinforcing, and the most durable progress I see comes from addressing both at once. For a closer look at the gut side of this, see my piece on the gut-anxiety connection.

Your mind and your body are not two separate projects. They are one system. When you nourish the whole of it, healing finally has room to happen.

Frequently Asked Questions

1. Can food really affect anxiety and depression, or is that overstated?

The evidence is real and growing. The SMILES trial, the first randomized controlled trial of dietary change for major depression, found that a Mediterranean-style intervention significantly reduced symptoms compared with social support alone. Food is not a replacement for mental health care, but for many people improving diet quality is an effective layer of support in its own right.

2. How does blood sugar cause anxiety symptoms?

When blood sugar spikes and then crashes, your body releases adrenaline and cortisol to bring it back up. Those are the same stress hormones involved in a panic response, so a glucose crash can produce a racing heart, shakiness, and dread that feel identical to anxiety. Stabilizing blood sugar with protein, fiber, and regular meals removes a major physical trigger.

3. Which nutrient deficiencies are most often missed?

B12, magnesium, vitamin D, and iron are common culprits, and several are easy to miss on standard testing. Magnesium is held mostly in bone and tissue rather than blood, so serum levels can read normal in someone who is depleted, and B12 deficiency can cause anxiety and brain fog before it shows clearly on routine labs. This is why I test a specific panel of biomarkers rather than guessing.

4. Should I just start taking supplements for my mood?

Not without testing. More is not better, and supplements interact: high-dose folate can mask a B12 deficiency, long-term zinc can deplete copper, and iron can interfere with thyroid medication. The responsible first step is identifying what is actually low so you correct the real gap rather than chasing a generic protocol.

5. Will changing my diet mean I can stop therapy or medication?

No. Functional nutrition works alongside psychiatric and medical care, not in place of it. Any medication change should be made only with your prescribing clinician. The goal is to steady the physiology underneath so the psychological work has firmer ground to take root in.


2-Minute Quiz

Not sure which system is driving how you feel?

My free Root Cause Quick Scan takes about two minutes and points you toward the system most worth your attention, whether that is your gut, blood sugar, hormones, or immune health.

Take the free 2-minute quiz →

Supplements

Shop my professional-grade supplement dispensary

Find the practitioner-grade magnesium glycinate, omega-3, B-complex, and vitamin D formulas referenced above, all vetted and shipped to your door, through my Fullscript dispensary.

Create your free Fullscript account →

Ready to get to the root cause?

If you recognize your own pattern in what is described here, I offer complimentary discovery calls to explore whether a functional nutrition approach is appropriate for your situation.

Book a complimentary discovery call →

Dr. Sarah Khan, PhD, MBA

Integrative and Functional Nutritionist in NYC specializing in gut health, the gut-brain axis, autoimmune disease, and hormonal and metabolic health.