Caffeine and migraine headaches

October 1, 2019

Medication overuse headache (MOH) is not proven to occur from the frequent intake of triptans (Imitrex, or sumatriptan and other) or NSAIDs (ibuprofen, naproxen, and other). However, there is good evidence that caffeine (and opioid analgesics) which can help relieve an occasional migraine, can definitely make them worse if taken frequently. Caffeine withdrawal is a proven trigger of headaches, including migraines.

While we know that caffeine withdrawal causes headaches, a study just published by Harvard researchers in The American Journal of Medicine addressed an unexamined question – does drinking coffee directly triggers a migraine?

This was a rigorous prospective study of 98 adults with episodic migraine who completed electronic diaries every morning and evening for a minimum of 6 weeks. 86 participants were women and 12 were men, with mean age of 35 and the average age of onset of headaches of 16. Every day, participants reported caffeinated beverage intake, other lifestyle factors, and the timing and characteristics of each migraine headache. The researchers compared incidence of migraines on days with caffeinated beverage intake to the incidence of migraines by the same individual on days with no intake. In total, the participants reported 825 migraines during 4467 days of observation.

There was a significant association between the number of caffeinated beverages and the odds of migraine headache occurrence on that day. This association was stronger in those who normally drank 1-2 cups of coffee daily – they were more likely to get a migraine on days when they drank 3 or more cups.

Even after accounting for daily alcohol intake, stress, sleep, activity, and menstrual bleeding, 1-2 servings of caffeinated beverages were not associated with headaches on that day, but 3 or more servings were associated with higher odds of headaches, even after accounting for daily alcohol intake, stress, sleep, activity, and menstrual bleeding. The researchers also considered the possibility of reverse causation, meaning that people might have drank coffee to treat a headache, but this was also not the case.

My advice to migraine sufferers is to drink not more than 1 cup of coffee a day, and I don’t mean a Venti (24 oz) cup from Starbucks, but an 8-ounce cup of regular strength coffee. During a migraine attack having an extra cup along with your usual medication may provide additional relief.

Written by
Alexander Mauskop, MD
Continue reading
March 26, 2026
Alternative Therapies
Lidocaine-Based Treatments Offer Another Option for Severe Migraines
This post explains how lidocaine, beyond its traditional use as a local anesthetic, can be given by IV or directly into the middle meningeal artery to help break severe, treatment-resistant migraines, with early studies showing promising relief and generally mild, manageable side effects.
Read article
February 16, 2026
News
Potential big news for the 40 million Americans with migraine.
It is long overue to make triptans available without a prescription, like in the rest of the world.
Read article