Green stool is almost always harmless. The most common causes are eating green or dyed foods, taking iron supplements, or having food move through your gut faster than usual. Your stool gets its normal brown color from a pigment called bilirubin, which forms when old red blood cells break down. When something disrupts that coloring process, green is the most likely result.
How Stool Gets Its Color
Your liver produces bile, a digestive fluid that starts out yellow-green. As bile travels through your intestines, bacteria and enzymes gradually break it down, turning it brown. That’s why healthy stool is typically some shade of medium to dark brown. If anything interrupts that breakdown process, whether it’s speed, diet, or chemistry, the original green tint of bile can show through in your stool.
Food and Drinks That Turn Stool Green
The simplest explanation is often what you ate in the last day or two. Green leafy vegetables like spinach, kale, and broccoli contain chlorophyll, the pigment that makes plants green. Eat enough of it and your stool will reflect that color directly. This is especially noticeable after a large salad or a green smoothie.
Artificial green food coloring has the same effect. Flavored drink mixes, ice pops, frosted cakes, and brightly colored cereals or candies can all tint your stool green. Even foods that aren’t visibly green can contain dyes that mix to produce a green result. If you recently ate or drank something with food coloring, that’s likely your answer, and the color will return to normal once the dye clears your system.
Iron Supplements and Medications
Iron supplements are one of the most reliable stool color changers. Iron oxide reacts with your digestive juices, creating a dark pigment that can make stool look dark green, black-green, or fully black. This is a normal chemical reaction, not a sign of bleeding or damage. Liquid iron formulations tend to produce more dramatic color changes than tablets, but both can do it.
Iron can also speed up intestinal movement in some people. When things move faster, bile doesn’t have as much time to break down from green to brown, compounding the color change. If the color bothers you or comes with stomach upset, splitting your daily iron dose into two smaller amounts can reduce both effects. Certain antibiotics can also shift stool color by disrupting the gut bacteria responsible for processing bile.
Fast Transit Time
When food passes through your intestines faster than normal, bile doesn’t fully convert from green to brown. This is one of the most common reasons for green stool that isn’t related to diet. Anything that speeds up digestion can cause it: diarrhea from a stomach bug, food intolerance, stress, high caffeine intake, or even a particularly high-fiber meal.
You’ll often notice green stool during or right after a bout of diarrhea. The color itself isn’t the concern in those cases. It’s simply a visible sign that your gut is moving things along quickly. Once your digestion returns to its normal pace, the brown color comes back.
Green Stool in Babies
Green stool in infants is common and has its own set of causes. Newborns pass meconium in the first few days of life, a dark green-black tar-like substance that’s completely normal. As feeding establishes, stool transitions through shades of green and yellow before settling into its typical color.
In breastfed babies, green stool sometimes happens when the baby doesn’t finish nursing on one side before switching. The earlier milk in a feeding session is lower in fat than the milk that comes toward the end. Missing that higher-fat milk can affect how the baby digests it, resulting in greener stool. Babies on protein hydrolysate formula, used for milk or soy allergies, also tend to produce green stool. So do breastfed infants who haven’t yet developed a full population of intestinal bacteria, which is normal in the early weeks.
Diarrhea in babies can also cause green stool for the same transit-time reasons it does in adults. If your baby seems comfortable, is feeding well, and is gaining weight, green stool on its own is rarely a problem.
When Green Stool Signals Something More
On its own, green stool is not a red flag. It becomes worth paying attention to when it lasts more than two weeks without an obvious dietary explanation, or when it comes alongside other symptoms like persistent diarrhea, abdominal pain, fever, or unexplained weight loss. These combinations can point to infections, inflammatory bowel conditions, or malabsorption issues that need evaluation.
The stool colors that do warrant prompt attention are red and black. Red can indicate bleeding in the lower digestive tract, while black (in someone not taking iron) can signal bleeding higher up, such as in the stomach. Green does not carry those same implications. If you can trace it back to something you ate, a supplement you’re taking, or a recent episode of diarrhea, it will almost certainly resolve on its own within a few days.

