What causes pain under the right rib cage? Related conditions and treatments
Treatment for pain under the right rib cage depends purely on the root of the problem. For example, your healthcare provider may recommend rest, cold or hot compresses, or pain medications such as Tylenol ( acetaminophen ), Advil or Motrin ( ibuprofen ), or naproxen ( Aleve ) to treat a bruised rib. In some instances, such as a fracture or gallbladder disease, surgery is necessary.
12 common causes of pain under the right rib cage
Rib injuries and heartburn are the most common causes, but conditions linked to the heart, lungs, liver, kidneys and even skin can also lead to pain under the right rib cage
Pain under the right rib cage can be as scary as it is sudden. You might try to pinpoint the source on your own, which is only natural. But with a large number of possible causes — and organ systems at play — the most important thing to know is when to seek help, says Chidubem Iloabachie, MD, associate chair of Long Island Jewish (LIJ) Valley Stream’s Emergency Department.
The most obvious causes of pain in that area can be a muscle strain or bruised or broken ribs, but there are conditions linked to the heart, lungs, liver, kidneys and even the skin that can also lead to pain under the right rib cage. And if pain is the only symptom, any of those body parts may be the source, says Dr. Iloabachie.
Featured expert
Chidubem Iloabachie, MD
Associate chair, emergency department, LIJ Valley Stream
“If someone touches your skin, not only do you feel it right away, you can tell exactly where,” he says. “But, the same is not true on the inside of your body. While each part of the outside of our body has its own specific nerve endings, organs share nerve pathways — meaning the channel through which messages flow between the body and brain — making it impossible to tell where you are feeling something based on location alone.”
The good news is that many of the potential causes will resolve on their own as long as you address the issue, says Dr. Iloabachie. “My job is to think of the conditions that, if untreated, might pose a danger to your health and wellbeing.”
Dr. Iloabachie breaks down the most common causes of pain under the right rib cage — and how to know if you need to see a doctor or you can manage on your own.
What organs are under my right rib cage?
The right rib cage protects many vital organs: the right lung; parts of the digestive system such as the liver, pancreas, gallbladder and large and small intestines; and the urinary system — the right kidney, ureter, the bladder and the urethra.
Pain under the left rib cage: 21 possible causes
Chidubem Iloabachie, MD, explains how to “think like an emergency medicine physician” to get to the source of the pain.
While it’s important to rule out serious conditions involving any organs that may cause pain in that area, says Dr. Iloabachie, the most common causes tend to heal on their own with proper care. That starts with injuries to the ribs.
The musculoskeletal system
Rib cage injury
For young, otherwise healthy people, pain under the right rib cage is often the result of a fall, car accident or an impact from activities such as contact sports. A break or fracture to the ribs and sternum could take a month or longer to heal, while bruised ribs can heal in about two to four weeks.
“More commonly, the pain is due to muscle strains,” Dr. Iloabachie says. “If you have been dancing, exercising, even something as simple as holding a baby, you might strain muscles in between your ribs or on your chest wall that can cause pain under the right rib cage.”
What to do
The way to treat an injury to the ribs depends on the type and severity.
For muscle strains, over-the-counter pain medications like Ibuprofen or Tylenol, in combination with an ice pack might be all you need to recover. “If that does the trick, then there’s no need to come see me in the emergency department,” Dr. Iloabachie says. “However, if the pain persists or is particularly severe, you should certainly seek medical attention.”
Rib fractures and breaks can be dangerous if they impact any nearby organs and patients should seek immediate medical attention if they feel severe pain or have trouble breathing. Doctors may order an X-ray and can help patients manage their pain with prescription or over-the-counter medication.
How femoral nerve blocks are replacing opioids in the ER
When treating painful emergency conditions like hip fractures, a femoral nerve block offers emergency department physicians a new, safer method of pain management.
The digestive system
Many of the organs that help the body process food can be a potential cause of pain under the right rib cage. Certain conditions interrupt how food is broken down through the gastrointestinal (GI) tract, which is part of the digestive system.
Biliary colic
The body digests fatty foods by releasing a liquid called bile from the liver, gallbladder and pancreas to the small intestine via a tube called the bile duct. When that tube gets blocked, often by gallstones, it results in abdominal pain under the right rib cage. This is a condition called biliary colic.
“When that bile builds up in the gallbladder, it can lead to significant inflammation or infection,” Dr. Iloabachie says.
Other signs of a bile duct obstruction include:
- Stomach pain
- Fever
- Nausea
- Vomiting
- Unintentional weight loss
- Anemia
- Jaundice (yellowing of the skin or eyes)
What to do
Sometimes the pain associated with biliary colic will ease when the obstruction passes, and you won’t need to see a doctor. If the blockage doesn’t clear, the complications can be serious, potentially even leading to a ruptured gallbladder. “To prevent that, biliary colic often needs to be treated surgically, which involves removing the gallbladder.”
If you have signs of a bile duct obstruction, seek immediate medical attention.
An informational animation about gastroesophageal reflux disease (GERD): what it is, signs and symptoms, when to see a doctor, and how Northwell’s Heartburn and Reflux Center can help.
Dyspepsia
Dyspepsia is a chronic form of indigestion, meaning it happens over a long period of time. Approximately one-third of cases are caused by a stomach ulcer, but for the majority the exact physical cause is unknown — this is common among GI conditions.
In both types, dyspepsia occurs during or after eating and has a long list of causes and symptoms. “This is a more benign condition, which most may know better as indigestion or heartburn, and is caused by something you ate, something you did not eat, or something you ate too quickly,” Dr. Iloabachie says.
Symptoms come and go in the upper abdomen — a region called the epigastrium — on either the right or left side. They include:
- Burning or bloating
- Nausea
- Sharp pain right after, or while eating
- Loss of appetite
- Feeling “full,” despite a small portion
- Acid reflux
What to do
Dyspepsia does not typically require medical attention. To control symptoms, Dr. Iloabachie recommends lifestyle changes, such as eliminating fatty foods from your diet and reducing portion sizes. Antacids and other over-the-counter medications for indigestion, as well as reducing stress and anxiety can also help.
But, he cautions, if symptoms persist beyond one to two weeks, consult a doctor.
Hepatitis
Hepatitis is an inflammation of the liver, which can damage the organ — the largest in the body. Hepatitis can be acute or chronic — meaning symptoms last six months or longer. It is often caused by one of five viruses (hepatitis A, B, C, D and E), all of which are distinct but cause similar conditions. There are vaccines to prevent hepatitis A and hepatitis B, as well as a combination vaccine that guards against both. (These are typically given in the first two years of life.)
What causes pain under the right rib cage? Related conditions and treatments
If you have pain under the right rib cage, it can be alarming, but it is quite common. Pain under the right rib cage, also known as the right upper quadrant (RUQ) of the ribs, could be due to a variety of conditions, considering this is where the pancreas, right kidney, gallbladder, liver, and part of the intestines are located.
Pain under the right rib cage can have many potential causes, such as medical conditions, lifestyle habits, and injuries.
The most likely reasons for pain under the right rib cage
The most likely reasons for pain under the rib cage vary but include gallbladder disease, kidney stones, preeclampsia, asthma, injuries, and lifestyle factors like smoking.
Gallbladder disease
The gallbladder is a pear-sized organ that is found in the right upper quadrant of the abdomen, under the liver and next to the pancreas. It is a reservoir that stores bile, a thick liquid that is produced by the liver to help the body digest fat. When you eat, your gallbladder’s lining contracts to get bile into your small intestines to help digest food. When the gallbladder is inflamed, infected, or blocked, it is a sign of gallbladder disease , such as cholecystitis, an inflammatory condition of the gallbladder that causes swelling and a sudden sharp pain in the upper right side of the abdomen that radiates to the right shoulder.
Cholecystitis can be sudden (acute) or long-term (chronic). Chronic cholecystitis may not cause any symptoms but can damage your gallbladder over time. Acute cholecystitis is the most common cause of RUQ pain among people admitted to the emergency room. Treatment depends on the cause but usually includes surgical removal of the gallbladder.
Kidney stones
Kidney stones can form in your right kidney and cause colicky, intense RUQ pain. Causes of kidney stones include high levels of oxalate, calcium, or phosphorus in the urine. Other than pain under the right rib cate, kidney stones can cause the following symptoms:
- Sharp pain in your lower abdomen, groin, back, or side
- Frequent need to urinate
- Pain when urinating
- Blood in urine
- Nausea, vomiting, and fever
Preeclampsia
Preeclampsia is an uncommon pregnancy complication in which there’s a sudden rise in blood pressure. The Centers for Disease Control and Prevention (CDC) estimates preeclampsia affects 1 in 25 pregnancies in the United States.
According to the Preeclampsia Foundation , preeclampsia can also cause upper right quadrant pain. This may be similar to heartburn, indigestion, or gallbladder problems.
Other symptoms of preeclampsia include:
- Persistent headaches
- Unexplained weight gain
- Difficulty breathing
- Blurry vision
Smoking
The CDC notes that smoking can harm all your organs and is responsible for more than 480,000 annual deaths in the United States. It also increases your risk of developing bladder, kidney, and liver cancer.
According to a study published in 2019 , vaping devices can cause spontaneous pneumothorax , which occurs when air accumulates outside the lung within the pleural cavity. This adds pressure to the lung, causing it to collapse. People who vape and develop this condition may experience right-sided chest pain when sleeping and pain underneath the ribs that radiates to the right scapula. Immediate medical attention is needed to diagnose this and evaluate whether oxygen supplementation or a chest tube is needed to treat it.
Alcohol
Consuming too much alcohol can cause acute kidney injury , which can lead to pain, reduced muscle mass, and muscle cramps. An acute kidney injury happens when waste builds up in the blood much faster than the kidneys can filter it.
- Shortness of breath
- Nausea
- Confusion
- Fatigue
- Chest pain or pressure
Chest injury
Rib cage pain can happen due to trauma, such as a traffic collision accident or a sports-related injury. You may have rib fractures , a bruised rib, or a pulled muscle.
It is important to see a healthcare provider if you suspect a rib fracture since the ribs need to be intact in order to protect their underlying organs. Your healthcare provider may perform chest X-rays to assess your symptoms and provide an accurate diagnosis.
Asthma or allergy cough
Intense coughing, sneezing, and infections such as bronchitis or pneumonia can tear your rib muscles, leading to pain.
Rib pain can also develop if you have pleurisy , in which there is inflammation in the tissue between the lungs and rib cage.
Should I be worried about pain under the right rib cage?
The severity of pain under your right rib cage depends on the cause. The pain can be a symptom of various conditions. See a healthcare provider if you have additional symptoms, such as fever, vomiting, and jaundice. A referral to a gastroenterologist may be needed for further workup of digestive issues or conditions like heartburn, pancreatitis, or liver disease that can contribute to right rib cage pain. Other possible referrals are to a pulmonologist or a rheumatologist to investigate lung or autoimmune issues.
You may require emergency treatment if right rib cage pain is the result of an accident or pain that makes it difficult to move. Untreated or unaddressed pain can cause complications. For example, without the right treatment plan, preeclampsia can be fatal to the mother and or her baby. Kidney stones can cause urinary retention and raise your risk for infection and increased pressure on the kidneys.
How is the cause of pain under the right rib cage diagnosed?
Your healthcare provider may perform the following tests to determine the cause of your pain:
- Physical examination: Helps them evaluate the affected area and check whether you have any swelling or inflammation
- Ultrasound: Takes pictures of your internal organs in order to identify problems contributing to your pain, such as gallstones, gallbladder inflammation, and pancreas problems
- CT scan: Provides a detailed image of your tissues, bones, and blood vessels
A doctor may also ask about your medical history and questions like the following to help diagnose your condition:
- How long have you been in pain?
- What makes the pain better and worse?
- Have you had this pain before? If so, what was the diagnosis at that time?
- When was your last menstrual period? Is there a chance you are pregnant?
- How does the pain feel like? Is it persistent? Or does the pain come and go?
- Do you drink alcohol? If so, how often and how much?
- Any history of hepatitis?
- Does the pain interfere with other activities?
- Do you have other symptoms? Fever? Difficulty breathing? Bloody urine?
How long does pain under the right rib cage last?
The duration of pain on the right-hand side of your body depends on your condition. However, if symptoms do not improve within a few days of treatment, it may be time to seek medical care.
Sean Ormond, MD , a pain management physician board-certified in anesthesiology and interventional pain management, says, “Pain under the right rib cage can be chronic. This is especially true if the pain is caused by a condition such as gallstones, liver problems, or pancreatitis. Chronic pain can be difficult to treat, but a number of things can be done to manage it, such as medication, physical therapy, and lifestyle changes.”
How to stop pain under the right rib cage
Treatment for pain under the right rib cage depends purely on the root of the problem. For example, your healthcare provider may recommend rest, cold or hot compresses, or pain medications such as Tylenol ( acetaminophen ), Advil or Motrin ( ibuprofen ), or naproxen ( Aleve ) to treat a bruised rib. In some instances, such as a fracture or gallbladder disease, surgery is necessary.
Most importantly, see a doctor if pain under the right rib cage is persistent and accompanied by chest tightness and shortness of breath
Pain under the right rib cage causes may include different causes, such as gallbladder disease, preeclampsia, or chest injury. The cause of pain under the right rib cage may resolve on its own without treatment. However, if pain under the right rib cage continues, worsens, or is accompanied by shortness of breath, chest pressure, or blood in phlegm, it could be a sign of pneumonia or preeclampsia and require immediate medical attention. Only your healthcare provider can rule out infection or other serious health conditions. Visit your doctor to determine the best treatment for the pain under the right rib cage.