Right upper quadrant pain, the area beneath your ribs on the right side, most commonly comes from the gallbladder. But the liver, right kidney, parts of the colon, and even the lungs can all produce pain in the same spot. The cause ranges from a gallstone attack that passes on its own to conditions that need urgent treatment, so understanding the differences matters.
Gallbladder Problems Are the Most Common Cause
At least 10% of U.S. adults have gallstones, though only about 20% of those people ever develop symptoms. When symptoms do appear, the hallmark is biliary colic: a sudden, intense pain in the right upper abdomen that can radiate to the shoulder. Sweating and vomiting often come with it. Attacks are more common at night, likely because lying down allows stones to shift into the duct that drains the gallbladder. The pain is steady (not truly “colicky” despite the name) and typically lasts up to three hours before easing.
When pain lasts longer than three hours, that’s the classic signal of acute cholecystitis, meaning the gallbladder wall has become inflamed. Cholecystitis usually starts when a gallstone gets stuck in the duct and stays stuck. The pain may actually begin near the upper middle of your abdomen, ease briefly, then relocate to the right side. As inflammation builds, you may develop fever, and pressing on the area under your right ribs will cause sharp tenderness. About 30 to 40 percent of people with cholecystitis develop a palpable mass in that area from the swollen gallbladder and surrounding tissue. Up to 15 percent become jaundiced, with yellowing of the skin or eyes.
A more dangerous progression is cholangitis, an infection of the bile ducts themselves. This typically produces the combination of right upper quadrant pain, fever with chills, and jaundice. Cholangitis can deteriorate quickly and requires hospital treatment.
Liver Conditions
The liver itself doesn’t have pain-sensing nerves inside its tissue. Instead, liver pain comes from stretching of the capsule that wraps around it. Anything that causes the liver to swell, whether hepatitis (viral, alcoholic, or autoimmune), a liver abscess, or a mass, pushes outward on that capsule and produces a dull ache or sense of fullness under the right ribs. Congestion from heart failure can also distend the veins within the liver, creating the same capsule-stretching effect.
Because the pain is generated by swelling rather than by the disease process itself, liver pain tends to feel different from gallbladder pain. It’s usually more of a constant, deep pressure rather than the sharp, sudden onset of a gallstone attack. You might also notice fatigue, loss of appetite, or dark urine before the pain becomes obvious.
Kidney and Urinary Tract Causes
The right kidney sits just behind the liver, so kidney stones and kidney infections can both produce right upper quadrant pain. A kidney stone (nephrolithiasis) typically causes severe, wave-like pain that radiates from the back around to the front and down toward the groin. It often comes with blood in the urine and an urgent need to urinate. A kidney infection (pyelonephritis) produces a steadier pain in the flank area, along with fever, chills, and painful urination. The location overlap with gallbladder pain can make these tricky to distinguish without imaging or lab work.
Colon and Digestive Causes
The hepatic flexure, the sharp bend where your colon turns downward near the liver, sits right in the upper right quadrant. Inflammation here from colitis or, less commonly, diverticulitis can mimic gallbladder or liver pain. These conditions usually come with changes in bowel habits: diarrhea, constipation, or bloody stools. The pain tends to be crampy and may improve or worsen around bowel movements, which helps distinguish it from the steady pain of a gallbladder or liver problem.
Causes Outside the Abdomen
Not all right upper quadrant pain actually originates in the abdomen. A lower lobe pneumonia on the right side can irritate the base of the lung and the diaphragm, producing pain that feels abdominal. This pain is typically sharp and gets worse with coughing or taking a deep breath. If you have a cough, fever, and what seems like belly pain, the source may be your lung rather than anything below the diaphragm. Rib fractures and muscle strains along the lower right rib cage can also feel like internal abdominal pain, especially when you twist, bend, or press on the area.
Right Upper Quadrant Pain in Pregnancy
Pregnant women in the second or third trimester who develop right upper quadrant pain need prompt evaluation. This pain is one of the defining features of HELLP syndrome, a serious complication related to preeclampsia. HELLP stands for hemolysis (breakdown of red blood cells), elevated liver enzymes, and low platelet count. The condition can progress rapidly and endanger both mother and baby. Diagnosis involves blood pressure checks, urine testing for protein, and blood work. Right upper quadrant pain during pregnancy isn’t always HELLP, as gallbladder disease is also more common during pregnancy, but it warrants immediate medical attention regardless.
How the Cause Is Identified
Ultrasound is the recommended first imaging test when gallbladder disease is suspected. It’s noninvasive, widely available, and considered the reference standard for diagnosing cholecystitis. A large study comparing ultrasound to CT scans for right upper quadrant pain found similar accuracy for both: ultrasound had a sensitivity of 61% and specificity of 91% for cholecystitis, while CT came in at 55% and 92% respectively. CT tends to be more useful when the doctor suspects a liver abscess, a mass, or a cause outside the biliary system entirely.
Blood tests help narrow things down further. Elevated liver enzymes point toward hepatitis or bile duct obstruction. A high white blood cell count suggests infection, whether cholecystitis, cholangitis, or pyelonephritis. Urinalysis can quickly identify a kidney stone or infection. In many cases, the combination of your symptom pattern, blood work, and a single imaging study is enough to pinpoint the cause.
Warning Signs That Need Urgent Care
Most right upper quadrant pain resolves or can be evaluated on a routine timeline. But certain combinations signal a potential emergency:
- Severe or worsening pain that doesn’t improve after a few hours
- Fever and chills alongside the pain, which may indicate cholangitis or another infection
- Jaundice (yellowing of your skin or the whites of your eyes)
- Vomiting blood or shortness of breath with the pain
- Pain spreading to your chest, neck, or shoulder
- Blood in your urine or stool
- Unexplained weight loss alongside persistent pain
Any of these warrant a visit to an emergency department rather than waiting for a scheduled appointment. The overlap between benign and serious causes is real, but timing and associated symptoms usually make the difference clear.

