Green poop is almost always harmless. It usually means that food moved through your digestive tract faster than normal, or that you recently ate something with a lot of green pigment. In most cases, your stool color will return to its usual brown within a day or two without any intervention.
Why Stool Is Normally Brown
Your liver produces bile, a yellow-green fluid that helps digest fats. As bile travels through your intestines, bacteria and enzymes chemically break it down, gradually shifting its color from green to brown. That breakdown process takes time. When everything moves at a normal pace, your stool comes out brown. When something speeds up that journey, bile doesn’t fully convert, and the green color shows through.
Foods That Turn Stool Green
The most common cause of green poop is simply eating green foods. Chlorophyll, the pigment that makes plants green, can do the same to your stool. Spinach, kale, broccoli, avocados, fresh herbs, matcha, and even pistachios all contain enough chlorophyll to change stool color noticeably, especially if you eat a large serving.
Artificial food dyes can have the same effect. Blue or green dyes found in candy, frosted cakes, sports drinks, and ice cream often pass through your system with their color intact. Blue dye combined with yellow bile can produce a vivid green result that looks alarming but is completely benign. If your stool turns green within 24 to 48 hours of eating something brightly colored, that’s almost certainly the explanation.
Rapid Transit and Diarrhea
When food moves through your intestines faster than usual, bile doesn’t have enough time to complete its green-to-brown color change. This is why diarrhea from any cause, whether it’s a stomach bug, food intolerance, stress, or too much coffee, often produces green stool. The color isn’t the problem itself. It’s just a visible side effect of speed.
Any condition that shortens transit time can do this. A bout of food poisoning, a reaction to a new medication, or even intense anxiety that ramps up gut motility can all result in greenish stool that resolves once your digestion slows back to its normal pace.
Infections That Cause Green Stool
Certain infections push food through your gut so quickly that green stool becomes one of the more noticeable symptoms. Salmonella, norovirus, and the waterborne parasite Giardia are common culprits. All three cause significant diarrhea, which prevents bile from breaking down properly.
The green color alone doesn’t point to an infection. What separates an infection from a harmless dietary cause is the company it keeps: fever, cramping, watery or explosive diarrhea, nausea, and symptoms lasting more than two or three days. If green stool shows up alongside those symptoms, an infection is worth considering.
Iron Supplements and Medications
Iron supplements are a well-known cause of unusual stool color. Iron can speed up intestinal movement, giving bile less time to break down fully and leaving stool green. It can also react with digestive juices through oxidation, producing a very dark green or black color. Both are normal side effects and not a sign that anything is wrong with your digestive system.
Antibiotics can also trigger green stool by disrupting the gut bacteria responsible for converting bile. Without enough of those bacteria doing their job, bile passes through in its original green state. This typically resolves within a few days of finishing the antibiotic course as your gut bacteria repopulate.
Malabsorption and Digestive Conditions
Less commonly, persistent green stool can signal a malabsorption issue. Conditions like celiac disease damage the lining of the small intestine, reducing its ability to absorb nutrients and fats properly. This can produce stools that are not only discolored but also greasy, foul-smelling, frothy, and difficult to flush. Inflammatory bowel conditions like Crohn’s disease can similarly alter stool color by speeding transit and disrupting normal digestion.
The key difference between these conditions and a harmless dietary cause is persistence. If green stool keeps showing up for weeks regardless of what you eat, especially alongside bloating, weight loss, or chronic diarrhea, a digestive condition is more likely.
Green Poop in Babies
For newborns, green (and even black) poop is completely normal in the first few days of life. This early stool, called meconium, is a thick, tar-like substance that the baby’s intestines accumulated before birth. It transitions to a yellowish or mustard color within the first couple of days for breastfed babies, or a tan to yellowish-brown for formula-fed babies.
After that initial period, occasional green stool in infants is still common and usually tied to something in the mother’s diet (for breastfed babies) or a sensitivity to formula. However, persistent black stool after the first few days of life is not normal and warrants a call to your pediatrician, as it can indicate blood in the digestive tract.
Signs That Green Stool Needs Attention
A single episode of green poop, or even a few days of it after a big salad or a round of antibiotics, is rarely worth worrying about. The situations that do warrant a closer look share a pattern: the green color persists for more than a few days with no obvious dietary explanation, or it arrives with other symptoms.
Symptoms worth paying attention to alongside green stool include:
- Blood or black tarry appearance not explained by iron supplements
- Fever and severe cramping suggesting an infection
- Chronic diarrhea lasting more than a few days
- Unintended weight loss or persistent bloating
- Greasy, foul-smelling stools that suggest fat malabsorption
Without those accompanying signs, green poop is one of those things your body does that looks strange but means very little. It reflects what you ate, how fast your gut was moving, or what supplements you’re taking, and it resolves on its own.

