Nearly 1 in 4 emergency room visits involve abdominal or chest-area pain — and a surprising number of those patients point to the same spot: pain under right rib cage. If you’ve ever pressed your hand against that area, wondering what on earth is going on in there, you’re far from alone.
Pain under right rib cage can range from a dull, nagging ache to a sharp, stabbing sensation that stops you in your tracks. The tricky part? That region houses several vital organs — your liver, gallbladder, right kidney, and part of your intestines — which means the cause could be anything from something you ate for lunch to a condition that needs urgent medical attention.
In this article, we will explore 18 of the most common causes of right-side rib pain, what symptoms to watch for, and when it’s time to call your doctor.
⚠️ Important: This article provides general information only. Not intended as medical advice. Consult your doctor before trying any remedies.

Why the Right Side? Understanding the Anatomy
Before diving into the causes, it helps to know what’s actually living under your right ribcage. This area — medically referred to as the right hypochondriac region — contains:
| Organ/Structure | Primary Function |
|---|---|
| Liver | Filters blood, produces bile, and metabolizes nutrients |
| Gallbladder | Stores and releases bile for digestion |
| Right Kidney | Filters waste from blood, produces urine |
| Right Adrenal Gland | Produces hormones, including adrenaline |
| Part of the Colon | Processes and moves waste |
| Diaphragm (right dome) | Breathing muscle |
| Lower Right Lung | Gas exchange |
When any of these structures become inflamed, infected, blocked, or injured, pain under the right rib cage is often the result. Now, let’s break down the 18 most common culprits.
18 Common Causes of Pain Under Right Rib Cage

1. Gallstones (Cholelithiasis)
Gallstones are the #1 cause of sudden, severe pain under the right rib cage for millions of people worldwide.
Gallstones form when bile hardens into pebble-like deposits inside the gallbladder. When a stone blocks a bile duct, it triggers what’s called a biliary colic attack — intense pain that typically hits after a fatty meal and can last anywhere from 30 minutes to several hours.
Symptoms to watch for:
- Suddenly, intense pain in the upper right abdomen
- Pain that radiates to the right shoulder or back
- Nausea and vomiting
- Pain after eating greasy or fatty foods
💬 “Gallstone pain is often described as one of the most intense pains a person can experience — comparable to labor contractions.”
Who’s at risk? The classic “4 F’s” — Fat, Female, Forty, and Fertile — though gallstones affect all demographics.
2. Gallbladder Inflammation (Cholecystitis)
When a gallstone gets stuck in the cystic duct, it can cause the gallbladder to become inflamed — a condition called cholecystitis. Unlike a passing biliary colic attack, this pain is persistent and often accompanied by fever.
Key signs:
- Constant pain (not just after meals)
- Fever and chills
- Tenderness when pressing the upper right abdomen
- Nausea and vomiting
This is a medical emergency. If you suspect cholecystitis, don’t wait — head to the ER.

3. Liver Disease (Hepatitis, Fatty Liver, Cirrhosis)
Your liver sits directly under the right rib cage, so any liver condition can cause discomfort or pain in that area. The three most common liver-related causes include:
- Hepatitis (A, B, or C): Viral infection causing liver inflammation
- Non-Alcoholic Fatty Liver Disease (NAFLD): Fat buildup in the liver, increasingly common in 2026
- Cirrhosis: Scarring of the liver tissue, often from long-term alcohol use or chronic hepatitis
Liver pain tends to be a dull, aching sensation rather than sharp pain, and it’s often accompanied by fatigue, jaundice (yellowing of skin/eyes), or dark urine.
4. Kidney Stones (Right Kidney)
Kidney stones in the right kidney produce some of the most dramatic pain under right rib cage imaginable. The pain — called renal colic — comes in waves and can be excruciating.
Symptoms:
- Severe, cramping pain in the right flank (side and back)
- Pain that radiates to the groin
- Blood in urine (pink or red tint)
- Frequent urge to urinate
- Nausea
Small stones often pass on their own with plenty of water. Larger stones may require medical intervention.
5. Urinary Tract Infection (UTI) or Kidney Infection (Pyelonephritis)
A simple UTI that travels up to the kidney becomes a kidney infection, which can cause significant pain in the right side under the rib cage if the right kidney is affected.
Signs of a kidney infection:
- Flank pain (side and back)
- High fever and chills
- Burning sensation when urinating
- Cloudy or foul-smelling urine
- Fatigue
Kidney infections require antibiotic treatment — don’t try to tough this one out.

6. Pleuritis (Pleurisy)
The lungs are surrounded by a thin membrane called the pleura. When this membrane becomes inflamed — a condition called pleurisy — it causes sharp chest and rib pain that worsens with breathing.
Characteristics of pleurisy pain:
- Sharp, stabbing pain that gets worse when you inhale
- Pain may radiate to the shoulder
- Shallow breathing to avoid pain
- Sometimes accompanied by a dry cough
Pleurisy is often caused by a viral infection, but can also result from pneumonia, blood clots, or autoimmune conditions.
7. Costochondritis (Rib Cartilage Inflammation)
Costochondritis is inflammation of the cartilage connecting the ribs to the breastbone. It’s a surprisingly common cause of rib cage pain that’s often mistaken for a heart attack or serious organ issue.
How to tell:
- Pain is reproducible when you press on the ribs
- Worsens with movement, coughing, or deep breathing
- Usually affects multiple rib areas
- No fever or other systemic symptoms
The good news? Costochondritis is typically not dangerous and often resolves with rest and anti-inflammatory medications.

8. Irritable Bowel Syndrome (IBS) and Gas
Trapped gas and IBS can cause significant pain under the right rib cage, especially when gas accumulates in the hepatic flexure — the bend of the colon located right under the liver.
This is sometimes called hepatic flexure syndrome.
Symptoms:
- Bloating and distension
- Cramping pain that shifts location
- Relief after passing gas or having a bowel movement
- Alternating constipation and diarrhea (in IBS)
Dietary changes, probiotics, and stress management can make a big difference here.
9. Liver Abscess
A liver abscess is a pus-filled pocket within the liver, usually caused by a bacterial or parasitic infection. It’s less common than other causes but can be serious.
Warning signs:
- Persistent fever
- Right upper abdominal pain
- Unintentional weight loss
- Night sweats
- Feeling generally unwell
This condition requires prompt medical treatment, typically with antibiotics and drainage.
10. Pregnancy-Related Causes
During pregnancy — especially in the second and third trimesters — pain under the right rib cage is extremely common. As the uterus expands, it pushes upward against the ribs and organs.
Common pregnancy-related causes:
- Baby’s kicks or movements against the ribs
- Round ligament pain
- HELLP syndrome (a serious complication involving liver problems — requires immediate attention)
- Heartburn and acid reflux are pushing upward
⚠️ If you’re pregnant and experience severe right rib pain with headache, vision changes, or swelling, seek emergency care immediately — this could indicate HELLP syndrome or preeclampsia.

11. Rib Fracture or Bruised Rib
A cracked or bruised rib — from a fall, sports injury, car accident, or even a severe coughing fit — causes localized pain that can be quite intense.
Signs of a rib injury:
- Pain that’s worse when breathing deeply, coughing, or moving
- Tenderness at a specific point on the rib
- Possible bruising or swelling
- Pain that doesn’t radiate
Rib fractures are diagnosed with X-ray or CT scan. Treatment usually involves rest, pain management, and time.
12. Pneumonia (Right Lower Lobe)
Pneumonia affecting the lower right lobe of the lung can cause pain that feels like it’s coming from under the rib cage. This is called referred pain — the lung is inflamed, but the pain registers in the rib area.
Accompanying symptoms:
- Fever, chills, and sweating
- Productive cough (often with colored mucus)
- Shortness of breath
- Fatigue
Pneumonia requires medical evaluation and often antibiotic or antiviral treatment, depending on the cause.
13. Liver Cancer or Liver Metastases
While less common, liver cancer or cancer that has spread to the liver (metastases) can cause pain or discomfort under the right rib cage. The liver may become enlarged, pressing against surrounding structures.
Symptoms that warrant urgent evaluation:
- Unexplained weight loss
- Loss of appetite
- Persistent fatigue
- Abdominal swelling
- Jaundice
Early detection dramatically improves outcomes. If you have risk factors (hepatitis B/C, heavy alcohol use, cirrhosis), regular screening is essential.
14. Budd-Chiari Syndrome
Budd-Chiari syndrome occurs when blood clots block the veins draining the liver. It’s rare but serious, causing rapid liver enlargement and intense right-sided abdominal pain.
Key features:
- Suddenly, severe abdominal pain
- Rapid abdominal swelling (ascites)
- Jaundice
- Liver enlargement
This is a medical emergency requiring immediate hospitalization.

15. Shingles (Herpes Zoster)
Shingles — a reactivation of the chickenpox virus — can cause intense, burning pain along a nerve pathway. When it affects nerves in the right thoracic region, it produces pain under the right rib cage that can appear before any rash is visible.
Shingles pain characteristics:
- Burning, shooting, or stabbing pain
- Sensitivity to touch (even clothing feels painful)
- Rash appears 1-5 days after pain starts (red blisters in a stripe pattern)
- More common in people over 50 or with weakened immunity
Antiviral medications work best when started within 72 hours of symptom onset.
16. Muscle Strain or Overuse
Sometimes the cause of pain under right rib cage is refreshingly simple: you pulled a muscle. The intercostal muscles between the ribs, or the muscles of the abdominal wall, can be strained from:
- Heavy lifting
- Intense exercise (especially core workouts)
- Repetitive twisting motions
- Prolonged coughing or sneezing
How to tell it’s muscular:
- Pain worsens with specific movements
- Tenderness when pressing on the area
- No fever or other systemic symptoms
- Improves with rest and ice/heat

17. Appendicitis (Early Stage)
Here’s a surprising one: early appendicitis can sometimes cause pain that starts around the belly button or even the right upper abdomen before migrating to the classic lower right location (McBurney’s point).
Warning signs of appendicitis:
- Pain that starts centrally and moves to the lower right
- Fever
- Nausea and vomiting
- Loss of appetite
- Pain that worsens over time
⚠️ Appendicitis is a medical emergency. If you suspect it, go to the emergency room immediately — a ruptured appendix is life-threatening.
18. Acid Reflux and GERD
Gastroesophageal reflux disease (GERD) causes stomach acid to flow back into the esophagus. While typically felt as heartburn in the chest, GERD can also cause pain or discomfort in the upper right abdomen, particularly after eating.
GERD symptoms:
- Burning sensation in the chest or throat
- Sour taste in the mouth
- Bloating and belching
- Pain that worsens when lying down or after meals
- Chronic cough or hoarseness
Lifestyle modifications (smaller meals, avoiding trigger foods, not lying down right after eating) and medications like proton pump inhibitors can provide significant relief.

How Doctors Diagnose the Cause of Right Rib Pain
When you see a doctor for pain under right rib cage, here’s what you can typically expect:
Step 1: Medical History
Your doctor will ask about the nature of your pain (sharp vs. dull), when it started, what makes it better or worse, and any associated symptoms.
Step 2: Physical Examination
They’ll press on different areas of your abdomen to check for tenderness, organ enlargement, or guarding.
Step 3: Diagnostic Tests
| Test | What It Checks For |
|---|---|
| Blood tests (CBC, LFTs, CMP) | Infection, liver function, kidney function |
| Urinalysis | Kidney infection, kidney stones |
| Ultrasound | Gallstones, liver issues, kidney stones |
| CT Scan | Detailed view of all abdominal organs |
| MRI | Soft tissue detail, liver lesions |
| Chest X-ray | Pneumonia, rib fractures |
| Endoscopy | GERD, stomach issues |
Gallstones vs. Kidney Stones vs. Liver Pain
Since these three are among the most common causes, here’s a side-by-side comparison to help you identify what you might be dealing with:
| Feature | Gallstones | Kidney Stones | Liver Pain |
|---|---|---|---|
| Pain type | Cramping, severe | Severe, wave-like | Dull, aching |
| Pain location | Upper right abdomen | Flank, radiates to groin | Upper right abdomen |
| Triggers | Fatty meals | Dehydration | Varies |
| Associated symptoms | Nausea, vomiting | Blood in urine, urge to urinate | Fatigue, jaundice |
| Timing | After meals | Anytime, often sudden | Gradual onset |
| Fever | Possible (if infected) | Possible (if infected) | Possible |
Types of Pain Under the Right Rib Cage You May Experience
- Pain under the right rib when breathing – A pain that occurs when you breathe may be related to lung diseases like pneumonia and pleurisy.
- Pain under the right rib after eating – If you have pain after eating, it may be related to digestive problems such as indigestion, heartburn, or a peptic ulcer.
- Dull pain under the right rib cage – Some people may suffer from a dull ache under the right rib cage that comes and goes. This may be related to gall bladder stones or some issues with the kidneys. This pain can also change steadily from mild to severe and radiate to your upper back.
- Sudden sharp stabbing pain in the right side under the rib cage – A sudden and sharp pain around your rib cage indicates an injury or muscle pull. It could also be related to the inflammation of your organs.
- Sharp temporary cramping under right rib cage – Stomach gas is usually one of the common causes. You’d better pay attention to your diet.
- Pain under the left rib cage in the back – Kidney problems, such as kidney stones, may cause back pain.
Lifestyle Tips to Reduce Right Rib Cage Pain
For causes related to diet, digestion, and lifestyle, these evidence-based strategies can help:
For Gallbladder Health:
- Maintain a healthy weight (rapid weight loss increases gallstone risk)
- Eat a low-fat, high-fiber diet
- Stay hydrated — aim for 8 glasses of water daily
For Kidney Health:
- Drink plenty of water (the #1 prevention strategy for kidney stones)
- Reduce sodium and animal protein intake
- Limit oxalate-rich foods if prone to calcium oxalate stones
For Liver Health:
- Limit alcohol consumption
- Maintain a healthy BMI
- Exercise regularly — even 30 minutes of walking daily helps
For Digestive Issues (IBS, GERD, Gas):
- Eat smaller, more frequent meals
- Avoid trigger foods (fatty, spicy, or acidic foods)
- Try keeping a food diary to identify patterns
- Manage stress — the gut-brain connection is very real
For Muscle-Related Pain:
- Warm up before exercise
- Use proper lifting technique
- Apply ice for the first 48 hours after injury, then switch to heat
When Is Pain Under Right Rib Cage an Emergency?
Not all right rib pain requires a 911 call, but some symptoms demand immediate medical attention. Here’s a quick reference:
🔴 Go to the ER Immediately If You Have:
- Severe, sudden pain that doesn’t improve
- Pain with fever above 101°F (38.3°C)
- Yellowing of skin or eyes (jaundice)
- Vomiting blood or black/tarry stools
- Difficulty breathing
- Pain radiating to the left arm or jaw (possible heart attack)
- Rapid abdominal swelling
- Signs of shock (dizziness, rapid heart rate, pale skin)
🟡 See Your Doctor Soon If You Have:
- Pain lasting more than a few days
- Pain that keeps returning
- Unexplained weight loss
- Blood in urine
- Persistent nausea or loss of appetite
🟢 Monitor at Home If:
- Pain is mild and related to gas or bloating
- You recently had a minor injury
- Pain improves with rest or over-the-counter pain relievers
- No fever or other concerning symptoms
FAQs
1. Can anxiety cause pain under the right rib cage?
Yes! Anxiety can cause muscle tension, hyperventilation, and digestive upset — all of which can produce rib cage discomfort. Anxiety-related pain is usually diffuse and accompanied by other anxiety symptoms.
2. Is right rib pain always serious?
Not at all. Many cases are caused by gas, muscle strain, or minor digestive issues. However, persistent or severe pain always warrants medical evaluation.
3. Can poor posture cause right rib cage pain?
Absolutely. Slouching compresses the organs and puts strain on the intercostal muscles, leading to chronic rib discomfort — especially in people who sit at desks for long hours.
4. Why does my right rib hurt more after eating?
This pattern strongly suggests a gallbladder issue (gallstones or cholecystitis) since the gallbladder contracts after meals to release bile. It can also indicate GERD or IBS.
Conclusion
Pain under the right rib cage can stem from numerous causes, ranging from temporary digestive issues to more serious conditions affecting your liver, gallbladder, kidneys, or other organs. Understanding the potential sources of your discomfort can help you determine when home care is sufficient and when to seek professional medical help.
Pay attention to accompanying symptoms, the nature and duration of your pain, and how it responds to various activities or treatments. This information will be valuable to your healthcare provider in determining the underlying cause.
While this article provides general information about common causes of right rib cage pain, it cannot replace personalized medical advice. If you’re experiencing concerning symptoms, don’t hesitate to consult with a healthcare professional. Early diagnosis and treatment often lead to better outcomes and can prevent complications.




I am Naveen ..i 18 years, iam suffering from pain in lower left and right ribs….from Last 10days …please help me….
Pain in lower left side can indicate a series of problems.You’d better choose a good hospital for a comprehensive examination.
I my names hannah i am 19 years old i am having pain under my rib on the right side of my body front and back i have heath issues but this is new do you have any idea whats wrong?
What would be causing my right side right below my rib cage and above my hip bone to hurt??
What can Cause pain in my right rib cage? Hurts to move
My name is Alexys and I’m 17 years old and I have this really bad pain under right rib cage on my right side and it feels like someone is stabbing me I don’t know what it could be. Do you think you guys can help?
You’d better go to the doctor and get tested.
Hi I’m 51 I smoke out of shape! Wanted that out of the way! Now I do not have a gallbladder nor an appendix. I had a large cyst remove from my left adrenal gland. The surgeons went through the front. I developed hernias all down the opening so I had them fixed and a large piece of mess put in which the doctor screwed in. Well I have been having pain my right side lower ribs it hurts all the time. I’m scared that something is very wrong. Do you have any idea what it could be?? Could it have to do with the mess that’s in there?? Please answer me. Thank you Cathy
A lot of reasons can cause lower ribs pain.You’d better go to the hospital to do a comprehensive examination.
Hi My Name is Elvia I’ve been in severe pain under my left breast… It’s on my rib cage I don’t know what going on I’ve been like this for about a week it’s severe pain…my labs came out fine ultrasound came out fine… Can you please let me know what I should do…
I think that you might need to see a doctor.
I had uncomfortable and then sharp pains on the left side of my rib cage last week, and this week I’m having the same pains on the right side. It did go away on my left side for a few days before starting on my right. What could this be?
Hello
My name is Gary and I’ve had a mild pain just inside my right rib cage for about 3 days now. The worst pain occurs when I hiccup. Sneezing, coughing and burping have almost no pain. Using my fingers to press up under my ribs causes some pain. I haven’t noticed any foods causing any problems.
Stretch your arms out towards the sky, then put your hands together, reach even higher, then tilt to the left. hold for 30 seconds. repeat 5 times. it should stretch out the muscle in the rib area that is in spasm.
It is probably gas. Your appendix and gallbladder are on your right side. Try taking a walk. That should bring you some relief.
Appendicitis…..if you press on where it hurts and it relieves pain and when you let off it comes back……gwt to hospital as soon as you can to prevent your appendix from bursting
I too have paid pains on my right side. Under my rib. I’ve had a colonoscopy, a lapraacopy, a CT scan, ultra sounds vaginally, and stomach. They thought I may have endo. And did a lapraacopy. Came back with nothing. This pain is soooo real. And hurts so bad at times. Especially after I eat. Or do more the. Uaual. I always have loose stools. When i have the pain it hurts worse to move. I get Nothing for pain. Idk what to do. But this pain under my right rib, and by my hip are so bad at times. Please help.. I feel like no one cares. I have to switch gi.. because I hate mine.. that I did have.
And to add to what I wrote. Idk where it went after I sent it. But I’ve had this pain for at least a yr. I have a iud. But had the pain before. I smoke weed, and cigarettes but I’m trying to.quit them..the weed helps me eat bc I’m never hungry and when I do eat..it hurts so bad..then I have to go to the bathroom. I don’t have a gallbladder either. Idk what to do. And nothing to control my pain..and I have to kids. It’s really affecting my life.
I have the same exact problems as you Megan. The doctors tell me there is nothing wrong. I don’t have a gallbladder either but I get this knots inside my stomach and they hurt so bad. You can only feel the knots when they show up. They come and go.
Hello, I’m 18 years old. I have just experienced crampy pain on my upper right stomach just where under the rib cage so I assume the pain is from the gall bladder. I start to feel the pain in the afternoon but just partially and it’s gone. It even hurts more when I try to push it or fold my body. Tonight I eat snack and starts to feel the pain again and it’s even more obvious. Now it does not go away for half an hour. These days I have an overeat habit and eat just every night . I’m usually a healthy person and my BMI is in a healthy condition. Please clarify me whether it is too much gas or I may have gallbladder problem. My guardians don’t let me go to the hospital because they think it is just a temporary pain.
Hi Meghan. Ask your GI Dr if you may have a hyperactive duct that is releasing bile. I had that and was prescribed colestipol and worked miracles.
O have this pain also. Have had x-rays, a c.t. Scan. Doctors couldn’t find anything! Still have pain not getting better! I’m so confused. Help
I had the same pain after food. But it also caused severe anxiety chest pain and fatigue. I had an ultrasound on my gallbladder and there were no stones. My nurse practitioner said she had the same thing happen to her. She had a Hida Scan done and found it was filled with sludge and her gallbladder was only functioning at 2% so they removed her gallbladder! She wanted to send me for the hida scan but I’m scared. I’ve managed to keep the pain at bay by taking bile salts and enzymes. But after 4 months the pain is coming back. I’m seeing my NP in a couple days and asking for the Scan?
You have fatty liver i have same symptom like you,your liver is enlarge and you need to start made diet immediately.If you drink stop because after hepatic attack what is pain under right rib the next is vomit then watery diarrhea for several days and the final cirrhosis of liver