Causes of Abdominal Pain on the Right Side Under the Ribs

Abdominal pain can have a wide variety of causes.
Image Credit: g-stockstudio/iStock/GettyImages

"Where does it hurt?" is likely the first question your doctor will ask if you come in with pain on the right side under your ribs (abdominal pain). This simple question serves an important purpose because the location of your pain provides clues about possible causes. Pain in your upper right abdomen beneath your lower ribs often signals a problem with one of the organs in this area such as your gallbladder, liver, or right lung or kidney.


Video of the Day

Gallbladder Disease

Gallbladder disease tops the list of possible causes of pain under the right rib — the right upper quadrant (RUQ) in medical lingo. Your gallbladder stores bile, a digestive fluid produced by your liver. Several gallbladder conditions can cause RUQ pain.

1. Biliary Colic

Temporary blockage of bile flow from your gallbladder is a leading cause of RUQ. This causes a so-called gallbladder attack (known medically as biliary colic) characterized by achy RUQ pain that sometimes radiates to the right shoulder.


The pain occurs due to pressure build-up and subsides after the temporary blockage resolves, typically in five hours or less. Some people also experience queasiness and/or nausea. Biliary colic tends to recur periodically and is usually due to gallstones.

2. Acute Cholecystitis

Acute cholecystitis usually develops due to a persistent blockage of bile flow that leads to inflammation of the gallbladder. Severe RUQ pain and tenderness occur, often accompanied by nausea and vomiting and possibly a low-grade fever. In contrast to biliary colic, the pain due to acute cholecystitis characteristically persists for six hours or longer. Gallstones account for the overwhelming majority of cases.


3. Other Gallbladder Conditions

Right-sided upper abdominal pain sometimes signals a less common gallbladder condition, such as an infection (cholangitis) or cancer of the gallbladder or a nearby organ like the liver or pancreas.

Read more: Gallbladder Infection Symptoms


Liver Disease

Like the gallbladder, your liver resides in your right upper abdomen beneath your lower ribs and can cause pain in this area. Examples of liver diseases that can cause RUQ pain include:

  • Hepatitis, liver inflammation most commonly caused by a viral infection or long-term alcohol abuse
  • Liver abscess, a pocket of infection and accumulated pus
  • Liver tumors including noncancerous growths, liver cancer and cancer that has spread from another organ to the liver


Lung Conditions

A muscle called the diaphragm separates your chest and abdominal cavities in your lower rib cage area. On the right side of your body, your right lung sits atop the diaphragm and the liver just below the muscle. As such, lung conditions affecting the right lower lung can sometimes cause irritation and RUQ pain.

Right lower lobe pneumonia is the most common lung-related culprit for RUQ pain. Less common causes include a right-sided lung blood clot (pulmonary embolism), a lung abscess, and inflammation of the thin sac encasing the lung (pleurisy).


Kidney Conditions

It might surprise you to learn that the upper part of each kidney resides at the level of your lowest ribs in the back of your body. Certain conditions involving your right kidney can, therefore, cause pain in your right flank — the area starting at the lower rib cage next to your spine and wrapping around your side, possibly extending to the front of your abdomen.


Possible culprits for right flank pain include infection of the right kidney (pyelonephritis) or a right-sided kidney stone, cyst or a noncancerous or cancerous tumor.

Intestinal Disorders

Portions of both your small and large intestines pass through the right upper region of your abdomen and can potentially cause pain in this area. Intestinal disorders that can potentially cause RUQ pain near your lower ribs include:


Read more: 7 Signs Your Gut Is Out of Whack

Other Causes

In addition to the conditions already discussed, several other ailments can potentially cause pain in your upper right abdomen. Your doctor typically considers these conditions if more common causes have been ruled out or seem unlikely based on other signs and symptoms you're experiencing.

Some examples of these diverse conditions include:

When to See a Doctor

Because RUQ pain occurs with a broad array of conditions of differing severity, contact your doctor if you experience this symptom. Seek medical evaluation and care right away if your pain is sudden, severe, worsening or accompanied by any potential warning signs or symptoms, including:

  • Fever, with or without chills
  • Cold sweats
  • Nausea and/or vomiting
  • Abdominal bloating or tenderness
  • Bloody, maroon, black or light-colored stools
  • Severe constipation
  • Yellow discoloration of the skin and/or whites of the eyes
  • Bloody or pink urine
  • Increased urinary frequency and/or urgency
  • Difficulty breathing or shortness of breath
  • Chest pain
  • Lightheadedness, dizziness or fainting

Read more: 10 Ways to Tell Good Pain From Bad Pain



Is this an emergency? If you are experiencing serious medical symptoms, please see the National Library of Medicine’s list of signs you need emergency medical attention or call 911.

Report an Issue

screenshot of the current page

Screenshot loading...