One cup of coffee leaves some people shaky, anxious or wide awake at 2 a.m., while others drink espresso after dinner and sleep fine. Some people feel fine on caffeine but get heartburn or a rushed trip to the bathroom from coffee itself. Both get called "coffee sensitivity," but they are usually two different problems. Caffeine sensitivity shows up as jitters, anxiety, a racing heart or poor sleep. A reaction to other compounds in coffee mostly shows up in the stomach and gut.

This guide covers how much caffeine is really in your cup, why some people clear it far more slowly than others, what the "slow metabolizer" gene tests can and cannot tell you, what the newest heart trials show about palpitations, why decaf can still upset your stomach, and whether L-theanine or other supplements take the edge off.

The short version

  • Two problems, one name. Jitters, anxiety, palpitations and poor sleep come mainly from caffeine. Heartburn and the urge to use the bathroom come partly from other compounds in coffee, so decaf can trigger them too.
  • Dose is the biggest factor. A 12 ounce coffee can hold anywhere from about 113 to 247 mg of caffeine, and the same drink from the same shop varied from 259 to 564 mg over six days in one study.
  • Some bodies clear caffeine slowly. Pregnancy, birth control pills, quitting smoking, liver disease and drugs such as fluvoxamine and ciprofloxacin can make caffeine last much longer.
  • Gene tests are less useful than they sound. The CYP1A2 "slow metabolizer" gene mainly changes how much the liver speeds up caffeine clearance in smokers and heavy coffee drinkers, not how jittery you feel, and the famous finding that slow metabolizers get more heart attacks from coffee was not confirmed in much larger studies.
  • Coffee and the heart: in a 2023 randomized trial, coffee days brought about 50 percent more extra heartbeats from the lower chambers (often felt as skipped beats), but no significant rise in extra beats from the upper chambers.
  • Sleep: caffeine lingers. In the same trial, people slept 36 minutes less on coffee days, and a 2023 analysis suggested finishing a typical cup at least 8.8 hours before bed.
  • Supplements: in the most direct test of jitters, L-theanine softened caffeine's blood pressure bump but did not reduce jitteriness. We found no trial of magnesium for caffeine sensitivity. Checking pre-workouts and fat burners for hidden caffeine is more useful than any of these fixes.

Caffeine sensitivity or coffee intolerance?

Caffeine works mainly by blocking adenosine, a brain chemical that builds up during the day and makes you feel sleepy. That is why its effects are mostly about alertness, nerves, heart rate and sleep. Coffee also contains hundreds of other compounds, including acids, chlorogenic acids and compounds formed during roasting, that act on the stomach and bowel whether or not the caffeine has been removed.

The FDA lists the classic signs of too much caffeine as a faster heart rate, palpitations, higher blood pressure, insomnia, anxiety, jitters, upset stomach, nausea and headache. Here is a rough guide to which part of coffee is the more likely cause:

What you noticeMore likely causeClue
Jitters, shaky hands, restlessnessCaffeineAlso happens with tea, energy drinks or caffeine pills
Anxiety or panicCaffeineStrongly dose related; most people in one study at 450 mg
Poor sleepCaffeineWorse the later in the day you drink it
Racing heart or skipped beatsCaffeine (mostly)See the heart section before assuming
Heartburn or sour stomachCoffee itself (caffeine may add)Often still happens with decaf, though less in small studies
Urgent need to use the bathroomCoffee itself and caffeineDecaf also triggers it in some people
Headache and fatigue when you skip coffeeCaffeine withdrawalStarts 12 to 24 hours after your last cup
Hives, swelling, wheezingPossible allergy (rare), or milk and other additivesSee a doctor or allergist

A simple way to tell them apart: switch to decaf for a week. If the jitters stop but the stomach symptoms continue, caffeine was behind the jitters and something else in coffee is behind the stomach trouble. To double-check, try tea or another caffeinated drink that is not coffee: if the jitters come back but your stomach stays calm, that points the same way.

How much caffeine is in your cup

Many people who call themselves sensitive are simply getting more caffeine than they think. Agency figures give a sense of the range:

DrinkTypical caffeine
Brewed coffee, 12 oz (FDA)113 to 247 mg
Brewed coffee, 8 oz (NIH MedlinePlus)95 to 200 mg
Espresso, 60 ml (EFSA)About 80 mg
Decaf coffee, 8 oz (FDA)2 to 15 mg
Black tea, 12 oz (FDA)About 71 mg
Green tea, 12 oz (FDA)About 37 mg
Energy drink, 12 oz (FDA)41 to 246 mg
Pre-workout, one serving (used in a 2023 sleep review)About 218 mg

Even those ranges understate the variation. In a University of Florida study, specialty coffees ranged from 58 to 259 mg per serving, and the same coffee bought from the same outlet on six days in a row ranged from 259 to 564 mg. A study of 104 espressos from cafes in Scotland, Italy and Spain, plus some cappuccinos and instant coffees, found 48 to 317 mg per serving, and its authors concluded that "one cup of coffee" is not a reproducible measurement.

For most healthy adults, the FDA cites 400 mg a day, about two to three 12 ounce cups of coffee, as "an amount not generally associated with negative effects," while adding that people vary widely in how sensitive they are and how fast they clear it. Europe's food safety agency, EFSA, says single doses up to 200 mg raise no safety concern for healthy adults, but that even 100 mg close to bedtime may affect sleep in some people. (The 2017 review the FDA cites as confirming the 400 mg figure was sponsored by an industry-supported food science group that also received grants from beverage and coffee trade associations; the figure itself comes from a 2003 Health Canada review, and EFSA reached the same number in 2015.)

Why caffeine hits some people harder

Almost all caffeine is broken down in the liver by one enzyme, CYP1A2, which handles about 95 percent of it. How fast that enzyme works varies a lot from person to person, and so does caffeine's half-life, the time it takes your body to clear half of the caffeine you drank:

Tolerance matters too. Regular drinkers become far less sensitive to caffeine's anxiety effect. In one study of 379 adults, frequent consumers developed substantial tolerance even when they carried a gene variant linked to caffeine anxiety, and the researchers found that daily users gained no net alertness: after an overnight break, caffeine mostly just reversed the dip in alertness caused by going without it. People who rarely drink coffee, or who go back to it after a break, tend to notice its effects most.

Slow vs fast caffeine metabolizers and the CYP1A2 test

Twin studies suggest that roughly a third to over half of the differences between people in caffeine-related traits are inherited. Large gene studies of coffee intake point mainly to two spots: the CYP1A2 gene for the liver enzyme, and AHR, a control gene on a different chromosome that regulates CYP1A2. Each gene variant shifts intake by only a fraction of a cup a day. People who clear caffeine slowly tend to drink less of it, which suggests most people adjust their intake to how coffee makes them feel.

The CYP1A2 test. Consumer DNA tests usually report a variant called rs762551. You carry two copies of each gene, one from each parent, so your result (your genotype) reads AA, AC or CC: AA is labeled "fast," and AC or CC "slow." What the research shows is narrower than the marketing:

The ADORA2A gene, which codes for the brain's adenosine receptor, has a better link to how caffeine feels. In a double-blind trial (neither the volunteers nor the researchers knew who got caffeine) of 94 light caffeine users, people with one version reported more anxiety after 150 mg, and several later studies found similar links with anxiety and caffeine-related sleep problems. But at a high dose of 450 mg, most people became anxious (the gene links were seen at the moderate 150 mg dose), and one study of 1,023 workers found the variant pointed the opposite way for sleep complaints among people taking in under 300 mg a day. A 2023 systematic review summed it up: CYP1A2 variants were linked mainly to cognitive effects, while ADORA2A variants were linked to anxiety and sleep disturbance.

The heart attack finding that did not hold up. A 2006 Costa Rican study that compared 2,014 heart attack survivors with 2,014 similar people who had not had a heart attack found that slow metabolizers who drank 2 or more cups a day had higher odds of a nonfatal heart attack (64 percent higher at 4 or more cups), while fast metabolizers did not. It was widely reported and is still used to sell gene tests. But it was observational, meaning it compared groups of people rather than testing coffee in a trial, so it could not show cause and effect. Later, much larger analyses did not confirm it: in 347,077 UK Biobank participants, CYP1A2 type showed no interaction with coffee for heart disease, a study of 386,258 people found no interaction for heart rhythm problems, and a 2023 genetic analysis found no strong link between genetically higher caffeine levels and heart disease.

Is a caffeine gene test worth it? The lab will usually read the gene correctly. What the result means for how you feel, or for your heart, is much less certain. A 12 month trial that gave young adults diet advice based on their genes, including a caffeine gene, did not report any change in caffeine intake (its senior author held shares in a nutrition gene testing company). Your own response to a known dose of caffeine is a better guide than your genotype.

Why coffee can make you anxious

Caffeine's effect on anxiety is clearly dose related. In a double-blind study of 102 light caffeine users given 0, 50, 150 or 450 mg, the lowest dose did not raise anxiety, while 450 mg raised it in most people. At low to moderate doses, caffeine often lifts mood and alertness instead.

People with panic disorder are a special case. A 2022 meta-analysis (a study that pools the results of earlier studies) of blinded caffeine challenge tests, in which patients were given a test dose without knowing whether it was caffeine or a dummy pill, found that 51.1 percent of 237 patients with panic disorder had a panic attack after a large dose of caffeine (400 to 750 mg, most studies using 480 mg, roughly five cups), and none after placebo. Only about 2 percent of healthy volunteers did. But in a 2025 trial from the same research group, 150 mg, about one strong cup, did not raise anxiety more than placebo in people with panic disorder. The participants were light caffeine users, and caffeine still raised arousal and avoidance behavior in both groups; the authors suggested that advice to avoid caffeine in panic disorder should be based on higher doses and ideally on individual assessment.

If coffee makes you anxious, the practical steps are to drink less at a time, avoid it on an empty stomach or when already stressed, and try a lower-caffeine drink such as tea. For broader options, see our guide to supplements for anxiety and stress.

Caffeine and sleep

Caffeine's effect on sleep lasts longer than most people expect. In a home sleep study, 400 mg of caffeine taken 6 hours before bed still disrupted sleep, and the authors recommended avoiding substantial caffeine for at least 6 hours before bedtime. A 2023 meta-analysis of 24 studies found that caffeine cut total sleep by an average of 45 minutes, made it 9 minutes slower to fall asleep and reduced deep sleep. Its authors calculated that a typical cup of coffee (107 mg) should be finished at least 8.8 hours before bed, and a standard pre-workout serving (217.5 mg) at least 13.2 hours before bed, to avoid losing sleep.

Sleep loss from coffee is easy to miss: in the 2023 heart trial described below, participants slept 36 minutes less on coffee days, measured by a wrist tracker. If you sleep poorly, moving your last cup to before noon is a free experiment worth trying before any sleep supplement. See also our guide to the best supplements for sleep.

Does coffee cause heart palpitations?

It depends on what kind of palpitation. The best evidence comes from the 2023 CRAVE trial, published in the New England Journal of Medicine. One hundred healthy adults wore a continuous heart monitor for 14 days, and text messages told them at random each day whether to drink coffee or avoid caffeine. The trial was not blinded.

Larger studies are reassuring about the rhythm problems people worry about most. In 386,258 UK Biobank participants, each additional daily cup of coffee was linked to a 3 percent lower risk of developing an arrhythmia, an irregular heart rhythm (an observational finding). In the 2026 DECAF trial of 200 current or recent coffee drinkers with persistent atrial fibrillation (a common irregular rhythm that starts in the upper chambers) who had their normal rhythm restored, those assigned to drink coffee (about a cup a day) had fewer recurrences over six months than those told to abstain (47 versus 64 percent). Everyone in that trial knew which group they were in (it was open label), and it did not include people without the condition. A 2026 American Heart Association scientific statement summarized the trials this way: among regular coffee drinkers, caffeinated coffee "decreases the risk of atrial fibrillation occurrence but increases the frequency of premature ventricular contractions." It also noted that data on very high doses, such as those in energy drinks, are limited and "generally suggest cardiovascular harm."

Blood pressure. In people with high blood pressure, 200 to 300 mg of caffeine raised it by about 8 points systolic (the top number) and 6 points diastolic (the bottom number), starting within an hour and lasting at least 3 hours. But studies of regular coffee drinking over two weeks found no increase, so for regular drinkers the long-term effect on blood pressure appears small. For more on skipped beats, see our article on magnesium for heart palpitations.

Get medical help
  • Chest pain, fainting or near fainting, shortness of breath, or a racing heartbeat that does not settle need urgent care, whatever you think caused it.
  • Palpitations that keep happening deserve a check by a doctor, who may suggest a heart monitor. If you have a known heart rhythm condition, follow your cardiologist's advice on coffee rather than general guidance.
  • Very large doses of caffeine can cause vomiting, confusion, seizures and dangerous heart rhythms. Pure caffeine powders are especially risky (see hidden caffeine).

Why coffee upsets your stomach (and makes you poop)

This is where "coffee sensitivity" often has little to do with caffeine.

Heartburn and reflux. Coffee stimulates stomach acid, and small lab studies show it can trigger reflux, but caffeine is not the main reason. In 16 healthy volunteers, regular coffee caused significant reflux, decaf caused much less, and, in a subgroup of 8, caffeine added to water had no effect. In 17 people with reflux disease, the share of time the esophagus was acidic after breakfast was 17.9 percent with regular coffee versus 3.1 percent with decaf. Yet a classic 1975 study found decaf still stimulated a lot of stomach acid.

Studies that follow large groups of people are mixed: a 2014 meta-analysis of 15 studies found no significant link between coffee and reflux disease, while a 2026 meta-analysis of 40 studies found a small increase of "unclear clinical significance." In a large study of US nurses, reflux symptoms were 34 percent more likely at more than six servings of coffee a day than at none, swapping two daily servings for water was linked to slightly lower risk, and tea and soda showed similar links. The fair conclusion is that coffee triggers heartburn in some people but not most, and switching to decaf, drinking less, or not drinking it on an empty stomach are reasonable experiments. See our guide to supplements for GERD and acid reflux.

The "coffee makes me poop" effect. It is real and not imagined. In a survey of 99 young adults, 29 percent said coffee gave them an urge to have a bowel movement. In 8 such people tested in the lab, both regular and decaf coffee increased activity in the lower bowel within four minutes, an effect that lasted at least 30 minutes and did not happen with hot water. Another study found caffeinated coffee stimulated the colon about as much as a 1,000 calorie meal, 60 percent more than water and 23 percent more than decaf. For people with sensitive bowels or irritable bowel syndrome (IBS), that can mean loose stools, though studies of whether coffee triggers IBS give conflicting results. See probiotic strains for IBS for related evidence.

Low-acid coffee, cold brew and dark roast. These are sold as gentler on the stomach, but the evidence is thin:

None of these has been shown to reduce symptoms in people with reflux, but they are harmless to try.

Can you be allergic to coffee?

True coffee allergy is real but uncommon, and most of it involves breathing in dust rather than drinking coffee. Workers handling green (unroasted) coffee beans can become sensitized, meaning their immune system starts reacting to the dust: in one Italian plant, 25.8 percent of green-coffee workers were, compared with 2.7 percent of roasted-coffee workers. In another Italian coffee plant, castor bean antigens were found in warehouse dust, and castor bean, not coffee, was the major cause of workers' sensitization.

Allergy to drinking brewed coffee appears to be rare; the reports we found are individual case reports. Flavored coffee drinks and creamers can contain milk, nuts, soy or other allergens, so check the label if you react to some coffee drinks but not to plain black coffee. Hives, lip or throat swelling, or wheezing after coffee calls for an allergist, not a home experiment.

Mold-free coffee. Some brands are marketed as free of mycotoxins, the toxins made by certain molds. Ochratoxin A is often found in coffee at low levels: a 2019 meta-analysis of 3,182 samples worldwide found an average of 3.21 micrograms per kilogram, with large differences between countries. The EU sets a legal limit of 3 micrograms per kilogram for roasted coffee and 5 for instant coffee; the pooled average mixes product types and countries (from 0.35 in Taiwan to 79 in Turkey), so it does not mean typical coffee breaks the EU limit. We found no evidence that "mold-free" coffee reduces jitters, anxiety or stomach symptoms.

L-theanine, magnesium and other supplements

L-theanine, an amino acid from tea, is the supplement most often suggested for "smoother" caffeine. Trials of the two together found small improvements in attention and alertness in the first two hours, mostly in healthy young adults given single doses, and several were run by researchers at Unilever, which then owned Lipton tea. A 2014 meta-analysis of 11 trials of tea compounds found trends suggesting the benefit tracked the caffeine dose more than the theanine dose, and a 2015 trial at tea-like doses (75 mg caffeine with 50 mg theanine) found the combination cancelled caffeine's effects on attention and mood rather than adding to them.

The key question for sensitive people is whether theanine reduces jitters. The most direct test gave 48 adults 250 mg of caffeine, 200 mg of theanine, both or neither: theanine blunted caffeine's rise in blood pressure but "did not significantly affect jitteriness." It is reasonable to try and generally well tolerated, but the evidence that it takes the edge off caffeine is weak. (Branded forms such as Suntheanine and AlphaWave L-Theanine have their own pages.)

Paraxanthine, the main compound the body turns caffeine into, is now sold (for example as enfinity) as a smoother alternative. Its published safety data are mostly rat studies, one by the company that sells enfinity and one paid for by another company. We found no human trial showing it causes fewer jitters than caffeine: a 1995 study in 12 people found it raised blood pressure and adrenaline about as much as caffeine at the higher dose tested, while a small 2026 trial in 14 rowers reported better self-rated sleep than with caffeine. Our article on paraxanthine vs caffeine covers it in detail.

Magnesium. Caffeine slightly increases magnesium in urine for a few hours. In a metabolic ward study, two doses of caffeine raised 24 hour magnesium losses by about 4 mg, a tiny amount next to the 310 to 420 mg adults need daily. In PubMed searches through November 2026, we found no trial testing magnesium supplements for caffeine jitters or sensitivity.

Iron and calcium timing. Coffee reduced iron absorption from a hamburger meal by 39 percent in one study. Coffee drunk an hour before the meal had no effect, but coffee an hour after reduced absorption just as much as coffee with the meal. That study measured iron from food, but the same timing logic is a sensible precaution for iron supplements: take them an hour or more before coffee rather than with or soon after it. Caffeine's effect on calcium absorption is very small; one review estimated that 1 to 2 tablespoons of milk offset it.

Hidden caffeine in supplements. It is an easy cause of "sudden" caffeine sensitivity to miss. Guarana, yerba mate, kola nut and green tea extracts all contain caffeine. A government analysis of 53 supplements containing such ingredients found that taking the maximum label dose would provide anywhere from 1 to 829 mg of caffeine a day, and about half the products did not state a caffeine amount. In a study of sports supplements tested repeatedly over nine months, caffeine content in five of six caffeinated products varied from 7 percent less to 266 percent more than the first measurement. Pre-workouts and fat burners can easily double your daily intake on top of coffee (see do fat burners work?). The FDA warns that one teaspoon of pure powdered caffeine can contain as much caffeine as 28 cups of coffee, and that these products have contributed to at least two deaths in the US.

Caffeine withdrawal: how to cut back without the headache

Caffeine withdrawal is real. A major review found that symptoms typically start 12 to 24 hours after the last dose, peak at 20 to 51 hours and last 2 to 9 days. Headache occurred in half of people in experimental studies, along with fatigue, low energy, drowsiness, low mood, irritability and trouble concentrating, and stopping doses as low as 100 mg a day caused symptoms. In a blinded study of 62 adults switched to placebo, 52 percent had a moderate or severe headache.

A note on decaf solvents. Some decaf is made with methylene chloride, which US rules allow at up to 10 parts per million in the finished coffee. Advocacy groups petitioned the FDA in December 2023 to revoke that use; according to trade press, the FDA reopened public comments, which closed in June 2026, and we found no final decision as of November 2026. A 2024 EPA ban on most uses of methylene chloride did not cover food. Decaf made by water or carbon dioxide methods avoids the issue if it concerns you.

Who should limit caffeine

Frequently asked questions

What are the symptoms of caffeine sensitivity?

Common signs are jitters or shaky hands, restlessness, anxiety, a fast or pounding heartbeat, skipped beats, trouble sleeping, upset stomach, nausea and headache, often after an amount of caffeine that other people tolerate. The FDA lists the same symptoms as signs of consuming too much caffeine.

Why does coffee make me jittery?

Usually because of the caffeine dose, how quickly your body clears caffeine, and how used to it you are. A 12 ounce coffee can contain about 113 to 247 mg of caffeine, and people who rarely drink it, are pregnant, take birth control pills or certain medicines, or have recently quit smoking clear caffeine more slowly or feel it more.

Why does coffee make you anxious?

Mostly because of the caffeine dose. In a double-blind study of light caffeine users, the lowest dose (50 mg) did not raise anxiety, while 450 mg raised it in most people. People with panic disorder react more to large doses: in blinded studies, about half had a panic attack after 400 to 750 mg, though 150 mg did not raise anxiety more than placebo in a 2025 trial. Drinking less at a time is the simplest fix.

Why does coffee make you poop?

Coffee stimulates the lower bowel, partly through compounds other than caffeine. In a survey of 99 young adults, 29 percent said coffee gave them an urge to have a bowel movement, and when 8 of them were tested in the lab, both regular and decaf coffee increased lower bowel activity within four minutes. In another study, caffeinated coffee stimulated the colon 23 percent more than decaf.

Is coffee sensitivity the same as a coffee allergy?

No. Most coffee sensitivity is a reaction to caffeine or to coffee's effects on the stomach and bowel, not an immune reaction. True allergy to drinking coffee appears to be rare and is described mostly in individual case reports. Hives, swelling or wheezing after coffee should be checked by an allergist.

Are you a slow caffeine metabolizer, and is the CYP1A2 gene test worth it?

A CYP1A2 gene test can tell you whether you carry the variant linked to slower caffeine clearance, but the variant mainly affects how much caffeine clearance speeds up in smokers and heavy coffee drinkers, not how jittery you feel. Large studies did not confirm that slow metabolizers get more heart disease from coffee. How you respond to a known dose is a better guide.

Why can coffee upset your stomach, even decaf?

Coffee contains acids and other compounds that stimulate stomach acid and bowel movement regardless of caffeine. In small studies, decaf caused less reflux than regular coffee but still stimulated acid, and both regular and decaf coffee stimulated the lower bowel in people prone to that effect.

Is low-acid or cold brew coffee better for a sensitive stomach?

Possibly for some people, but it is unproven. In a lab study, cold brew had a similar pH to hot brew and less total acid. We found no human study testing whether cold brew causes less heartburn, and we could not find a standard definition of low-acid coffee.

Does coffee cause heart palpitations?

It can increase one kind. In a 2023 randomized trial of 100 healthy adults, coffee days brought more extra beats from the lower chambers of the heart (154 versus 102 a day) but no significant rise in extra beats from the upper chambers or episodes of fast rhythm. Large studies have not linked moderate coffee to more arrhythmias. Chest pain, fainting or palpitations that do not settle need medical care.

Does L-theanine stop caffeine jitters?

The evidence is weak. L-theanine with caffeine produced small, short-lived improvements in attention in lab studies, several run by researchers at Unilever, which then owned Lipton tea. In the most direct test of jitteriness, 200 mg of L-theanine blunted the blood pressure rise from 250 mg of caffeine but did not significantly reduce jitteriness.

How long does caffeine stay in your system?

Caffeine's half-life averages roughly 3.5 to 6 hours in healthy adults, so half of an afternoon coffee can still be in your blood in the evening. It is longer in pregnancy (about 8 hours on average in one study), with birth control pills, liver disease, some medicines, and after quitting smoking. A 2023 meta-analysis suggested finishing a typical coffee at least 8.8 hours before bed.

How can you cut back on caffeine without withdrawal headaches?

Reduce gradually over a few weeks, for example by mixing regular and decaf beans or swapping some cups for tea. Withdrawal symptoms typically start 12 to 24 hours after the last dose and last 2 to 9 days. The FDA recommends cutting back gradually, and a six week step-down program reduced intake in a trial.

How much caffeine is safe if you are sensitive?

There is no single safe number for sensitive people. The FDA cites 400 mg a day as generally not associated with negative effects in most healthy adults, EFSA says single doses up to 200 mg raise no concern, and ACOG considers under 200 mg a day moderate in pregnancy. Sensitive people often do best well below these amounts, with the last cup early in the day.

The bottom line

"Coffee sensitivity" is usually two separate things. Jitters, anxiety, palpitations and poor sleep come mainly from caffeine, and the biggest factors are dose, timing, tolerance and anything that slows caffeine clearance, such as pregnancy, birth control pills, quitting smoking or certain medicines. Stomach and bowel symptoms come partly from other compounds in coffee, which is why decaf can still cause them.

Gene tests read real genes but predict less than they promise, and the heart risk claims based on them were not confirmed in large studies. L-theanine has small effects on attention but did not reduce jitters in the most direct test, and we found no trial supporting magnesium for caffeine sensitivity. The most useful steps cost nothing: measure your actual dose, check supplements for hidden caffeine, finish your last cup at least 6 hours before bed, and ideally about 9 for a typical cup, taper slowly rather than quitting abruptly, and use decaf to work out whether the problem is the caffeine or the coffee.

VS
Reviewed for accuracy by
Vladimir Salamakha

B.S. in Chemistry, University of South Florida · a formulation scientist with 15 years developing compliant, evidence-based products across nutritional supplements and personal care. More about the author →

A quick note This article is general information about research on coffee and caffeine, not medical advice, and nothing here suggests that a supplement can diagnose, treat, cure, or prevent any disease. If you have a heart condition, high blood pressure, an anxiety or panic disorder, reflux, take prescription medicines, or are pregnant or breastfeeding, talk with your doctor or pharmacist before changing your caffeine intake or taking supplements.
Sources
US Food and Drug Administration. Spilling the Beans: How Much Caffeine is Too Much? Consumer Update, content current as of August 28, 2024. · US Food and Drug Administration. Pure and Highly Concentrated Caffeine, content current as of March 6, 2023; and Guidance for Industry: Highly Concentrated Caffeine in Dietary Supplements, April 2018. · European Food Safety Authority. Caffeine topic page summarizing the EFSA Scientific Opinion on the safety of caffeine, EFSA Journal 2015;13(5):4102. · American College of Obstetricians and Gynecologists. Committee Opinion No. 462, Moderate Caffeine Consumption During Pregnancy, 2010 (reaffirmed). · NIH MedlinePlus. Caffeine. US National Library of Medicine. · US Code of Federal Regulations, 21 CFR 173.255 (methylene chloride in decaffeinated coffee), eCFR accessed November 2026; US EPA, Methylene Chloride; Regulation Under TSCA, final rule, Federal Register, May 8, 2024. · European Union. Commission Regulation (EU) 2023/915, Annex I (ochratoxin A in roasted and soluble coffee). · Daily Coffee News. FDA weighs next steps on decaf solvent rules following new comments, June 30, 2026 (trade press). · McCusker RR et al. Caffeine content of specialty coffees. J Anal Toxicol, 2003. PMID 14607010 (specialty coffees 58 to 259 mg; same coffee 259 to 564 mg over six days). · Ludwig IA et al. Variations in caffeine and chlorogenic acid contents of coffees: what are we drinking? Food Funct, 2014. PMID 25014672 (104 espressos, 48 to 317 mg per serving). · McCusker RR et al. Caffeine content of decaffeinated coffee. J Anal Toxicol, 2006. PMID 17132260 (caffeine in decaffeinated coffee). · Nehlig A. Interindividual Differences in Caffeine Metabolism and Factors Driving Caffeine Consumption. Pharmacol Rev, 2018. PMID 29514871 (review: CYP1A2 metabolizes about 95 percent of caffeine). · Knutti R et al. Effect of pregnancy on the pharmacokinetics of caffeine. Eur J Clin Pharmacol, 1981. PMID 7341280 (half-life in adults (3.4 hours, range 2 to 5) and in pregnancy). · Abernethy DR et al. Impairment of caffeine clearance by chronic use of low-dose oestrogen-containing oral contraceptives. Eur J Clin Pharmacol, 1985. PMID 4029248 (oral contraceptives lengthen caffeine half-life). · Faber MS et al. Time response of cytochrome P450 1A2 activity on cessation of heavy smoking. Clin Pharmacol Ther, 2004. PMID 15289794 (quitting smoking cuts caffeine clearance by about a third). · Statland BE et al. Serum caffeine half-lives. Healthy subjects vs. patients having alcoholic hepatic disease. Am J Clin Pathol, 1980. PMID 7361718 (half-life in liver disease). · Culm-Merdek KE et al. Fluvoxamine impairs single-dose caffeine clearance without altering caffeine pharmacodynamics. Br J Clin Pharmacol, 2005. PMID 16236038 (fluvoxamine: half-life 4.9 to 56 hours; no stronger single-dose effect). · Harder S et al. Ciprofloxacin-caffeine: a drug interaction established using in vivo and in vitro investigations. Am J Med, 1989. PMID 2589393 (ciprofloxacin and other quinolones slow caffeine elimination). · Broughton LJ et al. Decreased systemic clearance of caffeine due to cimetidine. Br J Clin Pharmacol, 1981. PMID 7306430 (cimetidine reduces caffeine clearance). · Wikoff D et al. Systematic review of the potential adverse effects of caffeine consumption in healthy adults, pregnant women, adolescents, and children. Food Chem Toxicol, 2017. PMID 28438661 (systematic review supporting 400 mg a day; industry-sponsored). · Nawrot P et al. Effects of caffeine on human health. Food Addit Contam, 2003. PMID 12519715 (Health Canada review: 400 mg adults, 2.5 mg/kg children). · Yang A et al. Genetics of caffeine consumption and responses to caffeine. Psychopharmacology (Berl), 2010. PMID 20532872 (review: heritability of caffeine-related traits). · Cornelis MC et al. Genome-wide meta-analysis identifies six novel loci associated with habitual coffee consumption. Mol Psychiatry, 2015. PMID 25288136 (gene study of coffee intake: small per-variant effects). · Cornelis MC et al. Genome-wide association study of caffeine metabolites provides new insights to caffeine metabolism and dietary caffeine-consumption behavior. Hum Mol Genet, 2016. PMID 27702941 (slow-metabolism variants linked to drinking less coffee). · Sachse C et al. Functional significance of a C-->A polymorphism in intron 1 of the cytochrome P450 CYP1A2 gene tested with caffeine. Br J Clin Pharmacol, 1999. PMID 10233211 (CYP1A2 variant matters in smokers, not non-smokers). · Koonrungsesomboon N et al. The impact of genetic polymorphisms on CYP1A2 activity in humans: a systematic review and meta-analysis. Pharmacogenomics J, 2018. PMID 29282363 (meta-analysis of the rs762551 variant and enzyme activity). · Kapellou A et al. Genetics of caffeine and brain-related outcomes - a systematic review of observational studies and randomized trials. Nutr Rev, 2023. PMID 37029915 (systematic review: CYP1A2 and cognition, ADORA2A and anxiety and sleep). · Alsene K et al. Association between A2a receptor gene polymorphisms and caffeine-induced anxiety. Neuropsychopharmacology, 2003. PMID 12825092 (ADORA2A variants and anxiety after 150 mg). · Childs E et al. Association between ADORA2A and DRD2 polymorphisms and caffeine-induced anxiety. Neuropsychopharmacology, 2008. PMID 18305461 (dose and genes: 450 mg raised anxiety in most people). · Rogers PJ et al. Association of the anxiogenic and alerting effects of caffeine with ADORA2A and ADORA1 polymorphisms and habitual level of caffeine consumption. Neuropsychopharmacology, 2010. PMID 20520601 (tolerance to caffeine anxiety; no net alertness gain in daily users). · Erblang M et al. The Impact of Genetic Variations in ADORA2A in the Association between Caffeine Consumption and Sleep. Genes (Basel), 2019. PMID 31817803 (ADORA2A and sleep complaints in 1,023 workers). · Cornelis MC et al. Coffee, CYP1A2 genotype, and risk of myocardial infarction. JAMA, 2006. PMID 16522833 (CYP1A2, coffee and nonfatal heart attack in Costa Rica). · Zhou A et al. Long-term coffee consumption, caffeine metabolism genetics, and risk of cardiovascular disease: a prospective analysis of up to 347,077 individuals and 8368 cases. Am J Clin Nutr, 2019. PMID 30838377 (UK Biobank: no CYP1A2 interaction for heart disease). · Kim EJ et al. Coffee Consumption and Incident Tachyarrhythmias: Reported Behavior, Mendelian Randomization, and Their Interactions. JAMA Intern Med, 2021. PMID 34279564 (UK Biobank: coffee and arrhythmia; no genetic effect modification). · Larsson SC et al. Appraisal of the causal effect of plasma caffeine on adiposity, type 2 diabetes, and cardiovascular disease: two sample mendelian randomisation study. BMJ Med, 2023. PMID 36936261 (genetic analysis: plasma caffeine and cardiovascular disease). · Nielsen DE et al. Disclosure of genetic information and change in dietary intake: a randomized controlled trial. PLoS One, 2014. PMID 25398084 (trial of gene-based diet advice; author holds shares in a testing company). · Klevebrant L et al. Effects of caffeine on anxiety and panic attacks in patients with panic disorder: A systematic review and meta-analysis. Gen Hosp Psychiatry, 2022. PMID 34871964 (meta-analysis: caffeine challenge and panic attacks). · Hoppe JM et al. Acute effects of 150 mg caffeine on subjective, physiological, and behavioral components of anxiety in panic disorder and healthy controls - A randomized placebo-controlled crossover trial. J Psychopharmacol, 2025. PMID 40577029 (150 mg caffeine did not raise anxiety in panic disorder). · Drake C et al. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med, 2013. PMID 24235903 (400 mg 0, 3 or 6 hours before bed disrupted sleep). · Gardiner C et al. The effect of caffeine on subsequent sleep: A systematic review and meta-analysis. Sleep Med Rev, 2023. PMID 36870101 (meta-analysis: caffeine and sleep; 8.8 hour cutoff). · Marcus GM et al. Acute Effects of Coffee Consumption on Health among Ambulatory Adults. N Engl J Med, 2023. PMID 36947466 (CRAVE randomized trial: coffee, extra heartbeats, steps and sleep). · Wong CX et al. Caffeinated Coffee Consumption or Abstinence to Reduce Atrial Fibrillation: The DECAF Randomized Clinical Trial. JAMA, 2026. PMID 41206802 (DECAF trial: coffee after cardioversion for persistent atrial fibrillation; open label). · Marcus GM et al. Caffeine and Cardiovascular Disease: A Scientific Statement From the American Heart Association. Circulation, 2026. PMID 42473796 (American Heart Association scientific statement on caffeine). · Mesas AE et al. The effect of coffee on blood pressure and cardiovascular disease in hypertensive individuals: a systematic review and meta-analysis. Am J Clin Nutr, 2011. PMID 21880846 (meta-analysis: caffeine and blood pressure in hypertension). · Wendl B et al. Effect of decaffeination of coffee or tea on gastro-oesophageal reflux. Aliment Pharmacol Ther, 1994. PMID 7918922 (coffee reflux not explained by caffeine). · Pehl C et al. The effect of decaffeination of coffee on gastro-oesophageal reflux in patients with reflux disease. Aliment Pharmacol Ther, 1997. PMID 9218070 (decaf caused less reflux in people with reflux disease). · Cohen S et al. Gastric acid secretion and lower-esophageal-sphincter pressure in response to coffee and caffeine. N Engl J Med, 1975. PMID 1177987 (decaf still stimulates stomach acid). · Kim J et al. Association between coffee intake and gastroesophageal reflux disease: a meta-analysis. Dis Esophagus, 2014. PMID 23795898 (meta-analysis: no significant link between coffee and GERD). · Muftah M et al. Association of Coffee Intake With Risk of Gastroesophageal Reflux Disease and Complications: A Systematic Review and Meta-Analysis. Clin Transl Gastroenterol, 2026. PMID 41677121 (meta-analysis: small increase in GERD with coffee). · Mehta RS et al. Association Between Beverage Intake and Incidence of Gastroesophageal Reflux Symptoms. Clin Gastroenterol Hepatol, 2020. PMID 31786327 (nurses' cohort: reflux symptoms with coffee, tea and soda; 34 percent higher at more than six coffee servings a day). · Brown SR et al. Effect of coffee on distal colon function. Gut, 1990. PMID 2338272 (coffee and the urge to defecate; decaf also works in responders). · Rao SS et al. Is coffee a colonic stimulant? Eur J Gastroenterol Hepatol, 1998. PMID 9581985 (coffee stimulates colon motility). · Boekema PJ et al. Functional bowel symptoms in a general Dutch population and associations with common stimulants. Neth J Med, 2001. PMID 11438196 (Dutch population: no association between IBS and coffee). · Clevers E et al. Coffee, Alcohol, and Artificial Sweeteners Have Temporal Associations with Gastrointestinal Symptoms. Dig Dis Sci, 2024. PMID 38662159 (app diaries, mostly IBS: caffeinated coffee linked to diarrhea (app maker authors)). · Rao NZ et al. Acidity and Antioxidant Activity of Cold Brew Coffee. Sci Rep, 2018. PMID 30375458 (cold brew vs hot brew acidity). · Rubach M et al. A dark brown roast coffee blend is less effective at stimulating gastric acid secretion in healthy volunteers compared to a medium roast market blend. Mol Nutr Food Res, 2014. PMID 24510512 (dark roast and stomach acid in nine volunteers). · Rubach M et al. Activity-guided fractionation to characterize a coffee beverage that effectively down-regulates mechanisms of gastric acid secretion as compared to regular coffee. J Agric Food Chem, 2010. PMID 20235536 (N-methylpyridinium lowered acid secretion in human stomach cells (lab)). · Larese F et al. Sensitization to green coffee beans and work-related allergic symptoms in coffee workers. Am J Ind Med, 1998. PMID 9816421 (green coffee bean sensitization in workers). · Romano C et al. Factors related to the development of sensitization to green coffee and castor bean allergens among coffee workers. Clin Exp Allergy, 1995. PMID 8521183 (castor bean antigens in warehouse dust; castor bean the major cause of sensitization in coffee workers). · Khaneghah AM et al. The concentration and prevalence of ochratoxin A in coffee and coffee-based products: A global systematic review, meta-analysis and meta-regression. Fungal Biol, 2019. PMID 31345415 (meta-analysis: ochratoxin A in coffee). · Camfield DA et al. Acute effects of tea constituents L-theanine, caffeine, and epigallocatechin gallate on cognitive function and mood: a systematic review and meta-analysis. Nutr Rev, 2014. PMID 24946991 (meta-analysis of 11 trials of tea compounds: acute attention effects). · Owen GN et al. The combined effects of L-theanine and caffeine on cognitive performance and mood. Nutr Neurosci, 2008. PMID 18681988 (L-theanine plus caffeine trial by Unilever researchers). · Giesbrecht T et al. The combination of L-theanine and caffeine improves cognitive performance and increases subjective alertness. Nutr Neurosci, 2010. PMID 21040626 (L-theanine plus caffeine trial by Unilever researchers). · Dodd FL et al. A double-blind, placebo-controlled study evaluating the effects of caffeine and L-theanine both alone and in combination on cerebral blood flow, cognition and mood. Psychopharmacology (Berl), 2015. PMID 25761837 (tea-level caffeine plus L-theanine cancelled caffeine effects; jitteriness rated). · Rogers PJ et al. Time for tea: mood, blood pressure and cognitive performance effects of caffeine and theanine administered alone and together. Psychopharmacology (Berl), 2008. PMID 17891480 (L-theanine blunted the blood pressure rise but not jitteriness). · Szlapinski SK et al. Paraxanthine safety and comparison to caffeine. Front Toxicol, 2023. PMID 36818692 (paraxanthine rat toxicology; funded by Revel Technologies). · Purpura M et al. An assessment of mutagenicity, genotoxicity, acute-, subacute and subchronic oral toxicity of paraxanthine (1,7-dimethylxanthine). Food Chem Toxicol, 2021. PMID 34597720 (paraxanthine rat toxicology by the maker of enfinity). · Benowitz NL et al. Sympathomimetic effects of paraxanthine and caffeine in humans. Clin Pharmacol Ther, 1995. PMID 8529334 (paraxanthine and caffeine had similar sympathomimetic effects in 12 people). · Bingol Diedhiou A et al. Comparative effects of caffeine and paraxanthine on rowing performance and sleep quality: a randomized crossover study. J Int Soc Sports Nutr, 2026. PMID 41918248 (14 rowers: paraxanthine vs caffeine, self-rated sleep). · Kynast-Gales SA et al. Effect of caffeine on circadian excretion of urinary calcium and magnesium. J Am Coll Nutr, 1994. PMID 7836625 (caffeine and urinary magnesium and calcium). · Morck TA et al. Inhibition of food iron absorption by coffee. Am J Clin Nutr, 1983. PMID 6402915 (coffee and iron absorption; timing). · Heaney RP. Effects of caffeine on bone and the calcium economy. Food Chem Toxicol, 2002. PMID 12204390 (caffeine and calcium absorption). · Andrews KW et al. The caffeine contents of dietary supplements commonly purchased in the US: analysis of 53 products with caffeine-containing ingredients. Anal Bioanal Chem, 2007. PMID 17676317 (caffeine in 53 dietary supplements: 1 to 829 mg a day). · Attipoe S et al. Variability of Stimulant Levels in Nine Sports Supplements Over a 9-Month Period. Int J Sport Nutr Exerc Metab, 2016. PMID 26841433 (caffeine and stimulant variability in sports supplements). · Juliano LM et al. A critical review of caffeine withdrawal: empirical validation of symptoms and signs, incidence, severity, and associated features. Psychopharmacology (Berl), 2004. PMID 15448977 (review of caffeine withdrawal). · Silverman K et al. Withdrawal syndrome after the double-blind cessation of caffeine consumption. N Engl J Med, 1992. PMID 1528206 (withdrawal headache in 52 percent on placebo). · Sweeney MM et al. A randomized controlled trial of a manual-only treatment for reduction and cessation of problematic caffeine use. Drug Alcohol Depend, 2019. PMID 30580203 (trial of gradual caffeine reduction). · Pediatrics. Sports drinks and energy drinks for children and adolescents: are they appropriate? Pediatrics, 2011. PMID 21624882 (American Academy of Pediatrics on energy drinks).