Our Services
Medical Information
Helpful Resources
Published on: 9/16/2026
Pain under the ribs after running or a large meal is most often a side stitch (exercise-related transient abdominal pain), diaphragm spasm from shallow breathing, trapped gas, or acid reflux and stomach distension pressing upward on the diaphragm, though muscle strain, gallbladder issues, costochondritis, or a hiatal hernia can feel similar. Timing, breathing patterns, meal size, hydration, and whether the pain eases with rest all help point to the cause, and several important warning signs are outlined below. See below to understand which explanation fits your situation and when the discomfort warrants medical attention.
Because harmless side stitches and conditions that need treatment can produce nearly identical rib and diaphragm pain, sorting them out on your own is difficult. A free, instant online symptom check asks targeted questions about your pain, timing, and triggers to suggest possible causes and clear next steps in minutes. It takes only a few moments and can help you decide whether to adjust your habits, monitor at home, or see a clinician soon.
Last reviewed for medical accuracy: 09/15/2026
Feeling a sharp ache or dull soreness under your ribs after running or eating a big meal can be unsettling. In many cases, the culprit is your diaphragm—the dome-shaped muscle that separates your chest from your abdomen and plays a key role in breathing. Let’s dive into why this happens, when it’s harmless, and when you should seek medical advice.
When your diaphragm or its surrounding tissues get irritated, stretched, or compressed, you feel pain or discomfort under your ribs.
A “side stitch” is the most common cause of sharp pain under your ribs during or after running.
Shallow or irregular breathing strains the diaphragm.
Jumping straight into high-intensity running can catch your diaphragm off guard.
Your muscles—including the diaphragm—need fluids and electrolytes (sodium, potassium, magnesium) to contract and relax smoothly.
A very full stomach pushes upward against the diaphragm.
Stomach acid can irritate the diaphragm’s lining.
Excess gas stretches the intestines and can press upward on the diaphragm.
While most diaphragm pain after running or eating a big meal is benign, rare but serious conditions can present similarly. If you experience any “red-flag” symptoms, seek medical attention promptly.
Gallbladder Attack (Biliary Colic)
Pancreatitis
Pericarditis or Pleurisy
Heart Attack
Hiatal Hernia
You don’t have to live with discomfort every time you run or enjoy a hearty meal. Try these strategies:
Most instances of diaphragm pain under the ribs are harmless and resolve with rest or simple self-care. However, contact a healthcare provider if you experience:
For a quick evaluation of your symptoms, you might consider a free, online symptom check, using the doctor approved Ubie Symptom Checker. It can help you decide whether to seek immediate care or manage symptoms at home.
Diaphragm pain under your ribs after running or eating a big meal is usually nothing to worry about. It often stems from muscle cramping, stomach pressure, or mild irritation. With simple lifestyle tweaks—like proper warm-ups, pacing your meals, and practicing good breathing—you can greatly reduce the chances of discomfort.
That said, never ignore severe or alarming symptoms. If you’re in doubt or experiencing anything that feels life-threatening or serious, speak to a doctor right away. Your health is too important to leave to chance.
(References)
* Rocha T, Souza H, Brandão DC, Rattes C, Ribeiro L, Campos SL, Aliverti A, de Andrade AD. The Manual Diaphragm Release Technique improves diaphragmatic mobility, inspiratory capacity and exercise capacity in people with chronic obstructive pulmonary disease: a randomised trial. J Physiother. 2015 Oct;61(4):182-9. doi: 10.1016/j.jphys.2015.08.009. Epub 2015 Sep 19. PMID: 26386894.
* Yoon DY, Nemcek AA, Kibbe MR. Postprandial Abdominal Pain. JAMA Surg. 2016 Mar;151(3):287-8. doi: 10.1001/jamasurg.2015.4715. PMID: 26792420.
* Langer D, Ciavaglia C, Faisal A, Webb KA, Neder JA, Gosselink R, Dacha S, Topalovic M, Ivanova A, O'Donnell DE. Inspiratory muscle training reduces diaphragm activation and dyspnea during exercise in COPD. J Appl Physiol (1985). 2018 Aug 1;125(2):381-392. doi: 10.1152/japplphysiol.01078.2017. Epub 2018 Mar 15. PMID: 29543134.
* Sayuk GS, Gyawali CP. Functional Dyspepsia: Diagnostic and Therapeutic Approaches. Drugs. 2020 Sep;80(13):1319-1336. doi: 10.1007/s40265-020-01362-4. PMID: 32691294.
* Spiller R. Impact of Diet on Symptoms of the Irritable Bowel Syndrome. Nutrients. 2021 Feb 9;13(2). doi: 10.3390/nu13020575. Epub 2021 Feb 9. PMID: 33572262; PMCID: PMC7915127.
* Wauters L, Dickman R, Drug V, Mulak A, Serra J, Enck P, Tack J, ESNM FD Consensus Group, Accarino A, Barbara G, Bor S, Coffin B, Corsetti M, De Schepper H, Dumitrascu D, Farmer A, Gourcerol G, Hauser G, Hausken T, Karamanolis G, Keszthelyi D, Malagelada C, Milosavljevic T, Muris J, O'Morain C, Papathanasopoulos A, Pohl D, Rumyantseva D, Sarnelli G, Savarino E, Schol J, Sheptulin A, Smet A, Stengel A, Storonova O, Storr M, Törnblom H, Vanuytsel T, Velosa M, Waluga M, Zarate N, Zerbib F. United European Gastroenterology (UEG) and European Society for Neurogastroenterology and Motility (ESNM) consensus on functional dyspepsia. United European Gastroenterol J. 2021 Apr;9(3):307-331. doi: 10.1002/ueg2.12061. PMID: 33939891; PMCID: PMC8259261.
* 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.
* Ford AC, Staudacher HM, Talley NJ. Postprandial symptoms in disorders of gut-brain interaction and their potential as a treatment target. Gut. 2024 Jun 6;73(7):1199-1211. doi: 10.1136/gutjnl-2023-331833. Epub 2024 Jun 6. PMID: 38697774.
* Nguyen BL, Baumfalk DR, Lapierre-Nguyen SS, Zhong R, Doerr V, Montalvo RN, Wei-LaPierre L, Smuder AJ. Effects of exercise and doxorubicin on acute diaphragm neuromuscular transmission failure. Exp Neurol. 2024 Aug;378:114818. doi: 10.1016/j.expneurol.2024.114818. Epub 2024 May 21. PMID: 38782352; PMCID: PMC11616575.
* Rodrigues A, Louvaris Z, Dacha S, Pereira MC, Gojevic T, Schaeffer MR, Janssens L, Janssens W, Reid WD, Gayan-Ramirez G, Testelmans D, Brochard L, Gosselink R, Langer D. Pattern of extra-diaphragmatic respiratory muscle activity during exercise in patients with unilateral diaphragm dysfunction. Physiol Rep. 2025 Nov;13(21):e70635. doi: 10.14814/phy2.70635. PMID: 41165227; PMCID: PMC12573277.
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.