Coffee and Headaches or Migraine: Trigger or Remedy?
Quick answer: caffeine plays a double role in headaches. It can relieve some headaches and migraines by slightly narrowing blood vessels and strengthening painkillers. Yet irregular or heavy intake, and abrupt withdrawal, can do the opposite and set off pain. What matters most is not the amount but the consistency.
- Caffeine briefly narrows blood vessels and blocks adenosine: two mechanisms that can ease some headaches
- Combined with paracetamol, aspirin or ibuprofen, it boosts the painkiller from about 65 mg
- Stopping abruptly after regular use causes a withdrawal headache 12 to 24 hours after the last cup
- EFSA safety reference for a healthy adult: about 200 mg in a single dose, 400 mg per day
- Taking caffeine-containing painkillers too often can sustain a chronic medication-overuse headache
General information, not medical advice. If your headaches are frequent, severe or unusual, see a healthcare professional.
Vasoconstriction and adenosine: how caffeine reaches the head
Caffeine acts on headaches through two main routes. First, it is a mild vasoconstrictor: it narrows the blood vessels in the head. Some headaches, migraine in particular, involve dilation and sensitisation of those vessels. By tightening them, caffeine can reduce the throbbing component of the pain.
Second, and this is the central mechanism, caffeine blocks adenosine receptors. Adenosine is a molecule that promotes sleep, widens blood vessels and helps transmit pain signals. By occupying its receptors, caffeine dampens those effects: it heightens alertness and modulates pain perception. The same action explains both your morning lift and the relief some people feel during a headache.
This double mechanism has a flip side. A regular drinker's body adapts by producing more adenosine receptors. The system then comes to rely on caffeine to stay balanced, which sets the stage for the withdrawal headache described below.
Caffeine as a painkiller adjuvant
Caffeine does not only relieve pain on its own: it strengthens the effect of pain medication. That is why many over-the-counter painkillers combine it with paracetamol, aspirin or ibuprofen. A Cochrane review of caffeine as an analgesic adjuvant found a statistically significant benefit from about 65 mg of caffeine, with 5 to 10 percent more patients reaching a good level of relief.
In commercial formulations, the added caffeine is usually between 100 and 130 mg per dose, in line with the effective thresholds reported in the headache literature. Caffeine can also speed up the absorption of some painkillers, which may shorten the time to relief.
A cup of coffee can produce a comparable supporting effect when it accompanies a simple painkiller, as long as the dose stays reasonable. This is a common strategy at the very start of a migraine attack. It does not, however, replace proper treatment, and it should not become a daily reflex, or it tips over into overuse.
The caffeine withdrawal headache
This is the best-known face of coffee as a trigger. In someone used to a daily intake, skipping the usual dose can bring on a characteristic headache. The caffeine withdrawal headache typically appears 12 to 24 hours after the last dose, reaches peak intensity at around 20 to 51 hours, and can persist for 2 to 9 days.
It is most often frontal, diffuse and dull, paired with tiredness, reduced concentration, and sometimes irritability or nausea. The mechanism is the mirror image of the desired effect: with no caffeine to block them, the extra adenosine receptors drive vessel dilation and greater drowsiness.
This explains very ordinary situations: the weekend migraine in people who have their coffee later or in smaller amounts than on working days, or the headache that strikes during a fast, a hospital stay or a trip. The remedy is simple: cut down gradually rather than stopping suddenly, and keep a steady drinking schedule.
When coffee triggers, when it relieves
The same coffee can relieve one person and trigger pain in another, or in the same person at a different moment. Rather than a single verdict, it helps to think in terms of context.
Coffee tends to relieve when taken early in an attack, in moderate amounts, ideally with a painkiller, and when it sits within a regular intake. For many people with migraine, one cup at the very first symptoms brings respite.
Coffee tends to trigger in three situations. First, deficit: skipping or delaying the usual dose opens the door to a withdrawal headache. Second, excess: very high intake or an occasional spike can become a trigger in some people. Third, irregularity: alternating heavily caffeinated days with caffeine-free ones keeps the system unstable and prone to attacks. Indirect factors add to this, such as a late coffee that disrupts sleep, itself a recognised migraine trigger.
Caffeine indeed appears on the dietary trigger lists of specialist organisations such as the American Migraine Foundation, precisely because of this double nature. The general recommendation is not to cut it out, but to take it steadily and in moderation.
Limits and medication-overuse headache
For a healthy adult, the European Food Safety Authority (EFSA) considers that intakes up to about 200 mg of caffeine in a single dose and 400 mg per day raise no safety concern. That corresponds roughly to three or four cups of filter coffee, given that a single espresso contains about 60 to 80 mg of caffeine and a cup of filter about 90 to 120 mg.
Beyond those markers, the risk of side effects rises: restlessness, palpitations, sleep disturbance and, in some people, headaches. People prone to migraine often tolerate less and do well to set their own ceiling.
The same loop applies to coffee itself when it becomes daily self-medication against recurring headaches. If you need coffee or a caffeinated painkiller almost every day to keep the pain at bay, that is a signal to seek advice.
Practical timing and dose advice
- Aim for consistency first: a stable dose at steady times limits both withdrawal and triggering spikes. It is the single most protective factor.
- Stay within the safety markers: about 200 mg per dose and 400 mg per day for a healthy adult, lowering that ceiling if you are prone to migraine.
- Reduce gradually if you want to cut down: in steps over one to two weeks rather than a hard stop, to avoid the withdrawal headache.
- Avoid late-day coffee: its half-life is about 3 to 5 hours, and disrupted sleep is itself a migraine trigger.
- At the very start of an attack, a moderate cup, possibly with a simple painkiller, can help, without making it a daily habit.
- Count your painkiller days: if you approach 10 days a month, raise it with a professional to rule out medication overuse.
Frequently asked questions
Does coffee relieve or trigger headaches?
Both, depending on context and dose. Caffeine slightly narrows vessels and blocks adenosine, which can ease some headaches and strengthen painkillers. But irregular or excessive intake, and abrupt withdrawal, can trigger pain instead. Consistency of dose is the deciding factor.
How long after quitting coffee does a withdrawal headache appear?
It usually appears 12 to 24 hours after the last dose, peaks at around 20 to 51 hours and can last 2 to 9 days. Frontal and diffuse, it often comes with fatigue. Tapering gradually rather than stopping abruptly greatly reduces it.
How much coffee is too much?
For a healthy adult, EFSA places the safety reference at about 200 mg of caffeine in one dose and 400 mg per day, roughly three to four cups of filter. People prone to migraine often tolerate less and should focus on consistency.
Does the caffeine in painkillers actually help?
Yes. Added to paracetamol, aspirin or ibuprofen, it boosts the painkiller from about 65 mg, with combinations usually containing 100 to 130 mg per dose. But taking them too often can sustain a chronic medication-overuse headache.
Sources
- American Migraine Foundation, resources on caffeine and migraine triggers.
- European Food Safety Authority (EFSA), Scientific Opinion on the safety of caffeine, 2015 (markers of 200 mg per dose and 400 mg per day for a healthy adult).
- Cochrane Review, "Caffeine as an analgesic adjuvant for acute pain in adults" (benefit of adjuvant caffeine from about 65 mg).
- "Caffeine in the management of patients with headache", The Journal of Headache and Pain, 2017 (mechanisms, withdrawal and doses).
Go further: Specialty coffee FAQ · Coffee glossary · All guides