Does Caffeine Trigger Migraines or Help Them?
The Short Answer
Caffeine can do both, and the dose and your routine matter more than the drink. In a diary study of 98 adults with episodic migraine, one or two caffeinated drinks a day were not linked to more migraine, and the odds rose at three or more, though no single level reached statistical significance. Stopping suddenly can also bring on a headache, so for many people with regular intake a steady, moderate habit is safer than quitting overnight.
Could Caffeine Be YOUR Trigger?
Take this quick quiz to find out (30 seconds)
Do you have more than about two servings of coffee, tea or energy drinks on a typical day?
What Research Shows
Does caffeine trigger migraines?
For some people, yes, but probably fewer than the folklore suggests. A 2020 review pulled together 21 studies on caffeine or caffeine withdrawal as a migraine trigger. In 17 of them, it was reported as a trigger, but only for a small share of participants, from 2% to 30% depending on the study. That is a wide range, and the abstract does not say how triggers were assessed.
There is also a reverse-causation problem. Yawning, tiredness and craving a drink can be early warning signs of a migraine that has already started. If you reach for coffee and a migraine follows, the coffee may be a symptom of the attack's early phase, not the cause. The same review raises this possibility.
How much caffeine is too much for migraine?
The best evidence on dose comes from a prospective diary study of 101 adults with episodic migraine, 98 of whom completed at least six weeks of twice-daily diaries. They logged 825 migraines over 4,467 days. Each person was compared with themselves, on days with caffeine versus days without.
On days with one or two caffeinated drinks, there was no clear increase in migraine. On days with three or more servings, the odds of a migraine that day were higher. The overall pattern was statistically significant, but the estimate for any single level of intake was not, and the confidence intervals were wide. At five or more servings the estimate was about 2.6 times the odds of no caffeine, with an interval (0.97 to 7.05) that includes no effect. The study is small, so read this as a signal, not a verdict.
In an exploratory analysis, habit changed the picture. Among people who normally had at least one serving a day, the link only showed up at three or more. Among people who rarely had caffeine, even one or two servings was associated with a headache that day.
The same group followed 97 people for six weeks and looked at usual intake instead of single days. Headache days per month were similar for people with no habitual caffeine (7.1), one to two servings a day (7.4) and three to four servings (5.9). Only 12 people were in that last group, so the estimates were imprecise. The authors concluded the data do not support telling people with episodic migraine to avoid caffeine altogether.
A large Norwegian survey of 50,483 adults found a weak association between high caffeine intake and infrequent headache (odds ratio 1.16), and people with headache on more than 14 days a month were less likely to be high consumers. That survey was cross-sectional, so it cannot tell which came first. The authors offered two explanations: caffeine's analgesic effect, or people with frequent headaches cutting back.
The 2020 review suggested people with migraine keep to no more than 200 mg of caffeine a day. That is the reviewers' recommendation, not a threshold proven in a trial, and the caffeine in a serving varies widely by drink and brand.
What is a caffeine withdrawal headache?
If you drink caffeine daily, your body adapts. Skip it and you may get a headache, often with tiredness, trouble concentrating, low mood or nausea. A critical review of 57 experimental studies found headache in about half of people in withdrawal experiments. Symptoms typically began 12 to 24 hours after the last dose, peaked at 20 to 51 hours and lasted 2 to 9 days. Abstaining from as little as 100 mg a day was enough to produce symptoms, and a higher daily intake meant a higher chance and severity.
This matters for migraine in two ways. A withdrawal headache can feel like a migraine, and the 2020 review notes that sudden withdrawal may trigger migraine attacks in people who have them. Weekend lie-ins, travel, fasting and a missed morning coffee are common ways to land in it by accident.
Can caffeine help a migraine?
In combination with a pain reliever, yes. A review of placebo-controlled trials found that adding caffeine to acetaminophen, aspirin or ibuprofen improved relief in migraine and tension-type headache compared with the pain reliever alone. For migraine, doses of at least 100 mg added benefit. The common side effects were nervousness (6.5%), nausea (4.3%), abdominal discomfort (4.1%) and dizziness (3.2%). Note that two authors of that review were affiliated with a consumer health company that makes these products, so it is worth reading alongside the independent studies above.
Can caffeinated pain relievers cause medication-overuse headache?
They can, if used too often. Medication-overuse headache is headache on 15 or more days a month for at least three months, in someone who already has a primary headache disorder, driven by taking acute medication too frequently. Per a German clinical review, the threshold is 15 or more days a month for simple analgesics, and 10 or more days a month for triptans, opioids or combination analgesics. Caffeinated pain relievers are combination products, so the lower 10-day line is the safer one to watch. The same review estimates that 0.7% to 1% of the general population in Germany is affected.
If you are reaching for any acute medication on most weeks, that pattern is worth discussing with a doctor, who can adjust your plan.
How do I cut down on caffeine safely?
There is no trial of the best way to taper in migraine, so this is practical, cautious advice built on what we know about withdrawal:
- Go slowly. Reduce by a small amount, such as a quarter to half a serving, every few days rather than stopping at once.
- Keep timing steady. Have your caffeine around the same time each day.
- Expect a rough patch. If a headache appears, it is most likely in the first one to two days and can last up to about nine days.
- Watch hidden sources. Tea, cola, energy drinks, chocolate and some pain relievers all count.
- Change one thing at a time. If you also change sleep or meals, you will not know what helped.
If a headache comes on suddenly and is the worst you have ever had, or comes with weakness, confusion, trouble speaking or loss of vision, get emergency help straight away. Headaches that are new, changing or severe are worth seeing a doctor about. (NHS)
For how this fits with other triggers, see stress and migraines and sleep and migraines.
Why Caffeine Gets Blamed for Migraines
Myth: everyone with migraine should quit caffeine.
It is one of the most common pieces of advice, and the evidence does not back it as a blanket rule. In the six-week diary cohort, people who drank one to two servings a day had about the same number of headache days as people who drank none, and the authors concluded the data do not support recommending that everyone with episodic migraine avoid caffeine. The 2020 review reached a similar view: there is not enough evidence to recommend cessation for all.
What the evidence does support is narrower. High intake of three or more servings a day may raise risk on that day, sudden changes can cause withdrawal headaches, and frequent use of caffeinated pain relievers can feed medication-overuse headache. For many people the useful goal is not zero. It is a consistent, moderate amount, and knowing whether you are one of the minority for whom caffeine is a clear trigger.
Both studies are small and observational, and they cover episodic migraine. People with chronic migraine may need individual advice.
How to Know If Caffeine Affects YOU
You can find out how caffeine behaves for you with a simple log, on paper or in any notes app. Each day for four to six weeks, write down:
- How many caffeinated drinks you had and roughly when. Count tea, cola and energy drinks, not just coffee.
- Any day you skipped or delayed your usual caffeine, and any travel or schedule change that caused it.
- Whether a headache or migraine started, and what time.
- Any pain reliever you took, including ones with caffeine, and the days per month you took one.
- Sleep, stress and your cycle if relevant, since these overlap with caffeine use and can confuse the picture.
Then look for patterns: headaches on high-intake days, headaches on missed-caffeine days, or neither. Compare the same person on different days, as the diary study did, rather than comparing yourself to someone else.
ProAct does not read your caffeine intake automatically. In the app, you add it yourself. "Caffeine Withdrawal" is one of the built-in triggers you can select in the Potential Triggers step when you log an attack. You can also log caffeine as a medication entry (the default dose is 100 mg) and as something you tried for relief, and you can create your own custom trigger, such as "3+ coffees". Insights shows how often your most common logged triggers appear across your logged attacks. ProAct is not a medical device and does not say whether caffeine causes migraines. For how the app reads your data, see our methodology.
Track Caffeine with ProAct
Add "Caffeine" to your tracking list. After a few weeks, your logs can show whether it appears alongside attacks.
Key Takeaways
- One to two caffeinated drinks a day was not linked to more migraine in a six-week diary study; the odds were higher at three or more, with wide uncertainty.
- Caffeine withdrawal causes headaches in about half of people who stop in experiments, usually starting 12 to 24 hours after the last dose.
- Caffeine added to a pain reliever improves relief in migraine, with doses of at least 100 mg adding benefit.
- Using combination pain relievers on 10 or more days a month is linked to medication-overuse headache; talk to a doctor if that is you.
- A consistent, moderate habit is safer for many people with regular intake than quitting suddenly. Cut down gradually if you do.
- A log of drinks, missed doses and headaches will tell you more about your own pattern than any general rule.
Start Tracking Migraine Patterns
ProAct lets you log migraine attacks alongside weather, sleep, stress, diet, and more, including caffeine.
- โNo subscription required for core features
- โYour data stays private: we never sell health data
- โWorks with Apple Health
Sources
- Prospective Cohort Study of Caffeinated Beverage Intake as a Potential Trigger of Headaches among Migraineurs
- Habitual caffeinated beverage consumption and headaches among adults with episodic migraine: A prospective cohort study
- The Ambiguous Role of Caffeine in Migraine Headache: From Trigger to Treatment
- A critical review of caffeine withdrawal: empirical validation of symptoms and signs, incidence, severity, and associated features
- Caffeine in the management of patients with headache
- Chronic Headache Due to Overuse of Analgesics and Anti-Migraine Agents
- High dietary caffeine consumption is associated with a modest increase in headache prevalence: results from the Head-HUNT Study
- Migraine