Gallstones form when the liquid bile stored in your gallbladder becomes chemically imbalanced, allowing solid crystals to clump together into stones. About 10% to 15% of U.S. adults have them. The process isn’t random: it follows a specific chain of events driven by what’s in your bile, how well your gallbladder contracts, and a mix of genetic, hormonal, and dietary factors.
How Bile Becomes Stone
Your gallbladder is a small pouch that stores bile, a digestive fluid your liver produces to help break down fats. Bile is a carefully balanced mixture of cholesterol, bile salts, and a waste pigment called bilirubin. When that balance tips, the excess material has nowhere to go and begins to crystallize.
Cholesterol stones, which account for the large majority of gallstones, form through three overlapping steps. First, the bile becomes supersaturated with cholesterol, meaning there’s more cholesterol dissolved in the fluid than the bile salts can keep in solution. Second, that excess cholesterol begins clumping into microscopic crystals in a process called nucleation. Third, the gallbladder fails to empty efficiently enough to flush those crystals out before they grow. When all three conditions overlap, crystals accumulate into visible stones over weeks to months.
Pigment Stones: A Different Process
Not all gallstones are made of cholesterol. Black pigment stones, which make up roughly 5% to 10% of cases, form from excess bilirubin. Bilirubin is a byproduct of red blood cell breakdown. Conditions that destroy red blood cells faster than normal (chronic hemolysis), such as sickle cell disease or certain inherited blood disorders, flood the bile with bilirubin. That excess bilirubin binds with calcium and hardens into dark, brittle stones. The more intense the red blood cell destruction, the higher the stone risk.
Why Your Gallbladder’s Squeeze Matters
Even if your bile chemistry is slightly off, a gallbladder that contracts strongly and empties on schedule can push crystals into the intestine before they grow. Problems start when the gallbladder becomes sluggish. This state, sometimes called biliary stasis, lets bile sit for too long, giving crystals extra time to aggregate. Anything that slows gallbladder emptying raises risk: prolonged fasting, certain medications, pregnancy, and conditions that affect the nerves or muscles controlling the organ. The thick, crystal-laden bile that accumulates during stasis is often called “biliary sludge,” and it’s considered a direct precursor to stones.
Genetics and Cholesterol Transport
Your genes play a measurable role in whether your bile tips toward stone formation. Several gene families control how much cholesterol, bile acid, and fat get pumped into bile in the first place. One key player is a pair of proteins (ABCG5 and ABCG8) that act as a cholesterol transporter in the liver’s bile ducts, directly influencing how much cholesterol ends up in your bile. Variants in these genes can increase the cholesterol load beyond what bile salts can handle.
Other genetic variants affect how your body clears cholesterol from the bloodstream. Certain versions of the genes responsible for binding cholesterol to carrier particles in your blood do a less efficient job, leading to higher circulating cholesterol and, downstream, more cholesterol in bile. If gallstones run in your family, inherited differences in these transport systems are a likely reason.
Estrogen and Hormonal Shifts
Women develop gallstones roughly twice as often as men, and estrogen is the main reason. Estrogen increases cholesterol secretion into bile while simultaneously reducing gallbladder contraction, creating both of the chemical and mechanical conditions that favor stones.
Pregnancy, which raises estrogen dramatically, is a well-known trigger. Postmenopausal women on estrogen-based hormone replacement therapy also face a significant increase in gallstone risk. Interestingly, research has found that modern low-dose oral contraceptives do not meaningfully raise risk in premenopausal women, despite older assumptions that they increased risk by two to two-and-a-half times.
Rapid Weight Loss
Losing weight quickly is one of the most reliable ways to trigger new gallstones. When the body mobilizes large amounts of stored fat in a short period, the liver processes that fat and dumps extra cholesterol into bile. At the same time, rapid calorie restriction reduces gallbladder contractions because there’s less fat in the diet to stimulate them. The combination of cholesterol-heavy bile and a sluggish gallbladder is a textbook recipe for stones.
Bariatric surgery is the most studied example. During the first year after surgery, the elevated bile cholesterol saturation and poor gallbladder emptying create a window of heightened risk. One study tracking over 400 post-surgical patients found that about 1.9% developed symptomatic gallstones within the first 12 months. Very low-calorie diets (under 800 calories per day) carry a similar risk even without surgery.
Diet: Sugar, Fat, and Fiber
What you eat shapes your bile chemistry over time. High carbohydrate intake, particularly high fructose consumption, is linked to gallstone formation through several metabolic pathways. Fructose promotes insulin resistance, drives the liver to produce more fat (a process called hepatic lipogenesis), raises blood triglycerides, and increases visceral fat. All of these conditions favor cholesterol-supersaturated bile. One study found that women in the highest quartile of fructose intake had more than double the odds of developing gallbladder sludge or stones compared to those in the lowest quartile.
Fiber works in the opposite direction. It binds bile acids in the intestine, forcing the liver to pull cholesterol from the blood to make more bile acids, which lowers the cholesterol concentration in bile. Most American adults fall well short of recommended fiber intake: men average about 18 grams per day and women about 15 grams, compared to a recommended minimum of 25 grams for women and 30 to 35 grams for men.
Other Risk Factors That Add Up
Several additional factors raise risk by affecting one or more of the same mechanisms:
- Obesity: Higher body weight increases cholesterol synthesis and secretion into bile, while also impairing gallbladder motility.
- Age: Bile becomes more cholesterol-saturated as you get older, and gallbladder contractions weaken gradually over decades.
- Diabetes and insulin resistance: These conditions alter lipid metabolism in ways that increase bile cholesterol and promote gallbladder stasis.
- Prolonged fasting or skipping meals: Without food triggering bile release, the gallbladder sits full for extended periods, giving crystals time to form.
Most gallstones don’t result from a single cause. They develop when several of these factors converge: a genetic tendency toward cholesterol-rich bile, a diet that reinforces it, hormonal conditions that slow the gallbladder, or a metabolic state like rapid weight loss that accelerates the whole process. Understanding which of these factors apply to you is the practical first step toward lowering your risk.

