Green diarrhea can be alarming, but it is usually not a medical emergency. The color of your stool comes largely from bile, a digestive fluid your liver produces. When bile moves through your digestive tract too quickly, it stays green instead of turning the typical brown color. In most cases, the cause is something you ate, a mild stomach bug, or a medication you took.
Why Is My Stool Green Instead of Brown?
Bile is naturally yellow-green. It helps break down fats in your small intestine. As bile travels through your intestines, bacteria work on it and change its color from green to yellow to brown.
That color change takes time. If your stool passes through your colon faster than normal, the bacteria do not have enough time to do their work. The result is green stool. This is the most common mechanism behind green diarrhea.
Anything that speeds up digestion can cause this. That includes viral infections, food intolerances, and some medications. The green color itself is not the problem. The underlying cause of the fast transit time is what matters.
What Foods Can Turn Your Stool Green?
Food is the most common cause of green stool. Leafy green vegetables are an obvious culprit. Spinach, kale, broccoli, and parsley contain chlorophyll, the pigment that makes plants green. When you eat a large amount, some of that pigment can pass through undigested and color your stool.
Food coloring is another frequent cause. Green, blue, or purple dyes can mix with bile and produce green stool. This includes green gelatin, green frosting, sports drinks, and some candies. Even dark purple foods like grapes or blueberries can sometimes create a greenish result.
Iron supplements are also known to darken stool, and in some people, they produce a greenish tint. This is harmless. If you recently started a new supplement and noticed green stool, that is likely the explanation.
Can a Stomach Bug Cause Green Diarrhea?
Yes. Viral gastroenteritis, often called the stomach flu, is a common cause of green diarrhea. The infection inflames your intestinal lining, which speeds up how quickly food and waste move through your system.
When your body is fighting an infection, bile does not have time to change color. It passes through in its natural green state. This is why green diarrhea is common during stomach bugs, especially in children.
Bacterial infections can also cause green stool. Some types of food poisoning produce green diarrhea along with fever, cramping, and nausea. If you have these symptoms together, especially after eating something questionable, a bacterial infection is possible.
What Medications Can Turn Stool Green?
Several medications can change stool color. Antibiotics are among the most common. They alter the balance of bacteria in your gut, which can affect how bile is processed. Some antibiotics also cause diarrhea directly, which speeds up transit time.
Laxatives and stool softeners can also produce green stool because they push waste through faster. Metformin, a diabetes medication, is known to cause digestive changes in some people, including altered stool color.
If you recently started a new medication and developed green diarrhea, check the medication’s side effect list. But do not stop taking a prescribed medication without talking to your doctor first.
When Should You See a Doctor About Green Diarrhea?
Green diarrhea that lasts a day or two and goes away on its own is rarely a concern. You should monitor how you feel overall, not just the color of your stool.
See a doctor if you have green diarrhea that lasts more than a few days. Also seek medical attention if you have any of these warning signs:
- Blood or mucus in your stool
- High fever above 101°F
- Severe abdominal pain that does not go away
- Signs of dehydration, such as dark urine, dizziness, or extreme thirst
- Green diarrhea that keeps coming back over weeks
Persistent green stool without diarrhea can also be a sign of a digestive condition. Conditions like Crohn’s disease, irritable bowel syndrome, or celiac disease can speed up digestion and produce green stool. If green stool is a recurring pattern, not a one-time event, it is worth discussing with your doctor.
How Is Green Diarrhea Treated?
Treatment depends on the cause. For most cases caused by a mild stomach bug or something you ate, the best approach is to let it run its course. Staying hydrated is the most important step.
Water is good, but diarrhea depletes electrolytes as well as fluids. Oral rehydration solutions, available at most pharmacies, replace both. Sports drinks can help, but they contain sugar that may worsen diarrhea in some people.
Eating bland foods can help settle your stomach. The BRAT diet — bananas, rice, applesauce, and toast — is a common recommendation. These foods are easy to digest and can help firm up stool.
Over-the-counter anti-diarrheal medications like loperamide can slow diarrhea. But if you have a fever or blood in your stool, do not use these medications. They can make a bacterial infection worse by keeping the bacteria in your system longer.
Is Green Diarrhea Dangerous for Children?
Children get green diarrhea more often than adults, usually from viral infections. It is common and usually resolves on its own. The main concern with any diarrhea in children is dehydration.
Watch for signs of dehydration in children, including a dry mouth, no tears when crying, fewer wet diapers than usual, and unusual sleepiness. If you see these signs, contact your child’s pediatrician.
Infants under three months with diarrhea should see a doctor. Their bodies can dehydrate quickly. For older children, green diarrhea without other symptoms is generally not an emergency.
Can Green Stool Be a Sign of Something Serious?
In rare cases, green stool can indicate a more serious condition. Liver and gallbladder problems can affect bile production and release. If your liver produces bile but your gallbladder cannot release it properly, bile can accumulate and affect stool color.
Green stool alone is rarely the only symptom of a serious condition. Liver disease usually comes with other signs like yellowing of the skin or eyes, dark urine, and abdominal swelling. Gallbladder problems typically cause pain in the upper right abdomen.
A parasitic infection called giardia can also cause green, foul-smelling diarrhea. This parasite is more common in people who drink untreated water from lakes or streams. If you have been camping or hiking recently and developed green diarrhea, mention this to your doctor.
What Does Green Diarrhea With Mucus Mean?
Mucus in stool is a normal finding in small amounts. Your intestines produce mucus to lubricate the passage of waste. When you have diarrhea, you may notice more mucus than usual because your intestines are irritated and producing extra.
Green diarrhea with mucus is common during intestinal infections. The green color comes from rapid transit, and the mucus comes from an irritated intestinal lining. Together, they often point to a viral or bacterial infection.
Large amounts of mucus, especially with blood, is different. This combination can indicate inflammatory bowel disease or a more serious infection. If you see significant mucus with blood, seek medical care.
Frequently Asked Questions
How long does green diarrhea last?
Green diarrhea from a stomach bug or food usually lasts one to three days. If it lasts longer than a few days, contact your doctor.
Can stress cause green diarrhea?
Stress can speed up digestion, which can produce green stool. Stress-related diarrhea is common, but stress alone as the cause of green stool is less established than dietary or infectious causes.
Is green diarrhea a sign of a bacterial infection?
It can be, especially if you also have fever, severe cramping, or blood in your stool. Many bacterial infections cause green diarrhea, but so do viral infections and foods.
Should I take anti-diarrheal medication for green diarrhea?
Only if you do not have a fever or blood in your stool. Anti-diarrheal medications can be unsafe with bacterial infections because they keep the bacteria in your body longer.

