The act of farting, or flatulence, can be a surprising, often embarrassing, potentially stinky, and sometimes outright booming experience that many people would be more than happy to do without. Seriously, though, when it comes down to it, what's farting all about?
The gas that makes up a fart comes from two sources: more originates from the breakdown of food by the digestive system, and some is from swallowed air. In the first case, foodstuffs are broken down by enzymes, stomach acids, and intestinal bacteria in order for the energy in them to be made available to the body. Through the processes of digestion and fermentation, gases can be liberated from what's eaten. In the second case, air that a person swallows from eating, drinking, breathing, chewing gum, and being stressed, among other ways of entry, that's not expelled during a burp travels through the stomach and intestine, transforming into fart-ready mode. In either case, the gases flow down through the rest of the digestive tract and eventually exit the body — Poof! Ping! Pfft! Toot-toot! Kaboom! — expelled as a fart, or farts. And this silent or noisy expulsion of air can help bring about some relief and comfort from a buildup of gas within the lower part of the body.
The gases that make up a fart are composed mostly of hydrogen, carbon dioxide, and methane.
Surprisingly it is not the methane that produces the horrible smell we all are familiar with. The odor comes from hydrogen sulfide gas and mercaptans. Both of these compounds contain sulfur. The more sulfur in your food the smellier your farts will be. To clear out a room you'd want to eat a lot of eggs, cauliflower, or meat. Farts smell obnoxious because of the breakdown of compounds containing sulfur (think rotten eggs). Some foods, such as cabbage, eggs, onions, and meat, contain more sulfur than others, which is why some farts smell worse than other farts.
We fart to expel these gases that would be potentially harmful to us if absorbed by our bodies. Since they do often smell I'm quite glad our system uses the opening that it does to expel this gas.