Why Does the Upper Right Side of My Stomach Hurt?

Pain in the upper right side of your stomach most commonly comes from the gallbladder or liver, the two organs that sit directly beneath your right ribcage. The area, known medically as the right upper quadrant, also contains the upper part of your small intestine, the head of the pancreas, and your right kidney. Pinpointing the cause depends on what the pain feels like, how long it lasts, and what seems to trigger it.

What’s Actually in That Area

Your right upper abdomen is packed with organs, but only a few of them are common sources of pain. The liver takes up most of the space, with the gallbladder tucked underneath it. Together, these two organs produce, store, and release bile, a fluid your body uses to digest fat. Just below them sits the duodenum, the first section of your small intestine, and the head of the pancreas. Your right kidney is positioned further back, closer to your spine. When something goes wrong with any of these organs, you may feel it as pain under or just below your right ribs.

Gallbladder Problems: The Most Likely Cause

Gallbladder issues are the single most common reason for upper right abdominal pain. Roughly 10 to 20 percent of U.S. adults have gallstones, though most never know it. Gallstones can sit quietly for decades without causing trouble. Each year, only about 1 to 3 percent of people with gallstones develop symptoms or complications.

When a gallstone temporarily blocks the duct that drains the gallbladder, you get what’s called biliary colic. The pain tends to be less severe and comes and goes, often lasting a few hours. It frequently shows up after a fatty meal because fat in your stomach triggers the release of a hormone that tells your gallbladder to squeeze out bile. A high-fat meal forces more bile out, and if a stone is partially blocking the exit, that squeeze produces pain along with nausea.

If the blockage persists and the gallbladder becomes inflamed, the situation escalates to cholecystitis. Pain builds quickly to a peak, can feel sharp, dull, or crampy, and often gets worse when you breathe deeply. Nausea and vomiting are common. Up to a third of people with acute gallbladder inflammation develop a fever over 100°F. You might also notice bloating, tenderness when you press on the area, or stiffness in the muscles on your right side. Unlike biliary colic, this pain doesn’t fade on its own after a few hours.

Liver-Related Causes

The liver itself doesn’t have many pain receptors, but the capsule surrounding it does. When the liver swells or becomes inflamed, that capsule stretches, producing a dull ache or pressure under your right ribs. Several conditions can cause this, including alcohol-related hepatitis, viral hepatitis (A, B, or C), toxic hepatitis from medications or supplements, autoimmune hepatitis, and fatty liver disease. Fatty liver disease in particular has become increasingly common and often produces no symptoms at all until the liver is significantly affected.

Liver-related pain tends to feel different from gallbladder pain. It’s usually more of a constant, dull heaviness rather than the sharp, meal-triggered episodes that point to the gallbladder. You might also notice fatigue, loss of appetite, or in more advanced cases, yellowing of your skin or eyes.

Duodenal Ulcers

The duodenum sits in the upper right part of your abdomen, and ulcers here can produce pain that’s easy to confuse with gallbladder trouble. Duodenal ulcer pain is typically dull or burning and comes and goes over time. For some people, the pain is worst when the stomach is empty or at night and eases briefly after eating. For others, eating makes it worse. If your pain follows a pattern tied to meals or hunger rather than specifically to fatty foods, an ulcer could be the cause.

How Doctors Figure Out the Cause

Ultrasound is the first imaging test doctors reach for when you report upper right abdominal pain. It’s fast, doesn’t involve radiation, and it’s extremely accurate for detecting gallstones, with a reported accuracy of about 96 percent. For diagnosing gallbladder inflammation specifically, ultrasound’s sensitivity is lower (around 68 to 85 percent depending on the study), but it’s still the standard starting point because it also picks up liver abnormalities, bile duct problems, and kidney stones in the same scan.

CT scans are sometimes used as a follow-up. They’re actually better at detecting gallbladder inflammation than ultrasound (about 85 percent sensitivity), but they’re worse at finding gallstones themselves (around 75 percent sensitivity). So ultrasound and CT each have strengths depending on what the doctor suspects. Blood tests help round out the picture by checking liver enzymes, markers of infection, and pancreatic function.

What the Pain Pattern Tells You

Paying attention to your symptoms before your appointment can help narrow things down quickly:

  • Pain after fatty meals that lasts a few hours and then fades points toward gallstones or gallbladder irritation.
  • Intense, persistent pain with fever and vomiting suggests gallbladder inflammation, which is more urgent.
  • Constant dull ache with fatigue and possibly yellowing skin leans toward a liver condition.
  • Burning pain that improves or worsens with eating and follows a cycle suggests a duodenal ulcer.
  • Pain worse with deep breaths or lying on your right side can occur with several conditions, including gallbladder inflammation and less common causes like infection of the tissue surrounding the liver.

Symptoms That Need Immediate Attention

Most upper right abdominal pain isn’t an emergency, but certain combinations of symptoms signal something more serious. Seek medical care right away if your pain comes with blood in your stool or vomit, a high fever, dizziness or confusion, trouble breathing, jaundice (yellowing of your skin or the whites of your eyes), or visible swelling in your abdomen. Pain that steadily worsens rather than coming in waves also warrants urgent evaluation. If the pain comes with shortness of breath or a tight, squeezing sensation in your chest, it could involve your heart rather than your abdomen.