For some people, a drastic reduction in dietary sugars and some cutback in refined starches and wheat flour may help. Activated charcoal, a tasteless black powder, absorbs gas and for some people cuts down on gassiness, particularly after a high-carbohydrate meal. Occasional use is not harmful. Additionally, Pepto-Bismol may reduce the odor of flatus.
Some people have had success with anticholinergic drugs such as dicyclomine (Bentyl) and hyoscyamine (Levsin). These agents block nerves that stimulate the digestive tract. A course of the broad-spectrum antibiotic rifaximin (Xifaxan) may also help reduce flatulence, without side effects.
A variety of probiotics have been tried for treating flatulence, with some success. But the size and quality of studies has not been sufficient to make specific recommendations.
When all else fails, wearing a deodorizing and absorbing pad containing activated charcoal beneath one's undergarments doesn't stop flatulence, but it can prevent others from noticing it. A study in The American Journal of Gastroenterology found that such devices are moderately effective.