Green poop is almost always harmless. The most common cause is something you ate, whether that’s a big salad, a food with artificial coloring, or a supplement like iron. Less often, green stool signals that food moved through your digestive system faster than usual, which prevented the normal color change from green to brown.
Why Stool Is Normally Brown
Your liver produces bile, a green fluid that helps break down fats in your small intestine. As bile travels through the digestive tract, bacteria and enzymes chemically alter it, gradually shifting its color from green to yellow to brown. That final brown shade is what most people see on a typical day.
When something speeds up that journey, bile doesn’t have enough time to complete the color change. The stool arrives at the finish line still partially green. This is the single most common non-dietary explanation: rapid transit time. Anything that causes diarrhea, whether it’s a stomach bug, stress, or a food intolerance, can produce green stool simply because everything moved too fast.
Foods That Turn Stool Green
If you ate any of the following in the past day or two, you likely have your answer:
- Green vegetables: spinach, kale, broccoli, and other leafy greens are the most frequent culprits. A large smoothie loaded with greens can be enough.
- Other plant foods: avocados, pistachios, fresh herbs, and matcha (powdered green tea) all carry enough pigment to shift stool color.
- Blueberries: despite being blue-purple, blueberries can produce shades of green as their pigments interact with bile.
- Artificial food dyes: brightly colored frosting, candy, sports drinks, and ice cream contain synthetic dyes that continue tinting whatever they touch as they pass through your system. Purple and blue dyes are especially likely to create green results when they mix with yellow bile.
Diet-related green stool typically resolves within one to three days after you stop eating the food in question. If you’re not sure whether food is the cause, think back over the last 48 hours. Most people can identify something obvious once they consider it.
Supplements and Medications
Iron supplements are one of the most reliable causes of color changes in stool. They commonly produce dark green or even black-green stools, and this is a normal, expected side effect rather than a sign of a problem. If you recently started an iron supplement and noticed the change, that’s almost certainly the connection.
Antibiotics can also turn stool green. They do this in two ways: by killing off some of the gut bacteria responsible for converting bile from green to brown, and by speeding up digestion (antibiotic-associated diarrhea is common). In rare cases, antibiotic use has been linked to bacterial overgrowth that produces distinctly greenish stool. Other medications that occasionally cause green stool include certain anti-inflammatory drugs and the birth control shot.
Infections and Digestive Illness
Bacterial and parasitic infections can produce green diarrhea. Salmonella, a common cause of food poisoning, frequently causes loose green stools along with cramping, nausea, and fever. Giardia, a waterborne parasite, does the same. In both cases, the green color comes from the combination of rapid transit time and inflammation in the gut that alters how bile is processed.
The key difference between infection-related green stool and a dietary cause is the company it keeps. Food poisoning and parasitic infections rarely cause just a color change. They typically come with watery diarrhea, stomach cramps, fever, or vomiting. If you’re experiencing green stool alongside those symptoms, an infection is a reasonable explanation. Green stool on its own, with no other symptoms, almost never points to infection.
Conditions that cause chronic inflammation in the gut, such as Crohn’s disease or ulcerative colitis, can also produce green stool during flare-ups. Again, there are usually other prominent symptoms: persistent diarrhea, abdominal pain, blood or mucus in the stool, weight loss, or fatigue.
Green Stool in Babies
Green poop in newborns and infants is common and usually normal. In the first few days of life, babies pass meconium, a dark greenish-black stool that’s entirely expected. Over the following days, stool transitions through shades of green before settling into the yellow or mustard color typical of breastfed babies, or the tan-brown color common with formula.
In breastfed babies, green stool sometimes appears when a baby doesn’t fully finish feeding on one breast before switching to the other. The earlier milk in a feeding session is lower in fat, and missing the higher-fat milk at the end can affect how digestion processes the feeding. This isn’t dangerous, but if it happens frequently, adjusting feeding patterns by letting the baby finish one side before offering the other often resolves it. Formula-fed babies also pass green stool occasionally, particularly with iron-fortified formulas.
When Green Stool Needs Attention
A single episode of green stool, or even a few days of it after a dietary change, is not a concern. The situations worth paying attention to are:
- Green stool lasting more than a few days with no obvious dietary explanation, which could suggest ongoing rapid transit or a malabsorption issue.
- Green diarrhea with fever, vomiting, or severe cramps, which may indicate an infection that needs treatment.
- Green stool with blood or mucus, which can signal inflammation in the intestines.
- Unexplained weight loss or persistent changes in bowel habits accompanying the color change.
Bright red or black stool is a separate concern from green. Red or black can indicate bleeding in the digestive tract and warrants prompt medical attention, while green on its own is far less likely to signal something serious. If you can trace the color back to spinach, a green smoothie, food dye, or an iron supplement, you can safely wait for your next bowel movement and expect the color to return to normal.

