Why Do I Poop Green? Causes and When to Worry

Green poop is almost always harmless. It usually means food moved through your intestines faster than normal, you ate something with a strong green pigment, or you’re taking a supplement that changes stool color. To understand why, it helps to know what makes poop brown in the first place.

How Poop Gets Its Normal Color

Your liver produces bile, a greenish fluid that helps break down fats in your small intestine. Bile starts out green because of a pigment called biliverdin, which your body quickly converts to bilirubin, a yellowish compound. As digested food travels through the intestines, bacteria (primarily Clostridia and E. coli) break bilirubin down further into stercobilin, the pigment responsible for the familiar brown color of stool.

This bacterial conversion takes time. If food passes through your gut too quickly, the bacteria don’t have enough time to fully process the bile pigments. The result is stool that still carries some of that original green color. This is the single most common reason for an unexpected green bowel movement, and it’s why green stool often accompanies diarrhea of any kind.

Foods That Turn Stool Green

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 most common culprits, but avocados, fresh herbs, matcha, and even pistachios contain enough chlorophyll to shift stool color. You don’t need to eat an unusual amount. A large salad or a green smoothie can be enough.

Artificial food dyes are the other big dietary trigger. Blue and green dyes found in candy, frosted cupcakes, freeze pops, fruit snacks, and brightly colored drinks continue tinting whatever they touch as they move through your digestive tract. Purple or blue dyes can mix with yellow bile and produce a green result, which catches people off guard since nothing they ate looked green going in.

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 considered normal and some doctors even view it as a sign the iron is being properly absorbed. If the color change bothers you, a dosage adjustment can help, but it’s not a sign of a problem.

Antibiotics can also cause green stool, though for a different reason. By killing off some of the gut bacteria responsible for converting bile pigments to stercobilin, antibiotics disrupt the normal color-change process. With fewer bacteria doing that work, bile pigments pass through in a less-processed state, keeping their greenish tint. This typically resolves once you finish the course of antibiotics and your gut bacteria repopulate.

Rapid Transit and Digestive Upset

Any condition that speeds up digestion can produce green stool. Stomach bugs, food poisoning, food intolerances, and even stress or anxiety that affects gut motility all fall into this category. When your intestines contract more forcefully or frequently than usual, food simply doesn’t spend long enough in the colon for bacteria to finish their work on bile pigments.

If your green stool comes with watery diarrhea, cramping, nausea, or fever, the color itself isn’t the concern. It’s really just a visible marker that things are moving fast. The underlying cause, whether a viral infection, bacterial illness, or something else, is what matters. Green diarrhea that lasts more than a couple of days, contains blood, or comes with a high fever deserves medical attention for the diarrhea itself, not the color.

Green Poop in Babies

Green stool in infants has its own set of causes and is rarely a sign of anything serious. Newborns pass meconium in their first few days, a thick, dark green-black substance that is completely normal. As feeding establishes, stool transitions through shades of green before settling into the yellow, seedy appearance typical of breastfed babies or the tan color common with formula.

After that transition period, green stool in breastfed babies sometimes happens when a baby doesn’t fully finish nursing on one side. The earlier milk (foremilk) is lower in fat than the richer milk that comes later in a feeding (hindmilk). When a baby gets mostly foremilk, the lower fat content affects how the milk is digested and can produce green stool. Switching sides too quickly or short feeding sessions are the usual cause.

Babies on protein hydrolysate formula, the type prescribed for milk or soy allergies, also tend to have green stool. This is a known effect of how the broken-down proteins in that formula interact with bile and is not a reason for concern. Breastfed infants who haven’t yet developed a full population of intestinal bacteria may also produce green stool simply because fewer bacteria are available to convert bile pigments.

When Color Actually Matters

Green is one of the least worrisome changes in stool color. The colors that do warrant prompt attention are bright red and black. Bright red typically signals bleeding in the lower digestive tract, while black, tarry stool can indicate bleeding higher up, such as in the stomach or upper intestine. A very dark green from iron supplements can mimic this black appearance, so context matters.

Pale, clay-colored, or white stool is another color worth taking seriously, as it can indicate a problem with bile production or flow from the liver. Green stool that persists for weeks without an obvious dietary or medication explanation is worth mentioning to your doctor, but on its own, a few days of green poop is about as medically significant as eating a beet and seeing pink in the toilet.