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 10, 2026
Brain disorders
Genetic connection of fibromyalgia with low back pain, PTSD, IBS, and other disorders.
A genome-wide study published in Nature Medicine found that fibromyalgia shares genetic risk factors with chronic pain conditions, IBS, PTSD, and sleep disturbances. This supports treating these overlapping conditions as one problem of a hyperexcitable nervous system rather than as separate diseases, using a multidisciplinary approach that combines psychological therapies with medications, injections, and neurostimulation.
Read article
August 23, 2026
Alternative Therapies
The Butterfly Effect in Migraine: When Tiny Doses Bring Big Relief
Sometimes a small dose of a drug or a natural substance can produce an outsized positive effect
Read article
Insights from Dr. Alexander Mauskop on headaches and migraines
Subscribe to the Blog.
Subscribe
Subscribe