Foods that contain high amounts of sulfur, such as onions or garlic, may cause you to produce more smelly gas.