What does it mean when there's a spasm in the right upper quadrant of the abdomen?

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 31, 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.

Right Upper Quadrant Spasm: Clinical Significance and Diagnostic Approach

What "Spasm" in the RUQ Actually Means

A "spasm" in the right upper quadrant most commonly represents either biliary colic from gallbladder contraction against an obstructed cystic duct, sphincter of Oddi dysfunction causing intermittent biliary obstruction, or referred pain from hepatic flexure colonic distension—all of which require ultrasound as the mandatory first imaging study. 1, 2

The term "spasm" clinically describes:

  • Biliary colic: Intermittent, colicky pain from gallbladder contraction when stones obstruct the cystic duct or common bile duct 1, 3
  • Sphincter of Oddi dysfunction: Spasm of the sphincter controlling bile flow into the duodenum, causing recurrent RUQ pain that mimics chronic cholecystitis 4, 5
  • Ampulla of Vater/duodenal wall spasm: Increased duodenal wall tone with abnormal phasic contractions (19-22 or 41-44 contractions/min), representing loss of neural inhibitory control 4
  • Hepatic flexure syndrome: Colonic distension or inflammation causing referred RUQ pain, particularly during bowel movements or with increased intra-abdominal pressure 6

Immediate Diagnostic Algorithm

Step 1: Right Upper Quadrant Ultrasound (Always First)

Ultrasound is rated 9/9 (usually appropriate) by the American College of Radiology and must be performed first, with 96% accuracy for detecting gallstones and the ability to identify gallbladder wall thickening, bile duct dilatation, and pericholecystic fluid. 1, 2, 3

Ultrasound specifically evaluates for:

  • Cholelithiasis (gallstones) with 96% detection accuracy 1
  • Gallbladder wall thickening >3mm suggesting acute cholecystitis 1
  • Common bile duct dilatation >6mm indicating obstruction 2
  • Pericholecystic fluid suggesting acute inflammation 1

Step 2: If Ultrasound Shows Stones + Dilated CBD

Proceed directly to MRCP, which has 85-100% sensitivity and 90% specificity for detecting choledocholithiasis and biliary obstruction—superior to CT for biliary evaluation. 2

MRCP excels at:

  • Detecting bile duct stones with 85-100% sensitivity 2
  • Visualizing the cystic duct and common bile duct better than ultrasound 2
  • Identifying the level and cause of biliary obstruction (stones, strictures, masses) with 91-100% accuracy 2

Step 3: If Ultrasound is Normal But Pain Persists

Order hepatobiliary scintigraphy (HIDA scan) with cholecystokinin stimulation to evaluate for sphincter of Oddi dysfunction or biliary dyskinesia, which reveals a biliary cause in >70% of patients with RUQ pain and normal ultrasound. 5

HIDA scan patterns that explain "spasm":

  • Sphincter of Oddi dyskinesia: Early gallbladder and CBD visualization but delayed transit to small bowel, seen in 81.8% of abnormal scans 5
  • Biliary dyskinesia: Gallbladder ejection fraction <35% after cholecystokinin stimulation 1, 5
  • Acalculous cholecystitis: Delayed gallbladder visualization with activity in small bowel before gallbladder 5

Critical Clinical Pitfalls

Don't Skip Ultrasound for CT

CT should be reserved for critically ill patients or suspected complications—it has only 39-75% sensitivity for gallstones compared to ultrasound's 96%, and up to 80% of gallstones are non-calcified and invisible on CT. 1, 2

Recognize When "Spasm" Suggests Non-Biliary Causes

Pain specifically triggered by bowel movements suggests colonic pathology (hepatic flexure) rather than primary biliary disease, which typically presents with postprandial pain. 6

If bowel-related symptoms predominate:

  • Order CT abdomen/pelvis with IV contrast (>95% sensitivity for colonic pathology) after negative ultrasound 6
  • Evaluate for hepatic flexure syndrome, colonic distension, or inflammatory bowel disease 6

The Sonographic Murphy Sign Has Limited Value

The sonographic Murphy sign has relatively low specificity for acute cholecystitis and is unreliable if the patient received pain medication prior to imaging. 1, 2

HIDA Scan Limitations in Chronic Pain

In patients with chronic acalculous RUQ pain, HIDA scan has low diagnostic value because this entity represents multiple processes including inflammation, gallbladder dysmotility, and irritable bowel syndrome—a low ejection fraction does not predict clinical outcome after cholecystectomy. 7

When Advanced Imaging is Needed

MRI with MRCP for Comprehensive Evaluation

If ultrasound is equivocal or shows biliary dilatation without clear cause, MRI abdomen with MRCP and IV gadolinium provides comprehensive hepatobiliary evaluation superior to CT. 2

MRI advantages:

  • T2-weighted sequences demonstrate gallbladder wall edema better than CT 2
  • Contrast-enhanced sequences detect gallbladder wall necrosis, perforation, and adjacent liver inflammation 2
  • MRCP visualizes the entire biliary tree with 85-100% sensitivity for stones 2

Antroduodenal Manometry for Refractory Cases

In patients with chronic epigastric-to-RUQ pain where standard tests are nondiagnostic, antroduodenal manometry can diagnose ampulla of Vater/duodenal wall spasm in 35% of cases—a distinctive pattern of increased duodenal wall tone with abnormal phasic contractions. 4

Laboratory Testing Priorities

Obtain a complete metabolic panel with liver function tests (transaminases, alkaline phosphatase, GGT, total/direct bilirubin) to differentiate biliary obstruction from hepatocellular injury. 2, 6

  • Elevated alkaline phosphatase and bilirubin suggest biliary obstruction requiring MRCP 2
  • Elevated transaminases suggest hepatocellular injury or acute cholangitis 2
  • In all women of reproductive age, obtain beta-hCG before any imaging to avoid missing ectopic pregnancy 6

References

Guideline

Guideline Directed Topic Overview

Dr.Oracle Medical Advisory Board & Editors, 2025

Guideline

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

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2026

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

Right upper quadrant pain with normal hepatobiliary ultrasound: can hepatobiliary scintigraphy define the cause?

Saudi journal of gastroenterology : official journal of the Saudi Gastroenterology Association, 2012

Guideline

Upper Right Quadrant Pain During Bowel Movements

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2026

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.