Green poop is almost always harmless. It usually means you ate something with strong green pigments, or food moved through your digestive system faster than normal. To understand why, it helps to know that your stool actually starts out green and only turns brown at the end of the process.
How Stool Gets Its Color
Your liver produces bile, a yellow-green fluid that helps digest fats. When bile enters your digestive tract, enzymes gradually break it down, shifting its color from green to yellow to brown. That final brown shade is what most people see on a typical day. The entire journey through your intestines takes roughly 24 to 72 hours, and that transit time matters a lot for color.
When food moves through your large intestine faster than usual, bile doesn’t have time to fully break down. The result is stool that still carries that original green tint. Diarrhea is the most common reason for this speedup, but stress, a stomach bug, or even a heavy meal that triggers stronger contractions can do it too. If green stool shows up alongside loose or watery bowel movements, rapid transit is likely the explanation.
Foods That Turn Stool Green
Chlorophyll, the pigment that makes plants green, passes through your digestive system largely intact. Eating generous amounts of spinach, kale, or broccoli is one of the most common reasons for a bright green toilet bowl. Pistachios get their green color from the same pigment, along with other plant compounds, and can have the same effect. Avocados, fresh herbs, and matcha (powdered green tea) are other frequent culprits.
Blueberries are a less obvious trigger. Despite being dark purple, they can produce shades of green as their pigments interact with bile during digestion. And any food or drink containing blue or green artificial dyes can shift your stool color. Blue dye mixes with the yellow in bile to create green, which is why brightly frosted cupcakes, sports drinks, or grape-flavored candy sometimes produce surprising results.
In most cases, the color change shows up within a day or two of eating the food and resolves just as quickly once you stop.
Iron Supplements and Medications
Iron supplements are a well-known cause of dark green stool, sometimes so dark it looks almost black. This is a normal reaction to the iron itself and some physicians actually consider it a sign the supplement is being absorbed effectively. If the color bothers you, lowering your dose (with your provider’s guidance) will typically lighten things up.
Antibiotics can also produce green stool by disrupting the balance of bacteria in your gut. Those bacteria play a role in the final stages of bile breakdown, so when their populations shift, the chemical process that turns stool brown gets interrupted. The color usually returns to normal once you finish the course of antibiotics and your gut bacteria recover.
Green Stool in Babies
Green poop in infants is common and rarely a concern, though the causes differ from adults. Newborns pass meconium in their first few days, a dark greenish-black stool that clears out everything accumulated in the intestines before birth. After that transition, several things can keep stool green:
- Foremilk-hindmilk imbalance: If a breastfed baby doesn’t finish nursing on one side, they may get more of the thinner, lower-fat milk at the beginning of a feeding and miss the higher-fat milk that comes later. This can speed digestion and produce green stool.
- Specialty formulas: Protein hydrolysate formulas, used for babies with milk or soy allergies, often produce greenish stool as a normal side effect.
- Developing gut bacteria: Breastfed infants sometimes lack the full range of intestinal bacteria needed to complete bile breakdown, which can leave stool green until those bacterial colonies establish themselves.
- Diarrhea: Just like in adults, faster transit means less time for bile to change color.
When Green Stool Signals a Problem
On its own, green stool is not dangerous. It becomes worth paying attention to when it shows up with other symptoms. Persistent diarrhea lasting more than a few days, fever, abdominal cramping, or visible blood or mucus in the stool suggest something beyond a dietary color change, such as a bacterial infection like salmonella or a flare of an inflammatory bowel condition.
If your stool is green for a day or two after a big salad or a round of food coloring, you can safely wait it out. If it persists for weeks without an obvious dietary explanation, or if you feel genuinely unwell, that pattern is worth investigating.

