Green poop is almost always caused by something you ate. The most common culprits are leafy green vegetables, foods with artificial coloring, and supplements like iron. Less often, green stool signals that food moved through your digestive system faster than usual, giving your body less time to process bile, the digestive fluid that normally turns stool brown.
How Stool Gets Its Color
Your liver produces bile, a greenish fluid that helps you digest fats. Bile starts out green because it contains a pigment derived from the breakdown of old red blood cells. As bile travels through your small intestine and into your colon, bacteria chemically transform that green pigment into a compound called fecobilinogen, which gives stool its characteristic brown color.
Anything that disrupts this process, whether it’s food moving too quickly, a lack of the right gut bacteria, or an overwhelming amount of green pigment from food, can leave your stool looking green instead of brown.
Foods That Turn Stool Green
Dark leafy greens are the most common dietary cause. Spinach packs about 24 mg of chlorophyll per cup, followed by parsley (19 mg per half cup), garden cress (nearly 16 mg per cup), and arugula (about 8 mg per cup). Green beans, leeks, endive, and sugar peas also contain enough chlorophyll to shift stool color if you eat a large serving. The chlorophyll itself passes through your system and can tint everything on the way out.
Artificial food dyes are the other major cause. Blue and green dyes found in candy, fruit snacks, cake frosting, freeze pops, and brightly colored drinks regularly produce green stool. Grape-flavored Pedialyte, for example, is known for turning stool bright green. Green gelatin desserts and green fruit snacks do the same. If your stool turned green within a day or two of eating something brightly colored, that’s very likely the explanation.
Fast Digestion and Diarrhea
When food moves through your intestines faster than normal, bile doesn’t have enough time to be fully broken down by gut bacteria. The result is stool that retains bile’s original green color. This is why diarrhea from any cause, whether it’s a stomach bug, food intolerance, or stress, often produces green stool. The green color in these cases isn’t a separate problem. It’s just a side effect of speed.
Iron Supplements and Medications
Iron supplements commonly turn stool 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 properly. If the color bothers you, adjusting your dose with your doctor’s input can help, but the discoloration on its own isn’t harmful.
Certain antibiotics can also cause green stool by disrupting the balance of gut bacteria responsible for converting bile pigments to brown. Once you finish the course of antibiotics and your gut bacteria recover, stool color typically returns to normal.
Green Stool After Gallbladder Removal
If you’ve had your gallbladder removed, you may notice greener or looser stools, especially in the months following surgery. Without a gallbladder to store and release bile in measured amounts, bile flows continuously into your intestines. More bile acids reach the colon, which can act as a laxative and speed up transit time. The combination of extra bile and faster movement means stool doesn’t always have time to turn brown. For most people this improves over time, though some experience ongoing changes.
Green Stool in Babies
Green poop in infants is common and usually harmless. Newborns pass meconium, a dark greenish-black stool, in their first few days of life. After that transition, green stool in breastfed babies can happen when a baby doesn’t finish feeding on one side before switching. The earlier milk (foremilk) is lower in fat, and missing the higher-fat hindmilk can affect how the milk is digested, producing greener stool.
Babies on protein hydrolysate formula, used for milk or soy allergies, also tend to have green stool. So do breastfed infants who haven’t yet developed a full population of intestinal bacteria. Diarrhea in babies produces green stool for the same reason it does in adults: rapid transit leaves bile partially unprocessed.
When Green Stool Suggests Something Else
On its own, green stool is rarely a sign of a serious problem. The concern increases when green stool comes with other symptoms: persistent diarrhea lasting more than a few days, fever, significant abdominal pain or cramping, or visible blood or mucus. These combinations can point to a bacterial infection, a parasitic infection, or an inflammatory condition affecting your gut.
Bright red or black stool is a different situation entirely and can indicate bleeding in the digestive tract. That warrants prompt medical attention regardless of other symptoms. Green stool that shows up once or twice and resolves on its own, especially if you can trace it back to a meal or supplement, is almost always nothing to worry about.