What Does It Mean When Your Poop Comes Out Green?

Green poop usually means one of two things: you ate something green, or food moved through your digestive system faster than normal. In most cases, it’s completely harmless and resolves on its own within a day or two.

To understand why, it helps to know what gives stool its usual brown color. Your liver produces bile, a yellow-green fluid that helps digest fats. As bile travels through your intestines, enzymes chemically break it down, gradually shifting its color from green to brown. Anything that changes this process, whether it’s a big spinach salad or a bout of diarrhea, can leave your stool looking green.

Foods That Turn Stool Green

The most common culprit is chlorophyll, the pigment that makes plants green. Eating generous amounts of spinach, kale, broccoli, or other leafy greens delivers enough chlorophyll to tint your stool bright green. Avocados, fresh herbs, and matcha (powdered green tea) can do the same. Even pistachios owe their green color to chlorophyll, and eating a lot of them can show up in the toilet.

Blue and purple foods are surprisingly common offenders too. Blueberries and blackberries can temporarily shift brown stool toward green because of how their deep pigments mix with bile during digestion.

Artificial food dyes are another frequent cause. The coloring in candy, fruit snacks, cake frosting, freeze pops, and brightly colored drinks keeps tinting whatever it touches even after you swallow it. A cupcake with vivid blue or green frosting is often enough to produce a startling shade the next day.

Why Diarrhea Causes Green Stool

When food moves through your large intestine faster than usual, bile doesn’t have enough time to fully break down. The result is stool that still carries bile’s original yellow-green color instead of the typical brown. This is why a stomach bug or food poisoning episode often produces green, watery stools even if you haven’t eaten anything green.

Any kind of diarrhea can cause this, whether it’s from stress, a dietary reaction, or an infection. The faster the transit, the greener the stool tends to be.

Infections That Produce Green Stool

Several specific infections cause the kind of rapid-transit diarrhea that leads to green stool. Bacterial infections like Salmonella and E. coli, viral infections like norovirus, and parasitic infections like Giardia can all trigger a sudden “gush” of unabsorbed bile through the intestines. In these cases, green stool is typically accompanied by other symptoms: cramping, nausea, fever, or frequent watery bowel movements.

If your green stool comes with a fever above 102°F, bloody or black stools, severe abdominal pain, or diarrhea lasting more than three days, those are signs the underlying cause needs medical attention. Green color alone, without those red flags, is rarely a concern.

Medications and Supplements

Iron supplements are well known for changing stool color. They commonly turn stool dark green or even black, which can look alarming but is a normal side effect of how your body processes the extra iron. Some antibiotics can also tint stool yellow or green by altering the bacterial balance in your gut, which affects how bile gets broken down.

If you recently started a new supplement or medication and noticed green stool, that’s very likely the explanation. The color change usually persists as long as you continue taking it.

Green Stool in Babies

Green poop in infants has its own set of causes and is usually no reason to worry. Newborns pass meconium in their first few days, a dark greenish-black substance that’s entirely normal. After that transition, green stool in breastfed babies can happen when an infant doesn’t finish nursing on one side before switching to the other. This means the baby gets more of the thinner foremilk and less of the higher-fat hindmilk, which can change how the milk is digested and produce greenish stool.

Babies on protein hydrolysate formula, the type used for milk or soy allergies, also tend to produce greener stools. Breastfed infants who haven’t yet developed a full set of intestinal bacteria may see green stool as well. And just like in adults, diarrhea in babies speeds up transit time and can turn stool green regardless of what they’re eating.

How Long Green Stool Lasts

If food or drink is the cause, green stool typically clears up within one to three bowel movements once that food is out of your system. If diarrhea is the cause, the color returns to normal once your digestion slows back down. For medications and supplements, the color change often lasts the duration of treatment.

Persistent green stool lasting more than a few days without an obvious dietary explanation is worth paying attention to, especially if it comes alongside ongoing digestive symptoms like bloating, cramping, or changes in how often you go. In those cases, a stool test can help rule out infections or absorption issues. But for the vast majority of people who glance into the bowl and see green, the answer is spinach, food dye, or a fast-moving digestive day.