Green Poop: What It Means and When to Worry

Green poop usually means one of two things: you ate something green, or food moved through your intestines faster than normal. In most cases it’s completely harmless and will return to brown within a day or two.

Why Poop Is Normally Brown

The brown color of a typical bowel movement comes from a pigment called stercobilin, and the process that creates it starts with your blood. Your body constantly recycles old red blood cells, breaking down their oxygen-carrying protein (hemoglobin) into a substance called bilirubin. Your liver uses bilirubin to make bile, a green fluid it releases into your small intestine to help digest fats.

As bile travels through the rest of your digestive tract, bacteria in the colon gradually break it down and add stercobilin, which turns everything brown. The key word is “gradually.” If anything speeds that journey up, the bacteria don’t have enough time to finish the job, and your stool comes out still tinted green from the original bile. That’s why diarrhea from any cause, whether it’s a stomach bug, food intolerance, or stress, often produces green stool.

Foods That Turn Stool Green

The most common dietary culprit is simply eating a lot of green vegetables. Spinach, kale, and broccoli are packed with chlorophyll, and when you eat enough of them, the pigment survives digestion and colors your stool bright green. The same goes for avocados, fresh herbs, matcha, and pistachios (which get their color from chlorophyll too).

You don’t even need to eat anything naturally green. Artificial food dyes, especially the kind found in brightly frosted cupcakes, candy, or colored drinks, keep tinting whatever they touch all the way through your digestive system. Blueberries, despite being purple, can also produce green shades in your stool.

If your green poop appeared within a day or two of eating any of these foods, that’s almost certainly your explanation.

Iron Supplements and Medications

Iron supplements are a well-known cause of dark green (sometimes nearly black) stool. The iron itself isn’t fully absorbed and reacts with digestive enzymes on its way through, producing that deep color change. If you recently started an iron supplement and noticed darker, greener poop, the two are very likely connected.

Some antibiotics can also tint stool yellow or green by disrupting the normal balance of gut bacteria. Since those bacteria are responsible for converting green bile into brown stercobilin, anything that reduces their numbers can shift the color.

Infections and Digestive Conditions

Bacterial infections in the gut, like those caused by Salmonella or E. coli, can produce green diarrhea. The mechanism is the same rapid-transit effect: inflammation causes your intestines to push food through so quickly that bile doesn’t have time to break down. Viral stomach bugs can do the same thing.

Irritable bowel syndrome (IBS) is another potential cause, particularly during flare-ups that involve diarrhea. The green color itself isn’t the problem in these cases. It’s a side effect of the increased speed. If you’re also experiencing cramping, watery stools, fever, or nausea, the underlying illness matters more than the color.

Green Stool in Babies

Parents notice green poop in babies frequently, and it’s usually not a concern. Newborns produce dark green-black meconium in the first few days, which is normal. After that transition, green stools in breastfed babies can happen when a baby doesn’t finish nursing on one side and misses some of the higher-fat hindmilk, which affects how the milk is digested. Babies on protein hydrolysate formula (used for milk or soy allergies) also tend to produce greener stools.

Breastfed infants who haven’t yet developed a full population of intestinal bacteria may produce green poop simply because those bacteria aren’t there yet to complete the bile-to-brown conversion. Diarrhea from any cause in infants will produce the same green color it does in adults.

When Green Poop Signals a Problem

A single episode of green stool, or even a few days of it after a big salad or a course of antibiotics, is not a red flag. The color on its own is one of the least worrying changes your stool can make.

What does matter is context. Green stool paired with persistent diarrhea, fever, or significant abdominal pain could point to an infection that needs treatment. If you notice bright red or black (tarry) stool, that may indicate bleeding somewhere in the digestive tract and warrants prompt medical attention.

If your stool stays green for more than a few days without an obvious dietary explanation, or if the color keeps changing unpredictably, it’s worth bringing up with a healthcare provider. In most cases, though, green poop resolves on its own once the food, supplement, or illness that caused it has passed through your system.