Right-sided rib cage pain has dozens of possible explanations, and what makes it tricky is that the right side of your torso houses several major organs, all of which share overlapping nerve pathways. The cause could be as straightforward as a strained muscle or as urgent as a gallbladder attack or blood clot in the lung. Pinpointing the problem usually comes down to when the pain started, what makes it worse, and what other symptoms ride along with it.
Musculoskeletal Problems Are the Most Common Culprit
If you pressed on your rib cage and the pain got sharper, the problem is probably in the bones, cartilage, or muscles of the chest wall rather than in an organ underneath. Costochondritis, an inflammation of the cartilage that connects the ribs to the breastbone, is one of the most frequent causes of chest-wall pain. It tends to affect the second through fifth rib joints and usually resolves on its own, though a steroid injection can help in stubborn cases.1PubMed. Musculoskeletal problems of the chest wall in athletes Unlike a related condition called Tietze’s syndrome, costochondritis does not produce visible swelling over the joint.
Intercostal muscle strains, the muscles running between each rib, are another everyday cause. Twisting suddenly, lifting something heavy, or even a persistent cough can pull or tear these muscles. Speaking of coughing: prolonged or violent coughs can actually crack ribs. In a study of 90 patients with cough-induced rib fractures, the right side was affected in about 58 percent of cases, making it more common than left-sided fractures.2PubMed Central. Cough-induced rib fractures: A comprehensive analysis of 90 patients in a single center At extreme altitudes, where air is drier and coughing more intense, climbers have developed multiple stress fractures in their ribs from coughing alone.3PubMed. Cough induced stress fracture and arthropathy of the ribs at extreme altitude
You do not need to be a mountaineer for this to happen, though. A bad bout of bronchitis, whooping cough, or even a lingering post-viral cough can generate enough force to fracture weakened ribs, especially if you have low bone density. After the COVID-19 pandemic, doctors noticed that some patients with lingering chest wall pain had tiny rib fractures that regular CT scans missed but ultrasound picked up.4PubMed Central. Ultrasound superiority in detecting micro rib lesions for post-coronavirus disease 2019 chest wall pain: a comparative retrospective study
Slipping Rib Syndrome
If the pain hits you suddenly with a twisting or jerking movement and feels like something “pops” or shifts under your lower ribs, you might be dealing with slipping rib syndrome. The lower ribs (sometimes called false ribs) are not attached directly to the breastbone. Instead, they connect by a strip of cartilage that can loosen. When one of those ribs slips out of position, it can slide under the rib above it and irritate the intercostal nerve running between them.5PubMed Central. A Comprehensive Review of Slipping Rib Syndrome: Treatment and Management The resulting pain can feel localized to one spot, or it can radiate across a wide swath of the abdomen and chest, which leads to a lot of misdiagnosis. Many people with this condition bounce between doctors for months before someone identifies what is going on.
Gallbladder and Biliary Pain
The gallbladder sits tucked under the liver on your right side, just below the rib cage. When gallstones block the bile duct, the resulting spasm produces a distinctive kind of pain that doctors call biliary colic. It usually lands in the upper right abdomen, right under the ribs, and can radiate to the right shoulder blade or the mid-back. The pain typically builds over minutes, stays at a plateau for an hour or more, then slowly fades. Many people describe it as a deep, squeezing ache rather than a sharp stab.
What makes gallbladder problems especially confusing is how convincingly they can mimic a muscle or spinal problem. In one documented case, a 34-year-old woman presented with acute right-sided lower thoracic and upper lumbar pain, along with significant muscle tightness and tenderness, and the initial exam pointed strongly toward a musculoskeletal cause. The actual diagnosis turned out to be cholecystitis, an inflamed gallbladder.6PubMed Central. Acute thoracolumbar pain due to cholecystitis: a case study The gallbladder’s nerves feed into the same spinal cord segments as those serving the muscles and skin of the right rib cage, so the brain can misread where the pain is actually coming from.
Research on patients with gallbladder disease has shown that ongoing gallstone attacks produce real, measurable changes in the surrounding tissues. People experiencing repeated biliary colic develop increased pain sensitivity and even thickened subcutaneous tissue in the right upper quadrant, effects that fade when the attacks stop but worsen if the colics continue.7PubMed. Relationship between pain symptoms and referred sensory and trophic changes in patients with gallbladder pathology In other words, chronic gallbladder problems can make the entire right rib cage area more sensitive over time, which is one reason people sometimes develop widespread tenderness that seems out of proportion to the original problem.
When the Liver Is Involved
The liver is the largest solid organ in your body and fills most of the space behind the right lower rib cage. Liver tissue itself has very few pain receptors, so the organ can be significantly inflamed or enlarged before you feel anything. The pain you do feel usually comes from Glisson’s capsule, the thin fibrous membrane that wraps around the liver. When the liver swells from hepatitis, fatty liver disease, or congestion from heart failure, the capsule stretches, and that stretching registers as a dull ache or sense of fullness under the right ribs.8ScienceDirect. Abdominal Pain – Chapter 9 – Hepatobiliary pain
Because the discomfort comes from swelling rather than from a damaged nerve, liver-related rib cage pain tends to be steady and dull rather than sharp. People often describe it as a heaviness or pressure rather than a stabbing pain. If you notice this kind of persistent discomfort alongside fatigue, nausea, dark urine, or yellowing of the skin, those patterns together point toward a liver issue worth investigating.
Kidney Stones and Flank Pain
The kidneys sit higher than most people realize, tucked behind the lower ribs on each side of the spine. When a stone forms in the right kidney and starts to move into the ureter (the tube connecting the kidney to the bladder), it can produce severe pain in the right flank that wraps around toward the front of the rib cage. This pain tends to come in waves, and many people describe it as the worst pain they have ever experienced.
In a documented case, a 52-year-old man arrived at the emergency department with acute right flank pain that turned out to be an obstructing ureteric stone with associated backup of urine into the kidney. Despite initial pain management, he returned the next day with severe pain and ultimately needed a temporary stent and antibiotics.9PubMed Central. Urolithiasis presenting as right flank pain: a case report The key distinction from musculoskeletal pain is that kidney stone pain does not change when you press on the rib cage or shift positions, and it often comes with blood in the urine, nausea, or a frequent urge to urinate.
Lung and Pleural Problems
Pain that gets sharply worse when you take a deep breath or cough is called pleuritic pain, and it usually points to the lining around the lungs (the pleura) rather than the lung tissue itself. Pleurisy, pneumonia affecting the right lower lobe, or a collapsed lung can all produce right-sided rib cage pain. A pulmonary embolism, a blood clot that travels to the lung, can also cause sharp, one-sided chest pain and is one of the most dangerous causes to miss.
Emergency physicians are taught to maintain a high level of suspicion for pulmonary embolism whenever someone shows up with pleuritic chest pain, especially when risk factors like recent surgery, prolonged immobility, or use of hormonal contraceptives are present. The difficulty is that pulmonary embolism can look a lot like less serious conditions.10BMJ Journals. Investigation and management of patients with pleuritic chest pain presenting to the accident and emergency department When a clot blocks a branch of the pulmonary artery supplying the right lung, the resulting tissue damage can even refer pain to the right upper abdomen, mimicking a gallbladder attack or liver problem.11Military Medicine. Pulmonary Infarction: Right Upper Quadrant Pain as a Presenting Symptom With Review of Typical Computed Tomography Imaging Features
If your right rib cage pain is accompanied by shortness of breath, rapid heart rate, coughing up blood, or sudden onset after being sedentary for an extended period, get medical attention urgently. Patients who report acute pain with sudden respiratory distress should raise immediate concern for a pneumothorax or similar emergency.12PubMed. Acute chest pain
Spinal and Nerve-Related Referral
Sometimes the problem is not in the rib cage at all but in the thoracic spine behind it. The facet joints, small paired joints at each level of the spine, can develop arthritis or become irritated and send pain radiating along the path of the associated rib. Thoracic facet joint pain is more common than many people realize, accounting for roughly 42 percent of chronic thoracic spinal pain syndromes.13PubMed Central. Facet joint disorders: from diagnosis to treatment The pain typically worsens with twisting or arching the back and can be reproduced by pressing on the joints next to the spine.
Intercostal neuralgia, irritation of the nerve that runs along the underside of each rib, is another source of rib-level pain that can originate from the spine. Prior shingles infection is a well-known trigger (the virus lives in spinal nerve roots and can reactivate to cause burning pain along one rib), but disc herniations, compression fractures, and even poor posture sustained over long periods can irritate these nerves and send pain wrapping around the chest wall.
Exercise-Related Rib Pain
Plenty of people notice a sharp stitch or aching sensation under the right rib cage during or right after exercise, especially running. This is sometimes called exercise-related transient abdominal pain, and while researchers have not pinned down a single cause, trunk muscle imbalances combined with the repetitive mechanical stress of running appear to play a role.14Journal of Sport Rehabilitation. Diagnosis and Treatment of 2 Adolescent Female Athletes With Transient Abdominal Pain During Running Some of the older theories blamed the ligaments that suspend the liver tugging on the diaphragm during impact, which would explain why the pain favors the right side. Eating a large meal before exercise makes it worse, and it becomes less common as your fitness level improves.
If your rib pain appears exclusively during exercise and vanishes once you stop, it is almost certainly benign. But pain that persists after exercise, worsens at rest, or is accompanied by other symptoms warrants a closer look.
Right Rib Pain During Pregnancy
In the second and third trimesters, the expanding uterus pushes up against the right rib cage and can cause straightforward mechanical discomfort. The baby’s feet or limbs often press directly on the lower ribs, and the rib joints themselves loosen slightly due to hormonal changes. Most of this is uncomfortable but harmless.
There is, however, a specific pregnancy complication where right upper quadrant pain under the ribs is a warning sign. HELLP syndrome, a severe variant of preeclampsia, involves breakdown of red blood cells, elevated liver enzymes, and low platelet counts. The right rib cage pain in HELLP comes from the liver swelling and stretching its capsule due to tissue damage and edema, and in severe cases, bleeding underneath the capsule.15PubMed Central. Preeclampsia-induced Liver Dysfunction, HELLP syndrome, and acute fatty liver of pregnancy HELLP usually occurs in the third trimester or shortly after delivery. If you are pregnant and develop persistent pain under your right ribs along with headache, visual changes, nausea, or swelling, contact your healthcare provider immediately. This is one situation where right rib pain in a specific population carries genuinely different stakes.
How Doctors Sort Through the Possibilities
Given how many structures sit under or near the right rib cage, figuring out the cause involves matching the type of pain, its timing, and any accompanying symptoms to the most likely source. A few patterns help narrow things down quickly:
- Reproducible with pressure: If pressing on a specific spot on the rib cage reproduces the exact pain, the problem is almost certainly in the chest wall, whether it is costochondritis, a muscle strain, or a fracture.
- Worse with breathing: Pain that spikes on inhalation points toward the pleura, the lining around the lungs, or a rib fracture.
- Triggered by eating: Pain that builds after meals, especially fatty ones, and centers in the upper right abdomen suggests the gallbladder.
- Colicky and radiating to the back: Waves of severe pain that radiate to the right flank or groin lean toward kidney stones.
- Dull and constant: A steady, pressure-like ache under the right ribs that does not change with movement suggests the liver or another solid organ.
Imaging plays a significant role when the cause is not obvious from the exam. Plain X-rays can miss rib fractures, especially small or stress-type fractures. Ultrasound has proven more sensitive in this context, detecting rib fractures with about 91 percent sensitivity in one emergency-department study of 145 patients.16PubMed. The Diagnostic Accuracy of Ultrasonography for the Diagnosis of Rib Fractures in Patients Presenting to Emergency Department With Blunt Chest Trauma Ultrasound also has the advantage of being quick, radiation-free, and useful for checking the gallbladder and kidneys at the same time. CT scans are reserved for more complex situations, such as ruling out a pulmonary embolism or evaluating the liver.
When Pain on the Right Is Not What It Seems
One of the most common misconceptions about rib cage pain is that it must come from the ribs themselves. The referred-pain phenomenon, where organs share nerve pathways with the skin and muscles of the chest wall, means the true source of the pain can be centimeters or even a full organ system away from where you feel it. Gallbladder inflammation can feel like a pulled muscle in your mid-back. A thoracic facet joint problem in your spine can masquerade as a sharp rib pain in the front. A pulmonary embolism in the right lung can feel like an abdominal cramp.
This is not a reason to panic about every twinge under your right ribs. The vast majority of right-sided rib cage pain turns out to be musculoskeletal and resolves with rest, over-the-counter pain relief, and time. But it is worth paying attention to the character of the pain and the company it keeps. Pain that is getting worse over days rather than better, pain that wakes you up at night, pain accompanied by fever, unexplained weight loss, or changes in the color of your urine or stool all justify a visit to your doctor. And pain that arrives suddenly with shortness of breath or a racing heart belongs in an emergency department, not a wait-and-see approach.
Understanding which organ or structure is most likely responsible is half the battle. The other half is honest self-assessment: did you recently start a new workout routine, catch a bad cough, eat an unusually heavy meal, or notice any other changes? That context, sometimes more than any imaging study, is what points a clinician toward the right answer.