Green stool — when your feces look green — is usually the result of something you ate, such as spinach. Certain medications or iron supplements can also cause green stool.
Newborns pass a dark green stool called meconium, and breast-fed infants often produce yellow-green stools. In older children and adults, green stool is uncommon. It's rarely cause for concern.