A healthy person farts 14 to 20 times each day. The gases come from trillions of bacteria living in the gut that break down food the stomach cannot digest on its own. These microbes act as chemical factories, releasing waste gases that mix with air you swallow and other gases produced during digestion.

Farts consist mostly of odorless gases. Nitrogen makes up 20 to 90 percent of a fart's volume, oxygen comprises up to 10 percent, carbon dioxide up to 30 percent, hydrogen up to 50 percent, and methane up to 10 percent. Microbes produce most of the carbon dioxide, hydrogen, and methane.

The stench comes from sulfur-containing molecules. Hydrogen sulfide smells like rotten eggs. Methanethiol carries scents of cabbage, sewage, or skunk spray. Dimethyl sulfide smells like cooked corn, algae, or seafood. Only trace amounts are needed to produce a noticeable smell. One molecule of hydrogen sulfide among 1 million other gas molecules carries enough odor to be detected.

Brenda A. Wilson, a professor of microbiology at the University of Illinois Urbana-Champaign, explained that the foods you eat determine which gases and how much of them end up in farts. Sulfur-rich foods like meat, dairy, eggs, and vegetables such as cabbage, broccoli, Brussels sprouts, and cauliflower contain amino acids or molecules with sulfur. When gut microbes digest these foods, they produce sulfur-containing gases.

Persistent foul-smelling gas can signal illness such as irritable bowel syndrome or food intolerance, according to the article. Farts travel at speeds up to 10 feet per second when they exit the body, causing surrounding tissue to vibrate and often producing noise.