What Does It Mean When Your Poop Is Green?

Green poop is almost always harmless. It usually means you ate something with a strong pigment, like leafy greens or food dye, or that food moved through your digestive system faster than usual. In most cases, the color returns to its normal brown within a day or two without any intervention.

Why Poop Is Normally Brown

Your liver produces bile, a greenish-yellow fluid that helps break down fats during digestion. As bile travels through your intestines, bacteria in your colon convert it into a pigment called stercobilin. That pigment is what gives stool its characteristic medium to dark brown color. About 80% of bile’s breakdown products get converted to stercobilin and excreted in your feces.

When something interrupts that process, whether it’s speed, diet, or a change in gut bacteria, bile doesn’t fully convert. The result is stool that retains some of that original green tint.

Food Is the Most Common Cause

Chlorophyll, the pigment that makes plants green, can do the same to your stool. Eating large amounts of spinach, kale, broccoli, avocados, fresh herbs, or matcha (powdered green tea) is one of the most frequent reasons for a green toilet bowl. Pistachios can have the same effect because they’re packed with chlorophyll along with other plant pigments.

Naturally blue foods like blueberries and blackberries can also turn stool green. The blue pigment mixes with the yellow of bile and produces a green shade, which surprises people who wouldn’t think to connect berries to green poop.

Artificial food dyes are another culprit. A synthetic dye called Blue No. 1, found in grape-flavored drinks, candies, cake frosting, freeze pops, and certain medications, can turn stool a bright, fluorescent green when consumed in large enough quantities. Brightly colored frosting or handfuls of rainbow candy introduce enough dye to visibly change stool color for a day or two.

Fast Digestion Keeps Bile Green

When food moves through your intestines faster than normal, gut bacteria don’t have enough time to fully break bile down into its brown pigment. The stool comes out still carrying that greenish color. This is why diarrhea from any cause, whether it’s a stomach bug, stress, or food intolerance, often produces green or greenish stool.

Anything that speeds up gut motility can trigger this. A high-fiber meal, a strong cup of coffee, certain spices like turmeric (which stimulates bile secretion), or even anxiety can push food through quickly enough that bile stays partially unconverted. Once your digestion normalizes, so does the color.

Iron Supplements and Medications

Iron supplements are well known for changing stool color, typically to a very dark green that can look almost black. This is a normal side effect and some doctors actually consider it a sign the supplement is being absorbed. If the color bothers you, lowering your dose with your doctor’s guidance usually helps.

Antibiotics can also cause green stool by disrupting the balance of gut bacteria responsible for converting bile to its brown form. When those bacterial populations are reduced, bile passes through less processed, and the stool takes on a greener hue. This typically resolves once you finish the course of antibiotics and your gut bacteria recover.

Infections That Cause Green Stool

Bacterial and parasitic infections that cause watery diarrhea often produce green stool for the same reason: rapid transit. When your gut is inflamed and pushing contents through quickly, bile doesn’t have time to change color. Infections from bacteria like Salmonella or parasites like Giardia commonly cause this.

The green color alone isn’t what signals an infection. It’s the combination of symptoms that matters: persistent watery diarrhea lasting more than a couple of days, fever, cramping, or signs of dehydration like dark urine and dizziness. The color itself is just a byproduct of how fast everything is moving.

Green Poop in Babies

Parents of newborns and infants see green stool frequently, and it’s usually normal. Newborns pass dark green-black meconium in the first few days of life, which transitions to a lighter green and then to the yellow, seedy stool typical of breastfed babies.

In breastfed infants, persistent green, frothy, or explosive stools can signal something called lactose overload. This happens when milk moves through the baby’s system too quickly for all the lactose to be digested. Fat in breastmilk normally slows digestion enough for lactose to break down completely, but if a mother has a strong milk supply or feeds are short, the baby may get proportionally less of the fat-rich milk that comes later in a feeding. The result is gassy discomfort and green, runny stools. Adjusting feeding patterns, such as letting the baby finish one breast more fully before switching, often resolves it.

Formula-fed babies can also have green stool, particularly from formulas that contain iron fortification.

After Gallbladder Removal

Your gallbladder stores and concentrates bile, releasing it in controlled amounts when you eat. After it’s removed, bile flows continuously from the liver directly into the small intestine. This less regulated flow means more bile acids can reach the large intestine, where they act as a mild laxative. The combination of extra bile and faster transit can produce greenish, loose stools, especially in the weeks following surgery. For most people this improves over time as the body adjusts.

When the Color Actually Matters

Green stool on its own, especially if you can trace it to something you ate, is not a concern. It’s one of the most common color variations and sits well within the normal range.

The colors that do warrant attention are bright red and black. Bright red stool can indicate bleeding in the lower digestive tract, while black, tarry stool may signal bleeding higher up, such as in the stomach. Both of these deserve prompt medical evaluation. Green stool that persists for more than a few days without an obvious dietary explanation, or that comes with fever, severe cramping, or bloody diarrhea, is also worth investigating since it could point to an infection or inflammatory condition that needs treatment.