Our Services
Medical Information
Helpful Resources
Published on: 8/20/2026
Sharp pain under the right rib cage when breathing is often caused by muscle strain, rib injury, or inflammation of the cartilage (costochondritis). However, sudden, stabbing pain that worsens with each breath can also signal more serious conditions, including a pulmonary embolism (blood clot in the lungs), pleurisy, pneumonia, or gallbladder issues.
Because the possible causes range from mild to life-threatening, identifying the right one quickly matters. A fast, private symptom check can help you narrow down likely causes based on your specific symptoms and guide your next steps—whether that's home care, a doctor visit, or urgent evaluation. It's free, takes about 3 minutes, and could save you time, worry, and unnecessary risk.
Reviewed for medical accuracy: 07/15/2026
Quick answers
The most common questions people ask when a sharp pain under the right ribs hits while breathing
Sharp pain under the right rib cage could have various causes.
Musculoskeletal causes of this type of pain are often caused by strain or injury to the muscles and bones around your rib cage. Common causes include overexertion during exercise, repetitive movements, or trauma to the chest wall. The pain typically worsens with movement or deep breathing but usually improves with rest and over-the-counter pain medications.
This type of pain can also be associated with respiratory conditions such as pneumonia, bronchitis, or other lung infections. These conditions often cause inflammation of the lung tissue or the surrounding membranes, leading to sharp pain that worsens with breathing.
Other common conditions that can cause this type of pain include pleurisy (inflammation of the lining around the lungs), and even liver and gallbladder problems since they are located in the right upper abdomen. The pain may worsen with deep breathing, coughing, or certain movements.
A serious cause of sharp pain under the ribs is a blood clot to the lungs, called a pulmonary embolism. This occurs when a blood clot travels to the lungs and blocks blood flow, causing intense pain, shortness of breath, and potentially life-threatening complications if not treated promptly.
Given that minor muscle strains and more serious medical conditions can all cause pain under the rib cage while breathing, you can use Ubie's free AI symptom checker to help identify what might be causing your symptoms and determine whether you should seek medical care.
(References)
Ayloo A, Demehri FR, Ahmed A. Evaluation and treatment of musculoskeletal chest pain. _Primary Care: Clinics in Office Practice_. 2013;40(4):863-887. doi:10.1016/j.pop.2013.07.003.
Morrone D, Morrone V. Acute Pulmonary Embolism: Focus on the Clinical Picture. Korean Circ J. 2018 May;48(5):365-381. doi: 10.4070/kcj.2017.0314. Erratum in: Korean Circ J. 2018 Jul;48(7):661-663. doi: 10.4070/kcj.2017.0998. PMID: 29737640; PMCID: PMC5940642.
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.