Caffeine can do both — it can relieve a migraine attack in the short term, but regular heavy use (and especially skipping your usual dose) can trigger headaches. For most people the deciding factors are how much you have, how consistently you have it, and whether you already get frequent headaches.
Why caffeine can help
Caffeine narrows blood vessels slightly and blocks adenosine, a brain chemical involved in pain signalling. It also helps the body absorb painkillers faster, which is why it's a standard ingredient in combination headache tablets (usually paired with paracetamol/acetaminophen and aspirin).
- The evidence that caffeine boosts the effect of painkillers is reasonably strong — reviews of randomised trials find roughly 100 mg of caffeine added to a standard analgesic modestly increases the number of people who get good pain relief.
- Caffeine on its own can take the edge off a mild attack for some people, but evidence here is weaker and mostly anecdotal.
Why caffeine can hurt
Two mechanisms matter:
- Withdrawal headache. If you drink caffeine daily and then miss it — a lie-in, a busy morning, a fasting blood test — a dull, throbbing headache often starts within 12–24 hours. This is a well-documented effect and a common migraine trigger.
- Medication-overuse headache. Using caffeine-containing painkillers more than about 10 days a month can lock people into a cycle of more frequent headaches. This is well recognised in headache medicine.
Observational studies suggest that high intake (roughly 400 mg a day or more, or three-plus caffeinated drinks) is associated with more frequent migraine attacks, while low-to-moderate intake usually isn't. One careful diary study found that on days when people with episodic migraine had three or more servings, attack odds went up. The evidence is suggestive rather than definitive — people may also drink more coffee because a headache is coming.
How much caffeine is in common sources
All figures are USDA, and the drinks are per 100 g (about 100 ml) of brewed beverage:
| Food/drink | Caffeine per 100 g | Per typical serving |
|---|---|---|
| Brewed coffee | 40 mg | ~95 mg per 8 fl oz (237 g) cup |
| Black tea | 20 mg | ~47 mg per 8 fl oz cup |
| Green tea | 12 mg | ~29 mg per 1-cup (245 g) serving |
| Dark chocolate, 70–85% | 80 mg | ~22 mg per 1 oz (28 g) |
Dark chocolate also supplies 802 mg of theobromine per 100 g (USDA), a milder relative of caffeine. Chocolate is often blamed as a migraine trigger, but controlled studies have mostly failed to confirm it — the craving may be part of the early phase of the attack rather than its cause.
Practical approach
- Be consistent. A steady daily amount, at roughly the same time, avoids withdrawal dips. Weekend lie-ins are a classic trigger.
- Keep it moderate. Many headache specialists suggest capping intake at about 200 mg a day (roughly two cups of coffee) if you get frequent migraines.
- Taper, don't quit cold. If you want to cut back, reduce by about 25% a week to limit withdrawal headaches.
- Watch acute use. Caffeine-containing painkillers work, but limit them to fewer than 10 days a month.
- Track it. A headache diary noting caffeine timing often reveals a personal pattern faster than general rules do.
If migraines are frequent, worsening, or you're pregnant, breastfeeding, or taking medications that interact with caffeine (some antidepressants, certain antibiotics, theophylline), talk it through with a doctor or pharmacist before making big changes.