Think about the foods you ate, any vitamins or supplements you took—even if they're not green in color. Foods that are rich in Iron as well. Stool can also appear green for physical reasons, and not just from what you've been eating. We think of a healthy stool as being brown. Bile that is secreted in the first part of the small intestine is actually green. As stool is digested and passed through the large intestine it is turned into a darker brown color.
If stool is still green by the time it is excreted, it could mean that it went through the large intestine too fast to be changed in color. This is often called "rapid transit" or "decreased colonic transit time" and diarrhea that is green in color could be the result.
You don't state when this started, but if it's been going on for over a week and you can't link it to any of the above I have listed, plus with the gas pain etc.. Do see your doctor. If you are able to, seeing a Gastroenterologist would be much better at getting to the cause of this.
Hope this helps, If you need anything else please feel free to ask. If you found this helpful don’t forget to click the *accept* button!