Caffeine and Anxiety
Why caffeine causes anxiety and panic, how it interacts with anxiety medications, and how to drink coffee safely if you have an anxiety disorder.
Medical disclaimer: This guide is general information only and is not a substitute for professional mental health advice. Full disclaimer.
The short answer
Caffeine triggers anxiety by mimicking the body's fight-or-flight response: it raises adrenaline, cortisol, and heart rate, and blocks adenosine (a calming neurotransmitter). For people without anxiety disorders, this feels like alertness. For people with generalized anxiety, panic disorder, or social anxiety, it can feel like a panic attack.
If caffeine makes you anxious, the single most effective intervention is reducing intake. Most anxiety-sensitive people tolerate caffeine well below 100 mg/day (about 1 cup of green tea). Above 200 mg, anxiety symptoms become much more likely. Use the caffeine intake calculator to find your current daily total.
How caffeine affects the brain
Caffeine's anxiety-producing effects come from three mechanisms:
1. Adenosine blockade
Adenosine is a neurotransmitter that builds up while you're awake, naturally calming brain activity. Caffeine blocks adenosine receptors, which is why it feels stimulating — but blocking adenosine also removes a natural brake on anxiety. When caffeine wears off, accumulated adenosine floods back, which is part of the post-caffeine crash.
2. Adrenaline release
Caffeine triggers the adrenal glands to release adrenaline (epinephrine) — the same hormone released in a fight-or-flight response. Adrenaline raises heart rate, blood pressure, and breathing rate, and shifts blood from your digestive system to your muscles. These are the same physical symptoms that occur during a panic attack, which is why caffeine can feel like — and sometimes trigger — a panic attack in susceptible people.
3. Cortisol elevation
Caffeine acutely raises cortisol (the stress hormone), especially when consumed on an empty stomach or under psychological stress. Chronically elevated cortisol is linked to anxiety, insomnia, weight gain, and immune suppression. Cortisol returns to baseline within 1–2 hours of a single caffeine dose, but daily heavy caffeine use keeps cortisol modestly elevated throughout the day.
Why some people get anxious and others don't
Individual tolerance to caffeine's anxiety-producing effects varies enormously, largely due to three factors:
1. CYP1A2 genetics
The CYP1A2 gene produces the enzyme that metabolizes caffeine. About 50% of people carry a "slow" variant that metabolizes caffeine 2–4 times slower than the "fast" variant. Slow metabolizers have caffeine in their bloodstream longer, which means more time for anxiety-producing effects to build up. Genetic testing (e.g., 23andMe) can identify your variant.
2. Baseline anxiety sensitivity
People with generalized anxiety disorder (GAD), panic disorder, social anxiety, or PTSD have a lower threshold for interpreting physical sensations (rapid heartbeat, shakiness) as threatening. Caffeine produces these sensations, and the brain may misread them as the start of a panic attack — which then triggers an actual panic attack. This is the "interoceptive conditioning" theory of caffeine-induced panic.
3. Tolerance and habit
Daily caffeine consumers develop partial tolerance to the anxiety-producing effects within 1–2 weeks. This is why a daily coffee drinker can handle 3 cups without anxiety, but the same person after 2 weeks off caffeine would feel jittery and anxious from a single cup. Tolerance reverses within 7–14 days of abstinence.
Caffeine and panic attacks
Caffeine can trigger panic attacks in people with panic disorder and, at high enough doses, even in people without a panic diagnosis. The mechanism is the adrenaline release described above — combined with the psychological interpretation of physical sensations.
In one famous 1985 study, researchers gave 200 mg of caffeine (about 2 cups of coffee) to people with panic disorder. 71% experienced a panic attack, compared to 0% on placebo. More recent research suggests caffeine's panic-triggering threshold is around 250–400 mg for people with panic disorder (much lower than the FDA's general 400 mg ceiling).
If you have panic disorder, the standard clinical advice is to limit caffeine to ≤100 mg/day, or eliminate it entirely if you still experience panic attacks at that dose.
Caffeine and anxiety medications
Caffeine interacts with several classes of psychiatric medications:
- SSRIs (Prozac, Zoloft, Lexapro, etc.): No major interaction. Caffeine may slightly increase anxiety side effects when starting a new SSRI. Most psychiatrists don't restrict caffeine for SSRI patients.
- SNRIs (Cymbalta, Effexor): Similar to SSRIs. Caffeine may worsen the jitteriness some people experience when starting an SNRI.
- Benzodiazepines (Xanax, Ativan, Klonopin): Caffeine can reduce the sedative effect of benzodiazepines and may increase anxiety between doses. Many prescribers recommend limiting caffeine to ≤200 mg/day for patients on benzodiazepines for anxiety.
- Beta-blockers (propranolol): Often prescribed for performance anxiety. Beta-blockers block adrenaline's effects on the heart, which can mask caffeine's physical symptoms but won't prevent the cognitive anxiety. Many performers use beta-blockers + low caffeine for stage work.
- MAOIs (phenelzine, tranylcypromine): Rarely prescribed today but critically interact with caffeine — can cause dangerous blood pressure spikes. Avoid caffeine entirely.
- Stimulants (Adderall, Ritalin, Vyvanse): Caffeine stacks with these, multiplying anxiety and cardiovascular side effects. Most prescribers recommend avoiding caffeine while taking stimulants.
Always check with your prescribing doctor about caffeine interactions with your specific medications.
How to drink coffee with an anxiety disorder
If you have an anxiety disorder but want to keep drinking coffee, here are practical guidelines:
- Stay under 100 mg/day (about 1 weak cup of coffee, 2 cups of black tea, or 1 green tea matcha latte). Use the intake calculator to track.
- Switch to green or black tea — these contain L-theanine, an amino acid that blunts caffeine's anxiety-producing effects. The L-theanine in matcha is why matcha drinkers often feel calm-alert rather than jittery.
- Never drink caffeine on an empty stomach. Always pair it with food — protein and fat slow caffeine absorption and blunt the spike.
- Stop caffeine by 2 PM. Poor sleep worsens anxiety the next day. Use the half-life calculator to plan your cutoff.
- Try half-caf or decaf. A "half-caf" coffee (half regular, half decaf) gives you ~50 mg per cup — the ritual without the anxiety spike.
- Avoid energy drinks. The combination of high caffeine (160–300 mg per can), sugar, B-vitamins, and taurine is much more anxiety-producing than coffee alone.
- Watch for hidden caffeine in chocolate, pain relievers, and pre-workout supplements. Check our caffeine database.
Caffeine withdrawal and anxiety
Quitting caffeine abruptly can temporarily worsen anxiety for 3–5 days. Caffeine withdrawal produces low mood, irritability, and brain fog — all of which can feed back into anxiety. The psychological stress of giving up a daily ritual also contributes.
If you have an anxiety disorder and want to reduce caffeine, taper by 25% per week rather than quitting cold turkey. Use our withdrawal timeline calculator to predict symptoms.
When to see a professional
If caffeine regularly triggers panic attacks, severe anxiety, or physical symptoms like chest pain or heart palpitations, see a mental health professional. Cognitive behavioral therapy (CBT) is highly effective for caffeine-induced anxiety and can help you reframe physical sensations so they don't trigger panic.
If you experience chest pain, irregular heartbeat, or shortness of breath after caffeine, seek emergency medical attention — these can also be signs of a cardiac event, which caffeine can sometimes unmask.
Bottom line
Caffeine produces anxiety through adrenaline release and adenosine blockade. If you have an anxiety disorder, stay under 100 mg/day, switch to tea (which contains L-theanine), never drink caffeine on an empty stomach, and stop by 2 PM. Track your daily total with our caffeine intake calculator and consult your doctor or therapist about your specific situation.