Pain Under Right Rib Cage. The causes of pain under the right rib cage range from inflamed costal cartilage, fractures, or cracked ribs due to an injury, to referred pain from organs located on the right side of the rib cage or the right upper quadrant of the abdomen.