Caffeine and Anxiety: Why It Hits Some People Harder

Caffeine and anxiety is not one question but three: how much you drink, who you are, and what happens when you stop. The research answers all three.

Caffeine and anxiety get discussed as though the answer were yes or no. The studies say something more precise and more useful: a small dose does nothing to anxiety ratings, a large one raises them in most people, and one specific group reacts to it in a way that is hard to ignore.

Here is what each part of the evidence actually found.

Key Takeaways

  • In people with panic disorder, 51.1% had a panic attack after caffeine and 0% after placebo (1).
  • 50 mg did not raise anxiety. 450 mg raised it in the majority of participants (3).
  • Who reacts at a moderate dose is partly genetic — ADORA2A variants predicted it (3).
  • Quitting brings irritability, depressed mood and poor concentration for a few days (4).
  • Caffeine cuts total sleep by 45 minutes and deep sleep by about 11 (5).

The Clearest Finding: Panic Disorder

GroupPanic attack after caffeineAfter placebo
People with panic disorder53.9%None
Healthy controls1.7%None
All patients pooled (9 studies, 237 patients)51.1%0%

If you take one thing from this article, take this one, because the effect size is unusual for nutrition research.

A systematic review and meta-analysis searched six databases for blinded, placebo-controlled caffeine challenge studies in adults with panic disorder (1). Nine studies investigating panic attacks covered 237 patients. 51.1% had a panic attack following caffeine. None had one after placebo (1).

Six of those studies compared patients directly against healthy controls: 53.9% of patients versus 1.7% of controls had a panic attack after caffeine, a log risk ratio of 3.47 (1).

That is not a subtle statistical signal. If you have panic disorder, caffeine is worth discussing with your doctor specifically, not treating as an ordinary drink.

In Everyone Else, It Is About The Dose

Caffeine doseWhat happened to anxietyRoughly equivalent to
50 mgNo increase in anxiety ratings (3)A cup of tea
150 mgAnxiety response varied by genotype — ADORA2A variants predicted who felt it (3)A mug of filter coffee
450 mgIncreased anxiety in the majority of participants (3)Three to four coffees, or two large energy drinks

For people without panic disorder, the picture is dose-dependent rather than all-or-nothing.

A meta-analysis pooled 14 studies from eight articles, covering 546 participants from healthy populations, and found that caffeine intake increased the risk of anxiety, with a standardised mean difference of 0.94 (2). Worth stating plainly: the confidence interval ran from 0.28 to 1.60, which is wide, and the total sample is modest (2). The direction is clear; the precision is not.

The dose study is more informative. In a double-blind experiment, 102 people who normally consumed less than 300 mg of caffeine a week took capsules containing 0, 50, 150 and 450 mg in separate sessions (3). The lowest dose did not increase anxiety ratings at all. The highest dose increased anxiety in the majority of subjects (3).

Why it hits some people and not others

The 150 mg dose is where individual differences showed up, and the study found part of the reason.

Self-reported anxiety after 150 mg of caffeine was significantly associated with variants in ADORA2A — the gene for the adenosine A2A receptor, which is what caffeine acts on — specifically rs5751876, rs2298383 and rs4822492, and with the DRD2 variant rs1110976 (3). Interactions between the two genes predicted the response as well (3).

Which is the research version of something people already notice: one coffee leaves your colleague calm and leaves you with a racing heart. That is not imagination, and it is not a character flaw.

What Happens When You Quit

This is the part that catches people out, because cutting caffeine to feel calmer makes you feel worse first.

A critical review examined 57 experimental and 9 survey studies and validated ten withdrawal symptoms against methodological criteria: headache, fatigue, decreased energy, decreased alertness, drowsiness, decreased contentedness, depressed mood, difficulty concentrating, irritability, and feeling foggy (4). Flu-like symptoms, nausea and muscle pain were judged likely to be valid too (4).

Read that list again with anxiety in mind. Irritability, depressed mood, poor concentration and fogginess are precisely what someone quitting caffeine to reduce anxiety will interpret as proof that it was not the caffeine.

The numbers: headache occurred in 50% of cases, and 13% had clinically significant distress or functional impairment (4). Onset is typically 12 to 24 hours after stopping, peaking at 20 to 51 hours (4).

So taper rather than stop dead, and judge the result after the first week rather than during it.

The Indirect Route: Sleep

Man lying awake in a dimly lit bedroom beside a digital clock reading 4:24Save
Photo: cottonbro studio / Pexels

Caffeine can also reach your anxiety the next day, through the night in between.

A systematic review and meta-analysis of 24 studies found caffeine reduced total sleep time by 45 minutes and sleep efficiency by 7%, increased time to fall asleep by 9 minutes and time awake during the night by 12 minutes (5). It also changed the structure of sleep: light sleep increased by about 6 minutes, and deep sleep fell by about 11 minutes (5).

Since short and fragmented sleep reliably worsens anxiety, an afternoon coffee can affect how you feel tomorrow without touching how you feel today. For the sleep side specifically, see our comparison of magnesium vs melatonin for sleep.

Caffeine and Anxiety: Who Should Be Careful

A comprehensive review of ingested caffeine concluded that for healthy adults consumption is relatively safe, while identifying groups for whom it could be harmful: pregnant and lactating women, children and adolescents, young adults, and people with underlying heart conditions or mental illness (6).

That last category is the relevant one here. If you have an anxiety or panic disorder, you are in the group the safety literature singles out.

It is also worth adding up everything, not just coffee. Tea, cola, energy drinks, pre-workout powders and some painkillers all carry caffeine, and the daily total is usually higher than people estimate.

And the necessary line: anxiety is a medical condition with treatments that work. Cutting caffeine may genuinely help, and it is not a substitute for that care.

Frequently Asked Questions

Does caffeine cause anxiety?

It can raise anxiety, and the size of the effect depends heavily on the dose and on who you are. A meta-analysis pooling 14 studies in healthy people found caffeine intake increased anxiety with a standardised mean difference of 0.94, though the confidence interval was wide, from 0.28 to 1.60, and the total sample was only 546 people. The clearer picture comes from dose studies: 50 mg did not raise anxiety ratings at all, while 450 mg increased anxiety in the majority of participants. So the honest answer is that caffeine is anxiogenic at higher doses in many people, rather than that coffee causes anxiety in everyone.

Can caffeine trigger a panic attack?

In people who already have panic disorder, yes, and the evidence for this is unusually strong. A systematic review and meta-analysis pooled nine placebo-controlled caffeine challenge studies covering 237 patients with panic disorder. After caffeine, 51.1% had a panic attack. After placebo, none did. Comparing patients with healthy controls directly, 53.9% of patients had a panic attack against 1.7% of controls. If you have panic disorder, this is one of the more actionable findings in nutrition research.

Why does coffee make me anxious but not my friend?

Partly genetics. In a double-blind study of 102 low-caffeine consumers given 0, 50, 150 and 450 mg, self-reported anxiety at the 150 mg dose was significantly associated with variants in ADORA2A, the gene for the adenosine A2A receptor that caffeine acts on, and with a DRD2 variant. Interactions between the two genes also predicted the response. Habitual intake, sleep debt and how fast you metabolise caffeine all add to it. The practical version is that your dose is not your friend’s dose, and comparing is not useful.

Does quitting caffeine help anxiety?

It may in the long run, but expect the opposite first. A critical review of 57 experimental and 9 survey studies validated ten withdrawal symptoms, and the list is uncomfortably close to how anxiety and low mood feel: headache, fatigue, decreased alertness, drowsiness, depressed mood, difficulty concentrating, irritability and feeling foggy. Headache occurred in 50% of cases, and 13% experienced clinically significant distress or functional impairment. Symptoms typically start 12 to 24 hours after stopping and peak at 20 to 51 hours. Tapering rather than stopping abruptly is the sensible approach.

How late can you drink coffee before bed?

Later than you think matters. A systematic review and meta-analysis of 24 studies found caffeine reduced total sleep time by 45 minutes and sleep efficiency by 7%, added 9 minutes to falling asleep and 12 minutes of waking during the night. It also shifted the structure of sleep, increasing light sleep and cutting deep sleep by about 11 minutes. That matters for anxiety because short and poor-quality sleep worsens it, so an afternoon coffee can affect the following day through sleep alone.

How much caffeine is too much?

A comprehensive safety review concluded that for healthy adults caffeine consumption is relatively safe, but that certain groups may be harmed, specifically pregnant and lactating women, children and adolescents, young adults, and people with underlying heart conditions or mental illness. If you have an anxiety disorder or panic disorder, you fall into the group where caution is specifically advised, and the amount that suits you is a question for your doctor rather than a general figure.

The Bottom Line

Caffeine and anxiety are linked, but not uniformly. For people with panic disorder the evidence is stark: across nine placebo-controlled studies, half had a panic attack after caffeine and none after placebo. For everyone else it depends on dose, with 50 mg doing nothing to anxiety ratings and 450 mg raising them in most people, and on genetics, with ADORA2A variants predicting who reacts at a moderate dose. Quitting brings several days of irritability, low mood and poor concentration that are easily mistaken for anxiety itself, so taper and judge after a week. And caffeine reaches tomorrow through sleep, cutting total sleep time by 45 minutes and deep sleep by 11. If anxiety is affecting your life, reducing caffeine is a reasonable experiment to run alongside proper treatment, not instead of it.


This article is for informational purposes only and is not a substitute for professional medical advice. Anxiety and panic disorder are medical conditions that require professional care. Speak to your doctor before making significant changes if you have a heart condition, are pregnant or breastfeeding, or take prescription medication, and never stop prescribed treatment on your own.


Magnesium vs Melatonin for Sleep: What Trials Show

Lemon Tea Side Effects: 5 Real Disadvantages and the Myths

Vitamin B12 Deficiency: Symptoms, Causes and Treatment

Balanced Diet Guide With the 5 Food Groups

References

  1. 1Gen Hosp Psychiatry · PubMedpubmed.ncbi.nlm.nih.gov/34871964
  2. 2Front Psychol · PubMedpubmed.ncbi.nlm.nih.gov/38362247
  3. 3Neuropsychopharmacology · PubMedpubmed.ncbi.nlm.nih.gov/18305461
  4. 4Psychopharmacology · PubMedpubmed.ncbi.nlm.nih.gov/15448977
+ 11 more sources− Hide 11 sources
  1. 5Sleep Med Rev · PubMedpubmed.ncbi.nlm.nih.gov/36870101
  2. 6Front Psychiatry · PubMedpubmed.ncbi.nlm.nih.gov/28603504