Our Services
Medical Information
Helpful Resources
Published on: 4/5/2026
There are several factors to consider for pain under your right rib, most commonly gallbladder attacks, liver inflammation, or muscle strain, but digestive gas, lung, or kidney problems can also cause it.
Patterns like sharp post-meal pain, dull pressure with jaundice, or soreness that worsens with movement help narrow the cause, and red flags such as severe sudden pain, fever, yellowing, shortness of breath, or vomiting blood mean you should seek urgent care. See below for complete guidance on symptoms, when to get tests like an ultrasound or labs, simple home measures, and the next steps to take.
Experiencing pain under your right rib can be uncomfortable and sometimes worrying. The area beneath your right rib cage—known medically as the right upper quadrant (RUQ) of the abdomen—contains several important organs, including your gallbladder, liver, part of your pancreas, intestines, and even muscles and ribs.
In many cases, pain here is caused by something mild, such as a muscle strain or indigestion. However, persistent or severe discomfort may signal a more serious issue. Understanding the possible causes can help you decide what to do next.
Pain under the right rib can originate from:
The key to narrowing down the cause is paying attention to:
Let's break down the most common causes.
The gallbladder sits just under your liver on the right side of your abdomen. Its job is to store bile, a fluid that helps digest fats.
Gallstones are hardened deposits that can block bile flow. This can lead to sudden, intense pain called biliary colic.
Symptoms of gallbladder-related pain under right rib:
If a gallstone blocks a duct and causes inflammation (cholecystitis), symptoms may include:
This requires prompt medical evaluation.
The liver is the largest organ in the upper right abdomen. It plays a central role in detoxification, digestion, and metabolism.
Liver-related pain under the right rib often feels like a deep ache or pressure, rather than sharp stabbing pain.
Can be caused by viruses, alcohol, medications, or fatty liver disease.
Symptoms may include:
Often linked to obesity, diabetes, or alcohol use. Many people have no symptoms, but some feel:
When the liver becomes enlarged, it stretches its outer capsule, which can cause discomfort.
If you notice yellowing of the skin, confusion, severe swelling, or vomiting blood, seek urgent care immediately.
Not all pain under the right rib comes from internal organs. Sometimes the cause is much simpler: a muscle strain or rib irritation.
This is especially likely if:
Muscle-related pain tends to:
This type of pain often resolves within days to a few weeks.
Gas, indigestion, or constipation can also cause pain under the right rib.
Gas trapped in the colon can cause:
Though more common in the center of the chest or upper abdomen, discomfort may spread to the right side.
The lower part of your right lung sits above your liver and ribs.
Conditions like:
Can cause pain under the right rib that worsens with deep breathing or coughing.
Watch for:
These symptoms require medical attention.
Your right kidney sits toward your back, under the rib cage.
Kidney-related pain often:
You may also notice:
Most causes are not life-threatening. However, seek immediate medical care if you experience:
These symptoms could signal a serious condition requiring urgent treatment.
If you speak to a doctor, they may:
Ultrasound is often the first step when gallbladder disease is suspected.
If your pain is mild and you suspect a muscle strain:
If pain seems meal-related:
If you're experiencing discomfort in your upper abdomen and want to better understand what might be causing it, try our free Abdominal Discomfort symptom checker to get personalized insights and guidance on your next steps.
Pain under your right rib can stem from several sources:
The type of pain, timing, and associated symptoms are important clues.
While many causes are manageable and not dangerous, some conditions—like gallbladder infection, hepatitis, or lung problems—require timely medical care.
Do not ignore persistent or worsening pain under your right rib. If the pain is severe, comes with fever, jaundice, shortness of breath, or other concerning symptoms, seek immediate medical attention.
Even if your symptoms seem mild, it's wise to speak to a doctor if:
Listening to your body is important. Most causes of pain under right rib are treatable—especially when identified early.
(References)
* Brashers WE, Reames AD, Smith TF, Talamini MR. Right Upper Quadrant Abdominal Pain: Diagnostic Evaluation. Surg Clin North Am. 2018 Feb;98(1):1-14. doi: 10.1016/j.suc.2017.09.001. Epub 2017 Nov 20. PMID: 29261942.
* Hanneman EL, Desser GJ. The acute right upper quadrant. Semin Ultrasound CT MR. 2012 Aug;33(4):307-20. doi: 10.1053/j.sult.2012.04.004. PMID: 22900742.
* Nnoaham A. Musculoskeletal causes of abdominal pain. World J Surg. 2014 Mar;38(3):619-24. doi: 10.1007/s00268-013-2287-7. PMID: 24584483.
* Lee TK, Kuo MJ, Huang CM, Chen CH. Gallbladder disease: Imaging and intervention. World J Clin Cases. 2018 Dec 26;6(15):997-1011. doi: 10.12998/wjcc.v6.i15.997. PMID: 30635465; PMCID: PMC6312480.
* Singh M, Weng JL. Common Presentations of Liver Disease. Prim Care. 2020 Jun;47(2):221-236. doi: 10.1016/j.pop.2020.02.001. PMID: 32414777.
We would love to help them too.
For First Time Users
We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.
Was this page helpful?
Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.