Doctors Note Logo

Back

Published on: 4/7/2025

What Could Be Causing Upper Right Abdominal Pain under the Ribs?

The pain under your upper right ribs can come from problems with your gallbladder, liver, or even from the muscles and bones near that area.

answer background

Explanation

When you feel pain under the ribs in the upper right abdomen, there are a few possible reasons. One common cause is an issue with the gallbladder, such as gallstones or an inflamed gallbladder (cholecystitis), which often causes pain after eating fatty foods. The liver, also located in this region, might be irritated or inflamed from conditions like hepatitis. However, not all pain in this area comes from the organs. The muscles or bones near the ribs might also be the source. For example, a condition known as painful rib syndrome can cause discomfort due to irritation or inflammation where the ribs meet the muscles around them. Additionally, sometimes what seems like a liver or gallbladder problem might actually be related to other parts of the digestive system, such as the bile ducts, even if lab tests like alkaline phosphatase are raised. It is important to remember that many different issues can lead to pain under the ribs, so a healthcare provider will help figure out the exact cause based on your symptoms and may use tests like an ultrasound to get a clear picture.

(References)

  • Johnson CD. ABC of the upper gastrointestinal tract. Upper abdominal pain: Gall bladder. BMJ. 2001 Nov 17;323(7322):1170-3. doi: 10.1136/bmj.323.7322.1170. PMID: 11711412; PMCID: PMC1121646.

  • Loffeld RJ. Het zwevende-ribsyndroom: een veelal niet herkende oorzaak van pijnklachten [Painful rib syndrome: a cause of pain complaints that often goes unnoticed]. Ned Tijdschr Geneeskd. 2002 Sep 28;146(39):1813-5. Dutch. PMID: 12382362.

  • Cheyne G, Runau F, Lloyd DM. Right upper quadrant pain and raised alkaline phosphatase is not always a hepatobiliary problem. Ann R Coll Surg Engl. 2014 Jan;96(1):118E-120E. doi: 10.1308/003588414X13824511650092. PMID: 24417861; PMCID: PMC5137652.

Tell your friends about us.

We would love to help them too.

smily Shiba-inu looking

For First Time Users

What is Ubie’s Doctor’s Note?

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.

Learn more about symptoms

Abdominal pain

Not sure about the cause of your current symptoms?

AI Symptom Check

Try our AI-based symptom check

With an easy 3-min questionnaire, you can get an free AI-powered report on possible causes


Tips to try:

  • Provide specific, detailed info about all symptoms you have.
  • Give accurate information about yourself including current conditions.
  • Answer all follow-up questions

Purpose and positioning of servicesUbie Doctor’s Note is a service for informational purposes, and the provision of information by physicians, medical professionals, etc. is not a medical practice. 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.