What Green Poop Means: Causes and When to Worry

Green poop is almost always harmless. In most cases, it means you ate something green, took a supplement that changed your stool color, or food moved through your digestive system faster than usual. Stool gets its typical brown color from bile, a digestive fluid your liver produces. As bile travels through your intestines, enzymes chemically break it down, gradually shifting it from green to brown. When that process gets interrupted or overwhelmed by pigments in your food, the result is a green toilet bowl.

Why Bile Matters for Stool Color

Your liver constantly produces bile, a bright green fluid that helps digest fats. As bile makes its way through your small and large intestines, enzymes transform it step by step, and its color shifts from green to yellow-green to brown. That final brown shade is what most people see on a normal day.

If food moves through the large intestine too quickly, bile doesn’t have time to complete that chemical transition. This is why diarrhea from any cause, whether a stomach bug, food intolerance, or stress, often produces green stool. The faster transit essentially “freezes” the bile at an earlier stage of breakdown. Once your digestion returns to its normal pace, the brown color comes back.

Foods That Turn Stool Green

The most common reason for green poop is simply eating green things. Chlorophyll, the pigment that makes plants green, can do the same to your stool when you eat enough of it. Spinach, kale, and broccoli are the usual suspects, but the list extends to avocados, fresh herbs, matcha, and even pistachios (which get their color from chlorophyll and related plant pigments).

Blue and purple foods can also be responsible. Blueberries and blackberries can shift stool from its normal brown toward shades of green, which surprises people who expect the color to stay dark purple. The way these pigments interact with bile and digestive enzymes produces green rather than the blue or purple you’d predict.

Artificial food dyes are another frequent culprit, especially in children. Green and blue dyes found in candy, fruit snacks, cake frosting, freeze pops, and brightly colored drinks pass through the digestive tract largely unchanged. Studies on synthetic green dyes have shown that nearly all the color is excreted in feces without being absorbed or broken down. So if your child eats a green popsicle, expect a green diaper or green toilet water a day or so later.

Supplements and Medications

Iron supplements are one of the most reliable causes of dark green (sometimes almost black) stool. This is normal and some physicians actually consider it a sign the supplement is being absorbed properly. If the color change bothers you, a lower dose may reduce it, but the green itself isn’t a problem.

Certain antibiotics can tint stool yellow or green by disrupting the balance of gut bacteria that normally help with bile breakdown. Once you finish the course, color typically returns to normal within a few days.

Green Stool in Babies

Green poop is especially common in newborns and infants, and parents understandably worry about it. In the first few days of life, babies pass meconium, a dark greenish-black stool that’s completely normal. After that, breastfed babies can produce green stool for several reasons: not finishing a full feed on one side (which means they get more of the lower-fat foremilk), a lack of the typical intestinal bacteria that help process bile, or simple diarrhea.

Formula-fed babies on protein hydrolysate formulas, the kind used for milk or soy allergies, also tend to have greener stools. This is expected and not a sign that anything is wrong with the formula or the baby’s digestion.

When Diarrhea Is the Cause

Any illness that speeds up digestion can produce green stool. Stomach viruses, food poisoning, and bacterial infections all cause rapid transit through the intestines, giving bile less time to convert to brown. Parasitic infections can do the same. In these cases, the green color is a side effect of the diarrhea itself, not a separate problem to worry about.

The green color alone doesn’t tell you what kind of infection you have. What matters more is how you feel overall. Watery diarrhea with fever, cramping, or blood is worth medical attention regardless of the color. Green stool that comes with diarrhea lasting more than a few days, significant dehydration, or worsening abdominal pain deserves a call to your doctor. Green stool without those symptoms, particularly if you can trace it back to something you ate, is almost certainly nothing to worry about.

How Long Green Stool Lasts

If food is the cause, green stool typically resolves within one to three days after you stop eating the responsible food. Cutting back on spinach or skipping the matcha lattes for a couple of days is usually all it takes. Iron supplements will keep producing dark green stool for as long as you take them, so the color change is ongoing rather than temporary.

If diarrhea is driving the color change, the green fades once bowel movements return to a normal frequency and consistency. For most viral stomach bugs, that means three to five days. For antibiotic-related changes, stool color often normalizes within a week of finishing the medication.

Colors That Are More Concerning

Green is one of the least worrisome stool color changes. The colors that do warrant prompt attention are black (tarry and sticky, which can indicate bleeding in the upper digestive tract), bright red (possible bleeding in the lower intestines or colon), and pale white or clay-colored (which can signal a problem with bile production or a blocked bile duct). If you see any of these and can’t connect them to something you ate, like beets for red or bismuth-containing antacids for black, it’s worth getting checked.