Yellow stool usually means gut bacteria converted less of its bile pigment into stercobilin, the brown pigment of normal stool[1]. It most often shows up briefly with diarrhea, which is usually short-lived[2]. A day or two of yellow poop is rarely a concern. Yellow stool that is also greasy, bulky, foul-smelling and hard to flush is different: it can mean fat is not being absorbed[3].
That second pattern, called steatorrhea, has a short list of usual suspects: celiac disease, the pancreas, bile problems and Giardia[3][4]. This guide shows how to tell the two patterns apart, which causes fit which, and which tests to ask about.
Get medical help promptly if yellow or pale stool comes with yellow skin or eyes and dark urine, you have fever or severe abdominal pain, your stool is black or bloody, or greasy stools come with weight loss you did not intend. These can signal a blocked bile duct, a serious infection, bleeding or malabsorption and need a clinician, not home care[5][2][6].
Why is my poop yellow?
Your poop is yellow when less of its bile pigment has been converted to stercobilin, the brown pigment of normal stool. The liver releases bile salts into the stool, which gives it its normal brown color[7]. Bile leaves the liver as a yellow-green fluid carrying bilirubin, and it is stored in the gallbladder until fat enters the small intestine[8].
In the gut, bacteria convert bilirubin into urobilinoids, which become stercobilin, the predominant pigment in feces[1]. In 2024, researchers identified the bacterial enzyme behind the key step, BilR, which reduces bilirubin to urobilinogen[9]. It is made mostly by Firmicutes and was found in nearly all healthy adults, but less often in newborns and people with inflammatory bowel disease[9].
Older work named Clostridium perfringens, Clostridioides difficile and Bacteroides fragilis among the few known bilirubin reducers[1]. Anything that shortens or disrupts this bacterial step leaves stool lighter. In one study of healthy volunteers, five of 10 oral antibiotics sharply cut fecal urobilinogen within 6 days[10]. The same pigment chemistry explains why poop turns green.
Yellow and formed vs. yellow, greasy and floating
The color matters less than the texture and the company it keeps. Steatorrhea means extra fat in the stool, and it produces pale, large-volume, foul-smelling, loose stools[3]. Labs define it as more than 7 g of fecal fat per day on a measured collection[11].
| Feature | Yellow, otherwise ordinary | Yellow, greasy, floating (possible steatorrhea) |
|---|---|---|
| Texture | Soft or loose, holds together or breaks into pieces | Bulky, greasy or oily, may leave an oily film |
| Smell | Usual | Unusually foul |
| Flushing | Flushes normally | Floats or is hard to flush |
| Duration | A day or two, often with a stomach bug or upset stomach | Recurs for weeks |
| Other clues | Diarrhea that settles | Weight loss, bloating, excess gas[6] |
| Usual meaning | Often a passing diarrheal illness | Fat malabsorption worth testing |
Floating on its own is not specific; our guide on why poop floats covers the other reasons. If you are tracking shape rather than color, the Bristol stool chart is the standard tool. Stool that is pale, clay or putty-colored rather than yellow points toward the liver and bile ducts and is covered in our pale, clay-colored stool guide[7].
What is the most common cause of yellow poop?
No study has ranked the causes of yellow stool, but a short bout of diarrhea is the most likely setting. Viral gastroenteritis, food poisoning and medicine side effects are the most common causes of acute diarrhea[2].
| Cause | What the stool tends to look like | What to do |
|---|---|---|
| Viral or bacterial gastroenteritis | Loose stools for a few days | Fluids; see a doctor if adults have diarrhea for more than 2 days[2] |
| Giardia infection | Smelly, greasy stool that can float, 2 to 5 times a day | Stool testing, often several samples[4][12] |
| Celiac disease | Loose, greasy, bulky, bad-smelling | Blood test while still eating gluten[13][14] |
| Exocrine pancreatic insufficiency | Greasy, with or without diarrhea; weight loss | Fecal elastase test[6] |
| Bile acid diarrhea, gallbladder removal | Loose, frequent, sometimes fatty | Ask about bile acid testing[15] |
| Liver or bile duct blockage | Pale or clay-colored, with dark urine or jaundice | Prompt medical review[7] |
| Orlistat (weight-loss drug) | Fatty or oily stool, oily spotting | Expected effect; discuss with prescriber[16] |
Diet is the cause most websites list first. When we searched the research literature for carrots, sweet potato or turmeric changing stool color, we found only case reports of yellow skin from very high carotene intake, nothing measuring stool. A one-off yellow stool after an unusual meal is plausible but untested, so judge it by whether it returns to brown.
Yellow diarrhea: infections and fast transit
Yellow diarrhea is most often a passing gut infection. The most common viral causes are norovirus, rotavirus, adenovirus and astrovirus, and food poisoning usually clears within a week[2]. Our diarrhea page covers causes and care in detail, and explosive diarrhea has its own guide.
Giardia: greasy diarrhea that can float
Giardia is the infection that best fits yellow, greasy, floating stool. Symptoms usually start 1 to 2 weeks after exposure, with diarrhea 2 to 5 times a day, gas, cramps, nausea and growing tiredness[4]. They typically last 2 to 6 weeks, longer with a weakened immune system, and can return after seeming to resolve[4].
Some people develop long-term problems, including recurring diarrhea, irritable bowel syndrome and poor absorption of fat or vitamin B12[4]. Diagnosis needs stool samples, often several collected over several days, because the parasite is not shed in every stool[12]. See our guide to the stool test for parasites for how collection works.
When does yellow stool point to fat malabsorption?
It points to fat malabsorption when it is greasy, bulky and persistent. Absorbing fat needs three things: bile acids to emulsify it, pancreatic lipase to break it down, and a healthy small-intestinal lining to take it up[3]. A problem with any one can cause steatorrhea, often with weight loss and diarrhea[3][17].
When gluten is the trigger
Celiac disease is an immune reaction to gluten that injures the small intestine. Its digestive symptoms include loose, greasy, bulky, bad-smelling stools, bloating, gas and abdominal pain[13]. About 30% of people carry the DQ2 or DQ8 genes, but only about 3% of carriers develop the disease[13].
Diagnosis starts with a tissue transglutaminase antibody blood test, and most adults then need a small-intestine biopsy to confirm it[18]. Keep eating gluten until testing is done, because a gluten-free diet can make results falsely normal[14].
The pancreas: exocrine pancreatic insufficiency and chronic pancreatitis
Exocrine pancreatic insufficiency (EPI) means the pancreas delivers too little digestive enzyme. Its features are steatorrhea with or without diarrhea, weight loss, bloating, excessive flatulence and low fat-soluble vitamins[6]. The AGA advises suspecting it in chronic pancreatitis, pancreatic cancer, cystic fibrosis and after pancreatic surgery. It also suggests considering EPI in celiac disease, Crohn's disease and longstanding diabetes[6].
Chronic pancreatitis can cause upper abdominal pain that worsens after eating, diarrhea, greasy foul-smelling stools and weight loss. Some people have no symptoms until complications develop[19].
Bile acid diarrhea and life after gallbladder removal
Bile acid diarrhea happens when too many bile acids reach the colon. It is most common after ileal surgery or disease, as an idiopathic condition that mimics IBS with diarrhea, and alongside chronic pancreatitis or celiac disease[15]. It is linked to heavier stools, more stool fat and faster colonic transit[15]. Gut bacteria also transform the bile acids that arrive, as covered on our secondary bile acids page.
Gallbladder removal is a common trigger. In 820 patients followed in two Dutch trials, 8.4% reported new diarrhea 6 months after surgery and 8.5% new urgency[20]. In a UK audit of 9,439 cholecystectomies, only 2.1% were tested for bile acid diarrhea, yet 62.8% of those tested had it, after a median of 672 days[21].
Liver and bile duct problems
When bile flow slows or stops (cholestasis), stool tends to turn pale rather than yellow. Bilirubin then builds up in the blood and causes jaundice, and fat and fat-soluble vitamins are poorly absorbed[22]. Clay-colored stool often comes with jaundice and dark urine, from causes such as hepatitis, gallstones, bile duct narrowing or tumors[7].
SIBO and medicines
Small intestinal bacterial overgrowth (SIBO) has long been linked to malabsorption, because bacteria in the upper small intestine deconjugate bile acids[23]. The weight-loss drug orlistat blocks about 30% of dietary fat absorption. Its most common side effects include oily spotting and fatty or oily stool[16].
Which tests check for fat malabsorption?
There is no single test; the right one depends on the suspected cause. These are the main options a clinician may use.
| Suspected cause | Test | What to know |
|---|---|---|
| Celiac disease | tTG antibody blood test, then biopsy | Keep eating gluten until tested[14][18] |
| Pancreatic insufficiency | Fecal elastase | Needs formed or semi-solid stool; under 100 µg/g supports EPI, 100 to 200 is indeterminate[6] |
| Giardia | Stool sample sent to a lab | Several samples over several days may be needed[12] |
| Bile acid diarrhea | SeHCAT scan, 48-hour fecal bile acids or blood 7αC4 | Availability varies by country[15] |
| Confirming steatorrhea | Quantitative fecal fat on a high-fat diet | Cumbersome and rarely needed[6][3] |
| Liver or bile ducts | Liver blood tests, ultrasound, CT or MRI | Ordered when stool is pale or jaundice is present[7] |
Fecal elastase is a screen, not a verdict. In 147 adults with chronic pancreatitis, a result under 100 µg/g caught 90% of those with steatorrhea, but its specificity was only 28.9%[11]. For ongoing loose stools without alarm features, guidelines also support checking for Giardia and bile acid diarrhea[24].
How do I get my poop back to normal?
Treat the cause; there is no stool-color fix. These steps help you get there faster.
- Give a one-off yellow stool a few days. If it returns to brown, no action is needed[7].
- Replace fluids during diarrhea. Watch for thirst, dark urine, less urine or dizziness[2].
- Keep eating gluten until any celiac testing is done, then follow your clinician's plan[14].
- Do not self-test with enzyme supplements. A trial of pancreatic enzymes is unreliable for diagnosing EPI[6].
- Note the pattern for your appointment: how long, greasy or not, weight change, travel, recent antibiotics, gallbladder surgery and medicines such as orlistat.
When to see a doctor
See a doctor right away if you have[2][5]:
- diarrhea lasting more than 2 days, six or more loose stools a day, or high fever;
- black, tarry stool, or stool containing blood or pus;
- severe abdominal or rectal pain, or frequent vomiting;
- signs of dehydration or a change in mental state;
- jaundice, tea-colored urine and light-colored stools, especially with pain or fever.
Book a routine appointment if stool stays off-color for several days[7]. Do the same if greasy, foul, hard-to-flush stools keep returning, or come with weight loss, bloating or excess gas[6]. People who are pregnant, over 65, taking antibiotics or immunocompromised should keep in closer touch with their doctor during diarrhea[2].
This article is for general educational purposes and is not medical advice. Stool color cannot diagnose a condition, and this guide does not replace testing or an examination. Talk to a qualified healthcare professional about persistent changes in your stool, particularly if you are pregnant, immunocompromised, taking prescription medication, or managing a diagnosed condition.
Frequently Asked Questions
How long is it okay to have yellow poop?
A day or two of yellow stool, especially with a stomach bug or loose stools, is usually not a concern. MedlinePlus advises contacting a provider if stools are not their normal brown color for several days. Adults with diarrhea should see a doctor if it lasts more than 2 days. Yellow stool that keeps coming back over weeks, or that is greasy, bulky and hard to flush, deserves testing even if you feel well otherwise.
Does yellow poop mean pancreatitis?
Not usually. Yellow stool alone is far more often fast transit or a passing infection. Chronic pancreatitis can cause greasy, foul-smelling stools, diarrhea and weight loss because the damaged pancreas makes too little lipase, a state called exocrine pancreatic insufficiency. Acute pancreatitis shows up mainly as upper abdominal pain that may spread to the back, with nausea, vomiting or fever, and that needs urgent care whatever your stool looks like.
Does liver damage cause yellow poop?
Liver and bile duct problems more often make stool pale, clay-colored or putty-colored, because less bile pigment reaches the gut. They tend to come with yellow skin or eyes (jaundice), dark urine and sometimes itching. Cholestasis, where bile flow slows or stops, can also cause fat malabsorption, so stool may be pale and greasy. Pale stool with dark urine or jaundice needs prompt medical review.
What does bad pancreas poop look like?
When the pancreas makes too little digestive enzyme, fat passes through undigested. Stool tends to be greasy or oily, large in volume, foul-smelling and loose, and can look pale or yellow. It often comes with weight loss, bloating and a lot of gas, so frequent farting can be part of the picture. The usual first test is fecal elastase on a formed or semi-solid stool sample.
Can antibiotics change stool color?
They can. Gut bacteria convert bilirubin into the pigments that make stool brown, and antibiotics disturb those bacteria. In a 1986 study of 10 oral antibiotics in healthy volunteers, five of them (bacitracin, vancomycin, clindamycin, erythromycin and ampicillin) sharply reduced the stool pigment precursor urobilinogen. Antibiotics can also cause diarrhea, which speeds transit. Do not stop a prescribed antibiotic because of stool color; call your prescriber if you get severe or bloody diarrhea.
Can dehydration cause yellow diarrhea?
Dehydration is usually a result of diarrhea, not a cause of its color. Yellow diarrhea comes from fast transit or fat in the stool, while losing fluid through frequent loose stools can lead to dehydration. Signs include extreme thirst or dry mouth, urinating less, dark urine, dizziness and sunken eyes or cheeks. Those signs, or six or more loose stools a day, are reasons to contact a doctor promptly.
How long does steatorrhea last?
It depends on the cause. Steatorrhea from Giardia usually settles as the infection clears, which typically takes 2 to 6 weeks. Steatorrhea from celiac disease tends to improve once gluten is strictly removed after diagnosis. In exocrine pancreatic insufficiency it usually persists until pancreatic enzyme replacement is started and dosed correctly. Steatorrhea from orlistat lasts while the drug is taken with fatty meals.
Should I go to the ER if my poop is yellow?
Yellow stool by itself is not an emergency. Seek urgent care if it comes with severe abdominal or rectal pain, frequent vomiting, black or bloody stool, signs of dehydration, confusion, or yellow skin or eyes with dark urine and fever after a gallbladder attack. Persistent yellow, greasy stool without those features is a reason to book a regular appointment, not the emergency room.
References
- Hamoud AR, Weaver L, Stec DE, Hinds TD. Bilirubin in the Liver–Gut Signaling Axis. Trends in Endocrinology & Metabolism. 2018;29(3):140-150. doi:10.1016/j.tem.2018.01.002 ↩
- National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms & Causes of Diarrhea. NIDDK. 2024. Available at: https://www.niddk.nih.gov/health-information/digestive-diseases/diarrhea/symptoms-causes ↩
- Azer SA, Sankararaman S. Steatorrhea. StatPearls [Internet]. 2023. Available at: https://www.ncbi.nlm.nih.gov/books/NBK541055/ ↩
- Centers for Disease Control and Prevention. Symptoms of Giardia Infection. CDC. 2023. Available at: https://www.cdc.gov/giardia/signs-symptoms/index.html ↩
- National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms & Causes of Gallstones. NIDDK. 2017. Available at: https://www.niddk.nih.gov/health-information/digestive-diseases/gallstones/symptoms-causes ↩
- Whitcomb DC, Buchner AM, Forsmark CE. AGA Clinical Practice Update on the Epidemiology, Evaluation, and Management of Exocrine Pancreatic Insufficiency: Expert Review. Gastroenterology. 2023;165(5):1292-1301. doi:10.1053/j.gastro.2023.07.007 ↩
- MedlinePlus. Stools - pale or clay-colored. MedlinePlus Medical Encyclopedia. 2026. Available at: https://medlineplus.gov/ency/article/003129.htm ↩
- Almajid AN, Sugumar K. Physiology, Bile. StatPearls [Internet]. 2022. Available at: https://www.ncbi.nlm.nih.gov/books/NBK542254/ ↩
- Hall B, Levy S, Dufault-Thompson K, et al.. BilR is a gut microbial enzyme that reduces bilirubin to urobilinogen. Nature Microbiology. 2024;9(1):173-184. doi:10.1038/s41564-023-01549-x ↩
- Saxerholt H, Carlstedt-Duke B, Høverstad T, et al.. Influence of Antibiotics on the Faecal Excretion of Bile Pigments in Healthy Subjects. Scandinavian Journal of Gastroenterology. 1986;21(8):991-996. doi:10.3109/00365528608996410 ↩
- Gopi S, Singh N, Yegurla J, et al.. Utility of Fecal Elastase-1 to diagnose severe exocrine insufficiency in chronic pancreatitis: Real world experience. Pancreatology. 2023;23(2):151-157. doi:10.1016/j.pan.2023.01.002 ↩
- Centers for Disease Control and Prevention. Testing and Diagnosis for Giardia Infection. CDC. 2024. Available at: https://www.cdc.gov/giardia/testing/index.html ↩
- National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms & Causes of Celiac Disease. NIDDK. 2020. Available at: https://www.niddk.nih.gov/health-information/digestive-diseases/celiac-disease/symptoms-causes ↩
- National Institute of Diabetes and Digestive and Kidney Diseases. Diagnosis of Celiac Disease. NIDDK. 2020. Available at: https://www.niddk.nih.gov/health-information/digestive-diseases/celiac-disease/diagnosis ↩
- Camilleri M, Vijayvargiya P. The Role of Bile Acids in Chronic Diarrhea. American Journal of Gastroenterology. 2020;115(10):1596-1603. doi:10.14309/ajg.0000000000000696 ↩
- US Food and Drug Administration. XENICAL (orlistat) capsules, for oral use: Prescribing Information. Drugs@FDA. 2026. Available at: https://www.accessdata.fda.gov/drugsatfda_docs/label/2026/020766s039lbl.pdf ↩
- Zuvarox T, Goosenberg E, Belletieri C. Malabsorption Syndromes. StatPearls [Internet]. 2025. Available at: https://www.ncbi.nlm.nih.gov/books/NBK553106/ ↩
- Rubio-Tapia A, Hill ID, Semrad C, et al.. American College of Gastroenterology Guidelines Update: Diagnosis and Management of Celiac Disease. American Journal of Gastroenterology. 2022;118(1):59-76. doi:10.14309/ajg.0000000000002075 ↩
- National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms & Causes of Pancreatitis. NIDDK. 2017. Available at: https://www.niddk.nih.gov/health-information/digestive-diseases/pancreatitis/symptoms-causes ↩
- Thunnissen FM, Baars C, Arts R, et al.. Persistent and new-onset symptoms after cholecystectomy in patients with uncomplicated symptomatic cholecystolithiasis: A post hoc analysis of 2 prospective clinical trials. Surgery. 2023;174(4):781-786. doi:10.1016/j.surg.2023.06.010 ↩
- Farrugia A, Attard JA, Hanmer S, et al.. Rates of Bile Acid Diarrhoea After Cholecystectomy: A Multicentre Audit. World Journal of Surgery. 2021;45(8):2447-2453. doi:10.1007/s00268-021-06147-8 ↩
- Grant LM, John S. Cholestatic Jaundice. StatPearls [Internet]. 2025. Available at: https://www.ncbi.nlm.nih.gov/books/NBK482279/ ↩
- Schiller LR. Evaluation of small bowel bacterial overgrowth. Current Gastroenterology Reports. 2007;9(5):373-377. doi:10.1007/s11894-007-0045-9 ↩
- Camilleri M. When and What to Test for Diarrhea: Focus on Stool Testing. American Journal of Gastroenterology. 2024;120(4):778-784. doi:10.14309/ajg.0000000000003175 ↩