Gray or clay-colored stool almost always means bile isn’t reaching your intestines the way it should. Bile is a digestive fluid made by your liver and stored in your gallbladder, and it’s responsible for giving stool its normal brown color. When something blocks bile flow or your liver can’t produce it properly, stool loses that pigment and turns pale gray, white, or clay-colored.
How Bile Colors Your Stool
Your liver continuously produces bile, which contains a yellowish-green pigment that comes from the normal breakdown of old red blood cells. As bile travels through your intestines and gets processed by gut bacteria, that pigment is converted into a compound called stercobilin, which is what makes stool brown. A related compound, urobilin, is what makes urine yellow. When bile can’t flow into your intestines, stercobilin never forms, and your stool comes out gray or pale.
Most Common Causes in Adults
The single most common reason for blocked bile flow is gallstones. These small, hardened deposits can lodge in the bile ducts and physically prevent bile from draining into the small intestine. When that happens, you’ll often notice gray stool alongside upper abdominal pain (especially after eating fatty meals), nausea, and sometimes yellowing of the skin or eyes.
Other conditions that block or damage bile ducts include:
- Bile duct strictures: Scarring that narrows the ducts, sometimes from previous surgery or chronic inflammation.
- Pancreatic cancer or bile duct cancer: Tumors in the pancreas or bile ducts can press on or grow into the drainage pathway, cutting off bile flow. This is a less common but serious cause.
- Hepatitis and cirrhosis: Liver inflammation or scarring can reduce bile production itself, rather than blocking its flow.
- Gallbladder cancer or liver cancer: These can obstruct bile drainage from the inside.
Certain rare congenital conditions, like cysts in the bile ducts, can also cause obstruction even in adults who weren’t diagnosed in childhood.
Medications and Temporary Causes
Not every case of gray stool signals a serious problem. Barium, used as a contrast agent for certain imaging tests like upper GI X-rays, turns stool white or very light gray for a day or two afterward. Some antacids containing aluminum hydroxide can also lighten stool color temporarily.
Thiazide diuretics, a common type of blood pressure medication, can slightly increase the risk of developing gallstones over time, which could eventually lead to pale stools. If you take these and notice a color change, it’s worth mentioning to your doctor even though the medication itself isn’t directly turning stool gray.
A single episode of lighter-than-usual stool after a very low-fat meal or a day of unusual eating isn’t typically a concern. The key distinction is persistence: gray stool that lasts more than a few days points to a real disruption in bile flow.
Gray Stool in Babies
In newborns, pale, gray, or white stool carries special urgency. The most important condition to rule out is biliary atresia, where the bile ducts outside the liver are absent or destroyed. Babies with this condition usually appear healthy at birth, but symptoms gradually develop between 2 and 8 weeks of age. The hallmark signs are jaundice lasting longer than two weeks after birth, pale or gray stool, dark yellow urine, a swollen or firm belly, and poor weight gain.
Timing matters enormously with biliary atresia. Surgical repair works best when performed within the first 60 days of life, and outcomes decline significantly with delay. If your infant has persistently pale stools, this is something to address immediately rather than wait for a scheduled checkup.
Symptoms That Appear Alongside Gray Stool
Gray stool rarely shows up in isolation. Because blocked bile backs up into the bloodstream, jaundice (yellow skin and eyes) is the most common companion symptom. You may also notice your urine becoming much darker than usual, since the pigment that can’t exit through bile gets rerouted through your kidneys instead. Itchy skin is another sign of bile buildup in the body.
Abdominal pain, especially in the upper right area or radiating to the back, suggests gallstones or a pancreatic problem. Fever combined with gray stool and jaundice can indicate an infected bile duct, which requires prompt medical attention. Unintentional weight loss alongside persistent pale stool raises concern for a tumor affecting the bile ducts or pancreas.
How the Cause Is Identified
Your doctor will typically start with blood tests that measure liver function, including levels of bilirubin (the bile pigment) and liver enzymes. Elevated bilirubin confirms that bile isn’t draining properly, and the pattern of enzyme elevation helps narrow down whether the problem is inside the liver or in the ducts downstream.
Imaging comes next. An abdominal ultrasound is usually the first step because it’s fast, noninvasive, and good at spotting gallstones and dilated bile ducts. If more detail is needed, a specialized MRI of the bile ducts can map out the entire drainage system without any invasive procedure. In some cases, a scope-based procedure is used to both visualize and treat blockages at the same time, for example by removing a stuck gallstone or placing a stent to hold a narrowed duct open.
What to Expect From Treatment
Treatment depends entirely on the underlying cause. Gallstones blocking a bile duct are usually removed during a scope procedure, and if you have a gallbladder full of stones, surgical removal of the gallbladder is the standard long-term fix. Most people recover within a week or two and can eat normally afterward.
For strictures or tumors, the approach ranges from stenting (placing a small tube to keep the duct open) to surgery, depending on location and severity. Liver diseases like hepatitis are treated with antiviral medications or other therapies aimed at reducing inflammation so bile production can recover.
Once bile flow is restored, stool color returns to normal relatively quickly, often within days. If you’ve been tracking gray stools, the return of brown color is a reliable sign that treatment is working.

