Why Is My Poop Green? Causes and When to Worry

Green stool is almost always harmless. The two most common causes are eating green-pigmented foods and food moving through your digestive tract faster than usual, which prevents bile from completing its normal color change. In most cases, your stool will return to its typical brown color within a day or two once the trigger passes.

Why Stool Is Normally Brown

Your liver produces bile, a bright green fluid that helps you digest fats. As bile travels through your intestines, bacteria break it down and chemically transform it, shifting its color from green to yellow to brown. That final brown shade is what most people see on a regular basis. The key factor is time: bile needs enough hours in your large intestine for bacteria to fully process it. Anything that shortens that window or overwhelms the system with green pigment can leave you with a green result.

Foods That Turn Stool Green

The most straightforward explanation is that you ate something green. Chlorophyll, the pigment that makes plants green, can do the same to your stool. Spinach, kale, and broccoli are the usual suspects, but avocados, fresh herbs, matcha, and even pistachios contain enough chlorophyll to have the same effect. If you had a big salad, a green smoothie, or a handful of pistachios recently, that’s likely your answer.

Blueberries can also produce green-tinged stool, which surprises people since the fruit itself is dark blue. The pigments interact with bile in ways that sometimes create green rather than the dark shade you’d expect. Artificial food dyes are another common culprit. Brightly frosted cupcakes, colored drink mixes, ice pops, and candy can tint your stool vivid shades of green that look alarming but are completely benign.

Fast Digestion and Diarrhea

If you haven’t eaten anything particularly green, the next most likely explanation is that food moved through your system too quickly. When transit time through the large intestine is shorter than normal, bile doesn’t have enough time to be fully broken down by gut bacteria. It stays closer to its original green color instead of converting to brown. This is why diarrhea often produces green stool, even if your diet hasn’t changed. A stomach bug, food intolerance, a stressful day, or too much coffee can all speed things up enough to cause this.

Supplements and Medications

Iron supplements are a well-known cause of color changes in stool. They can turn it dark green or even black, which looks concerning but is a normal chemical reaction between iron and your digestive fluids. If you recently started an iron supplement, that’s very likely the explanation.

Some antibiotics can also tint stool yellow or green. They do this partly by disrupting the gut bacteria responsible for converting bile to its usual brown color. If your green stool started around the same time as a new medication, the timing probably isn’t a coincidence.

Green Stool in Babies

Parents often notice green stool in infants and worry something is wrong. In most cases, it’s normal. Breastfed babies can produce green stool if they don’t fully finish feeding on one side before switching, because they miss some of the higher-fat milk that comes later in a feeding. That fat content affects how the milk is digested, changing the stool color.

Babies on protein hydrolysate formula (used for milk or soy allergies) commonly have green stool as well. Breastfed infants who haven’t yet developed a full population of intestinal bacteria may also produce green stool simply because the bacteria needed to transform bile pigments aren’t fully established yet. Diarrhea in babies causes green stool for the same reason it does in adults: faster transit means less bile breakdown.

How Long It Lasts

Diet-related green stool typically resolves within one to three days after you stop eating the trigger food. If diarrhea is the cause, the color should normalize once your bowel movements return to their usual frequency and consistency. Iron supplements will keep producing dark green or black stool for as long as you take them, which is expected and not a reason to stop.

Signs That Something Else Is Going On

Green stool on its own, without other symptoms, is rarely a medical concern. What changes the picture is when green stool shows up alongside persistent diarrhea lasting more than a few days, fever, significant abdominal pain, blood or a dark tarry appearance that isn’t explained by iron supplements, or unintentional weight loss. These combinations can point to infections, inflammatory conditions, or other digestive problems that need evaluation. A single episode of green stool after a big spinach salad is not the same situation as weeks of green, loose stools with cramping.