What Causes Green Diarrhea and What to Do About It

Occasional green stool (green poop) is nothing to panic about. Most of the time, there is a simple explanation for it. Eating certain foods or supplements can turn poop green.

However, there could also be a medical reason for passing green stool. A viral infection or another stomach bug can cause loose stools that have a greenish hue. Green diarrhea can also be due to a problem with digestion.

This article discusses the different causes of green stool and when you should talk to your doctor if you have it.

causes of green diarrhea
Verywell / Joshua Seong

Food or Supplements

There are several non-medical reasons for stool to appear green. Passing one solid, green stool is nothing to be concerned about. Green diarrhea may also be within the range of normal stool.

If you experience green stool, try to recall what foods you have eaten or what supplements you have taken over the past several days. Even if the food was not actually green, it could explain it. The following foods and supplements can cause green stool:

  • Eating green foods: The first and most obvious reason for a stool to be green is from eating green foods. Green leafy vegetables contain chlorophyll, a green pigment which could be coloring the stool. Green food coloring is also a common reason for stools to be green.
  • Eating purple foods: Foods with dark purple coloring, such as Kool-Aid, popsicles, and gelatin (Jell-O), can also result in greenish or green stools.
  • Iron-rich food or supplements: Iron supplements or iron-rich foods can give stool a green tinge. If an iron supplement is causing too much digestive distress (such as bloating or constipation), talk to a doctor about switching supplements.

Green Stool Around the Holidays

One of the biggest times to see green stools is during holidays when green food dye is commonly used:

  • Christmas
  • Easter
  • St. Patrick's Day

Green food coloring can take a day or two to pass through your system, so you might not connect the dots at first.

Eating unfamiliar foods at holiday meals also can cause looser stools, especially if the food is high in fat.

A green stool might not appear for a day or two after eating green foods, and by then it is easy to forget what was eaten.

Medical Causes

A viral infection can cause green diarrhea, sometimes along with vomiting. Viral gastritis (inflammation of the stomach) usually passes in a few days, and while uncomfortable, it's not usually something to be concerned about.

Consult your doctor when green diarrhea can't be explained by a food source or a virus that causes vomiting and diarrhea. It's not common, but green stool can be a sign of a medical condition.

Healthy stool tends to be brown with some variation in shade. Bile (a substance that helps digest fat) is secreted in the first part of the small intestine and is actually green. As stool continues through the digestive tract and passes through the large intestine, the bile becomes darker brown.

If the stool is still green by the time it comes out, it could mean that it went through the large intestine too fast to be turned brown. This is known as "rapid transit" or "decreased colonic transit time."

This is especially true with green diarrhea rather than a full-formed stool. Food that is moving so quickly through the digestive system will not spend a long enough time in the large intestine for water to be absorbed, resulting in a loose stool.

Green Stools in Infants and Children

Green stool is a normal occurrence in breastfed infants, especially in the first days after delivery, and is no cause for alarm.

In infants, stools will gradually change to yellow and brown as the baby approaches their first birthday and more varied foods are added to the diet.

For formula-fed babies, green stool may continue for several months. This is likely due to the iron content of some formulas.

In addition, giving an infant or a child an iron supplement (as is commonly recommended by pediatricians) may also cause green stools.

Some parents say their children have green stools while teething. There is no scientific evidence to support this common observation, however.

In older children, green stool could be food-related or due to eating non-food items, such as crayons.

If your child has swallowed or eaten a non-food object, call Poison Control at 1-800-222-1222.

When to Call a Doctor

There are some situations in which green diarrhea can be a sign of a more serious problem. You should call your doctor if:

  • Diarrhea continues for more than three days.
  • Diarrhea is accompanied by severe pain and stomach cramps.
  • Diarrhea is accompanied by vomiting for more than 24 hours.
  • There are signs of dehydration, such as dry skin, mouth, and lips, and decreased urine output.
  • There have been other changes to your bowel habits in addition to green diarrhea.


Green stool is unusual but not typically something to worry about. 

The most common cause of green stool is diet. Eating green, blue, or purple foods is often the culprit—especially items prepared using food dyes. 

A viral infection usually causes green diarrhea. This is likely the case if other symptoms are present, such as vomiting, stomach cramps, fatigue, or fever. 

Green diarrhea on its own that lasts for more than a few days or comes and goes could be a sign of a digestive issue. 

Call your doctor if diarrhea lasts longer than three days or is accompanied by vomiting for more than 24 hours. 

Frequently Asked Questions

  • Is green stool a sign of infection?

    By itself, passing a solid green stool is not a sign of infection. In fact, it may simply be due to eating green-colored foods, like vegetables and fruits, or even green food dye.

  • Why is my poop green and my stomach hurts?

    Certain medications may be the cause of green poop and an upset stomach. If the medication interacts with the bacteria found in your gut, it can cause stool to have a greenish tint. If you experience these symptoms after taking your medication, it may be a good idea to talk to your prescriber about the issue.

  • What causes diarrhea?

    Common causes for sudden diarrhea include food poisoning and stomach flu. On the other hand, persistent diarrhea can be caused by celiac disease, food allergy or food intolerance, inflammatory bowel disease (IBD), irritable bowel syndrome (IBS), medication, and genetics.

  • What causes loose stool?

    Loose stool can be caused by a viral infection, stomach bug, and eating foods that are high in fat. Loose stool can also be the result of food traveling too quickly through the digestive system; if the large intestine doesn't have enough time to extract water from the food, this can result in loose stool.

Was this page helpful?
5 Sources
Verywell Health uses only high-quality sources, including peer-reviewed studies, to support the facts within our articles. Read our editorial process to learn more about how we fact-check and keep our content accurate, reliable, and trustworthy.
  1. Tan CK, Chao CM, Lai CC. Green feces. QJM. 2013;106(3):287. doi:10.1093/qjmed/hcr271

  2. InformedHealth.org. Infectious diarrhea: Traveler's diarrhea. Cologne, Germany: Institute for Quality and Efficiency in Health Care (IQWiG);

  3. Levy J. My Tummy Hurts, A Complete Guide to Understanding and Treating Your Child's Stomachaches. Simon and Schuster; 2004.

  4. den Hertog J, van Leengoed E, Kolk F, et al. The defecation pattern of healthy term infants up to the age of 3 monthsArch Dis Child Fetal Neonatal Ed. 2012;97:F465-70. doi:10.1136/archdischild-2011-300539

  5. Cleveland Clinic. Why Is your poop green?