Why Is Poop Green Sometimes? Causes and Concerns

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

To understand why, it helps to know what gives poop its usual brown color in the first place. 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. When something interrupts that process, green is what you get.

Fast Transit Time Is the Most Common Cause

When food moves through your large intestine too quickly, bile doesn’t have time to fully break down. The result is stool that still carries bile’s original green color. Anything that speeds up digestion can trigger this, with diarrhea being the most obvious example. A stomach bug, food poisoning, stress, or even a strong cup of coffee on an empty stomach can push things along faster than usual.

This is also why green poop and loose stool often show up together. If you’re having diarrhea for any reason, the green color is a predictable side effect of the speed, not necessarily a separate problem to worry about.

Foods That Turn Stool Green

Chlorophyll, the pigment that makes plants green, can do the same to your stool. If you’ve been eating generous amounts of spinach, kale, or broccoli, bright green poop is a normal consequence. The same goes for avocados, fresh herbs, matcha, and pistachios (which get their color from chlorophyll and related plant pigments).

Surprisingly, blue and purple foods can also produce green stool. Blueberries and blackberries sometimes shift brown stool toward a green tone as their pigments mix with bile during digestion.

Artificial food coloring is another common culprit. Green and blue dyes found in candy, frosting, freeze pops, fruit snacks, and brightly colored drinks continue tinting whatever they touch all the way through your digestive tract. A child’s neon green poop after a birthday party is almost always the frosting.

Medications and Supplements

Iron supplements are well known for changing stool color, typically to dark green or black. This happens because your body only absorbs a portion of the iron you take, and the unabsorbed remainder reacts with digestive enzymes on its way through. If you’ve recently started an iron supplement and noticed darker green stool, that’s the likely explanation.

Antibiotics can also cause green stool by disrupting the balance of gut bacteria that normally help process bile. With fewer of those bacteria at work, bile breaks down less completely, and the green tint persists.

Green Poop After Gallbladder Removal

Your gallbladder stores and concentrates bile, releasing it in measured amounts when you eat fat. After gallbladder removal, bile flows directly from the liver into the intestines in a more continuous, less controlled way. This means more bile acids can reach the large intestine before being fully processed, which acts as a natural laxative. Research suggests about half of people who have their gallbladder removed experience diarrhea afterward, and that faster transit time can produce greenish stool.

For most people this improves within weeks or months as the body adjusts. In rare cases, the diarrhea persists for years, and medications that bind bile acids can help manage it.

Green Stool in Babies

Green poop in breastfed babies has its own set of causes. A newborn’s first stools (meconium) are naturally dark green to black, and this is completely normal during the first few days of life.

Beyond the newborn stage, occasional green poop in a breastfed baby is still usually fine. But frequent green, frothy, or explosive stools can signal something called lactose overload. This happens when breastmilk moves through the baby’s system too quickly for all the lactose to be digested. Fat in breastmilk normally slows digestion, giving the baby’s body time to break down lactose. If feeds are short or milk supply is very abundant, the baby may get less of the fat-rich milk that comes later in a feeding. The result is rapid transit, incomplete lactose digestion, gas, tummy pain, and green stool.

Dark green poop in small amounts can mean something different: it may be a sign the baby isn’t getting enough milk overall.

Infections and Stomach Bugs

Bacterial and parasitic infections can cause green diarrhea by inflaming the intestines and dramatically speeding up transit time. Salmonella, Giardia (a waterborne parasite), and norovirus are common offenders. In these cases, green stool is rarely the only symptom. You’ll typically also have cramping, nausea, fever, or watery diarrhea that comes on suddenly.

The green color itself isn’t the concern here. It’s the infection driving it. If you have diarrhea with fever or severe cramping that lasts more than a couple of days, that’s worth getting checked out regardless of stool color.

When Green Stool Signals a Problem

A single green bowel movement after a big salad or a bout of stomach trouble is not a red flag. The color should return to brown within a day or two once the cause passes.

Pay closer attention if green stool persists for more than a few days without an obvious dietary explanation, or if it comes with fever, ongoing diarrhea, or abdominal pain. Stool that changes colors frequently over weeks can also point to an underlying digestive issue worth investigating. In these situations, noting what you’ve been eating and any other symptoms gives your doctor useful information to work with.