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
May 21, 2026
Research
Your Brain Has Many Pathways, And TMS Can Now Use Them
A groundbreaking University of Iowa study shows that personalized fMRI-guided TMS can now reach and modulate the deep hippocampus — the brain’s command center for memory, emotion, and migraine — without surgery or heavy medications. By mapping each patient’s unique neural pathways, TMS delivers precise stimulation to surface “control points” that influence deep brain structures. Generic approaches barely work, but individualized targeting produces clear, measurable changes. At our headache clinic, we combine TMS and fMRI to offer this advanced, personalized treatment for migraines, depression, PTSD, anxiety, and more.
Read article
May 10, 2026
Research
Elismetrep: A Promising New Experimental Migraine Treatment
Elismetrep is a promising experimental migraine medication that targets the TRPM8 pathway rather than serotonin or CGRP. Early clinical trials suggest it may offer a new option for patients who do not respond well to current treatments.
Read article
May 6, 2026
Alternative Therapies
New Research on Brain Excitability and TMS Treatment for Migraine
New research shows how the brain dynamically regulates excitability in real time—and why this matters for transcranial magnetic stimulation (TMS) as a treatment for migraine.
Read article
Insights from Dr. Alexander Mauskop on headaches and migraines
Subscribe to the Blog.
Subscribe
Subscribe