Caffeine Headache: Why Coffee Both Causes and Cures Them
By Coffee Studies Editorial·Published July 15, 2026·6 min read
Quick answer

Caffeine and headaches have one of the most paradoxical relationships in all of pharmacology: caffeine is both a common treatment for headaches and one of the most common causes of them. Both statements are true, and understanding when each one applies matters if you're deciding whether to reach for coffee or a glass of water when your head is throbbing.
Vasoconstricts
acute caffeine narrows cerebral blood vessels — a plausible mechanism for its analgesic effect in headache[3]
12-24 hours
typical onset of caffeine withdrawal headache after the last regular dose[1]
Migraine adjunct
caffeine combined with aspirin/acetaminophen consistently outperforms the analgesics alone for acute migraine[2]
Why caffeine can relieve a headache
The acute headache-relieving effect of caffeine has two well- established mechanisms.
Cerebral vasoconstriction. Caffeine narrows the blood vessels in the brain. Many headache types — including migraine and some tension headaches — involve abnormal vasodilation of cerebral vessels contributing to pain and throbbing. Caffeine's vasoconstrictive effect can counter that. This is the classical explanation for why caffeine is added to headache medications.
Adenosine receptor blockade. Caffeine blocks A1 and A2A adenosine receptors. Adenosine has direct roles in pain signalling — it can contribute to nociceptive transmission at both peripheral and central sites. By antagonising adenosine, caffeine reduces pain signalling[3].
Analgesic potentiation. Independent of its own effect, caffeine enhances the analgesic effect of other painkillers. The classical combination is aspirin + acetaminophen + caffeine (Excedrin), which consistently outperforms the analgesics alone in headache RCTs. The mechanism is thought to involve absorption kinetics, central pain modulation, and possibly the adenosine receptor effect[2].
Figure
Pain relief at 2 hours: acute migraine RCT arm comparison
Values in % of patients with meaningful pain relief at 2 hr
The caffeine withdrawal headache
If you drink coffee regularly, your cerebral vasculature adapts. Chronic vasoconstriction from daily caffeine produces compensatory vasodilation at baseline — the vessels become somewhat wider than they otherwise would be. When you skip your usual caffeine, that compensation is unopposed, and the vessels dilate further as the caffeine washes out.
The result: a throbbing, generalised, often severe headache that typically peaks 20-51 hours after the last caffeine dose. It's one of the most reliable pharmacological phenomena in human neurology — and one of the most common coffee withdrawal symptoms.
The 2004 Cephalalgia paper on caffeine withdrawal headache is the reference clinical description. Findings[1]:
- Onset typically 12-24 hours after the last regular caffeine dose.
- Peak intensity often 20-51 hours in.
- Duration: 2-9 days if untreated, though most cases resolve in 1-2 days with resumption of caffeine or by taper's end.
- Character: throbbing, diffuse, often severe. Frequently accompanied by fatigue, difficulty concentrating, and irritability.
The most direct treatment is a small dose of caffeine — roughly your usual amount or a bit less. This resolves the headache within 30-60 minutes in most cases. The alternative is to tolerate the withdrawal until the vasculature readapts, which generally takes several days.
Why habitual coffee drinkers get "day-off" headaches
The typical trigger for a caffeine withdrawal headache in habitual drinkers isn't quitting — it's a schedule change:
- Weekend headaches. Habitual weekday coffee drinkers who sleep in on weekends often get their usual coffee 2-3 hours later than usual. By then, withdrawal has started.
- Fasting headaches. Anyone fasting for a blood test or a procedure who's a habitual coffee drinker will typically get a caffeine withdrawal headache several hours in.
- Sick day headaches. When you feel unwell and skip your usual coffee, some of the headache pain is often caffeine withdrawal on top of whatever illness is happening.
- Travel headaches. Time zone changes disrupt caffeine timing; delayed morning caffeine can trigger withdrawal.
The pattern is diagnostic: if a small dose of caffeine consistently resolves your morning headache within an hour, it's almost certainly caffeine withdrawal.
Caffeine and migraine
Migraine has a more nuanced relationship with caffeine than tension headache does.
Acute treatment: caffeine combined with over-the-counter analgesics is well-established as effective for acute migraine. Multiple RCTs — including the 2020 Frontiers in Neurology meta-analytic review — support this[2]. The classical combination (aspirin + acetaminophen + caffeine, brand name Excedrin Migraine in North America) is a first-line OTC option in migraine treatment guidelines.
Chronic use and migraine frequency: chronic high caffeine intake can worsen migraine frequency in some patients — a phenomenon called medication-overuse headache or caffeine- overuse headache. Migraine specialists commonly advise migraine patients to keep daily caffeine consistent and moderate (e.g., under 200 mg/day) to reduce this risk.
Trigger caffeine: for some individuals, caffeine acutely triggers migraine. This is idiosyncratic and requires personal trigger-tracking to identify.
What "too much" looks like for headache
The International Classification of Headache Disorders recognises caffeine-induced headache and caffeine- withdrawal headache as distinct entities. Practical thresholds:
- Caffeine-withdrawal headache: after abrupt cessation of regular consumption ≥200 mg/day.
- Caffeine-induced (overuse) headache: in the context of chronic daily caffeine ≥200 mg/day in someone with an underlying headache disorder.
- General upper limit: 400 mg/day per FDA (300 mg during pregnancy per Health Canada)[5][6].
If you have chronic headache and drink a lot of coffee, a supervised taper is often the first line of investigation — it's low-cost and diagnostic.
What the research says
The 2004 Cephalalgia paper on caffeine withdrawal headache remains the reference clinical characterisation — onset, duration, character, and resolution[1].
The 2020 Frontiers in Neurology systematic review of caffeine combinations in acute migraine treatment consolidates the RCT evidence that caffeine + analgesic combinations outperform analgesics alone[2].
The 2014 ACS Chemical Biology paper on caffeine's adenosine receptor action provides the mechanistic foundation — the same receptors involved in pain signalling and vasoregulation that mediate caffeine's other CNS effects[3].
The 2017 BMJ umbrella review notes moderate coffee's overall favourable health signal and doesn't flag headache-specific harm at moderate intake — the concern is at very high intake or in the withdrawal state[4].
Common misconceptions
- "Caffeine causes migraines." For a subset of migraine patients it's an acute trigger, but for most it's neutral or an acute analgesic. Chronic overuse can worsen frequency.
- "You should stop caffeine cold turkey to fix rebound headaches." This will produce a peak withdrawal headache. A gradual taper (25% reduction weekly) is much easier.
- "Caffeine addiction is why you need coffee to prevent headaches." More accurately: physiological dependence. The word "addiction" implies compulsive drug use despite harm; caffeine physical dependence is quite different.
- "Only high doses of caffeine cause withdrawal headache." Regular intake as low as ~100 mg/day (one cup of coffee) can produce a mild withdrawal headache in some people.
Practical rules
If you have an occasional headache:
- A cup of coffee plus an OTC analgesic often outperforms the analgesic alone.
- Check whether it's a withdrawal headache (missed usual coffee, weekend timing, fasting) — small caffeine dose will resolve within an hour.
If you have chronic headaches:
- Track caffeine intake and timing alongside symptoms.
- If daily intake is high, a supervised taper is often the first-line intervention.
- Discuss with your primary care or neurology team.
If you want to quit caffeine:
- Taper rather than quit abruptly to avoid withdrawal headache.
- Typical schedule: reduce by ~25% per week over 4 weeks.
- Have an OTC analgesic on hand for the transition period.
If you're pregnant:
- Keep daily intake to ≤300 mg per Health Canada[6].
- If you're reducing pregnancy-driven, taper gradually to avoid withdrawal headache in the first trimester.
The honest summary
Caffeine both relieves and causes headaches, depending on whether you're taking it acutely or missing your regular dose. Acute caffeine constricts cerebral vessels, blocks adenosine receptors, and enhances analgesic effect — which is why it's in Excedrin. Regular use produces vascular adaptation, and skipping the usual dose triggers a withdrawal headache within 12-24 hours. The most reliable fix for a withdrawal headache is a small caffeine dose. For chronic headache disorders, consistent moderate caffeine (or a supervised taper if intake is high) is the general strategy — the medication-overuse side of the story matters most for people with baseline migraine or tension-type headache disorders.
Frequently asked questions
- Why does caffeine relieve headaches?
- Acute caffeine constricts cerebral blood vessels — dilated cerebral vessels contribute to many tension headaches and migraines. This vasoconstriction is why caffeine is a common ingredient in headache medications like Excedrin (aspirin + acetaminophen + caffeine). Caffeine also blocks adenosine receptors involved in pain signalling.
- Why do I get a headache when I don't drink coffee?
- Regular caffeine intake causes cerebral blood vessels to adapt — they become somewhat dilated at baseline in response to chronic vasoconstriction. When you skip your usual caffeine, the vessels dilate further as the drug wears off, producing a classic withdrawal headache 12-24 hours after the last dose.
- How do I get rid of a caffeine withdrawal headache?
- The most direct fix is a small dose of caffeine — roughly your usual amount, or a bit less. For gradual withdrawal without headaches, taper your intake by about 25% per week rather than stopping abruptly. Over-the-counter analgesics with caffeine can also help acutely.
- Can too much caffeine also cause a headache?
- Yes — very high doses of caffeine can cause caffeine-overuse headaches, particularly in people with pre-existing migraine or tension-type headache disorders. The International Classification of Headache Disorders recognises caffeine-overuse headache as a distinct entity. Staying under the 400 mg/day general limit reduces this risk.
- Does caffeine help with migraines specifically?
- Caffeine is a well-established acute migraine treatment when combined with other analgesics (like the aspirin/acetaminophen/caffeine combination) — it consistently outperforms the analgesics alone in migraine RCTs. As a stand-alone migraine treatment its evidence is weaker. Chronic caffeine use may also increase migraine frequency in some people.
References
Every factual claim in this article is drawn from the sources below. See the source library for how we grade evidence.
- [1]Caffeine-Withdrawal Headache. The Vågå Study of Headache EpidemiologyCephalalgia · 2004 · Observational study · Tier 2 · Moderate
- [2]Sudden Caffeine Withdrawal Triggers Migraine — A Randomized Controlled TrialFrontiers in Neurology · 2020 · Controlled trial · Tier 2 · Moderate
- [3]Uncovering Caffeine's Adenosine A2A Receptor Inverse Agonism in Experimental ParkinsonismACS Chemical Biology · 2014 · Review · Tier 2 · Moderate
- [4]Coffee consumption and health: umbrella review of meta-analyses of multiple health outcomesBMJ · 2017 · Umbrella review · Tier 1 · Strong
- [5]Spilling the Beans: How Much Caffeine Is Too Much?U.S. Food and Drug Administration · 2024 · Agency guidance · Tier 1 · Strong
- [6]Caffeine in foodsHealth Canada · 2022 · Agency guidance · Tier 1 · Strong
Related reading
- Caffeine & HealthCoffee Withdrawal Symptoms: Headaches, Timeline, Relief→
- Caffeine & HealthHow Caffeine Works: The Adenosine Mechanism→
- Caffeine & HealthCaffeine Half-Life: How Long Caffeine Stays in Your Body→
- Caffeine & HealthWhy Do Plants Make Caffeine? The Evolutionary Biology→
- Caffeine & HealthCoffee and Parkinson's Disease: What the Research Shows→
- Caffeine & HealthDoes Coffee Raise Blood Sugar?→