Our Services
Medical Information
Helpful Resources
Published on: 9/12/2026
Pain under the right rib can come from either the liver or the gallbladder, and the pattern of the pain offers important clues: gallbladder attacks often cause sudden, intense, cramping pain that peaks within an hour after fatty meals and may radiate to the right shoulder blade with nausea or vomiting, while liver conditions such as hepatitis or fatty liver more often cause a dull, persistent ache or pressure alongside fatigue, yellowing skin or eyes, dark urine, or swelling. Other causes, including muscle strain, gastritis, ulcers, kidney stones, or lung problems, can mimic both, so location alone is not enough to tell them apart. Warning signs that need urgent care include pain lasting more than a few hours, fever with chills, jaundice, or pain severe enough to prevent you from standing upright. Several factors, including timing, triggers, and accompanying symptoms, help distinguish these conditions, and the key details are explained below.
Because liver and gallbladder problems are treated very differently and some cases become emergencies quickly, a free, instant, online symptom check can help you sort through your specific symptoms in minutes and understand whether you should monitor at home, book a doctor's visit, or seek care right away.
Last reviewed for medical accuracy: 09/11/2026
Is pain under right rib a sign of liver disease or a gallbladder attack?
Pain under right rib can stem from many causes, including gallbladder issues or liver disease. Understanding the differences helps you decide when to seek care, how urgent it might be, and what questions to ask your doctor.
Gallbladder-related
Liver-related
Other possibilities
Feature
Gallbladder Attack
Liver Disease
Nature of pain
Sharp, crampy, comes in waves
Dull, aching, persistent
Timing
Often after heavy/fatty meal
Can be constant or related to illness onset
Associated symptoms
Nausea, vomiting, sometimes fever
Fatigue, loss of appetite, weight loss, jaundice
Jaundice (yellowing)
Less common unless bile duct blocked
Common in hepatitis, severe liver injury
Fever
Mild if any with biliary colic
Variable; can be high with infection/abscess
Blood test changes
Elevated bilirubin, ALP if duct blocked
Markedly abnormal AST/ALT, bilirubin, prolonged clotting times
While many causes of pain under right rib are not life-threatening, some require prompt care. See a doctor or go to the emergency department if you have any of the following:
For less severe pain, you might explore your symptoms with a free, online symptom check, using the doctor approved Ubie Symptom Checker (https://ubiehealth.com/) before talking to your healthcare provider.
Gallbladder issues
Liver conditions
Other causes
Always remember: this information is a general guide. If you’re ever in doubt—especially if you experience severe pain, persistent vomiting, high fever, confusion, or signs of bleeding—please speak to a doctor or call emergency services. Your health matters, and timely care can make all the difference.
(References)
* Turnbull AD. Abdominal emergencies. Curr Probl Cancer. 1979 Oct;4(4):42-52. doi: 10.1016/s0147-0272(79)80016-1. PMID: 316758.
* Batey A, Khan MA. Acalculous cholecystitis. Clin Gastroenterol Hepatol. 2007 Mar;5(3):e8. doi: 10.1016/j.cgh.2006.09.018. Epub 2007 Jan 9. PMID: 17218165.
* Kimura Y, Takada T, Kawarada Y, Nimura Y, Hirata K, Sekimoto M, Yoshida M, Mayumi T, Wada K, Miura F, Yasuda H, Yamashita Y, Nagino M, Hirota M, Tanaka A, Tsuyuguchi T, Strasberg SM, Gadacz TR. Definitions, pathophysiology, and epidemiology of acute cholangitis and cholecystitis: Tokyo Guidelines. J Hepatobiliary Pancreat Surg. 2007;14(1):15-26. doi: 10.1007/s00534-006-1152-y. Epub 2007 Jan 30. PMID: 17252293; PMCID: PMC2784509.
* Knab LM, Boller AM, Mahvi DM. Cholecystitis. Surg Clin North Am. 2014 Apr;94(2):455-70. doi: 10.1016/j.suc.2014.01.005. Epub 2014 Feb 18. PMID: 24679431.
* Matsuura H, Hata H. Opposite Murphy's Sign. Gastroenterology. 2019 Mar;156(4):879-880. doi: 10.1053/j.gastro.2018.10.037. Epub 2018 Oct 26. PMID: 30612994.
* Mhamdi S, Mhamdi K. Emphysematous Cholecystitis. N Engl J Med. 2019 Aug 22;381(8):e14. doi: 10.1056/NEJMicm1814551. PMID: 31433924.
* Bom WJ, Gans SL, Claessen JJM, Boermeester MA. [Abdominal pain]. Ned Tijdschr Geneeskd. 2023 Apr 18;167. Epub 2023 Apr 18. PMID: 37078557.
* Alsadery HA, Bamalan OA, Aljubran HJ, Albaish LJ, Al Ghanim BZ. Non-obstetric Acute Abdomen in Pregnancy: a Review of Literature. Med Arch. 2023;77(4):293-298. doi: 10.5455/medarh.2023.77.293-298. PMID: 37876566; PMCID: PMC10591244.
* Hamblin HM, Goel A, Pennington JR. Gallbladder torsion. JAAPA. 2024 Jul 1;37(7):29-31. doi: 10.1097/01.JAA.0000000000000020. Epub 2024 Jun 25. PMID: 38916367.
* Mingo PT, Buel KL. Abdominal Pain Syndromes: Gallstone Disease. FP Essent. 2026 Jan;560:15-21. PMID: 41569908.
We would love to help them too.
For First Time Users
We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.
Was this page helpful?
Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.