What Causes Green Poop and When to Worry?

Green poop is almost always caused by something harmless: the foods you ate, a supplement you’re taking, or food moving through your gut faster than usual. The brown color of normal stool comes from bile, a digestive fluid your liver produces in green. As bile travels through your digestive tract, enzymes chemically break it down, gradually shifting its color from green to brown. Anything that speeds up that journey or adds green pigment to the mix can leave your stool looking green.

Why Bile Makes the Difference

Your liver continuously produces bile to help digest fats. When bile enters your small intestine, it’s bright green. Over the course of digestion, bacteria and enzymes transform the bile pigments step by step, and the end result is the familiar brown color. This process takes time. If food moves through your large intestine too quickly, bile doesn’t fully break down, and your stool stays green or greenish.

Diarrhea is the most common reason for this speed-up. Any bout of loose, frequent stools can produce green poop simply because transit time is shorter. Conditions like irritable bowel syndrome, food intolerances, or a stomach bug can all trigger faster digestion. Once your bowel movements return to normal, the color typically follows.

Foods That Turn Stool Green

Chlorophyll, the pigment that makes plants green, can do the same to your stool. Spinach, kale, and broccoli are the usual culprits, but the list extends to avocados, fresh herbs, matcha, and even pistachios (which get their green color from the same pigment). The more you eat, the more vivid the effect. A large spinach salad or a green smoothie habit can produce noticeably bright green poop for a day or two.

Blueberries are a less obvious cause. While you might expect dark or purplish stool, blueberries can produce shades of green as their pigments interact with bile during digestion. Artificial food dyes are another factor. The bright frosting on a cupcake or dye-heavy candy continues tinting whatever it touches even after you swallow it, and blue or green dyes in particular can create vivid results in the toilet bowl.

Iron Supplements and Medications

Iron supplements are one of the most common non-food causes of green stool. They often turn poop a very dark green that can look almost black. This is normal and some physicians actually consider it a sign the supplement is being absorbed effectively. If the color bothers you, lowering your dose (with your doctor’s input) will usually lighten things up.

Certain antibiotics can also shift stool color toward yellow or green. Antibiotics alter the balance of gut bacteria, which are part of the system that breaks down bile. With fewer of the right bacteria doing their job, bile pigments don’t fully convert to brown. This effect is temporary and resolves once you finish the course of medication and your gut bacteria recover.

Green Poop in Babies

If you’re a new parent, green poop in your baby’s diaper is rarely a concern, though the shade and texture can vary depending on age and feeding method.

  • First few days of life: Newborns pass meconium, a sticky, dark green-black substance that built up in the intestines before birth. This is completely normal and transitions to other colors within a couple of days.
  • Breastfed babies: Frothy green poop can happen when a baby feeds from both breasts frequently without fully draining one side first. Letting the baby finish one breast before switching often resolves this.
  • Formula-fed babies: Dark green stool is common and usually caused by the iron added to formula. It’s nothing to worry about.
  • Starting solids: Green-brown stool is one of many color variations you can expect once your baby begins eating solid foods.

After Gallbladder Removal

People who’ve had their gallbladder removed sometimes notice ongoing changes in stool color, including greenish tones. The gallbladder normally stores and concentrates bile, releasing it in controlled amounts when you eat fat. Without it, bile flows more continuously into the intestine. More bile acids reaching the large intestine can act as a laxative, speeding up transit and preventing the full green-to-brown color conversion. For some people this settles down over weeks or months as the body adapts. Others experience chronic loose stools that may benefit from medications that bind excess bile acids.

When Green Stool Lasts Too Long

A day or two of green poop after a big salad or a stomach bug is nothing to think twice about. If green stool persists for more than a few days without an obvious dietary explanation, it’s worth checking in with a healthcare provider. The same applies if green stool comes with diarrhea that won’t quit, since the bigger concern at that point is dehydration rather than the color itself. Drinking plenty of fluids is especially important for young children, who can become dehydrated more quickly than adults.

Green stool on its own, without other symptoms like significant pain, blood, or unexplained weight loss, is almost never a sign of something serious. In most cases, once the food clears your system or you adjust a supplement, your stool returns to its usual brown within a day or two.