Pain in the right upper abdomen most commonly comes from the gallbladder, but several other organs sit in that area, including the liver, the first section of the small intestine, and the right kidney. The cause depends heavily on what the pain feels like, how long it lasts, and what triggers it. Here’s how to sort through the most likely explanations.
Gallbladder Problems: The Most Common Cause
The gallbladder is the single most frequent source of right upper abdominal pain, and gallstones are usually to blame. About 10 to 15 percent of adults have gallstones, and many never know it until one gets stuck. When your gallbladder contracts to release bile (the digestive fluid that helps break down fats), a stone can temporarily block the outflow. Pressure builds behind that blockage, producing a steady, sometimes intense ache under the right ribcage or slightly toward the center of your abdomen.
This type of pain, called biliary colic, typically lasts anywhere from 20 minutes to a few hours and often hits shortly after eating, especially a large or fatty meal. Fats in your small intestine are the direct trigger because they signal the gallbladder to squeeze. The pain is steady rather than crampy, and it can radiate to your right shoulder blade or between your shoulder blades. Between episodes, you may feel completely fine.
If the pain lasts longer than three hours, it may signal something more serious: acute cholecystitis, which means the gallbladder wall itself has become inflamed. At that point, fever often develops, and the area under your right ribs becomes increasingly tender to the touch. A hallmark sign is catching your breath sharply when someone presses on that spot during a deep inhale. Cholecystitis needs prompt medical treatment because the inflammation can progress to infection or, rarely, perforation.
Liver Swelling and Inflammation
The liver fills most of the right upper abdomen, tucked behind and beneath the lower ribs. The liver tissue itself doesn’t have pain-sensing nerves, but the thin capsule wrapping around it does. When the liver swells from hepatitis (viral, alcoholic, or medication-related), fatty liver disease, or even right-sided heart failure, that capsule stretches. The result is a dull, deep ache on the right side, sometimes described as a sense of fullness or heaviness rather than sharp pain.
Liver-related pain tends to be constant rather than episodic and doesn’t have an obvious connection to meals. You might also notice fatigue, loss of appetite, dark urine, or a yellowish tint to your skin or eyes. If swelling is severe, the liver edge may be palpable below your ribs, something a doctor can check during a physical exam.
Ulcers in the Upper Digestive Tract
The duodenum, the first stretch of the small intestine, sits just to the right of your midline. Ulcers here can produce a gnawing or burning pain in the right upper abdomen that behaves differently from gallbladder pain. For some people, the pain flares when the stomach is empty or at night and temporarily improves after eating. For others, eating makes it worse. That inconsistency can make duodenal ulcers tricky to identify by symptoms alone, but the burning quality and its relationship to hunger are useful clues. Most ulcers are caused by a common bacterial infection or long-term use of anti-inflammatory painkillers like ibuprofen.
Kidney Stones on the Right Side
A stone in the right kidney or upper ureter can masquerade as a gallbladder or liver problem. Pain from an upper urinary tract stone typically starts as a sudden, severe ache in the flank (the area between your lower ribs and hip on the back or side) and can wrap around toward the front. On the right side specifically, this presentation is frequently confused with gallbladder disease.
The distinguishing features are restlessness (people with kidney stone pain often can’t find a comfortable position), pain that radiates toward the groin or inner thigh as the stone moves, and urinary symptoms like blood in the urine, burning, or a frequent urge to go. If fever develops alongside a kidney stone, that combination can become dangerous quickly and needs emergency care.
Chest Wall and Rib Pain
Not all right upper abdominal pain comes from inside the abdomen. Costochondritis, which is inflammation where rib cartilage connects to the breastbone, can produce pain that feels like it’s coming from the upper belly when it’s actually in the lower chest wall. The key difference is that this pain worsens with specific physical movements: taking a deep breath, coughing, sneezing, twisting, or pressing directly on the rib joints. If the tender spot is right at the rib surface and the pain changes noticeably with body position, the source is more likely musculoskeletal than an internal organ.
Less Common but Worth Knowing
In women with pelvic inflammatory disease (PID), infection can sometimes travel upward and inflame the capsule surrounding the liver. This condition, called Fitz-Hugh-Curtis syndrome, affects roughly 4 to 14 percent of women with PID. It produces right upper belly pain that can be mistaken for gallbladder trouble, but it occurs alongside signs of pelvic infection such as abnormal vaginal discharge, pelvic pain, or pain during intercourse.
Right-sided pneumonia, especially in the lower lobe, can also refer pain to the upper abdomen because the diaphragm shares nerve pathways with the abdominal wall. If your right upper abdominal pain came on with a cough, fever, or shortness of breath, the lungs may be the actual source.
How Doctors Figure Out the Cause
An abdominal ultrasound is typically the first imaging test ordered for right upper abdominal pain. It’s fast, painless, and highly accurate for the most common culprit: gallstones. Ultrasound picks up gallstones with about 94 percent sensitivity and 93 percent specificity, making it one of the most reliable non-invasive tests in medicine. Its accuracy for detecting acute gallbladder inflammation is somewhat lower (around 73 percent sensitivity), so if suspicion remains high after a normal ultrasound, additional imaging or lab work may follow.
Blood tests help distinguish between liver, gallbladder, and pancreatic causes. Liver enzyme levels, bilirubin (which rises with bile duct blockage), and markers of infection all help narrow the diagnosis. A urinalysis can quickly flag kidney stones or a urinary tract infection. In ambiguous cases, a CT scan provides a more detailed look and can catch stones in the bile ducts that ultrasound may miss.
Warning Signs That Need Immediate Attention
Most right upper abdominal pain resolves on its own or turns out to be something manageable. But certain combinations of symptoms signal a potentially dangerous situation:
- Fever with right upper abdominal pain and jaundice (yellowing of the skin or eyes) suggests a bile duct infection called cholangitis, which can become life-threatening without treatment.
- Rapidly worsening jaundice on its own points to an acute blockage or liver failure.
- Severe pain with lightheadedness, rapid heartbeat, or confusion may indicate internal bleeding, sepsis, or shock.
- Right upper abdominal pain during pregnancy can be a sign of preeclampsia or a related condition called HELLP syndrome, both of which require urgent evaluation.
- A rigid, board-like abdomen where even light touch is excruciating suggests perforation or peritonitis.
If your pain is mild, comes and goes, and you feel otherwise well, it’s reasonable to schedule a regular appointment. If you’re experiencing any of the combinations above, go to the emergency room.