Skip to main content
Read about

Pain in the Upper Right Abdomen

Upper right abdominal pain, or sharp pain below your ribcage, can be caused by gallstones, a gall bladder infection, a stomach ulcer, hepatitis, pancreatitis, or it may be a lung condition.
Yellow pain marks in the upper right abdomen
Tooltip Icon.
Last updated April 9, 2024

Upper right abdominal pain quiz

Take a quiz to find out what's causing your pain.

Pain in the upper right abdomen symptoms

Are you experiencing pain in your upper right abdomen? The abdomen can be separated into four quadrants, each having different structures. Abdominal pain often resolves on its own; however, it can be due to serious causes as well. If you do seek care from a physician, try to provide as many details as you can.

Upper right abdomen anatomy

The upper right quadrant of the abdomen contains the liver, the gallbladder, the duodenum, the head of the pancreas, the right kidney and the part of the small intestine that connects to the stomach (duodenum).

  • Liver: The liver is the largest abdominal organ responsible for multiple metabolic processes of the body. The liver processes food into energy, removes toxins from the body, and stores nutrients.
  • Gallbladder: This is a small organ under the liver that stores a fluid called bile, which helps break down fat.
  • Pancreas: The pancreas makes enzymes for digestion and hormones, such as insulin, for maintaining blood sugar levels.
  • Duodenum: This is the first part of the small intestine that connects to the stomach.
  • Common bile duct: The common bile duct is a tubal structure that connects with the organs above and allows for bile to flow properly through the digestive system. It carries bile from the liver and gallbladder through the pancreas into the duodenum.

See this image here and here for a visual representation of these multiple components.

Common characteristics of upper right abdominal pain

Due to its complexity, the upper right abdomen is susceptible to multiple conditions that can cause pain. The pain may remain in the upper right quadrant or spread to other quadrants of the abdomen or the back. The pain may be sharp, sudden, dull, or achy.

Common accompanying symptoms of upper right abdominal pain

It's possible to experience the following symptoms in addition to your abdominal pain.

  • Fever
  • Nausea and vomiting
  • Constipation and/or diarrhea
  • Tenderness of the right upper quadrant
  • A bulge in the upper right quadrant
  • Bloating
  • Pain that changes with eating or hunger
  • Jaundice: This is a yellow tint or appearance of the skin.

If you experience these symptoms, you should consult a physician for a definitive diagnosis and the best course of treatment.

Pain in the upper right abdomen causes

The upper right quadrant is complex. Inflammation, obstruction, or injury to any of its structures can result in serious pain. Common causes are detailed below; however, you should seek care if your symptoms do not resolve on their own.

Obstructive causes

Obstructive causes of pain in the upper right abdomen may include the following.

  • Stones: Gallstones can form inside the gallbladder. Stones can vary in size and cause many different issues as well as pain. When gallstones obstruct the common bile duct, this is a condition known as choledocholithiasis. This obstruction can prevent the gallbladder, liver, and even pancreas from draining properly.
  • Ulcer: Sores in the lining of the stomach or duodenum can cause an obstruction in the upper abdomen and pain when eating.

Inflammatory causes

Any of the structures of the upper right abdomen can become inflamed due to infectious causes or irritation from other related issues.

  • Infectious: There are many pathogens, both bacterial and viral, that can infect the organs of the right upper abdomen. For example, hepatitis is a viral infection that can infect the liver.
  • Irritation: Since the upper abdomen is the primary location for processing food for digestion, it is susceptible to irritation in multiple ways. Gallstones can cause irritation to any of the organs. Toxic substances, such as alcohol and smoking, can cause irritation, inflammation, and swelling. Furthermore, acid needed for digestion can irritate the components of the digestive tract, including the upper abdomen.

Traumatic causes

Trauma to the upper abdomen from a direct blow or motor vehicle accident can cause pain, bruising, or internal bleeding.

Upper right abdominal pain quiz

Take a quiz to find out what's causing your pain.

Take symptoms quiz

Stomach ulcer

A peptic ulcer or gastric ulcer is an open sore that forms when inflammation occurs in the stomach lining.

This stomach inflammation is caused by the bacteria Helicobacter pylori (H. pylori) and by prolonged use of pain relievers such as ibuprofen or aspirin. Chronic inflammation allows acid to damage the stomach lining and an ulcer may form.

Smoking, drinking alcohol, stress, and spicy foods may aggravate ulcers, but do not cause them.

Symptoms include burning pain in the stomach; heartburn; nausea; and bloating.

The pain may be worse between meals or at night. Antacids will only work for a short time. There may be dark red blood in the vomit or stools.

Left untreated, ulcers may bleed and cause anemia. They may perforate the stomach and cause peritonitis (serious infection of the abdominal cavity.)

Diagnosis is made through physical examination and by testing breath and stool for H. pylori. Endoscopy is sometimes used.

Treatment involves a course of antibiotics to kill the bacteria, and medication to block excess acid and heal the stomach.

Rarity: Uncommon

Top Symptoms: fatigue, nausea, loss of appetite, moderate abdominal pain, abdominal cramps (stomach cramps)

Symptoms that never occur with stomach ulcer: pain in the lower left abdomen

Urgency: Primary care doctor

Indigestion (dyspepsia)

Indigestion, also called upset stomach, dyspepsia, or functional dyspepsia, is not a disease but a collection of very common symptoms. Note: Heartburn is a separate condition.

Common causes are eating too much or too rapidly; greasy or spicy foods; overdoing caffeine, alcohol, or carbonated beverages; smoking; and anxiety. Some antibiotics, pain relievers, and vitamin/mineral supplements can cause indigestion.

The most common symptoms are pain, discomfort, and bloating in the upper abdomen soon after eating.

Indigestion that lasts longer than two weeks, and does not respond to simple treatment, may indicate a more serious condition. Upper abdominal pain that radiates to the jaw, neck, or arm is a medical emergency.

Diagnosis is made through patient history and physical examination. If the symptoms began suddenly, laboratory tests on blood, breath, and stool may be ordered. Upper endoscopy or abdominal x-ray may be done.

For functional dyspepsia – "ordinary" indigestion – treatment and prevention are the same. Eating five or six smaller meals per day with lighter, simpler food; managing stress; and finding alternatives for some medications will provide relief.

Rarity: Common

Top Symptoms: nausea, stomach bloating, dyspeptic symptoms, bloating after meals, vomiting

Symptoms that always occur with indigestion (dyspepsia): dyspeptic symptoms

Symptoms that never occur with indigestion (dyspepsia): vomiting (old) blood or passing tarry stools, rectal bleeding, bloody diarrhea, fever

Urgency: Self-treatment

Hepatitis B

hepatitis B, or "hep B," is a viral liver infection. It is spread through direct contact with the blood or other bodily fluids of an infected person, especially through sexual contact and/or sharing needles. A baby can be infected by the mother during birth; however, the newborn can receive a vaccine to protect it.

Symptoms appear one to four months after exposure and include abdominal pain; nausea and vomiting; joint pain; fever; dark urine; and jaundice, which is yellowing of skin and whites of eyes.

If not treated, hepatitis B can become chronic – especially in children. This increases the risk of developing liver failure, liver cancer, or cirrhosis (damage from scarring.) hepatitis B is a medical emergency and requires immediate care.

Diagnosis is made through blood tests and sometimes through liver biopsy.

Acute hepatitis B can be managed with rest, fluids, and good nutrition while the body fights the virus. However, a chronic infection may be treated with antiviral medications or liver transplant.

There is a vaccine for hepatitis B, recommended for anyone at risk.

Hepatitis A

hepatitis A is a liver infection caused by the virus. It can severely affect the liver's ability to function.

The disease is highly contagious and spreads through traces of fecal matter. hepatitis A can be contracted from contaminated food or water, especially in a place with poor sanitation; from sharing hypodermic needles; or from close contact with an infected person, including sexual contact.

There may be few symptoms or there may be fatigue; nausea and vomiting; pain in the upper right side of the abdomen; dark urine; and yellowing of the skin and eyes, called jaundice.

Anyone with symptoms of hepatitis A should be seen by a medical provider. Most patients recover completely, but in rare cases acute liver failure can result.

Diagnosis is made through blood tests.

Treatment involves rest and caring for the symptoms, since antibiotics cannot cure a viral illness. Mild cases usually clear up on their own.

Frequent and thorough handwashing is the best prevention. Vaccines are available for those at higher risk, such as health care workers.

Gallstones

Gallstones are small, pebble-like, mineral deposits that can form inside the gallbladder. They may cause no symptoms unless they become lodged in a duct leading out of the gallbladder.

Gallstones are thought to be caused by high cholesterol, which can form into crystals in the gallbladder; by cirrhosis, or scarring, of the liver; or by incomplete emptying of the gallbladder.

Most susceptible are women over age 40. Other risk factors are obesity, lack of exercise, poor diet, and rapid weight loss as with gastric bypass surgery.

Symptoms include sudden sharp pain in the center or upper right abdomen, in the right shoulder, and in the upper back. There may also be nausea and vomiting, yellowing of skin and eyes, and fever and chills.

It's important to see a medical provider for these symptoms. Gallstones can lead to pain, infection, and further complications.

Diagnosis is made through physical examination, CT scan, blood tests, and sometimes specialized scans to examine the gallbladder system.

Treatment usually involves surgery to remove the stones and sometimes the gallbladder itself.

Gall bladder infection (cholecystitis)

Gallbladder infection, also called cholecystitis, means there is a bacterial infection of the gallbladder either with or without gallstones.

The gallbladder is a small organ that stores bile, which helps to digest fats. If something blocks the flow of bile out of the gallbladder – gallstones, damage to the bile ducts, or tumors in the gallbladder – the bile stagnates and bacteria multiplies in it, producing an infected gallbladder.

Risk factors include obesity, a high-fat diet, and a family history of gallstones.

Symptoms include fever; chills; right upper quadrant abdominal pain radiating to the right shoulder; and sometimes nausea and vomiting. A gallbladder infection is an acute (sudden) illness, while the symptoms of gallstones come on gradually.

Untreated cholecystitis can lead to rupture of the gallbladder, which can be life-threatening.

Diagnosis is made through physical examination, ultrasound or other imaging, and blood tests.

Treatment involves hospitalizing the patient for fasting with IV fluids, to rest the gallbladder; antibiotics; and pain medication. Surgery to remove the gallbladder is often done so that the condition cannot recur.

Rarity: Uncommon

Top Symptoms: abdominal pain (stomach ache), nausea, loss of appetite, diarrhea, constipation

Symptoms that always occur with gall bladder infection (cholecystitis): abdominal pain (stomach ache)

Symptoms that never occur with gall bladder infection (cholecystitis): pain in the upper left abdomen, pain in the lower left abdomen

Urgency: Hospital emergency room

Appendicitis

Appendicitis is an inflammation of the appendix, the small, finger-shaped pouch projecting off the colon on the lower right side of the abdomen.

The inflammation is caused by anything blocking or irritating the appendix opening or walls, such as hard stool or damage from other bowel disease. The blocked appendix can quickly swell with bacteria and pus.

Appendicitis is most common from ages 13-30, but can happen to anyone.

Symptoms include sudden, severe pain in the abdomen that begins near the navel and soon moves to the lower right side. There may be low-grade fever; nausea and vomiting; feeling bloated; and constipation or diarrhea.

If not treated, an infected appendix can rupture and cause a life-threatening infection of the abdomen called peritonitis. This is why appendicitis is a medical emergency. If suspected, take the patient to the emergency room or call 9-1-1.

Diagnosis is made through patient history, physical examination, blood and urine tests, and imaging such as ultrasound or x-ray.

An inflamed appendix must be surgically removed as soon as possible.

Acute pancreatitis

Acute pancreatitis is the inflammation of the pancreas, which creates and releases insulin and glucagon to keep the sugar levels in your blood stable. It also creates the enzymes that digest your food in the small intestine. When these enzymes accidentally get activated in the pancreas, they digest the pancreas itself, causing pain and inflammation.

You should go to the ER. There, diagnosis is made by physical examination, imaging, and blood tests. Treatment typically involves intravenous (IV) fluids and medicines to control the pain.

Rarity: Rare

Top Symptoms: constant abdominal pain, nausea or vomiting, being severely ill, severe abdominal pain, fever

Symptoms that always occur with acute pancreatitis: constant abdominal pain

Urgency: Hospital emergency room

Acute hepatitis C

Acute hepatitis C is a liver inflammation caused by Hepacivirus C. The acute form of the disease means that it arises suddenly, within six months of exposure.

hepatitis C is spread through infected blood, usually through sharing hypodermic needles for intravenous drug use or from sharing personal items such as toothbrushes or razor blades. It can also be sexually transmitted.

Most susceptible are intravenous drug users; hemodialysis patients; HIV patients; and babies born to infected mothers.

Early symptoms may mild, with fatigue, fever, pain in the upper right side of the abdomen, and loss of appetite. Some patients will develop dark urine, pale white stools, and jaundice, which is yellowing of the eyes and skin.

Diagnosis is made through patient history, physical examination, and blood tests.

About half of all cases clear spontaneously, but it is still important to see a medical provider to prevent further liver damage from inappropriate medicines, supplements, or alcohol.

Otherwise, treatment involves antiviral and other medications. In severe and complicated cases, a liver transplant may be necessary.

Rarity: Ultra rare

Top Symptoms: fatigue, nausea, loss of appetite, muscle aches, fever

Symptoms that never occur with acute hepatitis c: pain in the upper left abdomen, pain in the lower left abdomen, pain in the lower right abdomen, pain around the belly button

Urgency: Primary care doctor

Pain in the upper right abdomen treatments and relief

Treatment for your right upper abdominal pain will be dependent on the cause. After your physician makes the appropriate diagnosis, he or she may suggest:

  • Pain medication: Medications such as NSAIDs (non-steroidal anti-inflammatory agents) are often used to help treat this condition.
  • Medications: In the case of gallstones, there are some medications that can break them up without the need for surgery. If your symptoms are due to infection, you may receive antibiotics.
  • Surgery: Surgery to remove gallstones or the gallbladder entirely is a common procedure, especially for people who suffer from chronic gallstones.
  • Bowel rest: Your physician may suggest a lighter diet that will allow your intestines and digestive system to recover.

When it is an emergency

If you experience the following, seek emergency treatment. These could be signs of serious obstruction or inflammation.

  • Sudden, severe pain
  • Fever
  • Bloody stools
  • Nausea and vomiting that persists
  • Weight loss
  • Severe tenderness when you touch your abdomen
  • Swelling of the abdomen

Upper right abdominal pain treatment quiz

Take a quiz to find out how to treat your symptoms.

Take treatment quiz

FAQs about pain in the upper right abdomen

Can I prevent the formation of gallstones?

Yes, maintaining a healthy weight and exercising regularly are the best ways to prevent the formation of gallstones. Studies show that people who are overweight are more likely to develop gallstones.

How can I live without my gallbladder?

Gallbladder removal is a very common surgery. Having your gallbladder removed does not affect digestion significantly because the liver can also make bile to help with digestion of fatty foods. Symptoms after gallbladder removal include gassiness, bloating, or more watery bowel movements. After removal of the gallbladder, there is a small likelihood that gallstones will recur.

Do gallstones have to be removed with surgery?

No. Gallstones do not have to be removed with surgery. There are oral medications that can be taken to break down or dissolve gallstones. The success of oral therapy depends on the size and composition of the gallstones in addition to the functionality of the gallbladder and duct system.

What is the treatment for hepatitis A?

There is no medication that treats Hepatitis A. Your physician will recommend rest, fluids, and adequate nutrition since it is a short-term infection that often resolves. However, some people with Hepatitis A experience severe symptoms and need to be hospitalized in order to get appropriate fluid and nutrition.

Is pain in the upper right abdomen life-threatening?

Some causes of upper right abdomen pain such as pancreatitis can be very severe. According to a large study in the United States, 15 to 25% of people with acute pancreatitis develop severe pancreatitis. Severe pancreatitis can result in fever, hypotension, and organ failure, and require monitoring in the intensive care unit. It is important to not ignore symptoms of pain in the upper abdomen and seek medical attention before the condition worsens.

Questions your doctor may ask about pain in the upper right abdomen

  • Have you experienced any nausea?
  • Any fever today or during the last week?
  • Have you lost your appetite recently?
  • Have you been feeling more tired than usual, lethargic or fatigued despite sleeping a normal amount?

Self-diagnose with our free Buoy Assistant if you answer yes on any of these questions.

Hear what 5 others are saying
Once your story receives approval from our editors, it will exist on Buoy as a helpful resource for others who may experience something similar.
The stories shared below are not written by Buoy employees. Buoy does not endorse any of the information in these stories. Whenever you have questions or concerns about a medical condition, you should always contact your doctor or a healthcare provider.
Female issuesPosted February 13, 2022 by S.
White 46 female. I had Covid about 3 weeks ago. The 3rd day being sick, started my period. Been heavy bleeding, passing clots since then. This morning woke up to right upper severe stabbing pain. No matter what I do/don’t do, pain will not ease. Hurts to take a deep breath. No fever, no loss of appetite, no nausea, vomiting or diarrhea. Bowel movement not regular since I’ve been bleeding heavily.
Right side abdomen painPosted February 2, 2022 by S.
For the last week, I have been suffering from a dull pain in the upper right of my abdomen which radiates to the right side of the groin. It comes and goes but is very painful when it occurs. I am able to urinate ok, the pain is in body
Bile duct blockagePosted January 11, 2022 by J.
Stones causing blockage off bile duct causing pain upper quadrant got infection and took ct scan to identify problem stent put in temporary fix to open duct and antibiotics till later operation needed to clean out area fix problem
Dr. Rothschild has been a faculty member at Brigham and Women’s Hospital where he is an Associate Professor of Medicine at Harvard Medical School. He currently practices as a hospitalist at Newton Wellesley Hospital. In 1978, Dr. Rothschild received his MD at the Medical College of Wisconsin and trained in internal medicine followed by a fellowship in critical care medicine. He also received an MP...
Read full bio

Was this article helpful?

58 people found this helpful
Tooltip Icon.
Read this next
Slide 1 of 3

References

  1. Cartwright SL, Knudson MP. Evaluation of acute abdominal pain in adults. Am Fam Physician. 2008 Apr 1;77(7):971-8. AAFP Link
  2. Bufkin WJ. Nausea, vomiting, and right upper quadrant pain. Baylor University Medical Center Proceedings. 2000;13(3):295-6. NCBI Link
  3. Phillips MM. Acute cholecystitis. U.S. National Library of Medicine: MedlinePlus. Updated July 10, 2017. MedlinePlus Link
  4. Baiu I, Hawn MT. Choledocholithiasis. JAMA. 2018;320(14):1506. JAMA Link
  5. Phillips MM. Abdominal pain. Mount Sinai. Updated January 12, 2018. Mount Sinai Link
  6. Chronic abdominal pain in children. Pediatrics. 2005;115(3). Pediatrics Link
  7. Hepatitis A. World Health Organization. Published September 19, 2018. WHO Link
  8. Matheny SC, Kingery JE. Hepatitis A. American Family Physician. 2012;86(11):1027-1034. AAFP Link
  9. Rau BM. Predicting severity of acute pancreatitis. Curr Gastroenterol Rep. 2007;9(2):107-115. NCBI Link
  10. Fagenholz PJ, Castillo CF, Harris NS, Pelletier AJ, Camargo CA. Increasing United States hospital admissions for acute pancreatitis, 1988-2003. Ann Epidemiol. 2007;17(7):491-7. PubMed Link