Why Does Your Poop Turn Green? Causes and When to Worry

Green poop usually means food moved through your intestines faster than normal, or you ate something with strong green pigment. In most cases, it’s completely harmless. All shades of brown and even green are considered typical stool colors.

How Poop Gets Its Color

Your liver produces bile, a digestive fluid that starts out yellow-green. When bile enters your intestines, bacteria get to work on it. A specific bacterial enzyme called bilirubin reductase breaks down the green pigment (bilirubin) into a compound called urobilinogen, which then gets further processed into stercobilin, a dark orange-brown pigment. That’s what gives stool its familiar brown color.

This conversion takes time. The average transit through the colon alone is 30 to 40 hours, with up to 72 hours still considered normal. When something speeds that process up, the bacteria don’t have enough time to fully convert the green bile pigments into brown ones. The result: green stool. This is the single most common explanation, and it’s why diarrhea from any cause often produces green-colored bowel movements.

Foods That Turn Stool Green

Large servings of leafy greens like spinach, kale, and broccoli contain enough chlorophyll to overpower the brown pigments and tint your stool green. Green juices and smoothies are frequent culprits because they concentrate those pigments into a single serving. The same goes for foods with artificial green or blue dyes: blue dye mixes with yellow bile to create green, so brightly colored candies, drinks, ice cream, and frosted baked goods can all cause it.

This type of color change is completely benign and clears up once the food passes through your system, typically within a day or two.

Iron Supplements and Medications

Iron supplements are one of the most reliable causes of darker or greener stool. Unabsorbed iron reacts with compounds in your gut and produces a dark green to greenish-black color. The NHS notes that darker stool is common when taking iron and is usually nothing to worry about. If your stool turns fully black and tar-like while on iron, though, that warrants a call to your doctor because it can sometimes indicate bleeding higher in the digestive tract.

Antibiotics can also trigger green stool by disrupting the gut bacteria responsible for converting bile pigments. With fewer of those bacteria at work, the green pigments pass through unconverted. This typically resolves after you finish the course of antibiotics and your gut flora recovers.

Green Stool in Babies

A newborn’s very first bowel movements, called meconium, are tarry and dark olive green to black. This is material swallowed in the womb: amniotic fluid, mucus, fats, and proteins. Within two to three days, stools gradually transition to a lighter green and then to yellow or tan as the baby begins digesting milk.

For breastfed babies, green stools can show up when a mother eats large amounts of green vegetables. The color of breast milk stool ranges from green to mustard yellow to brown, and all of those are normal. Formula-fed babies tend to have green stool more often. The added iron in many formulas can produce dark green or greenish-black stools, and specialized formulas made with hydrolyzed protein (often used for milk or soy allergies) are another common cause.

One situation worth paying attention to is cow’s milk protein allergy. In addition to persistent green, watery stools, babies with this allergy may show vomiting, eczema, excessive gas, fussiness, facial swelling, or wheezing. This affects both formula-fed babies (since most formulas contain cow’s milk protein) and occasionally breastfed babies who are reacting to dairy in the mother’s diet.

Digestive Conditions and Infections

Any illness that speeds up digestion can produce green stool. Stomach bugs, food poisoning, and infections like salmonella move food through your system so quickly that bile stays green. Conditions like irritable bowel syndrome, celiac disease, and inflammatory bowel disease can also cause rapid transit during flare-ups.

Bacterial infections sometimes produce distinctly green diarrhea because the infectious organisms themselves contribute pigments, or because the body dumps extra bile into the intestines as part of the inflammatory response. In these cases, the green color is less important than the accompanying symptoms: fever, cramping, dehydration, or blood in the stool.

When Green Stool Signals a Problem

An isolated episode of green stool with no other symptoms is almost never a concern. The color alone doesn’t indicate disease. What matters is context: green stool that persists for more than a few days without an obvious dietary explanation, or green stool paired with severe diarrhea, abdominal pain, fever, or weight loss, is worth investigating.

Bright red or black, tarry stool is a different situation entirely. These colors can indicate bleeding in the digestive tract and should prompt immediate medical attention. Green, by contrast, is part of the normal color spectrum for stool and usually just means your gut processed things a little faster than usual.