Doctors Note Logo

Published on: 10/9/2026

Right upper quadrant pain under the ribs: what sits there

The right upper quadrant beneath the ribs houses the liver, gallbladder and bile ducts, the right kidney and adrenal gland, the head of the pancreas, the first part of the duodenum, the hepatic flexure of the colon, and the lower right lung and diaphragm, so pain there can stem from gallstones, biliary colic, hepatitis, fatty liver, kidney stones, ulcers, trapped gas, muscle or rib strain, or even pneumonia. Warning signs such as yellowing skin or eyes, fever and chills, pain spreading to the right shoulder blade, vomiting, dark urine, pale stools, or severe pain lasting more than a few hours point toward urgent causes that need prompt care. Location, timing after meals, and accompanying symptoms all help narrow the list, and there are several important factors to consider, so see below to understand more.

Because so many organs crowd into this one small space, guessing wrong can mean ignoring something that gets worse quickly or worrying about something harmless. A free, instant, online symptom check takes only a few minutes, organizes your symptoms into the most likely explanations, and shows you whether to book a routine visit or seek care today.

Last reviewed for medical accuracy: 10/08/2026

answer background

Concerned about your symptoms?

Explanation

Understanding Right Upper Quadrant Pain Under Ribs

Right upper quadrant pain under ribs is a common complaint that can stem from several organs and structures in your body. This guide covers what sits in that area, possible causes of discomfort, when to seek help, and practical next steps—without creating unnecessary worry.


What Sits in the Right Upper Quadrant?

The right upper quadrant (RUQ) of your abdomen, just beneath the ribs, houses key structures:

  • Liver
    – Largest solid organ, responsible for detoxification, protein synthesis, bile production
  • Gallbladder
    – Stores and concentrates bile; sits just under the liver
  • Right Kidney (upper pole)
    – Filters blood, produces urine; partially protected by the rib cage
  • Part of the Colon (hepatic flexure)
    – Connects ascending and transverse colon
  • Portions of the Small Intestine
    – Mainly the duodenum
  • Diaphragm
    – Muscle separating chest from abdomen; assists with breathing
  • Lower Right Lung and Pleura
    – Lungs and lining that can refer pain downward
  • Muscles, Ribs, and Nerves
    – Muscular wall and intercostal nerves can cause localized pain

Common Causes of RUQ Pain Under Ribs

  1. Gallbladder Issues

    • Biliary Colic: Sharp pain after fatty meals, often radiating to the right shoulder
    • Gallstones: Hardened deposits blocking bile flow
    • Cholecystitis: Inflammation causing steady, severe pain, fever, nausea
  2. Liver Conditions

    • Hepatitis: Viral or alcohol-related inflammation; may cause dull ache, fatigue, jaundice
    • Fatty Liver Disease: Often painless but can produce discomfort if advanced
    • Liver Congestion: Right-sided heart failure back-up can lead to fullness and mild pain
  3. Kidney Disorders

    • Kidney Stones: Sharp, cramping flank pain, possibly radiating to groin, with nausea or blood in urine
    • Pyelonephritis: Kidney infection causing fever, chills, burning with urination, flank pain
  4. Digestive Tract Problems

    • Peptic Ulcer: Burning or gnawing pain, often improved by eating or antacids
    • Gastritis or GERD: Inflammation or acid reflux leading to burning under ribs
  5. Pulmonary and Pleural Causes

    • Pleuritis (Pleurisy): Sharp pain worsened by breathing or coughing
    • Lower Lobe Pneumonia: Deep ache, fever, cough, shortness of breath
  6. Musculoskeletal Strain

    • Intercostal Muscle Strain: Pain with movement or deep breaths after exercise or injury
    • Costochondritis: Inflammation of rib cartilage causing tenderness along the rib cage
  7. Referred Pain

    • Heart Issues: Though less common on the right, right-sided heart conditions can manifest here
    • Pancreatitis: Typically left-sided, but in rare cases, pain can refer across the upper abdomen

Symptoms That Warrant Immediate Attention

While many causes of right upper quadrant pain under ribs are benign, certain red flags require prompt medical evaluation:

  • Fever over 101°F (38.3°C)
  • Persistent vomiting or inability to keep down fluids
  • Yellowing of skin or eyes (jaundice)
  • Severe, unrelenting pain lasting more than a few hours
  • Blood in stool or vomit
  • Signs of shock: rapid heart rate, low blood pressure, dizziness
  • Difficulty breathing or chest tightness

If you experience any of the above, call emergency services or go to the nearest emergency department.


When to See Your Doctor

If your pain is mild to moderate, intermittent, or tied to specific activities or foods, schedule a doctor’s appointment. Be prepared to discuss:

  • Onset and duration of pain
  • Pain quality: sharp, dull, crampy, burning
  • Triggers and relieving factors (meals, movement, rest)
  • Associated symptoms (nausea, fever, bloating, urinary changes)
  • Medical history: previous gallstones, liver disease, ulcers, kidney stones

Diagnostic Steps

Your healthcare provider may recommend:

  • Physical Exam: Checking for tenderness, guarding, and signs of inflammation
  • Blood Tests: Liver function tests, bilirubin, white blood cell count, amylase/lipase
  • Imaging:
    • Ultrasound: First-line for gallbladder and liver issues
    • CT Scan: Detailed view of abdominal organs, kidney stones, masses
    • X-ray: To rule out rib fractures or lung problems
  • Endoscopy: For suspected ulcers or severe reflux
  • Urinalysis: To detect kidney stones or infection

Treatment Options

Treatment depends on the underlying cause:

  • Gallbladder Disease
    – Dietary adjustments (low-fat diet)
    – Pain control with NSAIDs or prescription meds
    – Surgery (cholecystectomy) if gallstones or severe cholecystitis

  • Liver Conditions
    – Antiviral therapy for hepatitis
    – Lifestyle changes (weight loss, alcohol cessation) for fatty liver
    – Monitoring and supportive care for mild congestion

  • Kidney Stones and Infections
    – Hydration, pain management, and medical expulsion therapy for small stones
    – Antibiotics for infections
    – Possible lithotripsy or urological referral for large stones

  • Peptic Ulcers and GERD
    – Proton-pump inhibitors or H2 blockers
    – Diet modifications, smaller frequent meals, avoiding trigger foods

  • Pulmonary/Pleural
    – Antibiotics for pneumonia
    – Anti-inflammatories and rest for pleuritis
    – Deep breathing exercises, inhalers if asthma-related

  • Musculoskeletal
    – Rest, ice/heat, stretching exercises
    – Physical therapy for persistent strains
    – Over-the-counter pain relievers


Self-Care and Lifestyle Tips

  • Maintain a balanced diet rich in fiber and lean protein
  • Stay hydrated: 8–10 glasses of water per day
  • Practice gentle exercises and stretching to strengthen core muscles
  • Avoid large, fatty meals if you have gallbladder or GERD issues
  • Limit alcohol intake to support liver health
  • Quit smoking to reduce acid reflux and lung irritation
  • Keep a symptom diary to track patterns and triggers

Using the Ubie Symptom Checker

If you’re unsure about your symptoms, consider a free, online symptom check, using the doctor approved Ubie Symptom Checker. It’s a confidential tool that helps you understand possible causes and suggests next steps.

Try it here: free, online symptom check, using the doctor approved Ubie Symptom Checker


Final Thoughts

Right upper quadrant pain under ribs can arise from many different organs and conditions. In most cases, simple lifestyle changes or outpatient treatments ease the discomfort. However, serious issues like gallbladder inflammation, kidney stones, or pneumonia require professional care.

Always trust your instincts. If you have any life-threatening or severe symptoms, seek emergency care immediately. For ongoing or unclear pain, speak to a doctor to get an accurate diagnosis and treatment plan. Your health matters—don’t hesitate to reach out for help.

(References)

  • * Diehl AK. Symptoms of gallstone disease. Baillieres Clin Gastroenterol. 1992 Nov;6(4):635-57. doi: 10.1016/0950-3528(92)90044-f. PMID: 1486206.

  • * Cartwright SL, Knudson MP. Evaluation of acute abdominal pain in adults. Am Fam Physician. 2008 Apr 1;77(7):971-8. PMID: 18441863.

  • * Hafeez Bhatti AB, Dar FS, Pervez M. Adrenal angiomyolipoma. J Coll Physicians Surg Pak. 2013 Sep;23(9):663-4. PMID: 24034195.

  • * Marsicano E, Vuong GM, Prather CM. Gastrointestinal causes of abdominal pain. Obstet Gynecol Clin North Am. 2014 Sep;41(3):465-89. doi: 10.1016/j.ogc.2014.06.002. PMID: 25155126.

  • * Gangadhar K, Kielar A, Dighe MK, O'Malley R, Wang C, Gross JA, Itani M, Lalwani N. Multimodality approach for imaging of non-traumatic acute abdominal emergencies. Abdom Radiol (NY). 2016 Jan;41(1):136-48. doi: 10.1007/s00261-015-0586-6. PMID: 26830620.

  • * Gee DW, Phitayakorn R, Khatri A, Butler K, Mullen JT, Petrusa ER. A Pilot Study to Gauge Effectiveness of Standardized Patient Scenarios in Assessing General Surgery Milestones. J Surg Educ. 2016 Nov-Dec;73(6):e1-e8. doi: 10.1016/j.jsurg.2016.08.012. PMID: 27886969.

  • * Santos AP, Wetzel C, Siddiqui Z, Harper DS. Laparoscopic removal of migrated intrauterine device. BMJ Case Rep. 2017 Sep 27;2017. doi: 10.1136/bcr-2017-221342. Epub 2017 Sep 27. PMID: 28954752; PMCID: PMC5747778.

  • * Khoury J, Zohar Y, Shehadeh N, Saadi T. Glycogenic hepatopathy. Hepatobiliary Pancreat Dis Int. 2018 Apr;17(2):113-118. doi: 10.1016/j.hbpd.2018.02.006. Epub 2018 Feb 19. PMID: 29709217.

  • * Idriss AM, Tfeil Y, Baba JS, Abdallahi AM, Bezeid A. Non postoperative biloma in Mauritania: case report and literature review. Pan Afr Med J. 2018;31:237. doi: 10.11604/pamj.2018.31.237.17607. Epub 2018 Dec 20. PMID: 31447994; PMCID: PMC6691282.

  • * Yew KS, George MK, Allred HB. Acute Abdominal Pain in Adults: Evaluation and Diagnosis. Am Fam Physician. 2023 Jun;107(6):585-596. PMID: 37327158.

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.

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.