Find Information About:

Drugs & Supplements

Get information and reviews on prescription drugs, over-the-counter medications, vitamins, and supplements. Search by name or medical condition.

Pill Identifier

Pill Identifier

Having trouble identifying your pills?

Enter the shape, color, or imprint of your prescription or OTC drug. Our pill identification tool will display pictures that you can compare to your pill.

Get Started

My Medicine

Save your medicine, check interactions, sign up for FDA alerts, create family profiles and more.

Get Started

WebMD Health Experts and Community

Talk to health experts and other people like you in WebMD's Communities. It's a safe forum where you can create or participate in support groups and discussions about health topics that interest you.

  • Second Opinion

    Second Opinion

    Read expert perspectives on popular health topics.

  • Community


    Connect with people like you, and get expert guidance on living a healthy life.

Got a health question? Get answers provided by leading organizations, doctors, and experts.

Get Answers

Sign up to receive WebMD's award-winning content delivered to your inbox.

Sign Up

Migraines & Headaches Health Center

Select An Article

Caffeine and Headaches

Font Size

Everyone gets headaches from time to time. And most of us have caffeine in what we drink and eat every day. Have you considered whether there’s a connection? It’s possible for caffeine to both cause and cure a headache.

How Caffeine Helps

When your head hurts, you want relief fast. Whether it’s a run-of-the-mill tension headache or a migraine, caffeine can help. That’s why it’s an ingredient in a lot of popular pain relievers. It can make them as much as 40% more effective. Sometimes you can stop the pain in its tracks just by having caffeine alone.

Caffeine helps reduce inflammation, and that can bring relief. It also gives a boost to common headache remedies. Whether you use aspirin, ibuprofen, or acetaminophen, they work faster and better and keep the pain away for longer when combined with caffeine.

A  very rare condition called hypnic headaches responds especially well to caffeine. These strike older people, waking them in the middle of the night with severe pain. Doctors tell people who get these to have a cup of coffee before bed, or as soon as the headache wakes them.

How Caffeine Hurts

Oddly enough, what makes caffeine effective in pain relief can also cause headaches.

Since caffeine narrows the blood vessels that surround your brain, when you stop taking it they expand again, and that can cause pain.

Withdrawal: It’s easy for your body to get so used to the effects of caffeine that when you don’t have it in your system, you have withdrawal. A headache is one of the symptoms. This can happen when you have caffeine regularly, even as little as a cup of coffee a day.

Too Much Medication: Caffeine is also a factor in what’s known as a medication overuse, or rebound headache. This can happen when you take too much of any kind of pain reliever or take it too often. When the medicine wears off, the pain comes back worse than before. When you combine caffeine with pain relievers this condition is more likely. This type of headache is rare and can be avoided by following instructions on the medication's label.

Next Article:

Today on WebMD

Business woman with hand on face and eyes closed
What aura looks like, triggers, and more.
woman with migraine
Get the truth about migraines.
headache in the bedroom
Keep headaches from ruining your sex life.
woman with hands on head
Test your knowledge of triggers, types, and more.
woman with migraine
drinking coffee
Migraines Headaches Basics
acupuncture needles in woman's back
Tired young man
spraying perfume
man with a headache
headache in the bedroom