Green poop in kids is almost always harmless. In most cases, it comes down to something your child ate, a supplement they’re taking, or how quickly food moved through their digestive system. Occasionally, green stool signals an infection or other issue worth paying attention to, but the color alone is rarely a reason to worry.
Why Stool Turns Green
Bile, a digestive fluid made by the liver, starts out green. As it travels through the intestines, bacteria break it down and it gradually shifts from green to yellow to brown. When food passes through the gut faster than usual, bile doesn’t have time to fully break down, and the stool stays green. This is the single most common explanation for green poop in children of all ages, and it can happen with mild stomach bugs, dietary changes, or even just a day of unusual eating.
Foods and Drinks That Cause It
Diet is the first thing to consider. Spinach, kale, and other dark leafy greens are obvious culprits, but plenty of less obvious foods can do it too. Green Jell-O, green fruit snacks, and artificially colored cereals or candies all contain dyes that pass through largely unchanged. Grape-flavored Pedialyte, which many parents give during illness, can turn stool bright green. Even large amounts of green vegetables in pureed baby food can have the same effect.
If your child recently ate something green or artificially colored, that’s likely the full explanation. The color typically returns to normal within a day or two once the food clears their system.
Green Poop in Newborns and Infants
For babies in the first week of life, green poop is completely expected. A newborn’s first stool, called meconium, is black or dark green and sticky. Over the next few days, stool transitions to a yellow-green color before settling into the mustard yellow that’s typical of breastfed babies or the tan-brown common with formula.
Beyond the newborn period, breastfed babies sometimes produce green, frothy stools related to how they feed. Breast milk changes composition during a single nursing session. The milk that comes first (foremilk) is thinner and more watery, while the milk toward the end (hindmilk) is richer in fat. If a baby feeds for short periods or switches breasts too quickly, they may get more of the watery foremilk and less of the fattier hindmilk. This can speed digestion and produce green, sometimes frothy stool. Letting your baby finish one breast more completely before switching sides often resolves this.
Teething is another trigger in infants. Babies swallow excess saliva when teeth are coming in, and this can speed up gut transit time enough to turn stool green.
Iron Supplements and Medications
Iron supplements are a well-known cause of color changes in stool. In children taking iron, poop often turns greenish-black or grayish-black. This is a normal chemical reaction between iron and digestive fluids, not a sign of bleeding or any problem. The color change typically persists for as long as your child takes the supplement.
Some antibiotics can also cause green stool by disrupting the normal gut bacteria that help break down bile. If your child started a new medication and you notice the color shift, the timing usually makes the connection clear.
Stomach Bugs and Infections
When green poop comes with diarrhea, fever, cramping, or vomiting, an infection is the more likely cause. Viral gastroenteritis (stomach flu) is the most common culprit, and it speeds food through the intestines so quickly that bile stays green. Bacterial infections can do the same. In one documented outbreak at a child care center, 14 out of 25 children developed watery, greenish diarrhea caused by a strain of E. coli that didn’t show up on standard stool tests.
Parasitic infections like giardia, which kids can pick up from contaminated water or daycare settings, also produce persistent green or yellow-green diarrhea that can last weeks if untreated. If your child has green diarrhea lasting more than a couple of days, especially with foul-smelling or greasy stools, a stool sample can help identify the cause.
Signs That Need Attention
Green poop by itself, in a child who’s eating, drinking, and acting normally, doesn’t require medical evaluation. The real concern is when green diarrhea is frequent enough to cause dehydration, or when it’s paired with other worrisome symptoms.
In mild dehydration (around 3% to 5% of body weight lost as fluid), decreased urine output may be the only noticeable sign. As dehydration progresses, you’ll see a dry mouth, skin that doesn’t bounce back quickly when pinched, a faster heart rate, and increased fussiness. Severe dehydration, which is a medical emergency, causes lethargy, sunken eyes, mottled skin, and a child who seems extremely ill or difficult to wake. Electrolyte imbalances from prolonged dehydration can lead to seizures and organ damage.
Other red flags to watch for alongside green stool include blood or mucus mixed into the poop, persistent vomiting that prevents your child from keeping fluids down, high fever lasting more than a day or two, significant belly pain, or any stool that is actually black (not greenish-black from iron) which could indicate bleeding higher in the digestive tract. A single episode of green poop is almost never concerning. A pattern of green diarrhea with any of these additional symptoms warrants a call to your pediatrician.
How Long Green Poop Lasts
When food or dye is the cause, green stool resolves within one to two days. Iron supplements will continue to darken stool for as long as your child takes them. After a stomach bug, stools may remain loose and green-tinged for several days as the gut recovers, but they should gradually return to a normal color and consistency within a week. If green diarrhea persists beyond two weeks, it’s worth investigating for a parasitic infection, food sensitivity, or other digestive issue that may need targeted treatment.

