Caffeine & Migraine: What You Need to Know Before Quitting Coffee
When a Morning Habit Becomes a Migraine Question
Among migraine triggers people learn to watch out for, caffeine sits in a uniquely confusing spot: it’s in your morning coffee, your afternoon tea, some of your pain relievers, and it has a complicated, back-and-forth relationship with migraine that researchers are still working to fully understand.
In fact, caffeine can both help and worsen migraine. Sometimes even in the same person, depending on how much and how consistently you drink it. A 2020 review of 21 studies found that caffeine or caffeine withdrawal was identified as a migraine trigger in anywhere from 2% to 30% of participants. [1] In our community, the number is even higher: 32% of Migraine Buddy users log caffeine as a trigger.
So when should you think about pulling back on caffeine? And does the answer change depending on your type of migraine?
How caffeine works in the brain
To understand why caffeine matters for migraine, it helps to know a little about adenosine, a chemical your brain naturally produces. Adenosine builds up throughout the day and signals to your body that it’s time to rest. It also plays a role in dilating (widening) blood vessels in the brain.
Caffeine works by blocking adenosine receptors. [2] When caffeine is in your system, adenosine can’t do its job. Blood vessels stay narrower, you feel more alert, and the brain’s pain signalling is somewhat suppressed. That’s why caffeine is included in some over-the-counter migraine treatments.
The American Headache Society recognises combinations of acetaminophen, aspirin, and caffeine as a Level A recommendation for treating migraine. [3] And our own data backs this up: 45% of Migraine Buddy users report caffeine as something that brings relief during an attack.
Over time, though, something shifts. When you drink caffeine regularly, your brain adapts: it grows more adenosine receptors to compensate. [4] If you then miss your usual coffee or cut back suddenly, those receptors flood with adenosine all at once. Blood vessels dilate rapidly, pain signals surge, and what follows is a withdrawal headache, one that, in people who already live with migraine, can tip into a full migraine attack.
The withdrawal window
Withdrawal symptoms typically begin within 12–24 hours of your last caffeine dose, peak around 20–51 hours in, and resolve within 2–9 days. [5] Common symptoms include throbbing, bilateral head pain, fatigue, brain fog, irritability, and nausea, which overlap significantly with the prodromal phase of a migraine attack. People who already have migraine are more likely to experience severe or disabling symptoms during withdrawal.
In a 2020 randomised controlled trial, sudden caffeine withdrawal triggered severe migraine attacks in 7 out of 9 enrolled participants who had episodic migraine and were regular caffeine consumers (averaging 539 mg per day — roughly 5 cups of filter coffee). [6] Even the weekend headache many people get on Saturday mornings has a caffeine component: sleeping in delays the morning cup by a few hours, and that delay alone can be enough to trigger withdrawal.
When regular caffeine makes things worse
There’s also the longer game. A 2025 study found that risk stays relatively stable up to around 97.5 mg of caffeine per day (about one double espresso). Past that point, particularly when intake is high or irregular, the odds of a severe migraine attack go up. And over months and years, consistently high caffeine can make the brain’s pain pathways more reactive. [7][8]
The good news: a 2016 prospective clinic-based study found that people with migraine who completely stopped caffeine for at least two weeks had significantly better outcomes from acute migraine treatment: an odds ratio of 3.2 compared to those who kept drinking it. [9] In other words, quitting caffeine (slowly and carefully) can make your other treatments work better.
Should You Quit Caffeine? It Depends on Your Type of Migraine
Not all migraine types relate to caffeine in the same way. Before making any changes, it’s worth knowing where your type stands.
Episodic migraine (with or without aura)
For episodic migraine, moderate and consistent caffeine is probably fine for most people. The risk goes up when intake is high, erratic, or cut suddenly. A 2025 systematic review put the relatively safe zone at up to 300–400 mg of caffeine per day (roughly 3–4 cups of filter coffee) as long as you’re not stopping abruptly. [10]
For migraine with aura specifically, caffeine sensitivity may run a little deeper due to how the brain’s adenosine system works. [11] If you notice a pattern, talk to your neurologist before making changes.
General guidance for episodic migraine:
- Keep your intake consistent: same amount, same time every day
- Don’t exceed 200 mg per day (roughly 2 cups of coffee or 3 espresso shots)
- Limit caffeine-based pain relief to no more than 2–3 days per week to avoid medication overuse headache [1]
- If you want to reduce intake, do it slowly
Chronic migraine
For people with chronic migraine (15 or more migraine days per month), caffeine overuse is a particular concern. Research has shown that habitually high caffeine consumption is associated with migraine chronification, essentially, it can push episodic migraine toward becoming chronic. [1] If you’re in this group and drinking multiple cups a day, your neurologist will almost certainly recommend reducing or eliminating caffeine, ideally as part of a broader medication overuse review.
Chronic migraine often co-occurs with medication overuse headache (MOH), and caffeine overuse feeds into that cycle. The withdrawal process may be harder: one should expect a temporary increase in attack frequency before things improve.
Menstrual migraine
Menstrual migraine affects around 6% of women in its pure form, with up to 60% experiencing some hormonal influence on their attacks. [12] Menstrual attacks tend to be longer, more severe, and harder to treat than attacks at other times of the month. [13]
The main driver is oestrogen. In the days before menstruation, oestrogen drops sharply, lowering the migraine threshold and making the nervous system more reactive overall. [14] During this window, factors that might normally be manageable (an irregular meal, a bad night’s sleep) are more likely to tip an attack over.
Caffeine fits into this in a specific way. The perimenstrual days (just before, during, and just after a period) often bring fatigue and low mood, which can lead to drinking more caffeine than usual, or skipping it some days and doubling up on others. That irregularity is its own risk. Clinical guidance recommends avoiding vasoactive substances like caffeine and keeping routines as steady as possible across the whole cycle. [15] The goal isn’t necessarily to quit, it’s to keep intake consistent, same amount and same timing, every day.
Vestibular migraine
Vestibular migraine affects around 1% of the general population and is one of the most common causes of recurrent dizziness and vertigo, often without the head pain you’d expect, which is why it frequently goes undiagnosed for years.
On caffeine, the research is genuinely limited. Clinical bodies recommend reducing intake for some people with vestibular conditions, and many patients report caffeine as a trigger. [16] One small study found caffeine elimination alone led to complete or well-controlled symptom resolution in a subset of patients within four weeks. [17] But there are no large trials, and recommendations in this area largely reflect clinical experience rather than hard evidence.
What is clearer is that sudden changes in intake, in either direction, can provoke or worsen vestibular symptoms. [16] If you want to explore caffeine’s role, a slow, tracked reduction done with your neurologist is the right move.
Cutting Back Without the Crash: What to Drink Instead
Quitting caffeine overnight is one of the fastest ways to bring on a withdrawal migraine. Instead, a gradual taper over 2–6 weeks is recommended. [5] The standard approach: reduce your intake by no more than 25% every few days to a week, giving your brain time to readjust.
Practical ways to do this:
- Replace one cup of regular coffee with a 50/50 blend of regular and decaf
- Shift from a large to a medium, then a small, over time
- Switch one daily cup to tea (lower caffeine, same ritual)
- Keep timing consistent even as you reduce quantity: skipping your usual coffee time is its own withdrawal trigger
- Stay well hydrated throughout the process: dehydration makes you feel worse
Caffeine-friendly swaps
Switching completely off caffeine doesn’t mean giving up warm, comforting drinks. Here are some options that work for most people with migraine:

- Matcha (~50–70 mg caffeine per cup): slower caffeine release than coffee, with less of a spike-and-crash effect. [19]
- Green tea (~30–50 mg caffeine per cup): lower caffeine with antioxidants; a gentler step down from coffee
- Sodas, e.g. Coca-Cola (~34 mg caffeine per can): an easy source of hidden caffeine many people don’t count
- Decaf coffee (2–15 mg caffeine per cup): keeps the ritual; useful during withdrawal process but not truly zero
- Ginger tea (caffeine-free): ginger has anti-nausea properties and some evidence for pain relief
- Peppermint tea (caffeine-free): may help ease tension and head pain; research on inhaled peppermint is promising
- Chamomile tea (caffeine-free): calming, with a 2020 review of 19 studies suggesting possible short-term benefit for migraine [18]
- Rooibos tea (caffeine-free): earthy, rich in antioxidants, works well with milk
- Chicory (caffeine-free): tastes closest to real coffee of all the alternatives; bitter, earthy, and works well with milk [20] Remember that you should avoid it if you’re allergic to ragweed!
⚠️ One note of caution: energy drinks are not a safe alternative. They often contain very high caffeine doses, artificial sweeteners, and other additives that may be separate triggers for some people. Better to avoid them entirely.
The American Migraine Foundation recommends limiting caffeine, including caffeinated pain relievers, to no more than 2 days per week to reduce the risk of medication overuse headache (MOH). [3] If you use caffeine as part of your acute migraine treatment, factor that into your weekly total.
If you’re unsure whether you should give up on caffeine, tracking your intake alongside your attacks is the best place to start. And before making any significant changes, talk to your neurologist because the right approach for you depends on your history, your type of migraine, and what else you’re already doing to manage it.
References
[1] Nowaczewska M, Wiciński M, Kaźmierczak W (2020). The Ambiguous Role of Caffeine in Migraine Headache: From Trigger to Treatment. Nutrients, 12(8), 2259. https://doi.org/10.3390/nu12082259
[2] Thuraiaiyah J et al. (2022). Involvement of adenosine signaling pathway in migraine pathophysiology: a systematic review of preclinical studies. J Headache Pain, 23:43.
[3] American Headache Society (2021). Consensus Statement on New Treatments for Adults with Migraine. AHS.
[4] Bjørklund G et al. (2019). Caffeine and Primary (Migraine) Headaches — Friend or Foe? Frontiers in Neurology. PMC6901704.
[5] StatPearls (2025). Caffeine Withdrawal. NCBI Bookshelf. NIH. https://www.ncbi.nlm.nih.gov/books/NBK430790/
[6] Lindner V et al. (2020). Sudden Caffeine Withdrawal Triggers Migraine — A Randomized Controlled Trial. Frontiers in Neurology, 11:1002. https://doi.org/10.3389/fneur.2020.01002
[7] Frontiers in Neurology (2025). The S-shaped association between dietary caffeine intake and severe headache or migraine: NHANES. https://doi.org/10.3389/fneur.2025.1517942
[8] Kerckhofs A et al. (2017). Caffeine controls glutamatergic synaptic transmission and pyramidal neuron excitability in human neocortex. Front Pharmacol, 8:899.
[9] Kim B et al. (2016). Caffeine discontinuation improves acute migraine treatment: a prospective clinic-based study. PMC4975726.
[10] BMC Neurology (2025). The impact of caffeine consumption on migraine: a systematic review. https://doi.org/10.1186/s12883-026-04955-w
[11] Hohoff C et al. (2007). An adenosine A2A receptor gene haplotype is associated with migraine with aura. PubMed: 17257240.
[12] Vetvik KG et al. (2014). Prevalence of menstrual migraine: a population-based study. Cephalalgia. https://journals.sagepub.com/doi/pdf/10.1177/0333102413507637
[13] Granella F et al. (2004). Characteristics of menstrual and nonmenstrual attacks in women with menstrually related migraine. Cephalalgia.
[14] Raffaelli B et al. (2023). Menstrual migraine is caused by estrogen withdrawal: revisiting the evidence. J Headache Pain. https://doi.org/10.1186/s10194-023-01664-4
[15] PMC8369556 — Migraine Associated with Menstruation: An Overlooked Trigger. https://pmc.ncbi.nlm.nih.gov/articles/PMC8369556/
[16] Vestibular Disorders Association (2025). Dietary Considerations with SEH, Menière’s Disease & Vestibular Migraine. https://vestibular.org/blog/dietary-considerations-with-seh-menieres-disease-vestibular-migraine-what-you-need-to-know/
[17] Reploeg MD, Goebel JA (2002). Migraine-associated dizziness: patient characteristics and management options. Otol Neurotol, 23:364–71.
[18] Bezzy Migraine (2024). Types of Tea for Migraine Relief. https://www.bezzymigraine.com/discover/managing-mig/health-8-teas-that-help-with-headache-and-migraine-relief/
[19] Haskell CF et al. (2008). The effects of L-theanine, caffeine and their combination on cognition and mood. Biological Psychology, 77(2), 113–122. https://doi.org/10.1016/j.biopsycho.2007.09.008
[20] Medical News Today (2024). Chicory coffee: Benefits and side effects. https://www.medicalnewstoday.com/articles/chicory-coffee
