Green stool is almost always harmless. The most common cause is eating a large amount of leafy green vegetables, but food dyes, supplements, and even how quickly food moves through your digestive system can all shift stool color. In most cases, the color returns to its usual brown within a day or two.
Why Stool Is Normally Brown
Your liver produces bile, a yellow-green fluid that helps break down fats. As bile travels through your intestines, bacteria chemically transform it from green to yellow to brown. That final brown color is simply the end result of complete digestion. Anything that changes what you eat, how fast food moves through you, or how bile gets processed can interrupt that color shift and leave your stool looking green.
Leafy Greens and Chlorophyll
Spinach, kale, broccoli, and other dark leafy vegetables are packed with chlorophyll, the pigment that makes plants green. Eating a large serving, like a big salad or a green smoothie, delivers enough chlorophyll to visibly tint your stool. This is the single most common reason for green poop and is completely normal. The color change typically shows up within 12 to 24 hours of the meal and resolves on its own once you return to your usual diet.
Food Dyes and Artificial Coloring
Brightly colored processed foods can also be the culprit. Green frosting on a cake, flavored drink mixes, ice pops, and candies that contain green (or even blue and purple) food dye can turn stool green. Blue and purple dyes mix with the yellow-green bile in your gut and produce a green result, which catches people off guard because the food they ate wasn’t green at all. If you recently ate something with vivid artificial coloring, that’s likely your answer.
Iron Supplements
Iron supplements are a well-known cause of stool color changes. They commonly produce a very dark green stool that can look almost black. This happens because unabsorbed iron reacts with compounds in your digestive tract. The effect is dose-dependent, so if the color change bothers you, a lower dose will usually lighten things up. If you recently started taking iron for anemia or as part of a prenatal vitamin, this is the most likely explanation.
Rapid Transit Through the Gut
When food moves through your intestines faster than normal, bile doesn’t have enough time to fully break down from green to brown. The result is stool that retains that earlier green color. This can happen with diarrhea from any cause: a stomach bug, food intolerance, stress, or even a heavy dose of coffee. If your green stool is also loose or watery, speed of digestion is probably the reason. Once the diarrhea resolves, color typically returns to normal.
Infections That Cause Green Stool
Certain infections speed up digestion enough to produce green stool. Salmonella, norovirus, and the waterborne parasite Giardia are common examples. These pathogens irritate the gut lining and cause the intestines to push food through rapidly, which prevents bile from completing its normal color transformation. Green stool from an infection is usually accompanied by other symptoms: diarrhea, cramping, nausea, fever, or vomiting. The green color alone isn’t the concern. It’s the combination with those other symptoms that points to infection rather than diet.
Green Stool in Babies
Parents often notice green stool in their infants, and in most cases it’s nothing to worry about. Breastfed babies can produce bright, frothy green poop when they’re getting more of the thinner milk at the start of a feeding (foremilk) and less of the fattier milk that comes later. This sometimes happens when a mother switches breasts too quickly during feeds. For formula-fed babies, iron-fortified formula is a common cause of greenish stool, just as iron supplements are for adults.
A single episode of green stool in an otherwise happy, feeding-well baby doesn’t need medical attention. However, if your baby seems unwell, has very hard stools, or you notice blood in the diaper, those are reasons to contact your pediatrician. More than one streak of blood in a diaper warrants prompt evaluation.
When Green Stool Signals a Problem
If you can trace the color to a big spinach salad, a green smoothie, brightly dyed food, or an iron supplement, you can safely wait for it to pass. Most dietary causes resolve within one to three days. But green stool that persists for more than a few days without an obvious dietary explanation is worth discussing with a doctor, especially if it’s accompanied by fever, persistent diarrhea, abdominal pain, or blood in the stool. Consistently green stool over weeks could point to a malabsorption issue or an ongoing infection that needs treatment.
The color of your stool on any given day is mostly a reflection of what you ate and how fast it moved through you. A one-off green bowel movement is one of the least concerning changes your body can produce.