Yellow diarrhea usually means food moved through your digestive tract too quickly for it to pick up its normal brown color, or that your body isn’t absorbing fats properly. A single episode after a rich meal or stomach bug is common and resolves on its own. Persistent yellow diarrhea lasting more than a week, especially with weight loss, floating stools, or foul smell, points to something worth investigating.
Why Stool Is Normally Brown
Your liver produces a greenish-yellow substance called bile to help digest fats. As bile travels through your intestines, bacteria in the colon break it down into a compound called stercobilin, which gives stool its characteristic brown color. This conversion takes time. When food moves through too fast, as it does during any bout of diarrhea, bile doesn’t fully transform. The result is stool that retains that original yellowish or greenish-yellow tint.
This is why a single episode of yellow diarrhea during a stomach virus or food poisoning isn’t unusual. The rapid transit alone explains the color. It’s when yellow diarrhea keeps showing up, or when the stool looks greasy and floats, that the cause shifts from speed to something more specific.
Fat Malabsorption and Greasy Stools
The most distinctive type of yellow diarrhea comes from undigested fat passing through your system. These stools are pale yellow, oily, unusually foul-smelling, and tend to float. Doctors call this steatorrhea, and it happens when your body can’t break down or absorb dietary fats properly.
Several conditions cause this. Exocrine pancreatic insufficiency (EPI) means your pancreas doesn’t produce enough digestive enzymes, particularly the enzyme that breaks down fats. Without it, fats pass through your intestines largely undigested, producing those characteristic pale, oily stools. Chronic pancreatitis, cystic fibrosis, and pancreatic cancer can all lead to EPI.
Celiac disease is another common culprit. The immune reaction to gluten damages the lining of the small intestine, reducing its ability to absorb nutrients including fat. People with undiagnosed celiac disease often have yellow, loose stools for months or years alongside bloating, fatigue, and gradual weight loss.
Bile Acid Malabsorption
Your body normally recycles about 95% of the bile acids it sends into the small intestine. When that recycling system fails, excess bile acids spill into the colon, where they irritate the lining and trigger it to secrete extra fluid. This speeds up the muscle contractions that move stool along, producing watery, urgent diarrhea that can appear yellow or greenish-yellow. Bile acid malabsorption is surprisingly common and often goes undiagnosed for years because its symptoms overlap with irritable bowel syndrome.
Infections That Cause Yellow Diarrhea
Giardia, a parasite picked up from contaminated water, is one of the most recognizable infectious causes. It produces smelly, greasy stools that can float, along with bloating, nausea, and cramping. Symptoms can persist for weeks if untreated, and the stool appearance closely mimics fat malabsorption because the parasite actually interferes with fat absorption in the small intestine.
Common stomach viruses and bacterial infections from contaminated food also produce yellow diarrhea, but these typically resolve within a few days. The yellow color in these cases comes from rapid transit rather than malabsorption.
Food, Supplements, and Medications
Not every case of yellow diarrhea signals a medical problem. Eating a large amount of fatty or greasy food can temporarily overwhelm your digestive capacity and produce yellow, loose stools. Foods high in yellow pigments, like carrots, sweet potatoes, and turmeric, can tint stool as well. Certain antibiotics shift stool color toward yellow or green by disrupting the gut bacteria responsible for that normal brown pigment conversion. If the color change lines up with something you recently ate or a new medication, it’s likely the explanation.
When Yellow Diarrhea Needs Attention
A single episode rarely matters. Ongoing yellow diarrhea, particularly when the stools are greasy, floating, or foul-smelling, suggests your body isn’t absorbing nutrients the way it should. That pattern warrants a visit to your doctor, ideally if it persists beyond a week.
Certain accompanying symptoms call for more urgent attention:
- Severe abdominal pain or rectal pain
- Signs of dehydration like dark urine, dizziness, or dry mouth
- High fever
- Blood or pus in the stool
- Six or more loose stools per day
- Unintentional weight loss
For children, the timeline is shorter. Diarrhea lasting more than a day in a child, or any fever in an infant, warrants a call to their pediatrician. Infants and young children dehydrate faster than adults, and a child who refuses to drink for more than a few hours needs prompt evaluation.
How Doctors Identify the Cause
If yellow diarrhea keeps recurring, your doctor will typically start with stool tests to check for infections like Giardia, measure fat content, or look for signs of inflammation. Blood tests can screen for celiac disease and check pancreatic enzyme levels. In some cases, a breath test helps identify bile acid malabsorption or bacterial overgrowth in the small intestine. Imaging of the pancreas or small intestine may follow if initial tests point toward a structural problem.
The treatment depends entirely on the underlying cause. Celiac disease resolves with a strict gluten-free diet. EPI is managed with enzyme supplements taken with meals. Bile acid malabsorption responds well to medications that bind excess bile acids in the gut. Giardia clears with a short course of antiparasitic treatment. In each case, the yellow color and greasy texture of the stool typically improve once the root issue is addressed.