A vague pain under the right rib cage needs to be treated after identifying the cause. A vague pain under the right rib cage is considered to be caused by a disease or abnormality related to the liver, gallbladder, or intestines. Most people may have experienced a vague pain under the right rib cage, and the pain disappears after farting with appropriate activities. It may be the pain of intestinal spasm stimulated by the accumulation of gas in the intestines caused by eating, laughing and joking, etc., and does not require treatment. If the situation is repeated for a long time, you need to go to the hospital for further examination and treatment, there may be inflammation of the intestines or polyps and other diseases. A few people may have liver inflammation, liver cancer, gallbladder stones or cholecystitis, etc. All of them need to go to the regular hospital for detailed examination and treatment.