Healthy stool is brown because of a pigment called stercobilin, a byproduct of bile that your liver produces and your gut bacteria break down. When something disrupts that process, whether it’s a food you ate, a supplement, a medication, or a medical condition, your stool changes color. In most cases, getting back to brown is straightforward once you identify the cause.
Why Stool Is Brown in the First Place
Your liver produces bile, a greenish-yellow digestive fluid that gets stored in your gallbladder and released into your small intestine when you eat. As bile travels through your intestines, bacteria metabolize it into a compound called urobilinogen. About 80% of that urobilinogen is then converted into stercobilin, the pigment responsible for brown stool. Anything that changes how much bile reaches your intestines, how fast food moves through your gut, or what bacteria are present can shift your stool away from its normal color.
Foods and Drinks That Change Stool Color
Diet is the most common reason stool turns an unexpected color, and it’s also the easiest to fix. Leafy greens like spinach, kale, and broccoli can produce bright green stool, especially if you eat them in large amounts. Matcha, avocados, and fresh herbs do the same. Blueberries can turn stool bluish or dark green. Beets and red-dyed foods can create alarming red or maroon tones. Artificial food dyes in candy, cereals, or sports drinks are frequent culprits too.
The fix here is simple: once you stop eating the food in question, your stool should return to brown within one to three bowel movements, depending on your transit time. If you eat a varied diet rather than large quantities of one intensely pigmented food, the color effect gets diluted naturally.
Supplements and Medications
Iron supplements are one of the most common causes of dark green or black stool. The effect varies by the type of iron you take. In studies of pregnant women taking different iron formulations, about 31% of those on ferrous sulphate reported black stools, compared to 22% on ferrous fumarate and only 8% on ferrous bisglycinate. If dark stool from iron supplements bothers you, switching to a bisglycinate form may reduce the discoloration while still treating your deficiency.
Bismuth subsalicylate, the active ingredient in Pepto-Bismol and similar antacids, turns stool grayish-black and can also darken your tongue. This is harmless and temporary. It clears up on its own after you stop taking the medication.
Antibiotics can tint stool yellow or green by disrupting the gut bacteria responsible for converting bile into stercobilin. When those bacteria are knocked back, less stercobilin is produced, and stool loses its brown tone. Color typically normalizes as your gut bacteria recover after the course of antibiotics ends.
Pale or Clay-Colored Stool Needs Attention
If your stool is white, pale, or clay-colored, that signals a lack of bile reaching your intestines. This is different from a dietary color change and points to a potential problem with your liver, gallbladder, or bile ducts. A gallstone can block the bile duct, preventing bile from entering the small intestine. Tumors or other growths can do the same. Liver diseases like hepatitis and cirrhosis can also reduce bile production enough to lighten stool significantly.
Pale stool that persists for more than a day or two, especially if accompanied by dark urine, yellowing skin, or abdominal pain, warrants a medical evaluation. This is one color change you can’t fix with diet alone because it reflects a structural or functional problem in your digestive system.
How Gut Transit Time Affects Color
Speed matters. When food moves through your intestines too quickly (as with diarrhea), bile doesn’t have enough time to be fully broken down by bacteria. The result is green or yellowish stool, since bile starts out green-yellow before bacteria convert it to brown. This is why a stomach bug or food poisoning often produces green stool even when you haven’t eaten anything green.
Slowing things down helps. Staying hydrated, eating fiber-rich foods, and avoiding known irritants gives your gut bacteria the time they need to process bile into stercobilin. If you’ve had a bout of diarrhea, your stool color usually returns to brown within a day or two of normal digestion resuming.
Rebuilding Gut Bacteria After Disruption
Since gut bacteria are directly responsible for turning bile brown, anything that disrupts your microbiome can change stool color. Antibiotics are the obvious example, but illness, travel, and major dietary shifts can all alter your bacterial balance.
Probiotics can help speed recovery. A clinical trial published in Frontiers in Nutrition found that a multi-strain probiotic formula regulated stool frequency, consistency, and color toward normal levels in people with both constipation and diarrhea. Participants with constipation went from fewer than four bowel movements per week to more than six after the probiotic intervention, and colon transit time shortened significantly within 14 days. Faster but normalized transit means bile gets the right amount of bacterial processing, which restores brown color.
Fermented foods like yogurt, kefir, sauerkraut, and kimchi support the same bacterial populations. A combination of probiotic foods and dietary fiber gives your gut bacteria both the organisms and the fuel they need to resume normal bile metabolism.
Black or Red Stool: Know the Difference
Not all color changes are harmless. Black, tarry stool that you can’t trace to iron supplements or bismuth may indicate bleeding in your upper digestive tract (stomach or upper intestine). Blood that’s been digested turns dark and sticky rather than bright red.
Bright red blood in or on your stool typically comes from lower in the digestive tract, such as hemorrhoids, anal fissures, or conditions affecting the colon. If you notice heavy bleeding, large blood clots, bleeding that continues for several days, or you feel lightheaded or faint, that requires urgent medical care.
The key distinction: if you recently took Pepto-Bismol or iron, black stool is expected and harmless. If you didn’t, and especially if the stool looks tarry or sticky, that’s a different situation entirely.
A Quick-Reference Color Guide
- Green: Leafy greens, food dyes, iron supplements, antibiotics, or rapid transit (diarrhea). Usually resolves in one to three bowel movements.
- Yellow: Excess fat in stool, antibiotics, or rapid transit. Persistent yellow stool may suggest a malabsorption issue.
- Black: Iron supplements, bismuth medications, or upper GI bleeding. Check your medication list first.
- Pale or white: Bile duct blockage, gallstones, or liver disease. Needs medical evaluation if it persists.
- Red: Beets, red food dye, or lower GI bleeding. Rule out dietary causes before worrying.
Getting Back to Brown
For most people, the path back to brown stool involves one or two simple changes. Stop or reduce the food, supplement, or medication causing the discoloration, and your stool will typically normalize within a couple of days. If antibiotics disrupted your gut bacteria, adding probiotic-rich foods or a multi-strain supplement can shorten the recovery window. Eating a varied diet with adequate fiber supports healthy transit time, which gives bile the processing time it needs to produce that familiar brown pigment.
If your stool has been an unusual color for more than a week without an obvious dietary or medication explanation, or if it’s persistently pale, black and tarry, or bloody, that’s worth investigating with a healthcare provider. But if you just finished a three-day kale smoothie streak or started an iron supplement, your brown stool is likely just a few meals away.

