Blue-green poop is almost always harmless. In the vast majority of cases, it comes from something you ate, a supplement you’re taking, or food moving through your digestive system a little faster than usual. It typically resolves on its own within a day or two once the trigger passes.
That said, there are a few situations where the color signals something worth paying attention to. Here’s how to tell the difference.
Why Stool Is Normally Brown
Your liver produces bile, a greenish fluid that helps you digest fats. As bile travels through your intestines, enzymes chemically break it down, gradually shifting its color from green to yellow to brown. By the time stool reaches the end of the line, it’s the familiar brown shade most people expect.
Anything that interrupts this process can leave stool looking green, blue-green, or even bright green. The most common interruption is speed: when food moves through your large intestine too quickly (during a bout of diarrhea, for example), bile doesn’t have time to fully break down. The result is stool that still carries that original green pigment.
Foods That Turn Stool Blue or Green
Diet is the single most common reason for a blue-green color change, and it’s completely benign.
- Blueberries can paint stool bluish, and eating a large amount can push the shade so dark it looks almost black. Greenish tones are common too, since the blue pigment mixes with yellow bile.
- Green vegetables like spinach, kale, and broccoli contain chlorophyll, the pigment that makes plants green. Eat enough of them and your stool will follow suit. Avocados, fresh herbs, matcha, and pistachios have the same effect.
- Artificial food dyes are especially potent. Brightly frosted cupcakes, blue sports drinks, or handfuls of rainbow candy can produce vivid, unnatural-looking stool. When multiple dye colors mix in the gut, the result is often a deep blue-green or even black.
If you can trace the color back to something you ate in the last 24 to 48 hours, that’s your answer. Once the food works its way out, normal color returns.
Medications and Supplements
Several common over-the-counter products change stool color as a harmless side effect. Iron supplements frequently darken stool and give it a green or blackish-green hue. The active ingredient in some antidiarrheal medications (the pink liquid many people keep in their medicine cabinet) reacts with sulfur in your digestive tract and can turn stool dark green to black. Aluminum-based antacids can also produce greenish stool.
Antibiotics work differently. They don’t add pigment directly, but they can disrupt the normal balance of gut bacteria, which changes how bile is processed and can shift stool color temporarily. If you recently started or finished a course of antibiotics and notice blue-green stool, that’s a likely explanation.
Fast Transit and Digestive Upset
When your gut is irritated, whether from a stomach bug, food intolerance, or stress, everything speeds up. That faster transit time is the reason diarrhea so often comes out green or blue-green. The bile simply didn’t have enough contact time with intestinal bacteria to complete its color change to brown.
Infections from bacteria like Salmonella, the parasite Giardia, and viruses like norovirus all accelerate intestinal movement and commonly produce green stool. The color itself isn’t the concern in these cases. What matters is the full picture: watery diarrhea, cramping, fever, or vomiting alongside the color change suggest an infection rather than a dietary cause. A stomach bug that resolves within a few days is usually manageable at home, but prolonged symptoms or signs of dehydration deserve medical attention.
Blue-Green Stool in Babies
Parents often worry about unusual stool colors in infants, but the range of normal is surprisingly wide. After a newborn passes meconium (the dark, tarry first stools), all shades of yellow, brown, and green are considered normal. Breastfed babies tend toward a mustardy yellow, while formula-fed babies often produce a yellow-tan stool with hints of green.
Green or blue-green stool in a baby usually means the same things it means in adults: something in the diet (or the breastfeeding parent’s diet) caused it, or food moved through a little quickly. It’s not a sign of a problem on its own. Stool that is white, pale gray, or consistently red is far more significant in infants and worth a prompt call to the pediatrician.
When the Color Actually Matters
Blue-green stool by itself, with no other symptoms, is rarely a medical concern. The color becomes more meaningful when it appears alongside persistent diarrhea lasting more than a few days, fever, severe abdominal pain, or signs of dehydration like dark urine and dizziness. Those symptoms point toward an infection or another condition that needs evaluation, and the green color is just a byproduct of the underlying problem.
The stool colors that do warrant prompt attention are different from blue-green. Black, tarry stool (when you’re not taking iron or bismuth) can indicate bleeding in the upper digestive tract. Bright red stool suggests bleeding lower down. White or clay-colored stool may signal a bile duct blockage. These are the colors that genuinely raise red flags, and they call for a conversation with a healthcare provider regardless of other symptoms.
For blue-green? Think back over what you ate, what supplements you’re taking, and whether your digestion has been running faster than normal. In nearly every case, that’s your explanation, and normal color will return within a couple of days.

