The most common medical cause of pain that begins under the right rib cage and radiates to the right shoulder blade or back is gallstones and inflammation of the bile ducts caused by these stones. Described in the medical literature as “right upper quadrant pain,” this condition may also develop due to liver diseases, inflammation of the pancreas (pancreatitis), duodenal ulcers, or right kidney disorders. The main reason the pain radiates to the back is that nerve impulses from these organs share a common transmission pathway with the nerves of the shoulder and back; therefore, even though the problem is in the abdominal cavity, the brain perceives the pain in the shoulder and back.
Why Does Pain Under the Right Rib Cage Radiate to the Back and Shoulder?
One of the situations that surprises our patients the most and is difficult for them to understand is why pain is felt in the shoulder even though the problem is in the abdominal cavity. In fact, this is an indication of how complex and interconnected the body’s nerve networks are. In medicine, we call this “referred pain.”
The mechanism is actually related to how the brain processes signals. Pain signals from intra-abdominal organs, especially the liver and gallbladder located close to the diaphragm, are carried through a pathway called the phrenic nerve. This nerve pathway meets at a common junction with nerves arising from the cervical vertebrae at the C3–C5 level. Other nerves originating from this region carry sensation from the shoulder and back.
When there is inflammation in the gallbladder or stretching of the liver capsule, the “distress” signal originating there reaches the spinal cord, and the brain may sometimes confuse the source of this signal. It perceives the signal as if it were coming from the shoulder area that shares the same pathway rather than from inside the abdomen. Therefore, if pain under the right rib cage is accompanied by pain in the right shoulder or beneath the right shoulder blade, this is not considered a simple muscle spasm but a signal originating from the internal organs.
The areas to which the pain may radiate include:
- Tip of the right shoulder
- Lower tip of the right shoulder blade
- Between the shoulder blades
- Base of the right side of the neck
- Middle right side of the back
What Clues Does the Character of the Pain Provide?
When your doctor asks, “What does your pain feel like?” it would not be an exaggeration to say that your answer forms half of the diagnosis. This is because each organ has a different language of pain. In general surgical practice, we broadly divide pain into two main types: visceral and parietal pain. This distinction guides us regarding the severity and urgency of the disease.
Visceral pain usually occurs when the capsules, or outer membranes, of organs are stretched or when hollow organs contract against an obstruction. For example, when the liver enlarges, its outer membrane stretches, or when the gallbladder is obstructed, it begins to contract. The pain felt in this situation is not sharp. On the contrary, it is a deep, dull ache that cannot be pinpointed with a finger and spreads over a wider area. Patients often describe it as “There is pressure inside,” “It feels like trapped gas,” or “A heaviness has settled.”
Parietal pain, on the other hand, indicates that the situation has changed. This type of pain suggests that the inflammation has spread beyond the organ and reached the membrane lining the abdominal cavity, called the peritoneum. The peritoneum is very rich in nerve endings and is highly sensitive. Therefore, parietal pain is very sharp, stabbing, and severe. The patient can point to the painful spot precisely with the tip of a finger. If your pain worsens with coughing, taking a deep breath, or moving, it is parietal pain and is highly likely to indicate an emergency.
Conditions that trigger parietal pain include:
- Acute cholecystitis
- Perforation of the stomach or duodenum
- Advanced appendicitis
- Inflammation of the peritoneum
Why Do Gallstones Cause Pain After Eating?
Gallstones are undoubtedly the leading cause of right upper quadrant pain. The gallbladder is a small, pear-sized sac located just beneath the liver. Its function is to store and concentrate the bile produced by the liver. Bile acts like an essential detergent for digesting the fatty foods we eat.
The system works as follows: When you eat a fatty meal, such as a breakfast with clotted cream, fried foods, or eggs, the food passing from your stomach into the duodenum triggers a hormonal signal. This signal tells the gallbladder, “Contract and empty the bile inside into the intestine; bile is needed for digestion.” The gallbladder begins to contract. However, if stones are present inside the gallbladder, they move during this contraction and may block the outlet of the gallbladder, called the cystic duct.
This is exactly when the condition known as “biliary colic” begins. The gallbladder continues to contract, but because the outlet is blocked, it cannot empty its contents. Pressure inside the gallbladder increases enormously. This causes severe, cramping pain. The pain typically begins 30 minutes to 1 hour after eating, rapidly intensifies, and then remains at a plateau. It usually resolves spontaneously within 4 to 6 hours when the stone falls back out of the duct. However, those four hours may feel endless to the patient.
Factors that increase the risk of gallstone formation include:
- Obesity
- Rapid weight gain or loss
- Female sex
- Advanced age
- Genetic predisposition
- Having had multiple pregnancies
What Are the Symptoms of Acute Cholecystitis and When Should It Be Suspected?
If the duct obstruction described above is not temporary and the stone remains lodged there, the condition progresses from a “gallbladder attack” to inflammation of the gallbladder, called acute cholecystitis. The bile trapped inside the obstructed gallbladder deteriorates chemically, the gallbladder wall becomes swollen, blood circulation is impaired, and bacteria begin to multiply. This is now a condition requiring urgent intervention.
In acute cholecystitis, the pain is no longer intermittent; it is constant and gradually becomes more severe. The most typical finding occurs when the doctor presses under the right rib cage and asks the patient to take a deep breath. As the patient inhales deeply, the descending diaphragm pushes the inflamed gallbladder toward the doctor’s hand, and the patient suddenly stops breathing because of pain. This is called “Murphy’s sign” and is very valuable in diagnosis.
Symptoms of acute cholecystitis include:
- Persistent and severe pain in the upper right abdomen
- Pain radiating to the right shoulder blade
- Nausea
- Vomiting
- High fever
- Loss of appetite
- Weakness
Once the diagnosis is made, international guidelines, such as the Tokyo Guidelines, and modern surgical practice recommend “early cholecystectomy,” meaning surgery within the first 72 hours, if the patient’s general condition is suitable. Early surgery is easier for the surgeon because it is performed before the inflammation causes adhesions to surrounding tissues, and it also shortens the patient’s hospital stay.
How Is Gallbladder Surgery (Laparoscopy) Performed?
Laparoscopic cholecystectomy, commonly known as “closed surgery” or “laser surgery,” is the gold standard of modern surgery. We no longer make large abdominal incisions for gallbladder operations. Instead, we make 3 or 4 millimeter-sized openings, usually 0.5 cm and 1 cm in diameter, in the abdominal wall. We perform the operation by inserting a camera and long, thin instruments through these openings.
The comfort this method provides patients is remarkable. Postoperative pain is minimal, patients can usually walk home on the same day or the following morning, and they can return to work within a very short period.
However, for us as surgeons, the most important issue is “safety.” During laparoscopic surgery, when separating the gallbladder from the main duct and blood vessel, we follow a principle known as the “Critical View of Safety.” This means that we never divide the structures, namely the cystic duct and artery, until they have been completely separated from the surrounding tissues and clearly visualized from behind. This is the most important safeguard against accidentally cutting the main bile duct. If the inflammation inside is very severe and the tissues are densely adherent, we may stop insisting on the laparoscopic method and convert to open surgery for the patient’s safety. This is not a failure but a conscious and correct decision made to protect the patient.
What Happens If a Stone Falls into the Bile Duct?
Sometimes small stones in the gallbladder may leave the gallbladder and fall into the main bile duct, called the common bile duct. This changes the severity of the situation. The common bile duct is the main tube that carries bile from the liver to the intestine. If this tube is blocked by a stone, bile flow stops.
Because bile cannot flow into the intestine, it begins to enter the bloodstream. In this situation, the patient develops “obstructive jaundice.” The whites of the eyes and the skin turn yellow. The urine becomes dark like brewed tea because the kidneys try to eliminate bile from the blood. The stool becomes pale like putty because the bile that gives stool its color cannot reach the intestine. If an infection called cholangitis is added to this condition, it becomes a life-threatening emergency. The triad of fever, jaundice, and pain, known as Charcot’s triad, is the most distinctive sign of this condition.
Symptoms of main bile duct obstruction include:
- Yellowing of the whites of the eyes
- Yellowing of the skin
- Tea-colored urine
- Putty-colored stool
- Itching throughout the body
- Episodes of chills
What Is an ERCP Procedure and What Does It Do?
When a stone falls into the main bile duct, our treatment strategy changes. Removing only the gallbladder is not sufficient; we must first remove the stone obstructing the main duct. This is where ERCP, or Endoscopic Retrograde Cholangiopancreatography, comes into play. Although the name sounds intimidating and long, the procedure is quite comfortable for patients.
ERCP is not an operation. We lightly sedate the patient and insert a special endoscope through the mouth. We pass through the stomach and reach the duodenum. There is a small opening where the bile duct empties into the intestine. We enter through this opening with very thin catheters and visualize the bile ducts. We capture the stone inside the duct with special baskets or balloons and release it into the intestine. In other words, we clear the duct.
In the general surgical algorithm, the sequence is as follows: First, the duct is cleared and the obstruction is relieved with ERCP. After the patient improves, usually during the same hospital admission or shortly afterward, the gallbladder is removed laparoscopically to prevent new stones from falling into the duct.
Is Pancreatic Inflammation Related to This Pain?
Definitely yes. Gallstones can affect not only the bile ducts but also the pancreas. Anatomically, the main bile duct and the pancreatic duct join just before emptying into the intestine and exit through the same opening. If a stone that falls from the gallbladder becomes lodged exactly at this junction, it blocks not only the bile duct but also the pancreatic duct.
Pancreatic fluid cannot flow outward and backs up into the organ. Pancreatic enzymes are very powerful digestive substances and normally must become active in the intestine. However, when trapped in the duct, they become activated inside the pancreas and begin digesting the organ itself. This is called “Acute Biliary Pancreatitis.”
This pain differs from the others. It begins under the right rib cage but wraps around the entire upper abdomen like a belt and radiates directly to the back, toward the middle of the spine. It is extremely severe, the patient cannot remain still, and usually tries to reduce the pain by leaning forward. The diagnosis is made when amylase and lipase levels rise dramatically in blood tests. In this situation, the priority is to hospitalize the patient and calm the pancreas by administering intravenous fluids. Once the inflammation subsides, gallbladder surgery must be performed.
Can a Liver Cyst or Abscess Cause Pain?
The liver is the largest organ located under the right rib cage. The liver tissue itself is insensitive to pain, but when the surrounding membrane, or capsule, is stretched, a dull pain occurs. Because livestock farming is common in our country, hydatid cyst disease, also known as dog tapeworm cyst, is frequently seen. These parasitic cysts may grow silently in the liver. As they enlarge, they stretch the liver capsule and may cause a feeling of fullness and pain under the right rib cage.
More dangerous are liver abscesses. They usually develop when an infection of the bile ducts or another intra-abdominal inflammation spreads to the liver. The patient experiences high fever, chills, deterioration in general condition, and severe pain when the right rib cage is tapped. Ultrasonography and Computed Tomography (CT) guide us in diagnosing these conditions.
Risk factors for liver abscess include:
- Bile duct diseases
- Diabetes
- Medications that suppress the immune system
- Previous abdominal operations
- Advanced age
Atypical Causes: Could It Be Appendicitis?
I can almost hear you saying, “Doctor, doesn’t appendicitis occur in the lower right abdomen?” You are right; in 95% of cases, appendicitis pain is located in the lower right abdomen. However, medicine does not always follow straightforward logic. Human anatomy is full of variations.
In some people, during development in the womb, the large intestine does not descend completely, and the appendix remains just beneath the liver in the “subhepatic” area. When appendicitis develops in these individuals, the pain is not felt in its classic location but in the right upper quadrant, exactly where the gallbladder is located. This is one of the most difficult diagnostic scenarios for surgeons because it can easily be confused with cholecystitis. If the physical examination leaves us uncertain, a computed tomography scan reveals that the appendix is located higher than usual and is inflamed. The treatment is still surgical.
How Can a Perforated Stomach Ulcer Be Recognized?
The initial part of the duodenum is located very close to the gallbladder. Perforation of a deep ulcer in this area causes the contents of the stomach and duodenum to spill into the abdominal cavity. This creates an extremely dramatic and severe clinical picture.
The pain begins suddenly and feels like “being stabbed with a knife.” It is so severe that the patient is afraid to move. In response to the acidic fluid inside, the abdominal muscles contract reflexively and the abdomen becomes “board-like” and rigid. The doctor may not even be able to press on the abdomen. This is one of the leading surgical emergencies known as an “acute abdomen.” Air visible beneath the diaphragm on a chest X-ray confirms the diagnosis, and the patient must undergo emergency surgery.
Which Tests Are Requested for Diagnosis?
When you visit a healthcare facility with pain under the right rib cage, your doctor evaluates you step by step. The primary aim is to distinguish conditions that require emergency surgery.
The methods used during the diagnostic process include:
- Complete blood count
- Liver function tests
- CRP
- Amylase and lipase
- Whole-abdomen ultrasonography
- Computed Tomography
- MRCP
Ultrasonography is like our right hand. It does not involve radiation, is fast, and is even superior to computed tomography in detecting gallstones. However, if an abscess, tumor, or appendicitis is suspected, computed tomography provides more detailed information. MRCP, which uses MRI to image the bile ducts, is used to map the biliary tract.
What Are the Non-Surgical Causes?
Not every case of right upper quadrant pain originates from the organs inside the abdomen. Sometimes problems involving the chest wall or skin may also mislead us. For example, pneumonia developing in the lower lobe of the right lung or inflammation of the lung lining, called pleurisy, may irritate the diaphragm and cause pain under the right rib cage.
Shingles, also known as herpes zoster, is another important mimic. During the 2–3 days before the skin rash appears, severe burning pain occurs along the nerve pathway in that area. The patient may think it is gallbladder pain, but the diagnosis becomes clear when blisters appear on the skin. Rib fractures, muscle strains, or costochondritis, which is inflammation of the rib cartilage, may also cause stabbing pain in this region, but this pain usually worsens significantly with movement and when the exact area is pressed with a finger.
When Should You Seek Emergency Medical Care?
Sometimes pain that we decide to “wait and see if it passes” at home can become more complicated over time. Listening to your body is very important, but there are certain red lines beyond which waiting is no longer an option.
Conditions requiring emergency medical care include:
- Abdominal pain lasting longer than 4 hours and not resolving
- A fever of 38°C or higher accompanying the pain
- Severe nausea and uncontrollable vomiting
- Noticeable jaundice in the eyes or skin
- The abdomen becoming too rigid to touch
- Stopping of urine output or marked darkening of the urine
- Confusion or a feeling of faintness
Frequently Asked Questions

Assoc. Prof. Dr. Aydincan Akdur is one of Türkiye’s leading academics and surgeons in the field of general surgery. He serves as the Head of the Department of General Surgery at Ankara Medipol University Faculty of Medicine and also sees patients in his private clinic in Çankaya. He is particularly known for his expertise in breast surgery, endocrine surgery, hepatopancreatobiliary surgery, colorectal surgery, and hernia surgery. Dr. Akdur graduated from Özel Yükseliş College in 1995 and completed his medical education at the Cumhuriyet University Faculty of Medicine in 2002. He completed his residency at the Başkent University Department of General Surgery in 2009. He received the academic title of Assistant Professor in 2014 and Associate Professor in 2021. Throughout his academic career, he has taken part in thousands of surgical operations and has successfully implemented modern surgical techniques particularly in breast and thyroid surgery, liver–pancreas surgery, colorectal surgery, and laparoscopic hernia procedures. Assoc. Prof. Dr. Akdur has 82 internationally indexed publications, over 400 citations, and more than 150 scientific presentations. His interest in minimally invasive surgery is combined with an approach that prioritizes patient safety and functional integrity. Today, Dr. Aydincan Akdur continues both his academic and clinical work at Ankara Medipol University and in his private clinic, standing out in the field of general surgery with his scientific expertise and ethical medical practice.
