Why Is My Poop Green? Causes and When to Worry

Green poop is almost always harmless. The most common causes are eating green vegetables, consuming foods with artificial dyes, or having stool move through your intestines faster than usual. In most cases, the color returns to its normal brown within a day or two once the trigger passes.

How Poop Gets Its Color

Your liver produces bile, a yellow-green fluid that helps digest fats. As bile travels through your intestines, bacteria break it down and chemically transform it into a brown pigment. That process takes time. If everything moves at a normal pace, your stool comes out brown. If something speeds up transit or adds its own pigment to the mix, you get green.

Foods That Turn Stool Green

Chlorophyll, the pigment that makes plants green, can do the same to your stool. Spinach, kale, broccoli, avocados, fresh herbs, matcha, and pistachios are all rich in chlorophyll. Eat enough of any of them and your next bowel movement may look noticeably green. This is completely normal and means nothing more than “you ate a lot of vegetables.”

Artificial food dyes are another common culprit. Brightly frosted cupcakes, rainbow candy, green-dyed drinks, and colorful cereals all contain dyes that keep tinting whatever they touch as they pass through your digestive system. Blue and green dyes are especially likely to show up in your stool. If you eat enough of a mix of colors, they can even combine to produce dark green or black-looking stool.

Fast-Moving Stool and Bile

When food moves through your intestines faster than normal, bile doesn’t have enough time to fully break down into its usual brown pigment. The result is stool that still carries bile’s original green color. This is why diarrhea from a stomach bug, food intolerance, or stress often comes out green. Once your digestion returns to its normal pace, the color follows.

Anything that speeds up your gut can trigger this: a viral illness, food poisoning, too much caffeine, anxiety, or even a sudden increase in fiber. The green color itself isn’t the problem. It’s just a visual sign that things moved quickly.

Iron Supplements and Medications

Iron supplements frequently turn stool dark green, sometimes so dark it looks 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 the dose (with your doctor’s guidance) will typically lighten things up.

Certain antibiotics can also cause green stool by disrupting the gut bacteria responsible for converting bile to its brown pigment. The effect is temporary and resolves once you finish the course of medication and your gut bacteria repopulate.

Green Stool in Babies

Green poop in infants is especially common and rarely a concern. Newborns pass dark greenish-black meconium in their first few days, which is perfectly expected. After that, several things can keep stool green:

  • Foremilk/hindmilk imbalance. If a breastfed baby doesn’t finish nursing on one side, they may get more of the lower-fat milk at the beginning of a feeding and miss the higher-fat milk toward the end. This can affect digestion and produce green stool.
  • Specialty formulas. Protein hydrolysate formulas, used for babies with milk or soy allergies, commonly cause green poop.
  • Immature gut bacteria. Breastfed infants sometimes lack the full range of intestinal bacteria needed to convert bile pigments to brown. As their gut matures, the color typically shifts.
  • Diarrhea. Just like in adults, rapid transit in babies means bile stays green.

When Green Poop Signals Something More

Occasional green stool that you can trace to something you ate, a supplement you’re taking, or a brief bout of diarrhea doesn’t need medical attention. It should resolve on its own within a couple of days.

Pay closer attention if the green color persists for more than a few days without an obvious dietary explanation, or if it comes with any of the following: severe abdominal pain or cramping, fever, bloody or jet-black stool, persistent diarrhea, signs of dehydration, or unexplained weight loss. Any sudden, lasting change in stool color that isn’t connected to your diet is worth mentioning to your doctor, regardless of the specific shade.