What Does It Mean When You Poop Green?

Green poop is almost always harmless. It usually means food moved through your intestines faster than normal, or you ate something with strong green pigment. In most cases, the color returns to brown within a day or two without any treatment.

Why Stool Is Normally Brown

Your liver produces bile, a digestive fluid that starts out green. As bile travels through your digestive tract, gut bacteria and enzymes chemically transform it step by step. First, the green pigment in bile gets converted into a yellow-orange compound. Then, bacteria in your large intestine break that down further into a final brown pigment called stercobilin. This is what gives normal stool its characteristic color.

The entire process takes time. Your large intestine needs hours to complete these chemical conversions. When anything disrupts that timeline or overwhelms the system with green pigment, the result is green stool.

Rapid Transit: The Most Common Cause

The single most frequent reason for green poop is that food moved through your large intestine too quickly. When transit speeds up, bile doesn’t have time to break down completely. It stays green instead of progressing through its normal color change to brown. Diarrhea is the classic trigger here, but anything that accelerates digestion (stress, a stomach bug, caffeine, certain medications) can have the same effect.

If your green stool is also loose or watery, rapid transit is very likely the explanation. Once your digestion returns to its normal pace, the brown color comes back on its own.

Foods That Turn Stool Green

Chlorophyll, the pigment that makes plants green, passes through your digestive system largely intact. Eating a large amount of green vegetables can easily tint your stool. The most common culprits are spinach, kale, and broccoli, but avocados, fresh herbs, matcha, and pistachios all contain enough chlorophyll to do it. Blueberries can also produce green shades in some people.

Artificial food coloring is another frequent cause. Brightly frosted cupcakes, green candy, sports drinks, and colored cereals continue tinting whatever they touch even after you swallow them. If you recently ate something with vivid dyes (especially blue or green), that’s likely your answer.

Supplements and Medications

Iron supplements are well known for changing stool color. They can produce dark green or even blackish poop. This happens in two ways: some liquid or chewable formulations contain colorants that directly tint stool, and iron can also speed up intestinal movement, giving bile less time to complete its green-to-brown conversion.

Certain antibiotics can also shift stool toward green or yellow. Antibiotics alter the balance of gut bacteria, and since those bacteria are responsible for the final chemical steps that turn bile brown, disrupting them can leave stool an unusual color. This typically resolves after you finish the course of medication.

Infections That Cause Green Stool

Bacterial infections like Salmonella and E. coli, viral infections like norovirus, and parasites like Giardia can all produce green diarrhea. These infections cause a rapid “gush” of unabsorbed bile through the intestines, and the speed alone keeps the stool green. You’ll typically have other symptoms alongside the color change: cramping, nausea, fever, or vomiting.

Food poisoning is a common scenario. If green stool appears suddenly with abdominal pain and diarrhea within hours or days of eating something questionable, an infection is a reasonable explanation. Most of these illnesses resolve on their own within a few days, though staying hydrated is important.

Green Poop in Babies

Green stool in infants is common and usually not a concern. Newborns pass meconium in the first few days of life, which is dark green to black. As feeding gets established, stool transitions through shades of green before settling into the typical yellow (for breastfed babies) or tan (for formula-fed babies).

After that initial transition, green poop in breastfed infants can happen if the baby doesn’t finish nursing on one side. The earlier, lower-fat milk gets digested differently than the higher-fat milk that comes later in a feeding, and this can affect stool color. Babies on protein hydrolysate formula (used for milk or soy allergies) also tend to have green stool. In breastfed infants, a lack of certain intestinal bacteria that normally complete the bile conversion process can keep things green as well. Diarrhea in babies produces green stool for the same rapid-transit reasons it does in adults.

When Green Stool Signals a Problem

Isolated green poop with no other symptoms is rarely a medical issue. The color alone doesn’t indicate disease. What matters is the pattern and what comes with it. Green stool that persists for more than a few days without an obvious dietary explanation deserves attention, particularly if it’s accompanied by abdominal pain, unexplained weight loss, bleeding, fever, or vomiting. These combinations can point to an ongoing infection, an inflammatory condition, or a problem with bile production or flow that needs evaluation.

Black or red stool is a more urgent signal than green. Black can indicate bleeding higher in the digestive tract (though iron supplements also cause this). Red or maroon stool suggests bleeding lower in the intestines. Green, by comparison, sits firmly in the “probably fine” category for most people most of the time.