Why Is My Poop Yellow? Causes and When to Worry

Normal poop is brown because of a pigment called stercobilin, which forms when bacteria in your gut break down bilirubin, a waste product from old red blood cells. When that process gets interrupted or sped up, stool can turn yellow. A single episode usually traces back to something you ate or a bout of diarrhea, but persistent yellow stool can signal problems with fat absorption, bile flow, or an intestinal infection.

How Poop Gets Its Color

Your liver constantly filters old red blood cells and produces bilirubin as a byproduct. That bilirubin gets packaged into bile, stored in your gallbladder, and released into your small intestine when you eat. As bile travels through your digestive tract, bacteria in your colon convert bilirubin into compounds called urobilinogen and stercobilinogen. These are initially colorless, but they oxidize into orange-yellow and brown pigments that give stool its characteristic color.

Anything that disrupts this chain, whether it’s fewer gut bacteria (from antibiotics, for example), faster transit through the intestines, or a blockage that keeps bile from reaching the gut, can leave stool looking yellow instead of brown.

Fast Transit Time

The most common and least worrisome reason for yellow stool is that food moved through your digestive tract too quickly. When transit speeds up, bacteria don’t have enough time to fully convert bilirubin into its darker end products. The result is stool that retains a yellowish or greenish tint.

This happens with ordinary diarrhea from any cause: a stomach bug, food that didn’t agree with you, or even a stressful day. Stress and anxiety trigger the gut to move faster, which can reduce nutrient absorption and produce loose, yellow stool. COVID-related diarrhea has also been linked to yellow stool for the same reason. If the color returns to normal once diarrhea resolves, there’s nothing else going on.

Diet, Supplements, and Medications

Certain foods naturally tint stool yellow. Carrots, sweet potatoes, and turmeric contain pigments strong enough to shift color, especially if you eat them in large amounts. High-fat meals can also lighten stool temporarily by overwhelming your bile supply. Some antibiotics tint stool yellow or green by wiping out gut bacteria that would normally complete the pigment conversion process. This typically resolves once you finish the course.

Fat Malabsorption

Persistent yellow stool that looks greasy, floats, and smells unusually foul points toward fat malabsorption, a condition called steatorrhea. Digesting fat is a multi-step process: bile acids emulsify the fat, pancreatic enzymes break it down, and the lining of your small intestine absorbs it. A breakdown at any of these steps leaves undigested fat in your stool, giving it a pale, oily, bulky appearance that’s often difficult to flush.

Several conditions cause this pattern:

  • Celiac disease damages the absorptive lining of the small intestine. Pale, fatty, foul-smelling stools are a hallmark of classical celiac disease, often accompanied by weight loss, bloating, and fatigue.
  • Pancreatic insufficiency means the pancreas doesn’t produce enough digestive enzymes to break down fat. This can result from chronic pancreatitis, cystic fibrosis, or pancreatic tumors.
  • Bile duct obstruction prevents bile from reaching the intestine entirely. Without bile, fat goes undigested and bilirubin never enters the gut. Stool turns pale, clay-colored, or very light yellow. Gallstones are the most common cause, though tumors near the bile duct or pancreatic head can also block flow.

Infections That Turn Stool Yellow

Giardia is the classic culprit. This waterborne parasite infects the small intestine and produces greasy, foul-smelling diarrhea that often floats, along with gas, stomach cramps, and nausea. You can pick it up from contaminated water while camping, traveling, or even from a community swimming pool. Symptoms typically begin one to three weeks after exposure and can persist for weeks if untreated.

Other intestinal infections, bacterial or viral, can produce yellow stool simply by speeding up transit or inflaming the gut lining enough to impair absorption. Most resolve on their own within a few days.

Yellow Stool in Babies

If you’re reading this because of a baby’s diaper, you can likely relax. Mustardy yellow is the standard color for breastfed infants, and formula-fed babies typically produce yellow-tan stool with hints of green. Babies’ gut bacteria are still developing, so the pigment conversion process works differently than in adults. This is completely normal and not a sign of any digestive problem.

Signs That Yellow Stool Needs Attention

A single yellow bowel movement after a rich meal or a day of loose stools is rarely significant. What matters is the pattern. Yellow stool that persists for more than a couple of weeks, especially if it’s greasy, floating, or foul-smelling, suggests your body isn’t absorbing fat properly.

The combination of yellow or pale stool with other symptoms is more telling. Yellowing of your skin or the whites of your eyes (jaundice), dark urine, abdominal pain, unexplained weight loss, fever, or persistent itchy skin all suggest a problem with your liver, gallbladder, or bile ducts. Jaundice paired with clay-colored stool and dark urine is a particularly clear signal that bile isn’t flowing into the intestine the way it should.