Why Is My Poop Green? Causes and When to Worry

Green poop is almost always caused by something you ate or by food moving through your intestines faster than usual. Your liver produces bile, a bright green fluid that helps digest fats. As bile travels through your intestines, bacteria break it down and gradually turn it yellow-brown, which is what gives stool its typical color. When something speeds up that transit, or when you eat enough green-pigmented food, the bile doesn’t fully convert and your stool comes out green.

Foods That Turn Your Stool Green

This is the most common cause. Spinach, kale, broccoli, avocados, pistachios, and matcha (powdered green tea) all contain enough plant pigment to tint your stool noticeably, especially if you eat a large serving. Blueberries can also produce greenish shades, despite being dark purple going in. The pigments survive digestion and keep coloring everything they touch on the way through.

Artificial food coloring is another frequent culprit. Brightly frosted cupcakes, flavored drink mixes, ice pops, and candies can produce surprisingly vivid results. If you recently ate something with intense dye, that’s likely your answer. The color change typically lasts one to two bowel movements and resolves on its own.

Medications and Supplements

Iron supplements are well known for turning stool dark green or even blackish-green. This is a harmless chemical reaction between the iron and your digestive fluids. Some antibiotics can also tint stool yellow or green by disrupting the gut bacteria that normally process bile. If the color change lines up with starting a new medication, that connection is worth noting but not usually a reason to stop taking it.

Fast Transit and Diarrhea

When food moves through your intestines quickly, bile doesn’t have time to break down fully. The result is green, loose stool. This explains why a bout of diarrhea from any cause (stress, food intolerance, a stomach bug) often produces green output even when you haven’t eaten anything green. The faster things move, the greener the result.

Certain digestive conditions cause this chronically. After gallbladder removal, bile flows continuously into the intestine rather than being stored and released in controlled amounts. This can lead to bile acid malabsorption, where excess bile acids irritate the colon lining, trigger extra fluid secretion, and speed up muscle contractions. The result is frequent, urgent, watery stools that may stay greenish. People with conditions affecting the small intestine, like Crohn’s disease or celiac disease, can experience a similar pattern.

Infections That Cause Green Stool

Bacterial infections like Salmonella and E. coli, viral infections like norovirus, and parasites like Giardia can all cause green diarrhea. These pathogens irritate the gut and create a rapid “gush” of unabsorbed bile. You’ll usually know something more serious is going on because the green stool comes with other symptoms: cramping, nausea, fever, or diarrhea that lasts more than a day or two. A food-related color change, by contrast, feels completely normal otherwise.

Green Poop in Babies

Green stool in infants is common and has several specific causes. Breastfed babies may produce green poop if they don’t finish feeding entirely on one side, meaning they get more of the thinner, lower-fat milk at the start of a feeding and miss the fattier milk that comes later. This changes how the milk is digested. Babies on protein hydrolysate formula (used for milk or soy allergies) also tend to have green stool as a normal side effect.

Young breastfed infants may also have green stool simply because they haven’t yet developed a full population of intestinal bacteria. Those bacteria are what convert bile pigments to the brownish color adults expect. As the baby’s gut matures over the first few months, stool color typically shifts to the more familiar mustard yellow.

When Green Stool Signals a Problem

A day or two of green poop with no other symptoms is almost never concerning. It usually resolves once the food, supplement, or mild digestive upset passes through your system. If green stool persists for more than a few days, that’s worth a conversation with your doctor.

Pay closer attention if green stool comes alongside any of these:

  • Severe abdominal pain or cramping
  • Fever
  • Blood in the stool or jet-black stool
  • Persistent diarrhea lasting several days
  • Signs of dehydration (dark urine, dizziness, dry mouth)
  • Unexplained weight loss

Green stool with diarrhea increases your risk of dehydration, so staying on top of fluid intake matters. For most people, though, the explanation is a big salad, a green smoothie, or something moving through a little faster than usual.