Flexi Says: The bacteria present in the gut break down the remains of digested food through fermentation, creating gas in the process. A fart contains gases such as nitrogen, hydrogen, carbon dioxide, methane, and a small amount of hydrogen sulphide.