Our Services
Medical Information
Helpful Resources
Published on: 4/13/2026
Sharp pain under the right ribs most commonly points to gallstones or liver inflammation. Gallstones typically trigger sudden, intense attacks after fatty meals, often radiating to the right shoulder. Liver-related causes usually produce a steady, dull ache paired with fatigue or jaundice.
Red flags requiring urgent care include fever, persistent vomiting, or yellowing skin. Diagnosis often involves ultrasound and blood tests, and treatment may range from lifestyle changes to surgery depending on the cause.
Because right-sided rib pain has many overlapping causes—some minor, others serious—guessing can delay the right care. Take a free, instant, AI-powered symptom check to clarify what your symptoms may mean and get personalized guidance on next steps in just a few minutes.
Reviewed for medical accuracy: 07/10/2026
Experiencing right side pain under rib can be uncomfortable—and sometimes alarming. This area of your body contains several important organs, including the gallbladder and liver. When pain develops here, especially if it is sharp or persistent, it may be linked to conditions such as gallstones (cholelithiasis) or liver inflammation (hepatitis).
While not all right side pain under rib is serious, it's important to understand what could be causing it, how to recognize warning signs, and when to seek medical care.
The upper right part of your abdomen houses:
Pain in this area can come from any of these organs. However, sharp or recurring pain after meals often points toward gallbladder problems, while deeper, persistent discomfort may be linked to liver issues.
Gallstones are hardened deposits of digestive fluid that form in the gallbladder. The gallbladder stores bile, which helps digest fats. When bile becomes unbalanced—often due to excess cholesterol or bilirubin—stones can form.
Gallstones are common and may not always cause symptoms. However, when they block a bile duct, they can trigger intense pain.
The classic symptom of gallstones is sudden right side pain under rib, often called a "gallbladder attack" or biliary colic.
Typical features include:
The pain can be severe but often improves once the blockage passes.
If you're experiencing these symptoms and want to get personalized insights based on what you're feeling, you can check your symptoms now using Ubie's free AI-powered symptom checker to better understand your condition before your doctor visit.
Gallstones can sometimes lead to complications, including:
Seek medical care urgently if you experience:
These symptoms may signal a more serious blockage or infection requiring prompt treatment.
You may have a higher risk if you:
That said, gallstones can develop in people without obvious risk factors.
The liver is a large organ located directly under your right rib cage. It plays a vital role in:
When the liver becomes inflamed—due to infection, alcohol use, fatty liver disease, autoimmune conditions, or medication effects—it can cause discomfort or pain in the right upper abdomen.
Liver inflammation may cause:
Unlike gallbladder pain, liver-related pain is often more constant and less sharply intense. Some people describe it as a feeling of fullness or pressure under the ribs.
Liver inflammation can result from:
Fatty liver disease is particularly common and often linked to:
Many people with fatty liver disease have no symptoms at first, but some notice mild right side pain under rib.
If you see a doctor for persistent or severe pain, they may recommend:
Your doctor may gently press on your abdomen to check for tenderness or swelling.
These can check:
Common tests include:
Ultrasound is especially effective at identifying gallstones and signs of gallbladder inflammation.
Not all right side pain under rib is due to gallstones or liver inflammation. Other possible causes include:
Mild, short-lived pain that improves with rest may not be serious. However, repeated or worsening pain deserves medical attention.
Call a doctor or seek urgent care if you experience:
These symptoms can indicate a serious or life-threatening condition.
Treatment depends on symptoms:
People can live normally without a gallbladder.
Treatment depends on the cause:
Early diagnosis greatly improves outcomes.
If you're experiencing right side pain under rib:
To help identify patterns in your symptoms and prepare for your doctor's appointment, try Ubie's free AI symptom assessment tool for a personalized health report you can discuss with your healthcare provider.
Sharp or persistent right side pain under rib should not be ignored. Two common causes—gallstones and liver inflammation—are treatable, especially when identified early.
Most importantly, if you are experiencing ongoing, worsening, or severe symptoms, speak to a doctor promptly. Only a qualified healthcare professional can properly evaluate your symptoms, run appropriate tests, and determine whether the condition could be serious or life-threatening.
Early action can prevent complications and help you get back to feeling well.
(References)
* Shabanzadeh DM, Sørensen LT. Gallstone disease: a review. World J Gastrointest Pharmacol Ther. 2017 May 6;8(2):41-49. doi: 10.4292/wjgpt.v8.i2.41. PMID: 28516089; PMCID: PMC5419998.
* Hassan F, Usman M, Zeshan B, Butt AM. Acute Hepatitis: Diagnosis, Etiology, and Management. Cureus. 2021 May 29;13(5):e15312. doi: 10.7759/cureus.15312. PMID: 34195150; PMCID: PMC8241419.
* Ananthakrishnan AN, Saeian K. Approach to the Adult Patient With Right Upper Quadrant Pain. Med Clin North Am. 2016 Mar;100(2):299-317. doi: 10.1016/j.mcna.2015.09.006. PMID: 26903154.
* Yokoe M, Hata J, Takada T, Strasberg SM, Asbun HJ, Wakabayashi G, Kozaka K, Endo I, Miyazaki M, Okamoto K, Yoshida M, Han HS, Hwang TL, Chen MF, Ker CG, Chen XP, Yamashita Y, Kimura Y, Mori Y, Miura F, Okamoto K, Higuchi R, Gabata T, Fedorak I, Jagannath P, Ishibashi T, Umezawa A, Suwa T, Hirata K, Sumiyama T, Takayama Y, Miyazaki K, Kanazawa A, Igawa S, Shimizu H, Takeda K, Fujita N, Mayumi T, Yoshida M, Kiriyama S. Tokyo Guidelines 2018: diagnostic criteria and severity grading of acute cholecystitis (with videos). J Hepatobiliary Pancreat Sci. 2018 Jan;25(1):41-54. doi: 10.1002/jhbp.515. PMID: 29043440.
* Eslam M, Newsome PN, Sarin SK, Anstee QM, Targher G, Romero-Gomez M, Zelber-Sagi S, Wong VW, Dufour JF, Kautz A, Katoonizadeh A, Suzuki A, Silva AE, Fan JG, Arab JP, de Saizieu A, van Krieken P, Dong Jia Q, Tanaka Y, Nakahara T, Matsuda Y, Yoneda M, Koike K, Kawaguchi T, Okanoue T, Hwang SG, Roberts SK, George J. MAFLD: A Consensus-Driven Redefinition of Fatty Liver Disease. Gastroenterology. 2020 Jun;158(7):1999-2014.e1. doi: 10.1053/j.gastro.2020.03.016. Epub 2020 Mar 26. PMID: 32234434.
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.