Why Is My Poop Green? Causes and When to Worry

Green poop is almost always caused by something harmless: a food you ate, a supplement you’re taking, or digestion that moved a little faster than usual. It rarely signals a serious problem, and in most cases it resolves on its own within a day or two.

How Bile Makes Your Poop Green

Your liver continuously produces bile, a bright green fluid that helps break down fats. As bile travels through your intestines, bacteria chemically transform it from green to the familiar brown color you expect in stool. This process takes time. If food moves through your digestive tract faster than normal, bile doesn’t fully break down, and your stool comes out green.

Anything that speeds up digestion can trigger this. A stomach bug, a stressful day, too much coffee, or even a large meal can push things along quickly enough that bile stays green. Loose or watery stools are more likely to be green for exactly this reason: they spent less time in your colon.

Foods That Turn Stool Green

This is the most common explanation, and the one people overlook most often. Leafy greens like kale, spinach, and broccoli contain chlorophyll, a pigment strong enough to color your stool even after digestion. You don’t need to eat an unusual amount. A big salad or a green smoothie can do it.

Artificial food coloring is the other frequent culprit. Green dyes show up in places you might not expect: frosting, candy, sports drinks, ice cream, and certain cereals. Purple and blue dyes can also produce green stool when they mix with yellow bile during digestion. If you ate something brightly colored in the last 24 to 48 hours, that’s likely your answer.

Iron Supplements and Medications

Iron supplements commonly cause stool to turn a dark green that can look almost black. This is normal and some physicians actually consider it a sign the supplement is being absorbed properly. If the color bothers you, lowering your dose (with your doctor’s guidance) will usually lighten things up.

Certain antibiotics can also cause green stool by disrupting the gut bacteria responsible for converting bile to its usual brown. When those bacteria are temporarily reduced, bile passes through less processed. This typically resolves once you finish the course of medication and your gut flora recovers.

Infections and Digestive Conditions

Bacterial infections, particularly from organisms like Salmonella or Clostridioides difficile, can cause persistent green diarrhea. These infections inflame the intestinal lining and accelerate transit time, giving bile no chance to change color. Viral stomach bugs do the same thing, though they usually clear within a few days.

Irritable bowel syndrome (IBS) is another possible cause. During flare-ups, the colon may contract more frequently, pushing stool through before bile is fully processed. People with IBS who experience periods of diarrhea-dominant symptoms are more likely to notice green stool intermittently.

After Gallbladder Removal

If you’ve had your gallbladder removed, green stool may become a recurring visitor. The gallbladder normally stores and concentrates bile, releasing it in measured amounts when you eat fat. Without it, bile drips continuously from the liver directly into the small intestine. This can send more bile acids into the large intestine than your body can process, which acts as a natural laxative. The combination of excess bile and faster transit often produces greenish, loose stools, especially after fatty meals.

Green Poop in Babies

Green stool in infants has its own set of causes and is very common. Newborns pass meconium (a dark, tarry, greenish-black substance) in the first few days of life, which is completely normal.

In breastfed babies, green poop can happen when an infant doesn’t finish feeding on one side. The earlier milk is thinner and lower in fat, while the fattier “hindmilk” comes later in the feeding. Missing that higher-fat portion can affect how breast milk is digested, producing greener stool. Babies on protein hydrolysate formula, used for milk or soy allergies, also commonly have green poop. Breastfed infants who haven’t yet developed a full complement of intestinal bacteria may see green stools as well, and this resolves as their gut matures.

When Green Poop Needs Attention

A single episode of green poop with no other symptoms is almost never a concern. The color alone isn’t dangerous. But certain combinations of symptoms suggest something more is going on. Contact your doctor if green stool comes with severe abdominal pain or cramping, fever, bloody or jet-black poop, severe and persistent diarrhea, signs of dehydration, or unexplained weight loss.

The key threshold is persistence. If the green color lasts more than a few days and you can’t connect it to a food, supplement, or medication, it’s worth mentioning to your doctor. A sudden or lasting change in stool color that isn’t diet-related deserves a closer look, regardless of what the color is.