Why Is My Poop Green? Causes and When to Worry

Green poop is almost always harmless. In most cases, it comes from something you ate, a supplement you’re taking, or food moving through your digestive system a little faster than usual. Occasionally it signals an infection or digestive issue worth paying attention to, but the color alone is rarely a reason for concern.

Why Stool Is Normally Brown

Your liver produces bile, a yellow-green fluid that helps break down fats in your small intestine. When bile first enters your digestive tract, it’s green. As it travels through your intestines, bacteria and enzymes gradually break down the green pigment and convert it into brown. That’s why healthy stool is typically some shade of brown: the bile has had enough transit time to fully change color.

When something speeds up that process, or when you eat enough green-pigmented food to override the brown, your stool comes out green instead.

Food Is the Most Common Cause

If you’ve been eating a lot of leafy greens, that’s your most likely answer. Spinach, kale, and broccoli are packed with chlorophyll, the same pigment that makes plants green. Your body doesn’t fully break down chlorophyll during digestion, so it passes through and tints your stool. The more you eat, the more vivid the green.

It’s not just salads. Avocados, fresh herbs, matcha, pistachios, and even blueberries can shift stool toward green. Pistachios contain enough chlorophyll to do it on their own. The effect is dose-dependent: a handful of spinach probably won’t change anything, but a large green smoothie easily can.

Artificial food dyes are another frequent culprit. Brightly frosted cupcakes, flavored drink mixes, ice pops, and candy with blue or green dyes continue tinting whatever they touch as they pass through your system. Blue dye in particular mixes with yellow bile and creates a surprisingly vivid green. If your stool turns green a day or two after a birthday party or a brightly colored sports drink, the dye is almost certainly the explanation.

Iron Supplements and Medications

Iron supplements are well known for changing stool color. They typically produce a very dark green that can look almost black. This happens because your body only absorbs a portion of supplemental iron, and the leftover iron reacts with digestive enzymes as it passes through. The color change is harmless and expected. If you stop taking the supplement, your stool color returns to normal within a few days.

Some antibiotics can also tint stool green or yellow-green. They do this by disrupting the balance of gut bacteria that normally convert bile pigments to brown. This side effect usually resolves once you finish the course of medication.

Rapid Transit and Digestive Issues

When food moves through your intestines faster than normal, bile doesn’t have time to complete its color change from green to brown. This is why diarrhea often comes out green regardless of what you ate. Anything that accelerates digestion can have this effect: a stomach bug, food poisoning, stress, or a bout of irritable bowel syndrome.

People who’ve had their gallbladder removed sometimes notice green or loose stools, especially in the weeks after surgery. Without the gallbladder to store and release bile in controlled amounts, bile flows more continuously into the intestine. The excess bile acids can act as a laxative, speeding transit and preventing the full brown color change. For most people this improves over time as the body adapts.

Infections That Cause Green Stool

Bacterial infections like salmonella and certain parasites can inflame the intestinal lining and cause rapid transit, producing watery green diarrhea. In these cases, the green color is a secondary effect of the infection rather than something dangerous on its own. The more important symptoms to watch for are fever, cramping, bloody stool, or diarrhea lasting more than a couple of days.

A common stomach virus can do the same thing. If you’re dealing with nausea, vomiting, and green watery stools that started suddenly, a viral gastroenteritis is a likely explanation. The green color will resolve as the illness passes and your digestion returns to its normal pace.

Green Stool in Babies

Green poop in infants is common and usually normal. Breastfed babies sometimes produce green stool when they don’t finish feeding on one side before switching to the other. The milk that comes first in a feeding session is lower in fat, and when a baby gets more of this thinner milk, it can speed digestion and produce green stool. Letting the baby finish one breast more completely before offering the other often resolves this.

Formula-fed babies on protein hydrolysate formulas, which are designed for infants with milk or soy allergies, frequently have green stool as a normal side effect of the formula’s composition. Transitioning between formula brands can also temporarily change stool color. In both cases, as long as the baby is feeding well, gaining weight, and not showing signs of distress, the green color is not a concern.

When Green Stool Needs Attention

A single green bowel movement, or even a few days of green stool after a big salad or a course of antibiotics, is nothing to worry about. The situations that warrant a call to your doctor are when green stool persists for more than a few days without an obvious dietary explanation, or when it’s accompanied by other symptoms: persistent diarrhea, blood in the stool, significant abdominal pain, or fever. Green stool paired with ongoing diarrhea also raises the risk of dehydration, especially in young children and older adults. If you or your child shows signs of dehydration (dry mouth, dark urine, dizziness), that’s worth prompt medical attention regardless of stool color.