Coffee can bring on a gallbladder attack in someone who already has gallstones. Coffee, decaf included, prompts the gallbladder to squeeze, and a squeeze against stones is what hurts.1PubMed Central. Coffee Consumption and Risk of Biliary Tract Cancers and Liver Cancer: A Dose–Response Meta-Analysis of Prospective Cohort Studies In people without stones, though, a regular coffee habit is linked to fewer gallstones over the years, not more.2PubMed. Systematic review with meta-analysis: coffee consumption and the risk of gallstone disease Coffee tends to set off pain from a problem that already exists rather than create the problem.
How Coffee Makes the Gallbladder Squeeze
The gallbladder stores bile and pushes it into the gut when the body releases a gut hormone. Between meals, bile made in the liver waits in the gallbladder and grows more concentrated as water is absorbed. When coffee, fat or protein reaches the upper small intestine, cells there release the hormone, and the gallbladder squeezes. The bile travels down a narrow duct into the intestine, and most of the stored bile leaves the gallbladder in one go.
The squeeze is measurable after one small cup. About two-thirds of a cup of coffee (165 mL) shrank the gallbladder by about a third on average, while the same amount of salt water shrank it by only about a tenth.3PubMed. Coffee stimulation of cholecystokinin release and gallbladder contraction in humans Decaf shrank it by about 29%, almost as much as regular coffee.4PubMed. Coffee stimulation of cholecystokinin release and gallbladder contraction in humans So caffeine is not the only trigger, and switching to decaf may not prevent an attack.
With stones present, a contracting gallbladder can push a stone against its outlet and cause the pain of a gallbladder attack.5PubMed Central. Coffee Consumption and Risk of Biliary Tract Cancers and Liver Cancer: A Dose–Response Meta-Analysis of Prospective Cohort Studies The gallbladder drains through a narrow neck, and a stone sitting there can act like a cork when the muscle tightens. The muscle keeps contracting against the blocked outlet, so the pain builds and lasts until the stone moves away.
Stones that sit quietly in the body of the gallbladder cause no pain; only those that lodge at the outlet cause trouble. That explains why coffee can hurt one day and not the next.
After coffee, an attack usually feels like steady, gripping pain under the right ribs or in the upper middle of the belly. It can spread to the right shoulder blade or back. It often begins within an hour of a coffee or a fatty meal, and an episode usually lasts from 30 minutes to a few hours before easing.
Who Is Most Likely to Get Pain From Coffee
Coffee’s effect may depend on how far gallstone disease has gone.6Coffee & Health. Gallstones factsheet In early disease, regular squeezing may flush out tiny crystals before they grow into stones.7Coffee & Health. Gallstones factsheet Coffee also appears to reduce the cholesterol crystals that form in bile.8PubMed Central. Coffee Consumption and Risk of Biliary Tract Cancers and Liver Cancer: A Dose–Response Meta-Analysis of Prospective Cohort Studies Once large stones are present, though, the same squeeze can cause pain.9Coffee & Health. Gallstones factsheet A person with no stones has little reason to fear coffee, while a person with known stones may notice a pattern.
An ultrasound scan is the usual, painless way to check for stones, and repeated right-rib pain after meals or coffee is worth a doctor visit. Stones are more likely if you are female and over 40, pregnant, obese, or losing weight rapidly, or if gallstones run in your family.
Having stones does not mean every cup will hurt. A known stone is not a reason by itself to give up coffee. Coffee is one possible trigger among several, and fatty meals do the same job, so your pain may follow a rich meal more than the coffee. Attacks are also irregular, so someone who had one painful episode may go months without another.
Some symptoms need urgent care: pain lasting more than several hours, fever or chills with the pain, yellow skin or eyes, dark urine, or pale stools. These can mean infection or a blocked bile duct.
Why Coffee Drinkers Get Fewer Gallstones
Across long-term studies, coffee drinkers had about 17% lower risk of gallstone disease.10PubMed. Systematic review with meta-analysis: coffee consumption and the risk of gallstone disease The drop rose with intake: about 11% at 2 cups a day, 19% at 4, and 25% at 6.11PubMed. Systematic review with meta-analysis: coffee consumption and the risk of gallstone disease This lower risk showed up clearly in women and not in men.12PubMed. Systematic review with meta-analysis: coffee consumption and the risk of gallstone disease Yet in one large study of men, 2 to 3 cups of regular coffee a day was tied to 40% fewer gallstone attacks.13JAMA. A prospective study of coffee consumption and the risk of symptomatic gallstone disease in men In that study, decaf was not linked to lower risk,14JAMA. A prospective study of coffee consumption and the risk of symptomatic gallstone disease in men which hints that something in regular coffee beyond the squeeze may matter. Every brewing method in that study showed lower risk,15PubMed. A prospective study of coffee consumption and the risk of symptomatic gallstone disease in men so the benefit does not seem to depend on one way of making coffee.
Genetic evidence points the same way: people whose genes lead them to drink more coffee also had up to 19% lower risk of gallstone disease.16PubMed Central. Coffee intake protects against symptomatic gallstone disease in the general population: a Mendelian randomization study That makes it less likely that the protection comes from other habits of coffee drinkers. The study results don’t tell someone with an existing stone that their cup is safe. Starting coffee to prevent stones isn’t standard medical advice.
Milk, Cream and Sugar in Your Cup
Semi-skimmed milk emptied the gallbladder more than the same amount of coffee or tea.17PubMed Central. Effects of various food ingredients on gall bladder emptying Fat is the most powerful natural signal for the gallbladder to contract, so a creamy drink acts on it much like a small fatty meal. Whole milk and cream carry more fat than semi-skimmed, which means a splash is a small dose but a large latte or cream-heavy drink may load more squeeze into one cup. Black coffee still triggers some squeeze, so cutting the cream lowers the trigger without removing it. If you have stones, try smaller cups with little cream and sugar.18Oshi Health. Foods That Cause Gallbladder Pain
Sugar itself is not the main gallbladder trigger, but sweet drinks are often rich in fat too. Blended coffees with whipped cream and syrup add both.
To find your own triggers, change one thing at a time, such as switching from a latte to black coffee. Give each version several days, because attacks are irregular and a single pain-free day proves little. Keep a short note of the drink, any food, and the time of any pain, since a fatty snack eaten alongside could be the real trigger. Bring the notes to your doctor. Pain that continues even on plain black coffee, or with no coffee at all, suggests coffee is not the main cause and deserves medical review.
Why Morning Coffee Can Hit Harder
Overnight the gallbladder fills with concentrated bile,19Flore. Right-rib pain after coffee: gallbladder, CCK & how to calm it so the first morning coffee meets the fullest gallbladder of the day and may trigger a stronger squeeze.20Flore. Right-rib pain after coffee: gallbladder, CCK & how to calm it A light, low-fat breakfast gives the gallbladder a gentle, normal reason to empty, so having coffee with it may be gentler. If your pain happens mostly with the first cup and not later ones, that fits this explanation, though it is one clue and not proof.
A few timing changes can help: try a smaller first cup, avoid pairing it with a fried breakfast, and spread cups out rather than drinking several at once. Skipping meals to avoid a trigger backfires, because long fasts let bile sit and concentrate, while regular meals keep the gallbladder emptying normally.
Pain After Coffee That Isn’t Your Gallbladder
Coffee raises stomach acid and can irritate a sensitive upper gut, flaring gastritis or indigestion.21Flore. Right-rib pain after coffee: gallbladder, CCK & how to calm it Still, pain under the right ribs that worsens with coffee and fatty food points first to the gallbladder.22Flore. Right-rib pain after coffee: gallbladder, CCK & how to calm it
Stomach pain tends to burn, sits in the center of the upper belly or chest, and may bring a sour taste or belching. It often shows up right after the cup, while gallbladder pain may build and arrive up to an hour later. Gallbladder pain is steady, sits on the right, and may reach the shoulder. Pain that eases when you eat, or after an antacid, leans toward the stomach, though an antacid response alone does not rule out the gallbladder. These are clues and not tests, and both problems can exist in the same person, so ultrasound and a doctor’s assessment are how the cause is settled.
Some look-alikes need prompt attention. Heart trouble can show up as upper belly discomfort, particularly with breathlessness, sweating, or pain spreading to the arm or jaw, and that calls for emergency help. Pancreatitis causes severe, constant upper belly pain that often reaches through to the back and may come with vomiting, and it needs urgent care. Sudden, severe or unusual pain should be treated as urgent, whatever you drank before it.
Coffee After Gallbladder Removal
After gallbladder removal, there is no organ left to squeeze against stones, so most people can drink coffee afterward.23Puroast Coffee. Can I Drink Coffee After Gallbladder Removal? Coffee’s acidity can still cause reflux and stomach discomfort in recovery and beyond.24Puroast Coffee. Can I Drink Coffee After Gallbladder Removal? Caffeine can also worsen the cramping, urgency and diarrhea that some people have after surgery.
Without a gallbladder, bile flows from the liver into the intestine in a steady trickle instead of being stored and released in a burst. The body adapts over weeks to months, and many people find their digestion settles. Some get loose stools because bile reaches the intestine continuously, and caffeine can add to this.
To bring coffee back, wait until your surgeon says normal eating is fine, then try one small cup and see how you feel over the next day. Drinking it with food limits both acid irritation and the laxative effect that can come with an empty stomach. Limit creamy additions at first. If a small cup goes well, increase gradually, one change at a time. If coffee clearly brings on diarrhea or burning, cutting back or choosing a milder brew is reasonable. Persistent diarrhea, pain or reflux that does not settle deserves a call to your surgeon.

