Green poop is almost always harmless. The most common cause is something you ate, whether that’s a big spinach salad, a green smoothie, or a cupcake with bright frosting. In most cases, the color returns to its usual brown within a day or two once the food works its way through your system.
That said, there are times when green stool signals something worth paying attention to, from a stomach bug to a medication side effect. Here’s what’s actually going on.
Why Poop Is Normally Brown
Your liver produces a greenish-yellow fluid called bile that helps digest fats. As bile travels through your intestines, bacteria break it down and chemically transform it, gradually shifting its color from green to brown. This process takes time. Anything that speeds food through your gut or overwhelms the system with green pigment can short-circuit that color change, and you end up with green stool.
Foods That Turn Your Stool Green
Chlorophyll, the pigment that makes plants green, passes through your digestive system and can color your stool along the way. The biggest culprits are leafy greens like spinach, kale, and broccoli, but avocados, pistachios, fresh herbs, and matcha powder all carry enough chlorophyll to do the same thing. Blueberries can also produce green shades thanks to a compound called anthocyanin, which interacts with digestive enzymes in unexpected ways.
Artificial food dyes are another frequent cause. Brightly colored candy, frosting, sports drinks, and ice cream continue tinting whatever they touch as they move through your gut. If you eat enough rainbow-colored candy, the dyes can even mix together and turn stool nearly black. If you recently ate something unusually colorful and your stool changed within 12 to 24 hours, the food is almost certainly the explanation.
Iron Supplements and Medications
Iron supplements commonly turn stool a very dark green that can look almost black. This is normal, and some physicians actually consider it a sign the supplement is being absorbed properly. If the color bothers you, lowering your dose (with your doctor’s guidance) will typically lighten things up.
Antibiotics can also cause green stool. They disrupt the gut bacteria responsible for converting bile from green to brown, so until your bacterial balance recovers, the color may stay off. This usually resolves on its own once you finish the course of antibiotics.
Infections and Rapid Transit
When your body is fighting a gastrointestinal infection, food and fluids rush through your intestines much faster than usual. Bile doesn’t have time to complete its normal color transformation, so it exits still green. This rapid transit effect is why green diarrhea often accompanies stomach bugs.
Specific pathogens known to cause this include Salmonella, E. coli, norovirus, and the parasite Giardia. In these cases, green stool is rarely the only symptom. You’ll typically also have watery diarrhea, cramping, nausea, or fever. The green color itself isn’t the problem; it’s just a visible sign that your gut is moving things through too quickly to process them normally.
Digestive Conditions
Chronic conditions that affect how your intestines absorb food can produce green stool on an ongoing or recurring basis. Irritable bowel syndrome (IBS), Crohn’s disease, and ulcerative colitis all fall into this category. Each of these can cause episodes of rapid transit, meaning bile passes through without fully breaking down. If you’re noticing green stool repeatedly over weeks, especially alongside cramping, bloating, or alternating diarrhea and constipation, an underlying digestive condition may be worth investigating.
Green Poop in Babies
If you’re a parent searching this for your infant, take a breath. Green poop in babies is completely normal. A newborn’s very first stools (called meconium) are thick, black, and tarry. Within days, as breastfeeding or formula feeding begins, stool transitions to green or yellow with a more liquid consistency. Breastfed babies tend to stay in the green-yellow-brown range for as long as they nurse, and formula-fed babies produce similar colors, sometimes slightly lighter.
Dark green baby poop is usually just bile doing its job. The one thing to watch for: look closely to make sure dark green isn’t actually black, which could indicate blood in the stool. Bright green poop in a newborn who hasn’t been pooping at all in the first few days of life can be a warning sign of a bowel obstruction, which needs prompt medical attention.
When Green Stool Needs Attention
A single episode of green poop with no other symptoms is rarely a concern. The color change typically resolves on its own within one to three days once the triggering food, supplement, or bug clears your system.
Green stool is worth taking more seriously when it comes with other symptoms: persistent diarrhea lasting more than a few days, fever, significant abdominal pain, blood or mucus in the stool, or unexplained weight loss. These combinations can point to an infection that needs treatment or a digestive condition that benefits from diagnosis. Green stool that keeps recurring for weeks without an obvious dietary explanation also deserves a closer look.
For most people, though, the answer is straightforward: think back to what you ate yesterday. If it was green, your stool probably will be too.