Gallstones: Causes, Symptoms, and Treatments

Gallstones form when substances in bile, the digestive fluid stored in your gallbladder, harden into solid masses. The most common type is made mostly of cholesterol and develops when the liver pumps too much cholesterol into bile for it to stay dissolved. Most people with gallstones never know they have them, but when a stone blocks a bile duct, the pain can be severe and the complications serious. Understanding how gallstones form, what puts you at risk, and when treatment is needed can help you make better decisions if you or someone close to you gets the diagnosis.

Types of Gallstones

Not all gallstones are the same. There are two broad categories, and they form through different processes.

Cholesterol gallstones are by far the most common in Western countries. They develop when the liver secretes more cholesterol than bile can hold in solution. The excess cholesterol crystallizes, and those tiny crystals clump together over time inside a sluggish gallbladder.1PubMed Central. An update on the pathogenesis of cholesterol gallstone disease Genetics, diet, hormones, and metabolic conditions all contribute to this imbalance.

Pigment gallstones are less common and come in two distinct subtypes. Black pigment stones form in the gallbladder when there is too much bilirubin in the bile, which happens with conditions that break down red blood cells faster than normal, as well as with cirrhosis, advanced age, and long-term IV nutrition. Brown pigment stones are different: they can form anywhere in the bile duct system, are almost always associated with bacterial infection, and tend to occur alongside ascending cholangitis.2PubMed. Pigment gallstone disease The chemical makeup of the two pigment types is distinct as well, with black stones containing polymerized and oxidized bilirubin salts alongside calcium phosphate or carbonate, while brown stones contain unpolymerized bilirubin and calcium fatty-acid compounds.3PubMed Central. New pathophysiological concepts underlying pathogenesis of pigment gallstones

Who Gets Gallstones and Why

Several well-established risk factors make gallstones more likely. Some you can modify, and some you cannot.

Sex and Hormones

Women develop gallstones two to three times more often than men, and the difference is most pronounced during the childbearing years.4PubMed. Gender and gallstone disease Estrogen is the main driver. It increases the amount of cholesterol the liver sends into bile, tipping the balance toward supersaturation. Pregnancy amplifies the effect: the incidence of biliary sludge (the precursor to stones) runs as high as 30% during pregnancy and the postpartum period, and about one to three percent of pregnant women end up needing gallbladder removal within a year of delivery.5PubMed. Cholesterol cholelithiasis in pregnant women: pathogenesis, prevention and treatment Hormone replacement therapy and oral contraceptives carry similar, though smaller, increases in risk.4PubMed. Gender and gallstone disease

Metabolic Syndrome and Insulin Resistance

Obesity, high triglycerides, and insulin resistance all independently raise your odds of forming gallstones. A growing body of evidence links metabolic syndrome directly to gallstone disease through shared mechanisms including dyslipidemia, gut microbiota changes, and chronically elevated insulin.6PubMed Central. Gallstones in the Era of Metabolic Syndrome: Pathophysiology, Risk Prediction, and Management Insulin resistance is tied to gallstones even in people who are not overweight or diabetic. In a study of non-obese, non-diabetic men, insulin resistance remained an independent predictor of gallstone formation after adjusting for body weight.7PubMed Central. Insulin resistance is associated with gallstones even in non-obese, non-diabetic Korean men Analysis of a large U.S. health survey confirmed the trend: multiple measures of insulin resistance were significantly and positively correlated with gallstone disease.8Scientific Reports. Association between various insulin resistance surrogates and gallstone disease based on national health and nutrition examination survey

Rapid Weight Loss

Losing weight quickly, whether through crash dieting or bariatric surgery, is a well-known trigger. Rapid fat mobilization floods the liver with cholesterol, and the bile can become supersaturated in a matter of weeks. In one trial, about a third of patients on placebo formed gallstones within six months of gastric bypass surgery.9PubMed. A multicenter, placebo-controlled, randomized, double-blind, prospective trial of prophylactic ursodiol for the prevention of gallstone formation following gastric-bypass-induced rapid weight loss Interestingly, many of the usual risk factors for gallstones in the general population, like older age, female sex, and number of pregnancies, do not predict who will form stones during rapid weight loss. The speed of weight change itself overwhelms those other factors.10PubMed. Risk factors for gallstone formation during rapid loss of weight

Genetics

Gallstones run in families, and researchers have identified specific gene variants that increase risk. For cholesterol stones, the most prominent is a variant in the ABCG5/G8 cholesterol transporter, which affects how much cholesterol the liver dumps into bile.11PubMed. Genetics of gallstone disease A smaller group of people develop stones because of mutations in the ABCB4 transporter, which leads to low levels of phospholipids in bile, a condition sometimes called low-phospholipid-associated cholelithiasis. Pigment stones have their own set of genetic associations, particularly in genes involved in bilirubin processing and transport.12PubMed Central. Genetics of Gallstone Disease and Their Clinical Significance: A Narrative Review Genetic background is considered one of the major pathogenetic factors alongside bile chemistry and gallbladder motility.1PubMed Central. An update on the pathogenesis of cholesterol gallstone disease

Symptoms and Warning Signs

Most gallstones are “silent.” They sit in the gallbladder without causing any trouble and are often discovered incidentally during imaging for something else. The hallmark symptom when stones do cause problems is biliary colic: pain in the right upper abdomen that often radiates to the back, typically lasting anywhere from a few minutes up to about twelve hours.13BMJ. Upper abdominal pain: Gall bladder The pain often starts after a meal, especially a fatty one, because eating triggers the gallbladder to contract and push bile out.

Pain that lasts longer than twelve hours, a high fever, persistent vomiting, or yellowing of the skin and eyes (jaundice) suggests a complication rather than simple colic. These complications include acute cholecystitis (inflammation of the gallbladder wall), choledocholithiasis (a stone stuck in the common bile duct), cholangitis (infection of the bile ducts), and gallstone pancreatitis. Gallstones are the leading cause of acute pancreatitis in the Western world, and smaller stones pose a higher risk because they can slip into and block the pancreatic duct more easily.14PubMed Central. Gallstone pancreatitis: general clinical approach and the role of endoscopic retrograde cholangiopancreatography

How Gallstones Are Diagnosed

Abdominal ultrasound is the first-line test. It is painless, widely available, and good at spotting stones in the gallbladder. It is also reasonably sensitive for detecting whether bile ducts are dilated, which hints that a stone may be blocking flow downstream. When ultrasound is not enough, particularly for stones lodged in the common bile duct, magnetic resonance cholangiopancreatography (MRCP) is the next step. MRCP creates detailed images of the bile ducts without any needles, dye injections, or radiation, and its diagnostic accuracy for biliary obstruction is extremely high.15International Journal of Medical Research and Review. Comprehensive evaluation of MRCP versus ultra sonography in biliary obstruction

Blood tests play a supporting role. When a stone temporarily blocks the bile duct, liver enzymes (particularly ALT and AST) can spike sharply and then drop within a day or so once the stone passes. In about 70% of biliary colic episodes, a characteristic rise-and-fall pattern in liver enzymes is visible within the first day.16PubMed Central. Enzyme pattern of biliary colic: A counterintuitive picture A more prolonged blockage shifts the blood-test pattern toward elevated bilirubin and alkaline phosphatase, which signals ongoing obstruction rather than a stone that passed on its own.17PubMed Central. Gallstone Hepatitis Caused by Transient Common Bile Duct Obstruction in a Middle-Aged Woman

When Asymptomatic Stones Become a Decision

If you have gallstones but no symptoms, the standard approach has been watchful waiting. About 10% of people with silent stones develop symptoms over nine years, and the likelihood of complications actually decreases as you get older.18PubMed Central. Asymptomatic gallstone disease: Re-evaluating the threshold for surgical options in the era of precision medicine A randomized trial that followed patients for 14 years found no significant difference in symptoms or major complications between those assigned to observation and those who had their gallbladders removed right away.

That said, “asymptomatic” does not mean “zero risk.” There is a small but real lifelong chance of developing acute cholangitis or biliary pancreatitis without warning. Some researchers argue that the decision about whether to operate should be shared between patient and surgeon rather than defaulted to waiting. After reviewing the evidence on natural history, surgical risks, quality of life, and costs, one analysis concluded that the choice between watchful waiting and preventive surgery should be the patient’s, not a blanket medical policy.19PubMed Central. Cholecystectomy for asymptomatic gallstones: Markov decision tree analysis

Non-Surgical Treatment With Ursodeoxycholic Acid

Ursodeoxycholic acid (UDCA, also sold as ursodiol) is a bile acid that can gradually dissolve cholesterol gallstones from the inside. It works by reducing the cholesterol saturation of bile, essentially reversing the conditions that caused the stones to form. In a trial of 53 patients, about half achieved complete dissolution over six to 38 months of treatment, though large stones and numerous stones responded more poorly.20PubMed. Ursodeoxycholic acid: a safe and effective agent for dissolving cholesterol gallstones

The catch is that UDCA only works on the right kind of stone. It needs to be a cholesterol stone that shows up as radiolucent (not calcified) on imaging, ideally smaller than 20 millimeters, in a gallbladder that still contracts normally. Under those conditions, complete dissolution has been reported in about 80% of patients with very small stones (under 5 mm). Stones larger than 20 mm rarely dissolve. If no shrinkage is visible after a year, the treatment is unlikely to succeed.21Journal of Translational Gastroenterology. A Review of Ursodeoxycholic Acid Therapy for Cholelithiasis and Choledocholithiasis Most of the evidence also suggests UDCA helps reduce biliary pain in patients who have symptomatic stones but are not ready for or are unable to undergo surgery.22PubMed Central. Ursodeoxycholic acid in the management of symptomatic gallstone disease: systematic review and clinician survey

The biggest limitation is recurrence. Once you stop taking UDCA, the same metabolic conditions that formed the original stones tend to re-form new ones. This makes UDCA more of a management tool than a permanent cure, and it is typically reserved for patients who are poor surgical candidates because of age, other medical conditions, or personal preference.

Laparoscopic Cholecystectomy

For symptomatic gallstones, the standard treatment is removing the gallbladder entirely. You do not need your gallbladder to digest food; bile continues to flow directly from the liver into the small intestine. The operation is almost always done laparoscopically, through a few small incisions, and head-to-head comparisons with the traditional open surgery confirm that the laparoscopic approach is safer, less painful, and gets people home and back to daily life faster.23PubMed Central. A prospective comparison of laparoscopic versus open cholecystectomy Postoperative complication rates are lower with the laparoscopic technique as well, and the financial cost is roughly comparable.24Journal of Surgical and Clinical Research. Laparoscopic versus open cholecystectomy: complications and cost

The most feared complication of gallbladder surgery is bile duct injury, where the surgeon accidentally cuts or clips the common bile duct or a nearby structure. Several techniques exist to reduce this risk. The “critical view of safety” is a surgical approach that requires clearly identifying two specific structures before cutting anything. Intraoperative cholangiography, which involves injecting dye and taking an X-ray of the ducts during surgery, is another safeguard that can help the surgeon verify anatomy before making irreversible cuts.25PubMed Central. Causes and Prevention of Laparoscopic Bile Duct Injuries A newer technique uses a fluorescent dye called indocyanine green (ICG) to light up the bile ducts in real time under near-infrared camera. In one retrospective study, bile duct injury occurred in about 1% of ICG cases compared with 8% using conventional methods, and conversion to open surgery was also less common.26International Journal of Medical and Biomedical Studies. Indocyanine Green (ICG) Fluorescence Cholangiography Versus Conventional Methods in Preventing Bile Duct Injury During Difficult Laparoscopic Cholecystectomy: A Retrospective Study

When gallstones are found in the common bile duct (not just the gallbladder), they can sometimes be retrieved during the same laparoscopic surgery. Alternatively, an endoscopic procedure called ERCP can be done before or after surgery to fish the stones out through the mouth. A randomized trial comparing laparoscopic duct exploration with postoperative ERCP found that both cleared the duct about 75% of the time on the first attempt. By the end of treatment, laparoscopic exploration achieved 100% duct clearance compared with 93% for ERCP.27The Lancet. Randomised trial of laparoscopic exploration of common bile duct versus postoperative endoscopic retrograde cholangiography for common bile duct stones

Life After Gallbladder Removal

Most people recover smoothly, but a subset develops what doctors call postcholecystectomy syndrome. The term covers a grab bag of symptoms including abdominal pain, bloating, nausea, and occasionally jaundice that appear after surgery. In many cases these turn out to have a specific cause, such as a retained stone in the bile duct, a bile leak, or a bile duct stricture from surgical scarring.28PubMed. Postcholecystectomy syndrome When symptoms show up within the first few years, they are more likely to have a gastric origin; symptoms appearing later tend to be caused by retained stones. Dysfunction of the sphincter of Oddi, the muscle that controls the flow of bile into the small intestine, accounts for roughly a third of cases in unselected populations with postcholecystectomy symptoms.29PubMed. A systematic review of the aetiology and management of post cholecystectomy syndrome

Looser and more frequent bowel movements are common in the months after surgery, even in people who have no other complications. Without a gallbladder to store and concentrate bile between meals, bile acids trickle continuously into the intestine. When more bile acids reach the colon than it can absorb, they draw water into the bowel and speed up transit.30PubMed Central. Diagnosis and treatment of post-cholecystectomy diarrhoea In one prospective study, the proportion of patients reporting loose stools jumped from 2% before surgery to 47% at one month and 33% at three months, though only about 6% developed intermittent diarrhea that persisted at three months.31PubMed. Bowel habits and bile acid malabsorption in the months after cholecystectomy For most people this settles down, but if it does not, bile acid sequestrant medications can help.

Preventing Gallstones

You cannot change your genetics or your sex, but several modifiable factors shift the odds in your favor.

Dietary fiber appears protective. A case-control study found that people in the highest third of dietary fiber intake had roughly half the odds of gallstone disease compared with those in the lowest third, with both soluble and insoluble fiber contributing to the effect.32PubMed Central. Dietary fiber intake and risk of gallstone: a case–control study Fiber is thought to help by binding bile acids in the intestine and reducing the amount of cholesterol that recirculates back to the liver.

Caffeinated coffee also shows a consistent association with lower risk. In a large prospective study of women, those who consistently drank four or more cups of caffeinated coffee per day had about a 28% lower risk of needing gallbladder surgery compared with non-coffee drinkers. Decaffeinated coffee showed no benefit, suggesting caffeine itself is the active component.33PubMed. Coffee intake is associated with lower risk of symptomatic gallstone disease in women Caffeine stimulates gallbladder contraction and may help keep bile flowing rather than stagnating.

If you are planning significant weight loss, especially through bariatric surgery or a very low-calorie diet, UDCA taken during the weight-loss period dramatically reduces the chance of forming stones. A meta-analysis of randomized trials found that UDCA cut gallstone formation by roughly two-thirds overall, and the protective effect was even stronger in people losing weight through dieting alone compared with those who had bariatric surgery. Interestingly, diets with higher fat content also reduced stone formation compared with very low-fat diets, probably because some fat in meals is needed to trigger regular gallbladder emptying.34PubMed. Ursodeoxycholic acid and diets higher in fat prevent gallbladder stones during weight loss: a meta-analysis of randomized controlled trials

The Gut Microbiome Connection

An emerging area of research links the gut microbiome to gallstone formation. The bacteria living in your intestines play a direct role in modifying bile acids. Certain bacterial groups, particularly one called Desulfovibrionales, have been shown to boost the production of secondary bile acids in the gut, making bile more hydrophobic and increasing cholesterol absorption from the intestine. The metabolic byproduct of these bacteria, hydrogen sulfide, also appears to alter liver signaling in ways that promote cholesterol secretion into bile.35Nature Communications. Gut microbiota promotes cholesterol gallstone formation by modulating bile acid composition and biliary cholesterol secretion

A multi-omics study confirmed that gallstone patients show distinct patterns of intestinal dysbiosis compared with healthy controls, and that the resulting disruptions in bile acid metabolism lead to an accumulation of hydrophobic bile acids that favor stone formation. Researchers have proposed an “intestinal microbiota imbalance, bile acid metabolic disorder, gallstone formation” axis as a framework for understanding how gut health feeds into biliary disease.36PubMed Central. Gut Microbiome Dysbiosis Promotes Gallstone Formation via Bile Acid Metabolic Disorder: A Multiomics Study This line of research is still young, and no microbiome-targeted treatments are available for gallstone prevention yet. But it may eventually explain why some people with few traditional risk factors develop stones while others with many risk factors never do.

Gallstones During Pregnancy

Pregnancy deserves special attention because it creates a perfect storm for gallstone formation: rising estrogen, cholesterol-saturated bile, and a gallbladder that empties sluggishly. Most pregnancy-related gallstones cause no trouble and resolve after delivery when hormone levels normalize. When complications do arise, however, the stakes are higher for both the mother and the baby. In a tertiary-center series of 59 women with complicated gallstone disease during pregnancy, acute cholecystitis was the most common complication, making up about 63% of cases. Cholecystectomy was performed in 15 of those women during gestation, with outcomes including four preterm deliveries and five low-birth-weight infants.37PubMed Central. The course and outcomes of complicated gallstone disease in pregnancy: Experience of a tertiary center The decision about whether and when to operate during pregnancy involves weighing the risks of continued inflammation and potential pancreatitis against the risks of anesthesia and surgery on a developing fetus. When surgery is needed, the second trimester is generally preferred because the risk of miscarriage is lower than in the first trimester and the uterus has not yet grown large enough to make laparoscopic access difficult.