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
September 7, 2025
How Artificial Sweeteners May Be Affecting Your Brain
A large Brazilian study published in Neurology followed nearly 13,000 adults for eight years and found something troubling: people who consumed the most artificial sweeteners showed faster cognitive...
Read article
August 30, 2025
Lithium Levels are low in Alzheimer’s. Is there a role in Migraine and Chronic Pain?
Recently published research on lithium deficiency in Alzheimer’s disease has caught the attention of the media. As a neurologist specializing in pain and headache medicine with an interest in no...
Read article
August 16, 2025
The Healing Power of Holding Hands: Insights from Neuroscience on Pain Relief
There’s something powerful about human touch when you’re hurting. As a neurologist, I see every day how a gentle hand squeeze from someone you trust can shift your pain—not just emotionally, but in...
Read article