Gas causes pain in the area of the upper left ribs when individuals are passing gas, are experiencing constipation or difficult bowel movements, or have eaten gassy foods recently, explains About.com. The pain may span from the upper abdomen to the rib cage or chest areas when gas is present.
Intestinal gas caused by gut bacteria can result in trapped gas which produces pain near the rib cage, according to About.com. Individuals with severe pain from gas should consult with a physician. Home remedies such as sipping hot tea, allowing excess gas to pass, and creating a bowel movement schedule can all help to alleviate trapped gas causing pain in or around the rib cages.