The intestines produce between 500 and 2,000mls of gas daily, which is passed out of the anus at regular intervals. The gas, or 'flatus', consists of a number of gases including methane, nitrogen and carbon dioxide. The varying smells depends on the ratio of gases.