What Causes Upper Right Side Pain and When Is It Serious?

Pain in your upper right side, just below and around your lower ribs, usually points to one of several organs packed into that area of your abdomen. The gallbladder is the most common culprit, but the liver, right kidney, part of the colon, and even the muscles and cartilage along your ribs can all produce pain in this region. What the pain feels like, when it shows up, and what makes it worse or better are the best clues to narrowing down the cause.

What’s Located in Your Upper Right Side

Your upper right abdomen (doctors call it the right upper quadrant) is home to more organs than most people realize. The liver takes up most of the space, sitting directly behind your lower right ribs. Tucked underneath the liver is your gallbladder, a small pouch that stores bile. The head of the pancreas, the first portion of the small intestine (the duodenum), and the bend where your colon turns downward (the hepatic flexure) all sit here too. Your right kidney is positioned toward the back, closer to your flank.

Each of these organs generates pain differently. Hollow organs like the gallbladder and intestines tend to cause cramping or squeezing pain. Solid organs like the liver and kidney produce a deeper, more constant ache, especially when they swell and stretch the tissue capsule surrounding them. Knowing this distinction helps explain why gallbladder pain feels so different from liver pain, even though they’re neighbors.

Gallbladder Problems: The Most Likely Cause

Gallbladder issues are the single most common reason for sharp upper right abdominal pain, particularly in women, Hispanic populations, and older adults. Gallstone disease has been rising steadily over the past decade in the United States, and it produces a distinctive pain pattern that’s worth recognizing.

When a gallstone temporarily blocks the duct that drains the gallbladder, you get what’s called biliary colic. It comes on suddenly as intense pain in the upper right abdomen, sometimes radiating up to your right shoulder. Despite the name “colic,” the pain is actually fairly steady rather than rhythmic, and it typically lasts up to three hours before easing. Sweating and vomiting are common during an episode. Attacks happen more often at night, likely because lying down allows stones to shift into the duct opening more easily. Fatty meals are a well-known trigger because they cause the gallbladder to contract forcefully.

If the pain lasts longer than three hours, the gallbladder itself may be inflamed, a condition called acute cholecystitis. At this point you may also develop a fever. Some people notice that the pain starts in the center of the upper abdomen, eases briefly, then relocates to the right side. This two-phase pattern is a classic sign of gallbladder inflammation and warrants prompt medical evaluation.

Liver-Related Pain

The liver doesn’t have pain-sensing nerves inside it, so liver problems only hurt when the organ swells enough to stretch the capsule surrounding it. That means liver pain tends to be a dull, persistent ache rather than a sharp stab.

Several conditions can cause this swelling. Viral hepatitis (types A, B, and C) inflames the liver and commonly produces upper right pain along with fatigue, nausea, and sometimes yellowing of the skin or eyes. Fatty liver disease, which is increasingly common, can enlarge the liver enough to cause discomfort in the same area. Heavy alcohol use over many years is another well-known cause of liver inflammation. Less common triggers include autoimmune hepatitis and inherited conditions like hemochromatosis, where iron builds up in the liver.

If you notice your pain is accompanied by dark urine, pale stools, or a yellowish tint to your skin, liver involvement is more likely.

Right Kidney Stones and Infections

Your right kidney sits behind the other abdominal organs, closer to your back, so kidney pain is typically felt more in the flank area (your side, below the ribs and toward the back) than in the front of your abdomen. Still, many people describe it as upper right side pain.

Kidney stones produce some of the most intense pain people experience. It comes in waves, varying in intensity, and often starts in the flank before migrating downward toward the lower abdomen and groin as the stone moves through the urinary tract. You may also notice pink, red, or brown urine, a burning sensation when urinating, or a persistent urge to urinate with only small amounts coming out.

A kidney infection (pyelonephritis) produces a different pattern: steady flank pain, often with fever, chills, and pain during urination. Tapping on the back over the affected kidney usually reproduces the pain. Kidney infections need treatment promptly to prevent the infection from spreading.

Digestive Causes Beyond the Gallbladder

A duodenal ulcer, which forms in the first section of the small intestine, can cause a burning or gnawing pain in the upper right or upper center of the abdomen. The relationship with food is a useful clue: for some people the pain flares on an empty stomach or at night and briefly improves after eating, while for others eating makes it worse. If you’ve been taking anti-inflammatory painkillers regularly or have a history of stomach ulcers, this is worth considering.

The colon’s hepatic flexure (the sharp bend near the liver) can also generate cramping pain in this area. Constipation, gas, or irritable bowel syndrome can all cause discomfort here, typically described as cramping that comes and goes with bowel movements. This type of pain often improves after passing gas or having a bowel movement.

Muscle and Rib Pain That Mimics Organ Problems

Not all upper right pain comes from inside the abdomen. Costochondritis, an inflammation of the cartilage connecting your ribs to the breastbone, can produce sharp or aching pain in the rib area. The key difference is that this pain worsens with deep breaths, coughing, sneezing, or twisting your torso. It’s also reproducible: pressing on the sore spot along the rib or breastbone will recreate the pain. Organ-related pain generally doesn’t change when you press on your ribs or shift your body position.

A pulled intercostal muscle (between the ribs) or even shingles affecting the right side of the torso can mimic deeper organ pain. If the pain clearly worsens with movement and you can pinpoint the exact tender spot with a finger, a musculoskeletal cause is more likely.

Less Common but Worth Knowing

In women with pelvic infections, inflammation can sometimes spread upward to the tissue surrounding the liver, a condition called Fitz-Hugh-Curtis syndrome. It causes severe upper right pain along with fever, chills, and general malaise. Vaginal discharge or lower abdominal pain may appear before, after, or at the same time as the upper abdominal pain. This is diagnosed mainly by ruling out other causes and is treated by addressing the underlying pelvic infection.

How the Cause Gets Diagnosed

An abdominal ultrasound is the standard first test when gallbladder disease is suspected. It’s effective at spotting gallstones, gallbladder wall thickening, and signs of inflammation, and it can also reveal liver problems. When the cause is unclear, a CT scan with contrast is equally appropriate as a first step and is better at catching issues outside the biliary system, like kidney stones, colon problems, or pancreatic conditions. Ultrasound is preferred for gallstones specifically because CT only detects about 75% of them.

If ultrasound results are inconclusive and gallbladder disease is still suspected, the next step depends on whether you also have a fever or signs of infection. Without fever, an MRI of the abdomen with specialized bile duct imaging is typically ordered. With fever, a nuclear medicine scan of the gallbladder may be used to check whether the organ is functioning properly.

Signs That Need Urgent Attention

Most upper right side pain turns out to be something manageable, but certain combinations of symptoms signal a more serious problem. Seek prompt evaluation if your pain is accompanied by a rigid or distended abdomen, high fever, vomiting bile (green or yellow fluid), yellowing skin or eyes, signs of bleeding (vomiting blood or black stools), or fainting. Pain that becomes significantly worse when pressure on your abdomen is suddenly released (rather than during the pressing itself) suggests inflammation of the abdominal lining and needs immediate assessment.