Green poop is almost always harmless. The most common cause is simple: food moved through your digestive system faster than usual, so bile didn’t have time to fully break down into its normal brown color. Diet, supplements, infections, and a handful of medical conditions can also be responsible.
Why Poop Is Normally Brown
Understanding why stool turns green starts with knowing why it’s usually brown. Your liver produces bile, a greenish-yellow fluid that helps digest fats. Bile contains a pigment called bilirubin, which starts out yellow-green when it enters your intestines. As food travels through the digestive tract, gut bacteria go to work on bilirubin, converting it first into a compound called urobilinogen, then eventually into stercobilin, a dark orange-brown pigment. Stercobilin is what gives poop its characteristic brown color.
This conversion takes time. When everything moves at a normal pace through the large intestine, bacteria have plenty of opportunity to complete the job. But when transit speeds up for any reason, bile passes through before it can be fully broken down, and the stool retains that original green tint.
Fast Digestion Is the Most Common Cause
Anything that accelerates your digestion can produce green stool. Diarrhea is the classic example. When food and fluid rush through the large intestine too quickly, bile doesn’t have time to break down completely. The result is stool that ranges from bright green to dark olive, depending on how fast things moved.
You don’t need full-blown diarrhea for this to happen. Stress, a large meal, caffeine, or a sudden increase in physical activity can all speed up gut motility enough to shift your stool color. If the green color disappears once your digestion normalizes, there’s nothing to investigate further.
Foods That Turn Stool Green
Dark leafy greens are the most obvious dietary culprit. Spinach, kale, broccoli, and similar vegetables contain high concentrations of chlorophyll, the pigment that makes plants green. Eat enough of them in a short period and that chlorophyll passes through your system largely intact, tinting your stool. This is especially noticeable after a large salad, a green smoothie, or a juice cleanse heavy on leafy vegetables.
Artificial food coloring is another frequent cause, and one people often overlook. Blue and green dyes found in candy, fruit snacks, cake frosting, freeze pops, and brightly colored drinks can turn stool green. Blue dye in particular mixes with the yellow-green bile already present in your intestines to produce a vivid green. If you recently ate something with intense coloring, that’s likely your answer.
Supplements and Medications
Iron supplements are well known for changing stool color, typically making it dark green or black. The iron itself oxidizes as it passes through the digestive tract, producing these darker shades. This is a normal side effect and not a sign that the supplement is causing harm.
Antibiotics can also cause green stool by disrupting the balance of gut bacteria. Since those bacteria are responsible for converting bile pigments into their final brown form, killing off a portion of them with antibiotics can leave bile partially unconverted. The green color usually resolves after you finish the course of medication and your gut bacteria repopulate.
Infections and Illness
Bacterial, viral, and parasitic infections can all produce green stool, usually alongside diarrhea. Salmonella, E. coli, norovirus, and the parasite Giardia are common examples. These infections cause what’s essentially a rapid “gush” of unabsorbed bile through the intestines. The speed of transit, combined with the large volume of fluid the gut secretes during infection, means bile stays green.
Green stool from an infection is rarely the only symptom. You’ll typically also have watery diarrhea, cramping, nausea, or fever. If you have green diarrhea that lasts more than a couple of days and comes with abdominal pain, fever, vomiting, or weight loss, that’s worth getting checked out. Those symptoms together can point to an infection that needs treatment or another condition that warrants investigation.
Green Stool in Babies
Green poop is especially common in infants and has several causes unique to that age group. Newborns pass meconium, a dark greenish-black substance, in their first few days of life. This is completely normal and transitions to yellow or brown as feeding gets established.
In breastfed babies, green stool can happen when a baby doesn’t finish feeding on one breast before switching to the other. The earlier milk (foremilk) is thinner and lower in fat, while the later milk (hindmilk) is richer. Getting mostly foremilk can affect how the milk is digested, producing greener stool. Breastfed infants may also have green stool simply because they haven’t yet developed the full population of intestinal bacteria needed to convert bile pigments.
Formula-fed babies on protein hydrolysate formulas, which are designed for infants with milk or soy allergies, often have green stool as well. The way these formulas are processed changes how they interact with bile during digestion. Diarrhea from any cause in an infant can also produce green stool for the same transit-time reasons it does in adults.
When Green Stool Signals Something Bigger
An occasional green bowel movement is not a concern. It’s one of the most common stool color variations, and it resolves on its own in the vast majority of cases. The color itself is not dangerous.
What matters more is the pattern and what accompanies it. Green stool that persists for more than a few days without an obvious dietary explanation, or that comes alongside bleeding, significant abdominal pain, unexplained weight loss, or fever, deserves medical attention. These combinations can point to conditions like inflammatory bowel disease, malabsorption disorders, or infections that need targeted treatment. On its own, though, green poop after a spinach-heavy dinner or a bout of stomach flu is your digestive system working exactly as expected.

