Why Does the Upper Right Side of My Stomach Hurt?

Pain in the upper right side of your abdomen usually points to one of the organs packed into that region: the gallbladder, liver, part of the colon, or the right kidney. The gallbladder is the single most common culprit, but the list of possibilities is genuinely long, ranging from a pulled muscle to a liver condition to a problem that is not even in the abdomen at all. Because so many different structures can produce pain in the same spot, the character of the pain, what makes it better or worse, and the symptoms that travel with it matter as much as the location itself.

The Gallbladder Is the Usual Suspect

Your gallbladder sits just beneath the liver on the right side, tucked under the lower edge of your rib cage. Its job is to store bile and release it when you eat fatty food. When something goes wrong with the gallbladder, pain tends to land squarely in the upper right quadrant, often radiating to the right shoulder blade or the center of your upper abdomen.

The two most common gallbladder problems are biliary colic and acute cholecystitis. Biliary colic happens when a gallstone temporarily blocks the duct that drains bile. The pain typically comes on after a meal, builds to a steady ache over about an hour, and then gradually fades once the stone shifts. Acute cholecystitis is a step beyond that: the gallbladder wall itself becomes inflamed, usually because a stone stays stuck. The pain is more persistent, you may develop a fever, and blood tests tend to show elevated inflammatory markers like white blood cells and C-reactive protein.1PubMed Central. Do NEUT-RI, NEUT-GI, RE-LYMP, and AS-LYMP provide diagnostic value in differentiating acute cholecystitis from biliary colic? The distinction matters because biliary colic is uncomfortable but not dangerous in the short term, while cholecystitis can escalate into a surgical emergency.

A useful clue: gallbladder pain is often provoked by greasy or heavy meals, tends to be worst at night, and pressing on the right side under your ribs during a deep breath can reproduce the pain sharply (a maneuver doctors call Murphy’s sign). If you notice that pattern, the gallbladder should be high on your list of concerns to raise with a physician.

Liver Problems That Cause Right-Sided Pain

The liver is the largest organ in your abdomen and occupies most of the upper right quadrant. Liver tissue itself does not have many pain-sensing nerves, which is why liver disease can progress silently for years. What does have pain receptors is the capsule that wraps around the liver, called Glisson’s capsule. When the liver swells for any reason, that capsule stretches, and the result is a dull, aching pain in the right upper abdomen.2PubMed Central. Acute pancreatitis in acute viral hepatitis

Viral hepatitis (types A, B, and C) can cause this kind of swelling acutely, along with fatigue, nausea, and sometimes jaundice. Fatty liver disease, now formally called metabolic dysfunction-associated steatotic liver disease, is another increasingly common cause. A case report illustrates the typical presentation: a middle-aged woman visiting a clinic with a dull aching pain in the right upper abdomen that turned out to be related to fat accumulation in the liver.3Benghazi University Medical Journal. Metabolic Dysfunction Associated Steatotic Liver Disease (MASLD), An Underappreciated Threat Fatty liver disease often produces no symptoms at all in its early stages, so when it does cause pain, the disease may already be moderately advanced.

A liver abscess, whether from a bacterial or amoebic infection, can also generate right upper quadrant pain accompanied by high fevers and chills. And although rarer, cancers that originate in or spread to the liver can stretch the capsule and produce a similar sensation. The takeaway is that liver-related pain tends to feel deep and constant rather than sharp and crampy, and it often comes with systemic symptoms like fatigue, loss of appetite, or changes in the color of your skin or urine.

Gastrointestinal Causes Beyond the Gallbladder

Several parts of the digestive tract sit in or near the right upper quadrant, including the duodenum (the first section of the small intestine), the hepatic flexure of the colon (where the colon makes a sharp turn under the liver), and part of the stomach itself.

A peptic ulcer in the duodenum can produce a gnawing or burning pain that feels like it is in the upper right abdomen, especially when your stomach is empty. Eating sometimes temporarily relieves it, which helps distinguish it from gallbladder pain that eating tends to worsen. Gastritis and acid reflux can produce similar burning sensations higher up, though these are more typically felt in the center or left side.

Trapped gas in the hepatic flexure of the colon is a surprisingly common and underappreciated source of right upper quadrant discomfort. The pain can be sharp enough to mimic something more serious. Gas-related abdominal pain is among the most frequent complaints doctors encounter, and an understanding of how gas moves through the intestines often helps reassure patients that nothing dangerous is happening.4PubMed Central. Clinical intestinal gas syndromes The pain tends to shift location, improve after passing gas or having a bowel movement, and worsen after eating foods known to produce gas (beans, cruciferous vegetables, carbonated drinks).

When the Kidney Is to Blame

Your right kidney sits in the back of your abdomen, partly protected by the lower ribs. Pain from a kidney stone or a kidney infection can radiate forward into what feels like the upper right side of the abdomen, confusing the picture. Kidney stone pain is often described as one of the most intense pains a person can experience: it comes in waves, starts in the flank or back, and can radiate to the groin. A kidney infection (pyelonephritis) tends to be a more constant ache in the flank, accompanied by fever and painful urination.

Imaging studies can usually sort this out. On ultrasound, a kidney stone shows up as a bright spot with a characteristic shadow behind it, while an infected kidney may appear swollen with blurred internal architecture.5Ultrasonography. Ultrasonography of acute flank pain: a focus on renal stones and acute pyelonephritis The key clinical clue is that kidney pain typically involves the back and flank more than the front of the abdomen, and urinary symptoms (burning, frequency, blood in the urine) usually accompany it.

Pain That Is Not Really Coming from the Abdomen

One of the trickiest aspects of upper right abdominal pain is that it can be “referred” from somewhere else entirely. The nerves that serve the diaphragm, the lower lungs, and the upper abdominal organs share overlapping pathways, so your brain can mislocate the signal.

Pneumonia or pleurisy (inflammation of the lining around the lungs) affecting the right lower lobe can produce pain that the patient feels in the abdomen rather than the chest. This phenomenon has been recognized for well over a century: in pleurisy and pneumonia, pain may be referred to points remote from the site of the disease, including the abdomen.6JAMA. ABDOMINAL PAIN IN PLEURISY AND PNEUMONIA If you have upper right abdominal pain along with a cough, shortness of breath, or fever without obvious gastrointestinal symptoms, a chest X-ray may reveal the real source.

Musculoskeletal problems are another common mimic. Strained intercostal muscles, inflammation of the cartilage connecting your ribs to the breastbone (costochondritis), or even “fibrositis” in the chest wall can all produce pain that feels abdominal in origin. These musculoskeletal causes are frequently mistaken for more serious internal problems.7PubMed Central. Musculoskeletal chest wall pain A helpful test: if the pain changes with posture, worsens when you twist your trunk, or can be reproduced by pressing on a specific spot on the chest wall, the cause is more likely muscular than organ-related.

Less Common but Worth Knowing About

Fitz-Hugh-Curtis Syndrome

This is a condition where infection from pelvic inflammatory disease travels upward and causes inflammation around the liver capsule. Historically associated with women who have a pelvic infection from chlamydia or gonorrhea, it produces sharp right upper quadrant pain that can be mistaken for gallbladder disease. The infection can spread by ascending from the cervix through the fallopian tubes and into the peritoneal cavity, eventually reaching the liver capsule and forming adhesions on its surface.8International Journal of Case Reports and Images. Perihepatitis (Fitz-Hugh-Curtis syndrome): Case report and review of literature Though it was originally described only in women, cases in men have been reported as well, where the infection reaches the liver through the bloodstream or lymphatic system.9Kosin Medical Journal. A Case of Fitz-Hugh-Curtis syndrome in a male patient

Shingles Before the Rash Appears

Herpes zoster (shingles) most often appears as a band of blisters around the trunk, and the right upper abdomen is a common location. The tricky part is that the pain can start days before any rash shows up, leading to emergency visits for what looks like an acute abdominal problem.10PubMed Central. Shingles (Herpes Zoster) Mimicking Acute Abdomen If you are over 50 or have a weakened immune system and develop a burning, one-sided pain that does not fit any of the usual patterns, keeping shingles on the radar can save you from unnecessary imaging or even surgery.

Budd-Chiari Syndrome

A rare vascular condition where the veins draining the liver become blocked by a blood clot. The classic presentation includes an enlarged liver, right upper quadrant pain, and fluid buildup in the abdomen (ascites).11PubMed. Hepatic vein thrombosis (Budd-Chiari syndrome) This is uncommon enough that most people will never encounter it, but it is worth mentioning because it tends to affect younger adults, sometimes triggered by blood-clotting disorders or certain medications.

Pregnancy-Specific Concerns

If you are pregnant and develop persistent right upper quadrant pain, especially in the second half of pregnancy, take it seriously. Preeclampsia and a related condition called HELLP syndrome can cause liver swelling and, in extreme cases, liver hemorrhage. A review of published cases found that hepatic hemorrhage in hypertensive disorders of pregnancy, while rare, carried a real mortality risk and required treatments ranging from conservative management to emergency surgery and even liver transplantation.12Taiwan Journal of Obstetrics and Gynecology. Hepatic rupture in preeclampsia and HELLP syndrome: A catastrophic presentation Right upper quadrant pain in a pregnant woman with elevated blood pressure or abnormal liver tests should be treated as urgent.

More benign causes also occur during pregnancy. The growing uterus pushes abdominal organs upward, the gallbladder empties more slowly due to hormonal changes, and round ligament pain can occasionally be felt higher than expected. But the key message is that new upper right abdominal pain during pregnancy warrants medical evaluation more quickly than it would outside of pregnancy.

How Doctors Figure Out the Cause

Right upper quadrant pain is one of the most common reasons people visit an emergency department, and the differential diagnosis is broad, spanning both gastrointestinal and non-gastrointestinal causes.13PubMed. Evaluating the Patient with Right Upper Quadrant Abdominal Pain The evaluation typically starts with a history and physical exam, followed by blood work (liver enzymes, white blood cell count, bilirubin, lipase) and imaging.

Ultrasound is usually the first imaging test ordered for right upper quadrant pain, particularly when gallbladder disease is suspected. It is quick, does not involve radiation, and performs well for detecting gallstones and cholecystitis. A large retrospective study of more than 2,800 emergency department cases found that ultrasound and CT scan performed similarly for right upper quadrant pain overall, with no statistically significant difference in sensitivity or specificity between the two methods.14PubMed. Role of Ultrasound and CT in the Workup of Right Upper Quadrant Pain in Adults in the Emergency Department: A Retrospective Review of More Than 2800 Cases That said, CT tends to outperform ultrasound when the clinical picture is unclear or when conditions like appendicitis or diverticulitis are being considered.15PubMed Central. A comparison of the Accuracy of Ultrasound and Computed Tomography in common diagnoses causing acute abdominal pain

Review analyses have concluded that ultrasound remains the preferred first-line test when right upper quadrant pain is clinically suspected to be gallbladder-related, while CT is reserved for cases where the cause remains uncertain after ultrasound or when broader abdominal pathology needs to be ruled out.16International Journal of Current Science Research and Review. Comparison of Diagnostic Accuracy of CT scan and USG in Right Upper Quadrant Pain: A Review Analysis In practical terms, if you go to the ER with this complaint, expect an ultrasound first. If that does not provide a clear answer, a CT scan is the logical next step.

Why Age Changes the Calculation

The same symptom can mean very different things depending on how old you are. In younger adults, gallstones, gastritis, and musculoskeletal causes dominate. In older adults, the stakes change. Abdominal pain is one of the most frequent reasons elderly people visit the emergency department, and the deadliest causes in this population include conditions like mesenteric ischemia (reduced blood flow to the intestines) and abdominal aortic aneurysm, along with non-abdominal sources of pain that mimic abdominal disease.17PubMed Central. Abdominal emergencies in the geriatric patient

Older adults also tend to present atypically. Cholecystitis may cause less pain and less fever than it would in a younger person, making it easier to miss. The absence of classic symptoms does not mean the absence of a serious problem, which is why physicians often have a lower threshold for imaging in older patients with abdominal pain. If you are over 65 and have new or worsening right upper quadrant pain, err on the side of getting it checked promptly rather than assuming it will pass.

When You Should Not Wait It Out

Most episodes of upper right abdominal pain turn out to be something manageable: gas, a mild stomach issue, a strained muscle. But certain combinations of symptoms should send you to seek care without delay:

  • Fever with pain: Suggests infection, whether in the gallbladder, kidney, liver, or elsewhere. Infections in the abdomen can worsen quickly.
  • Jaundice: Yellowing of the skin or eyes alongside right-sided pain points toward a bile duct obstruction or liver problem that needs urgent evaluation.
  • Pain after trauma: A blow to the right side of the abdomen or a fall can cause liver laceration or other internal injuries.
  • Pregnancy plus pain: As described earlier, this combination requires prompt assessment to rule out HELLP syndrome or preeclampsia-related liver involvement.
  • Severe or escalating pain: Pain that is getting worse over hours rather than better, especially if it is accompanied by vomiting, warrants same-day evaluation.
  • Pain with shortness of breath: Could signal a pulmonary cause like pneumonia or a pulmonary embolism rather than an abdominal one.

On the other hand, pain that is mild, comes and goes, worsens after certain meals, and resolves within a few hours is more consistent with a functional or dietary cause. Keeping a brief log of when the pain occurs, what you ate beforehand, and what it feels like can give your doctor a surprising amount of useful information. People who show up with a clear timeline of their symptoms tend to get diagnosed faster than those who describe the pain only in general terms.

Conditions People Often Confuse with Each Other

Gallbladder attacks and heartburn are probably the most commonly confused pair. Both can cause discomfort in the upper abdomen after eating, and both can radiate upward. The distinction is that gallbladder pain is typically more localized to the right, comes on more suddenly, and does not respond to antacids. Heartburn tends to burn centrally behind the breastbone and improves with acid-reducing medication.

Kidney stones and gallstones also get confused, partly because both involve “stones” and both cause severe pain. But kidney stone pain almost always involves the back and flank and often causes urinary symptoms, while gallstone pain sits higher and more to the front. The two conditions also look completely different on imaging and require entirely different treatments.

A third common mix-up is between a pulled muscle and an internal organ problem. If you recently exercised, lifted something heavy, or coughed hard for an extended period, the pain may be coming from the muscles between your ribs or the abdominal wall rather than from anything inside the abdomen. The positional nature of musculoskeletal pain, changing with movement, worsening with direct pressure, and absent when you are perfectly still, is the best way to tell the difference at home before deciding whether you need professional evaluation.