What Causes Anxiety: From Genetics to Gut Health

Anxiety has no single cause. It emerges from a combination of genetic wiring, brain chemistry, life experiences, physical health, and daily habits. For some people one factor dominates; for most, several overlap and reinforce each other. Understanding what feeds anxiety is the first step toward managing it, so here’s what science actually points to.

Genetics Set the Baseline

Your genes don’t guarantee you’ll develop anxiety, but they heavily influence your susceptibility. Heritability estimates from twin studies put the genetic contribution at roughly 32% for generalized anxiety disorder and 48% for panic disorder. For specific phobias, including social anxiety, estimates range from 30% to 60% depending on how broadly the condition is measured. What this means in practical terms is that if a close biological relative has an anxiety disorder, your own risk is meaningfully higher than the general population’s, even if you grew up in a different environment.

Genes don’t code for “anxiety” directly. Instead, they influence how your brain produces and responds to chemical signals, how reactive your stress system is, and how efficiently different brain regions communicate with each other. These inherited tendencies create a floor of vulnerability that life experience and environment then build on.

How the Brain Generates Anxiety

Two brain structures play a central role. The amygdala acts as your threat detector, flagging situations as dangerous and triggering the physical rush of fear. The prefrontal cortex, sitting behind your forehead, is supposed to evaluate those alarms and dial them down when the threat isn’t real. In people with high anxiety, research shows the physical connections between these two regions are weaker, meaning the prefrontal cortex struggles to put the brakes on the amygdala’s alarm signals. The result is that anxious feelings persist even when you logically know a situation is safe.

This isn’t just a wiring issue. Brain chemistry matters too. Your nervous system relies on a careful balance between excitatory signals (which fire neurons up) and inhibitory signals (which calm them down). GABA is the brain’s primary calming chemical, and when GABA activity is low, your neurons stay in a heightened state. At the same time, glutamate, the brain’s main excitatory chemical, can spill beyond its normal boundaries when reuptake systems are overwhelmed, overstimulating neurons and contributing to the racing, keyed-up feeling that defines anxiety. Serotonin also plays a regulatory role, which is why medications targeting the serotonin system are commonly used in treatment.

Childhood Experiences and Trauma

What happens to you early in life can reshape your stress response for decades. Adverse childhood experiences, commonly called ACEs, include abuse, neglect, household dysfunction, parental separation, and exposure to violence. A large study using UK Biobank data covering 2006 to 2022 found a clear dose-response relationship: the more categories of adversity a person experienced, the higher their odds of developing anxiety as an adult. Compared to people with no ACEs, those with one adverse experience had 12% higher odds of anxiety. Two ACEs raised the odds by 21%, three by 29%, and four or more by 38%.

These aren’t trivial bumps. And when anxiety co-occurred with depression, the effect was even stronger, with the highest ACE scores nearly quintupling the odds. The mechanism involves lasting changes to the body’s stress hormone system. Chronic early stress essentially recalibrates the threat-detection system to stay on high alert, making the amygdala more reactive and the prefrontal cortex less effective at regulating it.

Trauma in adulthood can trigger similar changes, though the developing brain appears especially vulnerable. Combat exposure, sexual assault, serious accidents, and prolonged emotional abuse all carry well-documented links to anxiety disorders.

Sleep Deprivation

Poor sleep doesn’t just make anxiety worse. It can generate anxiety symptoms on its own. Brain imaging research from UC Berkeley found that a single night of sleep deprivation increased anticipatory activity in the amygdala by more than 60% compared to a normal night’s rest. That’s the same brain region responsible for the alarm response described above, now firing significantly harder without adequate sleep to keep it regulated.

The study also found that people who were already naturally anxious showed the greatest vulnerability to this effect, creating a vicious cycle: anxiety disrupts sleep, and lost sleep amplifies anxiety. This isn’t limited to total sleep deprivation. Chronic partial sleep loss, the kind where you consistently get five or six hours instead of seven or eight, produces a cumulative effect on emotional regulation that builds over days and weeks.

Medical Conditions That Mimic or Cause Anxiety

Sometimes anxiety isn’t a mental health condition at all. It’s a symptom of something physical. Hyperthyroidism, where the thyroid gland produces too much hormone, speeds up metabolism and directly causes nervousness, anxiety, irritability, and a racing heart. Many people are initially diagnosed with an anxiety disorder before a blood test reveals the real culprit.

Other medical conditions that commonly produce anxiety symptoms include:

  • Heart arrhythmias: irregular heartbeats that feel like panic attacks, complete with chest tightness and a sense of dread
  • Blood sugar swings: both hypoglycemia and poorly controlled diabetes can trigger shakiness, sweating, and panic-like episodes
  • Chronic pain conditions: persistent pain keeps the nervous system in a state of heightened arousal
  • Respiratory conditions: asthma and COPD create air hunger, which the brain interprets as a threat

If anxiety appears suddenly, especially without an obvious psychological trigger or a family history, a medical evaluation to rule out physical causes is worth pursuing before assuming the problem is purely psychiatric.

Medications and Substances

Several commonly prescribed drug classes list anxiety as a known side effect. Corticosteroids, used for inflammation and autoimmune conditions, have been associated with agitation, insomnia, and anxiety in reports to drug safety authorities. Stimulant medications, certain asthma treatments, and some thyroid medications can produce similar effects.

Caffeine is probably the most widely consumed anxiety trigger. The FDA notes that anxiety is among the recognized symptoms of excessive caffeine intake. Most adults can tolerate up to about 400 milligrams a day (roughly two to three 12-ounce cups of coffee) without negative effects, but individual sensitivity varies widely. Some people feel jittery and anxious at half that amount, especially if they’re already prone to anxiety or are taking medications that slow caffeine metabolism.

Alcohol deserves special mention because it works in both directions. While it temporarily dampens anxiety by boosting GABA activity, the rebound effect as it clears your system leaves GABA levels lower than baseline, often producing heightened anxiety the following day. Over time, regular heavy drinking resets the brain’s chemical balance in a way that sustains anxiety even during sober periods.

The Gut-Brain Connection

Your digestive system communicates directly with your brain through several channels: the vagus nerve (a long nerve running from gut to brainstem), immune signaling, and chemicals produced by gut bacteria. The community of microbes living in your intestines, collectively called the gut microbiome, has emerged as an important player in stress regulation. Animal studies and correlational human data have linked disrupted gut bacteria to anxiety-like behavior and altered stress responses.

Factors that shape your microbiome early in life, including birth method, breastfeeding, antibiotic exposure, infection, and stress, appear to have long-term effects on stress-related physiology. This doesn’t mean a probiotic will cure an anxiety disorder, but it does mean that gut health is one more input into the larger system. Diets high in processed food and low in fiber tend to reduce microbial diversity, while varied plant-rich diets support it.

Ongoing Stress and Life Circumstances

Chronic stress from financial pressure, relationship conflict, caregiving demands, job insecurity, or social isolation doesn’t just feel bad in the moment. It keeps the body’s stress hormone system activated at a low boil, gradually wearing down the regulatory systems that are supposed to return you to a calm baseline. Over months and years, this sustained activation can tip into a diagnosable anxiety disorder even in people with no prior history.

The global scale of the problem reflects this. An estimated 4.4% of the world’s population currently lives with an anxiety disorder, totaling 359 million people as of 2021. That makes anxiety the most common mental disorder worldwide. While genetics and neurobiology explain why some people are more vulnerable than others, the sheer prevalence suggests that environmental pressures play an enormous role in who actually develops the condition and when.