Does Caffeine Help Migraines?

A little can help, too much can hurt

Top view of a person holding acoffee cup over a table at breakfast.

An espresso. A pumpkin spice latte. A can of soda. A spot of tea.


Cleveland Clinic is a non-profit academic medical center. Advertising on our site helps support our mission. We do not endorse non-Cleveland Clinic products or services. Policy

If you have chronic migraines, you’ve probably tried to avoid caffeine at all costs for fear it could trigger a migraine.

But does caffeine actually help migraines?

Yes and no, so don’t put your coffee mug away so fast. It all depends on how much caffeine you consume.

Headache specialist Emad Estemalik, MD, explores the complicated relationship between migraine and caffeine and offers some practical advice on how to have your coffee and drink it, too.

How caffeine helps

Research shows that for people who experience episodic migraines (defined as 0 to 14 headaches a month), one to two servings of caffeine may limit headache occurrence throughout the day.

For regular caffeine consumers, one to two servings — that’s 8 ounces (oz.) of coffee, 6 oz. of tea, 12 oz. of soda, or 2 oz. of energy drink — had no effect on migraines on the same or following day.

Caffeine reduces inflammation, which can help with migraine pain.

How caffeine causes or triggers migraines

While caffeine can be beneficial when kept under two servings per day, once you reach three or more servings, that’s where you can run into trouble.

Caffeine is a diuretic, which can make you urinate (pee) more. And drinking too much caffeine can lead to dehydration, as well as loss of magnesium, from frequent trips to the bathroom. Both those factors can trigger a migraine.

And it’s important to note that drinking too much caffeine can turn those episodic migraines into chronic migraines (defined as 15 or more headaches a month).

Caffeine withdrawal

If you regularly consume caffeine and then go a day or two without it, you can go through caffeine withdrawal. One of the symptoms of caffeine withdrawal can be migraines.

Caffeine constricts the blood vessels in your brain, but once you stop consuming caffeine, those blood vessels open back up, and that can lead to pain.

Research shows that caffeine withdrawal symptoms typically start within 12 to 24 hours after you stop consuming caffeine and that they can last anywhere from two to nine days.

Pain relievers and migraines

Some pain relievers like Excedrin® Extra Strength and Excedrin® Migraine contain caffeine.

According to research, caffeine can help increase how well medication is absorbed, which can provide relief a lot faster.

But it’s a slippery slope. If you take too many pain relievers that have caffeine or use it too often, you may experience a medication overuse headache.

What should you do?

So, how much caffeine is too much? And what can you do to make sure you don’t consume more than advised?

“The biggest thing to be aware of is the serving size of caffeinated beverage you are consuming,” says Dr. Estemalik. “Drinking one venti at Starbucks is far different than drinking one tall.”


So, be aware of the amounts of caffeine in the serving sizes of drinks. Try to limit yourself to 150 to 200 milligrams each day. That’s about one to two cups of regular coffee.

And don’t think that you’re in the clear if you drink decaffeinated coffee. There’s still a small amount of caffeine in those products, so if you’re really sensitive to caffeine, you may also want to avoid decaf.

But of interesting note, if you’re traveling, know that you might be able to enjoy two cappuccinos instead of just one. The amount of caffeine in beverages in the U.S. is usually higher than in other countries.

While most people can consume about 400 milligrams of caffeine without any concerns, if you deal with migraines, it’s important to watch your caffeine intake and take note of any migraine symptoms you feel.

Work on cutting back (do so slowly to limit the effects of caffeine withdrawal) or staying consistent with your caffeine to prevent an episode.

And if you have additional questions about migraines and caffeine, Dr. Estemalik advises talking to your healthcare provider, who can offer some guidance on chronic migraine treatments.


Learn more about our editorial process.

Related Articles

Person drinking from a coffee mug
May 21, 2024/Nutrition
Grounded in Reality: Does Coffee Dehydrate You?

Coffee is made up of mostly water, but it’s the caffeine you have to look out for

Close up of person pouring a cup of coffee
February 23, 2024/Brain & Nervous System
Does Caffeine Help Headaches?

It’s all about the amount — try to stick to 100 to 150 milligrams a day to reduce and prevent a pounding, throbbing head

female on couch reading a nasal spray bottle label
February 20, 2024/Brain & Nervous System
What To Know About Nasal Spray for Migraines

Among the options is a fast-acting medication that offers relief in as little as 15 minutes

overhead photograph of open and empty energy drinks
February 19, 2024/Nutrition
Are Energy Drinks Bad for You?

Regularly drinking these sugar-fueled, stimulant-laden beverages can increase your risk of adverse health effects

Male with eyes closed sitting hunched over, pinching area between their eyes
January 29, 2024/Primary Care
Headache and Fatigue: 11 Possible Causes That Can Trigger Both

Many factors, like dehydration, a cold or even your medication, can result in these common symptoms

Young female teen drinking canned beverage outside
December 26, 2023/Children's Health
The Young and the Restless: Why Kids Should Avoid Caffeine

No amount of caffeine is safe for kids under 12, and kids 12 to 17 should be cautious about how much they consume

Coffee mug in foreground with person in background holding it.
November 9, 2023/Wellness
How To Quit Caffeine Without a Headache

Don’t make the mistake of stopping cold turkey

Patient with back pain walking into doctor's appointment while doctor holds door.
August 1, 2023/Chronic Pain
7 Causes of Chronic Pain

Arthritis, migraines and endometriosis are common causes of chronic pain

Trending Topics

Person in yellow tshirt and blue jeans relaxing on green couch in living room reading texts on their phone.
Here’s How Many Calories You Naturally Burn in a Day

Your metabolism may torch 1,300 to 2,000 calories daily with no activity

woman snacking on raisins and nuts
52 Foods High In Iron

Pump up your iron intake with foods like tuna, tofu and turkey