Cerebral Torque®
  1. Home
  2. Free tools
Free tool · 2 min

Caffeine calculator

Caffeine is complicated with migraine. A little can help some painkillers work, but a lot, or an uneven amount from day to day, can trigger attacks and withdrawal headaches. Most people also underestimate how much they get. Add up a typical day below to see your total in milligrams and what it means.

Private by design. Your answers stay on your device.

Loading the calculator. If it doesn’t appear, check that JavaScript is turned on. The guide below lets you work it out by hand.

How much caffeine is too much with migraine?

  • 3 or more caffeinated drinks a day. A 2019 study followed 98 adults with episodic migraine through daily diaries for at least 6 weeks. The odds of a migraine attack looked higher on days with 3 or more caffeinated drinks. In people who rarely have caffeine, even 1 or 2 seemed to matter. The effect was small and not certain, but the pattern fits what many people notice (Mostofsky et al., 2019).
  • More than 200 mg a day. That’s the level ICHD-3 uses for caffeine withdrawal headache: regular use above 200 mg a day for more than 2 weeks, then a sudden stop or delay.
  • More than 400 mg a day. Up to 400 mg a day is the amount food safety agencies say is generally safe for most healthy adults. In pregnancy, the advice is 200 mg a day or less.

Many headache specialists suggest staying under about 200 mg a day and keeping it steady, weekends included.

Caffeine in common drinks

Drink or product Typical caffeine
Brewed coffee, 240 ml (8 oz) about 95 mg
Espresso, single shot about 63 mg
Instant coffee, 240 ml about 62 mg
Black tea, 240 ml about 47 mg
Green tea, 240 ml about 28 mg
Cola, 355 ml can about 34 mg
Diet cola, 355 ml can about 46 mg
Energy drink, 250 ml about 80 mg
Headache tablet with caffeine about 65 mg per tablet

Real amounts vary a lot by brand and brew. A large coffee-shop coffee can easily hold 2 to 3 times a standard mug.

Cutting back without a withdrawal headache

Go slowly. Dropping by about a quarter each week is gentler than stopping at once, which often brings a withdrawal headache within a day or two. Keep the timing steady, move caffeine earlier in the day if it’s cutting into sleep, and track it in your headache diary to see whether it lines up with your attacks. For the research behind all this, read caffeine and migraine.

Frequently asked questions

Is caffeine good or bad for migraine?

Both. Caffeine can help painkillers work during an attack, but regular high intake and uneven intake are linked to more attacks and withdrawal headaches. Moderate, steady amounts seem to be the safest middle ground.

How much caffeine is in a cup of coffee?

A standard 240 ml (8 oz) mug of brewed coffee has about 95 mg, but coffee-shop sizes are often 2 to 3 times that. Espresso has about 63 mg per shot.

Can caffeine withdrawal trigger a migraine attack?

Yes. Caffeine withdrawal headache usually starts within 24 hours of missing your usual amount and can trigger a migraine attack in people prone to them. It’s a common cause of weekend and holiday headaches.

Do headache pills with caffeine cause rebound headaches?

They can. Painkillers combined with caffeine count as combination analgesics, and using them on 10 or more days a month can lead to medication overuse headache.

More free migraine tools

References

  1. Mostofsky E, Mittleman MA, Buettner C, Li W, Bertisch SM. Prospective cohort study of caffeinated beverage intake as a potential trigger of headaches among migraineurs. Am J Med. 2019;132(8):984-991. PubMed
  2. Headache Classification Committee of the International Headache Society (IHS). The International Classification of Headache Disorders, 3rd edition. Section 8.3.1, Caffeine-withdrawal headache. Cephalalgia. 2018;38(1):1-211. PubMed

This tool is for education and to help you talk with your doctor. It doesn’t diagnose anything and isn’t medical advice. Your answers stay in your browser and are never sent to Cerebral Torque.

This tool is for education and to help you talk with your clinician. It is not a diagnosis.

More free tools

Try another

All tools
Doctor visit summaryBuild a one-page summary to bring to your appointment
MIDAS disability scoreHow many days migraine has taken in the last 3 months
HIT-6 headache impactSix questions doctors use to measure impact
Enter to openArrow keys to moveEsc to close

You've got this.

This screen is dimmed on purpose. A few things that help most people right now.

  1. 1
    Treat it early. Take your usual acute medicine now, at the dose your clinician gave you. Waiting usually makes it work less well.
  2. 2
    Cut the input. Dim the lights, lower the sound, step away from screens if you can.
  3. 3
    Cold and water. Something cold on the forehead or the back of the neck, and a few sips of water.
  4. 4
    Slow your breathing. Five slow minutes can take the edge off the stress response.

Get emergency care now if this is the worst headache of your life, came on like a thunderclap, or comes with new weakness, numbness, trouble speaking, confusion, fever with a stiff neck, or follows a head injury.