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
June 7, 2026
News
A new edition of my migraine book and an upcoming conversation with Dr. Sanjay Gupta
An overview of why I updated The End of Migraines: 150 Ways to Stop Your Pain for a 3rd edition, what has changed in migraine treatment, and how a more structured, realistic approach can help people who feel they’ve “tried everything.”
Read article
June 4, 2026
Research
A New Study of Meat Intake, Genetics, and Brain Health
A newly published Swedish study suggests that the relationship between diet and brain aging may be more genetically specific than previously understood. Researchers followed over 2,000 older adults for up to 15 years and found that higher meat consumption was associated with slower cognitive decline and lower dementia risk, but only in those carrying the APOE E4 genetic variant, the most common hereditary risk factor for Alzheimer's disease. This may be relevant for people with headaches.
Read article
June 3, 2026
News
Keynote address at the 22nd Annual Neuroscience Zappulla Research Day
I was honored to be delivering the keynote address at the 22nd Annual Neuroscience Zappulla Research Day on Wednesday, June 3, at the Hackensack Meridian Neuroscience Institute, JFK University Medical Center in Edison, NJ.
Read article
Insights from Dr. Alexander Mauskop on headaches and migraines
Subscribe to the Blog.
Subscribe
Subscribe