Yellow poop usually means your body isn’t fully breaking down or absorbing fat from the food you eat. In many cases, it’s harmless and tied to something you recently ate, like a large serving of carrots, sweet potatoes, or turmeric. But when yellow stool is persistent, greasy, foul-smelling, or paired with other symptoms, it can signal a digestive condition worth investigating.
How Stool Gets Its Normal Color
Your liver produces bile, a greenish fluid that gets released into your small intestine to help digest fats. As bile travels through your digestive tract, bacteria in your gut chemically transform its pigments, ultimately producing a compound called stercobilin. Stercobilin is what gives healthy stool its characteristic brown color. The process requires your liver to produce enough bile, your bile ducts to deliver it to the intestines, and your gut bacteria to do the converting work along the way.
When any step in that chain is disrupted, stool color shifts. If bile flow is partially reduced, or if food moves through too quickly for full processing, the result is often yellowish stool. A complete blockage of bile tends to produce very pale, clay-colored or whitish stool rather than yellow, so yellow specifically suggests a partial issue or excess undigested fat.
Foods That Turn Stool Yellow
The most common and least concerning cause is simply what you ate. Foods rich in natural pigments called carotenoids can temporarily tint your stool yellow or orange. Carrots, sweet potatoes, squash, and turmeric are the usual culprits. These foods are unlikely to cause diarrhea unless you eat large quantities at once, but they can shift stool color for a day or two. If the yellow goes away once you stop eating those foods, there’s nothing to worry about.
A very high-fat meal can also overwhelm your digestive system’s ability to process all the fat at once, leading to a one-off yellowish, greasy stool. Think of it as a temporary overload rather than a sign of disease.
Fat Malabsorption and Steatorrhea
When yellow stool becomes a pattern rather than a one-time event, the most likely explanation is fat malabsorption. The medical term for fatty stool is steatorrhea, and it’s defined as excreting more than 7 grams of fat per day. You don’t need a lab test to suspect it. Fatty stools are pale or yellowish, bulky, oily, foul-smelling, and they often float in the toilet bowl.
Several conditions cause this kind of malabsorption, and they each do it differently.
Pancreatic Insufficiency
Your pancreas produces enzymes that break down fat in the small intestine. When the pancreas can’t make enough of these enzymes, a condition called exocrine pancreatic insufficiency, dietary fat passes through largely undigested. The result is pale, oily, foul-smelling stool that floats. Chronic pancreatitis, cystic fibrosis, and pancreatic cancer are among the conditions that can damage the pancreas enough to cause this. People with pancreatic insufficiency also commonly experience bloating, gas, unexplained weight loss, and feeling full quickly after eating.
Celiac Disease
In celiac disease, eating gluten triggers an immune reaction that damages the lining of the small intestine. That damage reduces the intestine’s ability to absorb nutrients, including fat. Diarrhea is present in 45 to 85 percent of people with untreated celiac disease, and the stools are often light tan, gray, or yellowish, watery or semiformed, and oily or frothy. The unabsorbed fat that reaches the large intestine also gets broken down by bacteria into compounds that pull extra fluid into the gut, which is why the diarrhea can be so persistent. Other signs include fatigue, bloating, anemia, and unintentional weight loss.
Giardia Infection
Giardia is a parasite typically picked up from contaminated water. It attaches to the lining of the small intestine and interferes with fat absorption. The CDC lists “smelly, greasy poop that can float” as one of the hallmark symptoms. Giardia symptoms usually last 2 to 6 weeks, though they can persist longer in people with weakened immune systems. If you’ve recently traveled, gone camping, or swallowed untreated water and then developed yellow, greasy diarrhea with cramping, giardia is a strong possibility. It’s diagnosed with a stool test and treated with a short course of antiparasitic medication.
Bile Duct Problems
When something partially blocks the flow of bile from the liver or gallbladder into the intestines, less bile reaches your gut to break down fats and less bilirubin is available to color your stool brown. Gallstones are the most common cause, but tumors, strictures, or inflammation can also narrow the bile ducts.
A complete bile duct blockage produces whitish or clay-colored stool, not yellow. Yellow stool from a bile issue typically means the flow is reduced but not entirely cut off. You might also notice darker urine (the pigment that isn’t reaching your gut gets rerouted through your kidneys instead), itchy skin, and yellowing of the eyes or skin, which is jaundice. If yellow stool shows up alongside jaundice, that combination points strongly to a bile flow problem and warrants prompt evaluation.
Symptoms That Need Prompt Attention
Yellow stool by itself, especially after eating colorful foods, rarely requires urgent care. But certain accompanying symptoms change the picture significantly. Seek medical attention soon if you notice:
- Jaundice (yellowing of your skin or the whites of your eyes)
- Severe abdominal pain, especially in the upper right or middle abdomen
- Confusion, drowsiness, or changes in mental clarity
- Blood in your stool or black, tarry stools
- Fever alongside yellow stool
- Easy bruising or unexplained bleeding, including a rash of tiny reddish-purple dots on your skin
- Unintentional weight loss over weeks, combined with persistently abnormal stools
These symptoms can indicate liver disease, bile duct obstruction, or severe pancreatic problems that need timely diagnosis.
Yellow Stool in Babies
If you’re a parent searching this question about your infant, the answer is reassuringly different. Mustard-yellow, loose, slightly runny stool is completely normal for breastfed babies. It’s the expected color and consistency throughout early infancy. The colors to worry about in a baby’s diaper are chalk white or gray (which can indicate a liver problem), persistent black (after the first few days of life), and red (which could signal bleeding). Yellow in an infant’s diaper is a sign that things are working as they should.
What to Do About Persistent Yellow Stool
If your stool has been yellow for more than a couple of days and you can’t trace it to something you ate, start paying attention to other details. Is it greasy or oily? Does it float? Is the smell worse than usual? Are you also dealing with bloating, gas, cramping, or weight loss? These clues help distinguish a temporary dietary quirk from a malabsorption problem.
The most common initial test is a stool sample to check for excess fat, parasites, or signs of infection. Blood tests can evaluate liver and pancreas function, and screening for celiac disease involves a specific blood antibody test. If bile duct obstruction is suspected, imaging like an ultrasound can reveal gallstones or other blockages. Most of these conditions are very manageable once identified. Celiac disease is treated by removing gluten from your diet, pancreatic insufficiency with enzyme supplements taken at meals, giardia with a short course of medication, and gallstones with surgical removal when they cause symptoms.

