Why Is My Poop So Green? Causes and When to Worry

Green poop is almost always harmless. The most common causes are eating green vegetables, food dyes, or having food move through your digestive system faster than usual. In most cases, the color returns to normal within a day or two without any treatment.

How Poop Gets Its 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 yellow to brown. That final brown shade is what most people see in the toilet on a typical day.

When something interrupts that process, whether it’s a fast-moving meal, a stomach bug, or a pile of spinach, the green pigment sticks around instead of converting to brown. That’s the basic explanation behind nearly every case of green stool.

Foods That Turn Stool Green

Chlorophyll is the pigment that makes plants green, and your body doesn’t fully break it down during digestion. Eating large amounts of spinach, kale, broccoli, avocados, herbs, or matcha can tint your stool bright green. Pistachios are another surprising culprit because they’re packed with chlorophyll. Even blueberries can occasionally produce green shades.

Artificial food dyes are just as powerful. The bright frosting on a cupcake or the coloring in a sports drink continues tinting whatever it touches as it passes through your gut. If you ate something unusually colorful in the past 24 to 48 hours, that’s likely your answer.

Rapid Transit: The Diarrhea Connection

If your stool is both green and loose, the color probably has nothing to do with what you ate. When food moves through your large intestine too quickly, bile doesn’t have enough time to break down completely. The result is stool that still carries bile’s original green tint. Any cause of diarrhea can trigger this, from a mild stomach virus to food intolerance to stress. Once your bowel movements return to normal speed, the brown color comes back.

Medications and Supplements

Iron supplements are one of the most common pill-related causes of green stool. They can turn poop dark green or even blackish green, which looks alarming but is a normal side effect of unabsorbed iron passing through. Some antibiotics also shift stool color toward green or yellow by disrupting the balance of gut bacteria that help process bile.

If the color change started around the same time you began a new supplement or prescription, that’s a strong clue.

Infections That Cause Green Stool

Bacterial infections like Salmonella and E. coli, viral infections like norovirus (the common stomach flu), and parasites like Giardia can all produce green diarrhea. These infections cause a rapid “gush” of unabsorbed bile through the intestines, and they usually come with other obvious symptoms: nausea, vomiting, fever, stomach cramps, or watery diarrhea that lasts more than a couple of days.

The green color itself isn’t the concern with infections. It’s the combination of green stool plus those additional symptoms that signals something your body is actively fighting off.

Green Poop in Babies

Green stool is especially common in infants, and it’s rarely a problem. In breastfed babies, one frequent cause is not finishing a full feeding on one side. The milk that comes first during a nursing session is lower in fat than the milk that follows, and when a baby switches breasts too early, the lower-fat milk can affect digestion and produce green poop.

Babies on specialty formulas, particularly protein hydrolysate formulas used for milk or soy allergies, also tend to have greener stool. Breastfed newborns who haven’t yet developed a full set of intestinal bacteria may pass green stool simply because their gut is still maturing. And just like adults, babies with diarrhea from any cause will often have green-colored output because of rapid transit.

Bile Acid Malabsorption

In less common cases, persistently green or yellowish watery stool can point to bile acid malabsorption, a condition where your body can’t properly reabsorb the bile acids it produces. This leads to excess bile reaching the colon, causing watery diarrhea, urgent bowel movements, painful stomach cramps, bloating, and fatty stools. Over time, it can also cause fatigue, dehydration, and weight loss.

People who’ve had gallbladder removal or surgery on the lower part of the small intestine are at higher risk. If you’re dealing with ongoing diarrhea that doesn’t resolve, especially after one of those procedures, bile acid malabsorption is worth investigating.

Signs That Need Attention

A single episode of green poop, or a few days of it after a kale-heavy meal, is nothing to worry about. The color change that warrants a closer look is the kind that lingers for more than a few days and shows up alongside other symptoms: abdominal pain, unexplained weight loss, bleeding, fever, or vomiting. Those combinations suggest something beyond diet or a passing stomach bug, and they’re worth bringing up with a doctor.