Yellow stool is usually caused by something passing through your digestive tract too quickly, by something you ate, or by difficulty absorbing fat. A single yellow bowel movement is rarely a concern, but persistent yellow stool, especially if it’s greasy, foul-smelling, or floating, can signal a digestive problem worth investigating.
How Stool Gets Its Normal Color
Your liver produces bile, a yellow-green digestive fluid that gets released into your small intestine to help break down fats. Bile contains a waste pigment called bilirubin, which starts out yellowish. As bilirubin travels through your intestines, bacteria chemically convert it into a pigment called stercobilin, which is what gives stool its characteristic brown color. This conversion requires time and the right bacterial environment.
When food moves through your gut faster than usual, whether from a stomach bug, stress, or something you ate, bacteria don’t get enough time to fully convert bilirubin. The result is stool that retains more of that original yellow pigment. This is one of the most common and least worrisome reasons for yellow stool.
Foods and Supplements That Turn Stool Yellow
Carrots, sweet potatoes, turmeric, and foods containing yellow food coloring can all tint your stool yellow. If you recently ate a large serving of any of these, the color change is harmless and temporary. It typically resolves within a day or two once the pigmented food clears your system.
Fatty Stool and Malabsorption
The yellow stool that does warrant attention is steatorrhea, which is the medical term for excess fat in your stool. When your body can’t properly break down and absorb dietary fats, it passes them out undigested. This produces stools that are pale or yellowish, looser than normal, unusually foul-smelling, and prone to floating. The greasy, clay-like quality is the key distinguishing feature. If your yellow stool also looks oily or leaves a film on the toilet water, fat malabsorption is a likely cause.
Several organs work together to digest fat, and a problem with any of them can trigger steatorrhea:
- Pancreas: Your pancreas produces enzymes that break down fat. Conditions like chronic pancreatitis can reduce enzyme output, a problem called exocrine pancreatic insufficiency. Without enough enzymes, fat passes through undigested.
- Liver and bile ducts: If bile flow is blocked or reduced by conditions like cirrhosis, cholestasis, or bile duct obstruction, fats can’t be broken down properly. Blocked bile also means less bilirubin reaches your intestines, which makes stool even paler, sometimes approaching a clay or putty color.
- Small intestine: Damage to the lining of your small intestine reduces its ability to absorb nutrients, including fats. Celiac disease is a prime example. In celiac disease, the immune system reacts to gluten and destroys the tiny finger-like projections (villi) that line the intestinal wall. Without functioning villi, you can’t absorb nutrients effectively no matter how much you eat. Pale, foul-smelling stools are a hallmark symptom, particularly in children with undiagnosed celiac disease.
Infections That Cause Yellow Stool
Giardia, a waterborne parasite commonly picked up from contaminated water sources while camping or traveling, is one of the most well-known infectious causes of yellow, greasy diarrhea. The parasite attaches to the lining of your small intestine, damaging the surface cells and disrupting the gut’s ability to absorb fats and other nutrients. This damage increases intestinal permeability and can flatten the absorptive surface of your gut wall. The result is diarrhea that’s often yellowish, greasy, and particularly foul-smelling, sometimes accompanied by bloating, gas, and cramping that can last weeks if untreated.
Other bacterial and viral infections can also cause yellow stool simply by speeding up transit time, though these episodes are typically short-lived and resolve on their own.
When Yellow Stool Is Completely Normal
If you have a baby, yellow stool is not just normal but expected. Breastfed newborns typically produce seedy, loose stools that look like light mustard. Formula-fed babies often have yellow or tan stools with hints of green. These colors are perfectly healthy and reflect the normal digestion of breast milk or formula. The color guide for newborns runs from black-green meconium in the first days, through yellow-green transitional stools, to the characteristic yellow of a breastfed infant. Green stool in babies is also normal and not a cause for concern.
Patterns That Point to a Problem
A single episode of yellow stool after a large meal of sweet potatoes or a bout of stomach flu is almost never something to worry about. The patterns that suggest a deeper issue are different. Watch for yellow stool that persists for more than a few days, or that consistently appears greasy, oily, or clay-colored. Floating stools that are difficult to flush can indicate undigested fat.
Accompanying symptoms make the picture clearer. Unexplained weight loss alongside yellow stool suggests your body isn’t absorbing calories from fat. Yellowing of your skin or eyes (jaundice) combined with pale stool and dark urine points toward a bile flow problem involving your liver or bile ducts. Persistent bloating, gas, and cramping after meals, especially after eating gluten-containing foods, raises the possibility of celiac disease or another malabsorption condition. Chronic diarrhea with greasy, foul-smelling stools that started after travel could indicate a parasitic infection like giardia.
If your stool turns bright red or black, that may indicate the presence of blood and requires prompt medical attention. For persistent yellow stool, a doctor can run straightforward tests, including stool samples to check fat content and blood tests to evaluate liver, pancreas, and celiac markers, to pinpoint what’s going on.