Home / Mental health / Anxiety / Causes of anxiety

Mental health

What causes anxiety

How your body's alarm system works, and how genes, temperament, stress, caffeine, health problems and some medicines can cause or worsen anxiety.

Facts last checked October 2026 · 10 min read

Anxiety is not a personal weakness, and it is rarely caused by one thing. For most people, it comes from a mix of genes, brain wiring, life stress and habits. Experts still do not know the exact cause of anxiety disorders.2,6

Sometimes, though, the cause is something a doctor can find and fix. An overactive thyroid, a heart rhythm problem, too much caffeine or a new medicine can all feel like anxiety.6,7 This page explains the main causes and risks, and when to ask your doctor to look for a physical reason.

Key points

  • Anxiety starts in the body's alarm system. It is meant to protect you. In anxiety disorders, the alarm goes off too easily or too often.5
  • Genes play a part. Anxiety disorders run in families. But genes raise risk; they do not decide your future.3,6
  • Stress and hard life events can trigger anxiety, especially in people who are already at risk.2,7
  • Caffeine, alcohol and some medicines can cause or worsen anxiety. Examples include steroids, stimulants, decongestants and asthma inhalers.7,8
  • Some health problems look like anxiety. These include thyroid disease, heart rhythm problems and lung disease. A checkup can sort this out.6,7,8

Your body's alarm system

Fear is a normal, helpful feeling. When you sense danger, a small area deep in the brain called the amygdala (an almond-shaped part that spots threats) sounds the alarm.5

Your nervous system then gets your body ready to fight or run. This is often called the "fight-or-flight" response. Your heart beats faster. You breathe faster. Your muscles tighten. You may sweat, shake or feel sick to your stomach. Most of the body signs of anxiety come from this part of the nervous system.5

This alarm is useful when the danger is real, like a car running a red light. In an anxiety disorder, the alarm is too sensitive. It goes off when there is no real danger, or it stays on long after the danger has passed. Brain scan studies show that people with anxiety disorders often have a stronger amygdala response to things that seem threatening.5

The good news is that this wiring can change. Research suggests the unusual brain activity seen in anxiety can shift back toward normal with talk therapy or medicine.5 See treatment for anxiety.

Slow breathing tells your body the danger has passed. Try the cyclic sigh or box breathing the next time your alarm goes off.

Genes and family history

Anxiety disorders tend to run in families. A large review of family and twin studies found that a close relative (parent, brother, sister or child) of someone with an anxiety disorder is about 4 to 6 times more likely to have one too.3

Twin studies help show how much of this comes from genes. The same review estimated that genes explain about one third (32%) of the risk for generalized anxiety disorder. For panic disorder, the figure was a bit under half (about 43% to 48%).3

That means most of the risk does not come from genes. Life experiences that are different for each person, even brothers and sisters raised together, also matter a great deal.3 Families can also pass on anxiety through learning. A child who grows up with anxious adults may learn to see the world as more dangerous.7

Temperament: the way you were born

Some babies and young children are naturally cautious. They pull back from new people, places and things. Experts call this behavioral inhibition (a shy, watchful temperament).4

Being shy or withdrawn in new situations is a known risk factor for anxiety.6 A summary of several studies found that children with this temperament were about 7 times more likely to develop social anxiety later.4 Many shy children, however, never develop an anxiety problem.4 See social anxiety.

Stress, trauma and hard life events

Stress and anxiety are closely linked. Stress is your response to a problem or pressure outside you. Anxiety can keep going even when there is no clear threat in front of you.1

Hard experiences can raise the risk of an anxiety disorder. These include trauma in childhood or adulthood, a very stressful home or work life, the end of a close relationship, or living through a disaster.2,6,7 People who have faced more adversity in life are more likely to develop anxiety.8

Stress often acts like a spark. Genes and temperament set up the risk. A stressful event can then set off symptoms.5 But many people develop an anxiety disorder with no clear trigger at all.7 If you had a frightening or life-threatening experience, read about who develops PTSD. To learn how ongoing stress affects your health, see what stress does to the body.

Who is more at risk

  • Women. Women are about 2 to 3 times more likely than men to have generalized anxiety or panic disorder. This gap gets smaller in later life.8
  • People with a family history of anxiety or other mental health conditions.6
  • People with a shy, cautious temperament from early childhood.4,6
  • People who have lived through trauma or long-lasting stress.2,6
  • People with long-term health problems. People with anxiety disorders are more likely to have other chronic illnesses.8

Anxiety disorders are common. About 1 in 3 adults in the U.S. will have one at some point in life.12 Generalized anxiety usually starts in the teen or young adult years, but it can begin later in life too.8

Caffeine

Caffeine is a stimulant (a substance that speeds up your body). Too much can cause jitters, anxiety, a racing or pounding heart and trouble sleeping.9

The FDA says about 400 milligrams of caffeine a day, roughly 2 to 3 twelve-ounce cups of coffee, is not usually linked to harm in healthy adults. But people vary a lot. Some health conditions and some medicines make people more sensitive to caffeine.9 If you live with anxiety, notice how you feel after caffeine. You may do better with less.

Caffeine hides in more places than coffee. The FDA lists these typical amounts in a 12-ounce drink:9

Drink (12 ounces)Caffeine
Brewed coffee113 to 247 mg
Energy drink41 to 246 mg
Black tea71 mg
Green tea37 mg
Caffeinated soda23 to 83 mg
Decaf coffee (8 ounces)2 to 15 mg

Caffeine is also added to some pain relievers, energy bars, gum and supplements. Check the label.9 See self-help for anxiety.

Alcohol and other substances

Many people drink to calm their nerves. Alcohol may seem to help for a short time. But over time, heavy drinking makes anxiety worse.10

Anxious, shaky feelings can show up the day after heavy drinking. They can build between drinking times and peak during withdrawal (the body's reaction when alcohol leaves the system).10 Between 1 in 5 and 2 in 5 people treated for anxiety also have an alcohol problem. Stopping drinking often helps anxiety get better.10

Other substances can also cause anxiety, during use or when stopping. These include cannabis (marijuana), cocaine and amphetamines.7,8

Stopping alcohol suddenly after heavy daily drinking can be dangerous. It can cause seizures or severe confusion. Talk with a doctor first about a safe plan. If someone in withdrawal has a seizure, sees or hears things that are not there, or becomes very confused, call 911.

Medicines that can cause or worsen anxiety

Some prescription and over-the-counter medicines can cause anxiety as a side effect. Stopping certain medicines can cause it too.7,8

Type of medicineExamples and notes
Steroid pills or shots (corticosteroids)Prednisone and similar drugs used for asthma, arthritis and other conditions. Changes in mood and sleep are common, more likely at higher doses, and often show up early in treatment.7,11
StimulantsAmphetamines, including some ADHD medicines.7,8 See ADHD medicines.
Decongestants and some antihistaminesCold, sinus and allergy medicines, many sold without a prescription.7,8
Asthma rescue inhalersAlbuterol, used for asthma and COPD.8
Thyroid hormone pillsLevothyroxine, used for an underactive thyroid.8
Antidepressants and anti-anxiety medicinesThese can sometimes cause anxiety when starting, or when stopping.8
Stopping sedativesWithdrawal from benzodiazepines (a group of calming medicines) can cause anxiety and poor sleep.7 See medicines for anxiety.

Do not stop or change any medicine on your own, even if you think it is causing anxiety. Some medicines, like steroids and benzodiazepines, can be dangerous to stop suddenly. Talk with your doctor or pharmacist before changing anything. Bring a list of everything you take, including vitamins and supplements.

Health problems that can look like anxiety

Some physical illnesses cause the same body signs as anxiety. Doctors look for these before diagnosing an anxiety disorder.2,8

Health problemWhy it can feel like anxiety
Overactive thyroid (hyperthyroidism)It can cause nervousness, irritability, a fast or uneven heartbeat, shaky hands, sweating and trouble sleeping.13
Heart rhythm problems (arrhythmias)A racing, pounding or skipping heartbeat can feel like panic.6,7
Heart failureShortness of breath and a fast heartbeat.7
Lung problems: asthma, COPD, sleep apneaFeeling short of breath is frightening and can bring on panic.7,8 See sleep apnea.
Low blood sugarShakiness, sweating and a pounding heart can feel like panic.5
Rare hormone problemsAn overactive adrenal gland, or a rare adrenal tumor called pheochromocytoma.5,7

A doctor can often check for these with a physical exam, an EKG (a heart rhythm tracing) and blood tests. A thyroid problem cannot be diagnosed from symptoms alone. It takes a blood test.13 If a health problem is found, treating it often eases the anxiety.

Anxiety and physical illness can also exist together. Living with a serious illness is stressful. And anxiety can make physical symptoms feel worse. Both deserve care.

Later life: what is different

When anxiety starts for the first time in later life, it is worth asking your doctor to look for a physical cause. Older adults are more likely to have heart, lung and thyroid problems, and to take several medicines.

An overactive thyroid can look different in older adults. It may cause poor appetite or pulling away from people instead of nervousness. It is sometimes mistaken for depression or dementia.13 See treatable conditions that look like dementia.

New fears, such as worry about falling or about health, are also common in later life. Learn more in anxiety in later life and health anxiety.

Common questions

Did I cause my own anxiety?

No. Anxiety comes from a mix of genes, temperament, brain chemistry and life events. Most of these are outside your control.2,5 What you can do is learn skills and get treatment that turn the alarm down.

If my parent has anxiety, will I get it too?

Not for certain. Your risk is higher, but genes explain only part of it.3 Many people with a family history never develop an anxiety disorder.

Can a medicine cause panic attacks?

Yes, some can, including stimulants, steroids, decongestants and asthma inhalers.7,8 If anxiety started after a new medicine or a dose change, tell your doctor or pharmacist. Do not stop it on your own.

Should I get my thyroid checked?

If you have new anxiety along with weight loss, a fast heartbeat, shaky hands, sweating or feeling too warm, ask your doctor about a thyroid blood test.13

When to get help

See your doctor if anxiety is new, getting worse, or getting in the way of daily life. Ask about a checkup for physical causes, and bring a list of all your medicines.2 Our anxiety overview and check-in can help you put what you feel into words.

Call 911 for chest pain or pressure, severe trouble breathing, fainting, or a racing heartbeat that does not settle. These can be signs of a heart attack or another emergency, even if you have had panic attacks before. See panic attacks.

Call or text 988 if you are thinking about suicide or feel unable to cope. Help is free and open 24 hours a day.

Sources

  1. National Institute of Mental Health. I'm so stressed out! Fact sheet. NIMH. NIMH
  2. National Institute of Mental Health. Generalized anxiety disorder: when worry gets out of control. NIMH. NIMH
  3. Hettema JM, Neale MC, Kendler KS. A review and meta-analysis of the genetic epidemiology of anxiety disorders. Am J Psychiatry, 2001. DOI
  4. Henderson HA, Pine DS, Fox NA. Behavioral inhibition and developmental risk: a dual-processing perspective. Neuropsychopharmacology, 2015. PMC
  5. Chand SP, Marwaha R. Anxiety. StatPearls, NCBI Bookshelf, 2023. NCBI
  6. MedlinePlus. Anxiety. National Library of Medicine. MedlinePlus
  7. Barnhill JW. Overview of anxiety disorders. Merck Manual Consumer Version, reviewed 2026. Merck Manual
  8. DeGeorge KC, Grover M, Streeter GS. Generalized anxiety disorder and panic disorder in adults. Am Fam Physician, 2022. AAFP
  9. U.S. Food and Drug Administration. Spilling the beans: how much caffeine is too much? FDA Consumer Update. FDA
  10. National Institute on Alcohol Abuse and Alcoholism. Mental health issues: alcohol use disorder and common co-occurring conditions. NIAAA Core Resource on Alcohol. NIAAA
  11. Warrington TP, Bostwick JM. Psychiatric adverse effects of corticosteroids. Mayo Clin Proc, 2006. Mayo Clinic
  12. National Institute of Mental Health. Anxiety disorders. NIMH. NIMH
  13. National Institute of Diabetes and Digestive and Kidney Diseases. Hyperthyroidism (overactive thyroid). NIDDK. NIDDK

Education only. This page is general information written from the sources listed. It is not medical, legal or financial advice and does not replace a doctor, therapist or lawyer who knows your situation. How we write and check pages.