What could be causing sharp upper quadrant pain wrapping around to the side and felt under the rib cage in a middle-aged adult with a history of peptic ulcer disease or gallstones?

Medical Advisory BoardAll articles are reviewed for accuracy by our Medical Advisory Board
Educational purpose only • Exercise caution as content is pending human review
Article Review Status
Submitted
Under Review
Approved

Last updated: January 6, 2026View editorial policy

Personalize

Help us tailor your experience

Which best describes you? Your choice helps us use language that's most understandable for you.

Sharp Upper Quadrant Pain Wrapping Around to the Side

Start with right upper quadrant ultrasound immediately—it is the first-line imaging test for this presentation and will guide all subsequent management decisions. 1, 2

Initial Diagnostic Approach

Your clinical presentation of sharp upper quadrant pain wrapping around to the side under the rib cage strongly suggests biliary disease, particularly acute cholecystitis or biliary colic, which are the most common causes of this pain pattern. 1, 3, 4

Why Ultrasound First

  • Ultrasound is rated 9/9 (usually appropriate) by the American College of Radiology for right upper quadrant pain evaluation and serves as the definitive initial test. 1
  • It detects gallstones with 96% accuracy, evaluates for gallbladder wall thickening, assesses for bile duct dilatation, and can identify alternative diagnoses. 1, 5
  • The study is fast, portable, lacks radiation exposure, costs less than CT or MRI, and provides morphologic evaluation of multiple organ systems. 1, 2
  • Over one-third of patients initially suspected to have acute cholecystitis actually have RUQ pain from other causes that ultrasound can identify. 4, 2

Key Clinical Features to Assess

  • Look for Murphy's sign during the ultrasound examination (focal tenderness over the sonographically localized gallbladder), though be aware this has relatively low specificity and is unreliable if pain medication was given prior to imaging. 1
  • Obtain liver function tests including GGT, alkaline phosphatase, AST/ALT, total and direct bilirubin, and complete blood count alongside imaging. 6
  • Assess for fever, jaundice, and timing relative to meals—postprandial pain suggests biliary colic, while fever with persistent pain suggests acute cholecystitis. 1, 7

Algorithmic Next Steps Based on Ultrasound Results

If Ultrasound Shows Gallstones + Gallbladder Wall Thickening

  • This confirms acute cholecystitis, and urgent surgical consultation for cholecystectomy is indicated for uncomplicated disease. 3, 2
  • Consider CT with IV contrast only if complications are suspected (perforation, abscess, emphysematous cholecystitis) to guide surgical planning. 1

If Ultrasound Shows Gallstones + Dilated Common Bile Duct

  • Proceed directly to MRCP, which has 85-100% sensitivity and 90% specificity for detecting choledocholithiasis and biliary obstruction. 5, 6
  • MRCP is superior to CT for assessing suspected biliary sources of RUQ pain and provides comprehensive visualization of the entire hepatobiliary system. 5, 8
  • MRCP identifies the level and cause of biliary obstruction with 91-100% accuracy, including stones, strictures, and masses. 5

If Ultrasound is Negative or Equivocal

  • Order MRCP as the next diagnostic step to comprehensively evaluate the biliary tree for stones, strictures, or obstruction that ultrasound may have missed. 5, 8, 6
  • Consider cholecystokinin-augmented cholescintigraphy (HIDA scan) if MRCP is negative and you suspect chronic gallbladder disease, biliary dyskinesia, or acalculous cholecystitis. 5, 6
  • A low gallbladder ejection fraction (<35%) on HIDA scan supports the diagnosis of biliary dyskinesia in patients with typical biliary-type pain. 6

If Both Ultrasound and MRCP are Negative

  • Consider CT abdomen/pelvis with IV contrast to evaluate for alternative diagnoses including hepatic pathology, pancreatic inflammation, renal disease, or musculoskeletal causes. 8, 6, 4
  • Peptic ulcer disease typically presents with epigastric pain rather than RUQ pain, though it can occasionally radiate to the right upper quadrant. 7

Important Clinical Caveats

  • Do not order CT as initial imaging for chronic RUQ pain—CT has only ~75% sensitivity for gallstones, exposes patients to unnecessary radiation, and is inferior to ultrasound for gallbladder pathology. 6, 3
  • Do not order HIDA scan as the primary test unless acute cholecystitis is the primary clinical concern after negative or equivocal ultrasound. 5
  • Elevated liver function tests indicate biliary obstruction or cholestasis, which requires anatomic visualization of the bile ducts—something MRCP provides but HIDA scan does not. 5
  • Consider slipping rib syndrome if the patient has a history of previous trauma or thoracic surgery, particularly if pain is associated with a palpable protrusion. 9
  • Cholescintigraphy has slightly higher sensitivity (97%) and specificity (90%) than ultrasound for acute cholecystitis, but ultrasound remains preferred initially for the reasons outlined above. 1, 2

References

Guideline

Guideline Directed Topic Overview

Dr.Oracle Medical Advisory Board & Editors, 2025

Research

ACR appropriateness criteria right upper quadrant pain.

Journal of the American College of Radiology : JACR, 2014

Research

From the RSNA refresher courses: imaging evaluation for acute pain in the right upper quadrant.

Radiographics : a review publication of the Radiological Society of North America, Inc, 2004

Research

US of Right Upper Quadrant Pain in the Emergency Department: Diagnosing beyond Gallbladder and Biliary Disease.

Radiographics : a review publication of the Radiological Society of North America, Inc, 2018

Guideline

Diagnostic Approach for Elevated Liver Function Tests and Right Upper Quadrant Pain

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2026

Guideline

Diagnostic Approach to Intermittent Right Upper Quadrant Pain

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2025

Research

Diagnosis and Treatment of Peptic Ulcer Disease.

The American journal of medicine, 2019

Guideline

Diagnostic Approach to Post-Cholecystectomy Right Upper Quadrant Pain

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2025

Related Questions

What is the best course of action for right upper quadrant abdominal pain that is relieved with pressure?
What is the most appropriate initial step for a vitally stable patient presenting with mild abdominal pain, mainly in the right upper quadrant, one week after a recent road traffic accident (RTA)?
What is the next course of action for a patient with nausea, vomiting, and right upper quadrant (RUQ) pain, with no evidence of cholecystitis or liver abnormalities on ultrasound?
Is the treatment plan of Methocarbamol (Robaxin) and Simethicone (Gas-X) along with laboratory tests, including Complete Blood Count (CBC) with auto differential and Comprehensive Metabolic Panel (CMP), and an abdominal ultrasound adequate for a 52-year-old patient presenting with progressive right upper quadrant (RUQ) pain and gas symptoms?
What is the most likely diagnosis for a patient with right upper quadrant (RUQ) pain, vomiting, a distended gallbladder (GB) with multiple gallstones, no fever, and no leukocytosis on ultrasound (US)?
Is a septoplasty or submucous resection (SEPTOPLASTY OR SUBMUC RESECT, CPT code 30520) medically necessary for a 21-year-old male patient with a nasal bone fracture, experiencing obstructed breathing, soreness, and a feeling of nasal shift, who has a deviated septum, inflamed and erythematous sinonasal mucous, and hypertrophied and inflamed inferior turbinates, and is not currently using any nasal sprays or steroid nasal sprays?
What is the recommended dose of salbutamol (albuterol) for a 2-year-old patient with asthma?
What is the workup for an adult patient with no significant past medical history presenting with thrombocytopenia (low platelet count)?
What to do if a rash develops on the face after 1 week of using acyclovir (antiviral medication) for a cold sore?
What are the potential causes and treatment options for an adult patient experiencing burning sensations in the axillary (armpit) region and tingling down the left arm, possibly related to underlying conditions such as thoracic outlet syndrome, cervical radiculopathy, or peripheral neuropathy?
What is the recommended management for a patient with acute bronchitis, considering their past medical history, age, and presence of underlying conditions such as asthma or chronic obstructive pulmonary disease (COPD)?

Professional Medical Disclaimer

This information is intended for healthcare professionals. Any medical decision-making should rely on clinical judgment and independently verified information. The content provided herein does not replace professional discretion and should be considered supplementary to established clinical guidelines. Healthcare providers should verify all information against primary literature and current practice standards before application in patient care. Dr.Oracle assumes no liability for clinical decisions based on this content.

Have a follow-up question?

Our Medical A.I. is used by practicing medical doctors at top research institutions around the world. Ask any follow up question and get world-class guideline-backed answers instantly.