Why Is My Poop Green? Causes and When to Worry

Green poop is almost always harmless. The most common reason is simple: something you ate, or your food moved through your intestines faster than usual. Both situations are normal and temporary. Stool comes in a wide range of colors, and all shades of brown and green are considered typical.

How Poop Gets Its Color

Your stool starts out green. When your liver breaks down old red blood cells, it produces a green pigment called biliverdin, which gets converted into bilirubin and secreted into your intestines as part of bile. As that bile travels through your digestive tract, bacteria in your lower intestine break it down further into compounds that shift from green to yellow-orange to brown. The final brown color you’re used to seeing is the end result of that bacterial processing.

This means anything that speeds up digestion can short-circuit the color change. When food moves through your intestines too quickly, whether from a stomach bug, stress, a heavy meal, or even vigorous exercise, bacteria don’t have enough time to fully convert those green bile pigments to brown. The result is green stool. This is by far the most common explanation when diet doesn’t account for it.

Foods That Turn Stool Green

Chlorophyll, the pigment that makes plants green, passes through your digestive system and can tint your stool. The biggest culprits are leafy greens like spinach, kale, and broccoli. Pistachios, avocados, fresh herbs, and matcha (powdered green tea) can all do the same thing. Even blueberries occasionally produce green shades rather than the dark blue-purple you might expect.

Artificial food dyes are another frequent cause. Brightly colored frosting, candy, sports drinks, or popsicles can tint your stool vivid green (or other unexpected colors) long after they’ve been swallowed. If you ate something with blue or green dye in the past day or two, that’s likely your answer.

Medications and Supplements

Iron supplements commonly turn stool dark green, sometimes so dark it looks almost black. This is normal and some doctors actually consider it a sign the supplement is being absorbed properly. If the color bothers you, lowering the dose with your doctor’s guidance can help.

Several other medications can cause green stool. Antibiotics disrupt the normal balance of gut bacteria, which are the very organisms responsible for turning bile pigments brown. Without enough of them doing their job, stool stays green. Bismuth subsalicylate, the active ingredient in some antidiarrheal medications, can react with sulfur in your digestive system and produce dark green or black stool. Certain antacids containing aluminum hydroxide can cause greenish stool as a side effect.

Infections and Illness

Bacterial and parasitic infections that cause diarrhea often produce green stool, simply because diarrhea speeds up transit time. Salmonella, E. coli, and giardia are common examples. In these cases, though, the green color isn’t the main concern. You’ll typically also have watery diarrhea, cramping, nausea, or fever. The green color is just a byproduct of inflamed intestines pushing everything through too fast for normal pigment processing to occur.

Green Stool in Babies

Green poop in infants has its own set of causes and is usually nothing to worry about. Newborns pass meconium, a dark greenish-black stool, in the first few days of life. This is completely normal.

In breastfed babies, green stool can happen when the baby doesn’t fully finish nursing on one side. The earlier milk (foremilk) is lower in fat than the richer milk that comes later (hindmilk), and getting mostly foremilk can affect digestion and produce greener stool. Babies fed protein hydrolysate formula, which is designed for infants with milk or soy allergies, also tend to have green stool. Breastfed infants who haven’t yet developed a full population of intestinal bacteria may produce green stool for the same reason adults do when gut bacteria are disrupted: without enough bacteria to break down bile pigments, stool stays green.

When Green Stool Signals a Problem

Green stool on its own rarely indicates a serious intestinal condition. The colors that do warrant prompt attention are bright red and black (not dark green from iron supplements), because these can indicate bleeding in the digestive tract. If your stool is green but you feel fine otherwise, it’s almost certainly dietary or related to transit time, and it will resolve on its own within a day or two.

If green stool persists for more than a few days with no obvious dietary explanation, or if it comes with severe diarrhea, fever, or significant abdominal pain, those accompanying symptoms are what make it worth investigating, not the color itself.