Our Services
Medical Information
Helpful Resources
Published on: 9/16/2026
Diaphragm pain that flares when you breathe deeply or twist your torso often comes from strained muscles, an irritated intercostal or phrenic nerve, or inflammation of the lining around the lungs (pleurisy), and it can also stem from a hiatal hernia, gallbladder trouble, acid reflux, rib injury, or recent intense exercise. The pattern of your pain matters: sharp, catching pain with movement usually points to musculoskeletal or nerve causes, while burning pain with meals suggests digestive origins, and pain with fever, cough, or shortness of breath may signal infection or a lung problem. Certain warning signs, including chest pressure, difficulty breathing, blue lips, coughing up blood, or pain spreading to the shoulder or jaw, need emergency care right away. There are several important distinctions and treatment options to weigh, so see below to understand more about likely causes, self-care steps, and when to see a doctor.
Because so many different conditions share this one symptom, guessing can lead to weeks of unnecessary discomfort or a missed diagnosis, and a free, instant, online symptom check can help you sort your specific pattern of pain into likely explanations and clarify whether to monitor at home, book an appointment, or seek urgent care today.
Last reviewed for medical accuracy: 09/15/2026
Experiencing a sharp or dull ache under your ribs—especially when you take a deep breath or twist—can be unsettling. The diaphragm is a dome-shaped muscle that separates the chest cavity from the abdominal cavity and plays a crucial role in breathing. When it or the surrounding structures become irritated, strained or inflamed, you’ll notice pain whenever you expand your lungs or move your torso.
Below, we explore common and less-common reasons for diaphragm pain, simple self-care steps, and when to seek professional help. If you’re ever unsure about your symptoms, you can always try a free, online symptom check, using the doctor approved Ubie Symptom Checker.
Pain under the ribs or in the diaphragm area can range from mild and self-limiting to signs of serious conditions. Seek immediate medical attention if you experience any of the following:
Otherwise, if your pain is mild to moderate, you can begin self-care as described above. For extra reassurance, consider a free, online symptom check, using the doctor approved Ubie Symptom Checker.
Diaphragm pain with deep breathing or twisting can stem from simple muscle strain to more serious medical issues. Most causes improve with rest, anti-inflammatories, and gentle stretching. However, you should never hesitate to speak to a doctor if:
Your health is too important to ignore. If you’re not sure what’s going on, start with a free, online symptom check, using the doctor approved Ubie Symptom Checker—and then speak to a healthcare professional for personalized advice.
(References)
* Cooper MJ, Russell P, Gallagher PJ. Diaphragmatic endometriosis. Med J Aust. 1999 Aug 2;171(3):142-3. doi: 10.5694/j.1326-5377.1999.tb123567.x. PMID: 10474606.
* Sorrentino D, Bazzocchi M, Badano L, Toso F, Giagu P. Heart-touching Chilaiditi's syndrome. World J Gastroenterol. 2005 Aug 7;11(29):4607-9. doi: 10.3748/wjg.v11.i29.4607. PMID: 16052699; PMCID: PMC4398719.
* Wang Z, Ye Q, Chen Y, Zhu J. Laparoscopic Repair of Diaphragmatic Eventeration in Adults: Plication With Mesh Repair. Surg Laparosc Endosc Percutan Tech. 2018 Oct;28(5):e91-e93. doi: 10.1097/SLE.0000000000000550. PMID: 29889109.
* Seidler S, Shabanov S, Andres A, Karenovics W, Wenger JM, Pluchino N. Diaphragmatic Endometriosis: Multidisciplinary Treatment. J Minim Invasive Gynecol. 2019 Mar-Apr;26(3):404. doi: 10.1016/j.jmig.2018.07.003. Epub 2018 Jul 19. PMID: 30031207.
* Samy A, Abbas AM, Mahmoud M, Taher A, Awad MH, El Husseiny T, Hussein M, Ramadan M, Shalaby MA, El Sharkawy M, Hatem D, Alaa-El-Din Wali A, Abd-El-Fatah SM, Hussein AH, Haggag H. Evaluating different pain lowering medications during intrauterine device insertion: a systematic review and network meta-analysis. Fertil Steril. 2019 Mar;111(3):553-561.e4. doi: 10.1016/j.fertnstert.2018.11.012. Epub 2019 Jan 2. PMID: 30611553.
* Torres Jimenez AR, Ruiz Vela N, Cespedes Cruz AI, Velazquez Cruz A, Bernardino Gonzalez AK. Shrinking lung syndrome in pediatric systemic lupus erythematosus. Lupus. 2021 Jun;30(7):1175-1179. doi: 10.1177/09612033211010331. Epub 2021 Apr 22. PMID: 33888011.
* Sığlan Ü, Çolak S. Effects of diaphragmatic and iliopsoas myofascial release in patients with chronic low back pain: A randomized controlled study. J Bodyw Mov Ther. 2023 Jan;33:120-127. doi: 10.1016/j.jbmt.2022.09.029. Epub 2022 Sep 29. PMID: 36775506.
* Sannasi R, Dakshinamurthy A, Dommerholt J, Desai V, Kumar A, Sugavanam T. Diaphragm and core stabilization exercises in low back pain: A narrative review. J Bodyw Mov Ther. 2023 Oct;36:221-227. doi: 10.1016/j.jbmt.2023.07.008. Epub 2023 Jul 13. PMID: 37949564.
* Zhu X, Hu C, Gong W. Upside-down stomach in paraesophageal hernia: A case report. Medicine (Baltimore). 2023 Dec 22;102(51):e36734. doi: 10.1097/MD.0000000000036734. PMID: 38134072; PMCID: PMC10735125.
* Bayer LL, Ahuja S, Allen RH, Gold MA, Levine JP, Ngo LL, Mody S. Best practices for reducing pain associated with intrauterine device placement. Am J Obstet Gynecol. 2025 May;232(5):409-421. doi: 10.1016/j.ajog.2025.01.039. Epub 2025 Feb 3. PMID: 39909325.
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.