Doctors Note Logo

Published on: 9/16/2026

Why does my diaphragm hurt under my ribs after running or eating a big meal?

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

answer background

Explanation

Understanding Diaphragm Pain Under the Ribs

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.

What Is the Diaphragm?

  • A thin, dome-shaped muscle sitting just below your lungs
  • Contracts and moves downward when you inhale, creating space for your lungs to fill with air
  • Relaxes and moves upward when you exhale, pushing air out of your lungs
  • Supported by tissues, ligaments, and connective structures linking it to your rib cage, spine, and organs like your liver and stomach

When your diaphragm or its surrounding tissues get irritated, stretched, or compressed, you feel pain or discomfort under your ribs.


Why Diaphragm Pain Happens After Running

1. Side Stitch (Exercise-Related Transient Abdominal Pain)

A “side stitch” is the most common cause of sharp pain under your ribs during or after running.

  • Mechanism: The diaphragm and abdominal muscles jostle with each foot strike, leading to localized cramping.
  • Symptoms: A sharp, stabbing pain usually felt on one side, just below the ribs.
  • Duration: Often resolves within minutes after slowing down or stopping exercise.

2. Poor Breathing Technique

Shallow or irregular breathing strains the diaphragm.

  • Shallow Breaths: Limit diaphragm movement, causing muscle fatigue and cramping.
  • Holding Breath: Increases intra-abdominal pressure and irritates the diaphragm.

3. Lack of Warm-Up

Jumping straight into high-intensity running can catch your diaphragm off guard.

  • Cold Muscle: An un-warmed diaphragm is more prone to cramping.
  • Rapid Onset: Sudden demand for deep, rapid breaths stresses the muscle.

4. Dehydration and Electrolyte Imbalance

Your muscles—including the diaphragm—need fluids and electrolytes (sodium, potassium, magnesium) to contract and relax smoothly.

  • Dehydration: Reduces blood flow to muscles, making cramps more likely.
  • Electrolyte Loss: Sweating depletes minerals necessary for normal muscle function.

Why Diaphragm Pain Happens After a Big Meal

1. Stomach Distension

A very full stomach pushes upward against the diaphragm.

  • Pressure Build-Up: The distended stomach reduces space in your abdomen, forcing the diaphragm to work harder.
  • Stitch-Like Sensation: Similar to side stitches in exercise but arises from overeating.

2. Acid Reflux and Heartburn

Stomach acid can irritate the diaphragm’s lining.

  • Les Gastric: Acid splashing up into the lower esophagus can inflame nearby tissues, including the diaphragm.
  • Burning Discomfort: Often felt as a burning pain under or behind the breastbone, but sometimes under the ribs.

3. Gas and Bloating

Excess gas stretches the intestines and can press upward on the diaphragm.

  • Flatulence: Common after large meals, especially those high in fiber, fats, or carbonated drinks.
  • Pressure-Related Pain: A dull ache or cramp under the ribs, sometimes radiating to the shoulder.

Other Possible Causes to Keep in Mind

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)

    • Intense, crampy pain under the right rib cage
    • May follow a fatty meal
    • Can radiate to your back or right shoulder blade
  • Pancreatitis

    • Inflammation of the pancreas
    • Severe, constant pain in the upper abdomen, sometimes radiating to the back
    • Often accompanied by nausea or vomiting
  • Pericarditis or Pleurisy

    • Inflammation of the coating around your heart (pericardium) or lungs (pleura)
    • Sharp pain worsened by deep breaths, lying flat, or coughing
  • Heart Attack

    • Crushing pressure or tightness in the chest, possibly spreading to the arms, neck, or jaw
    • Shortness of breath, sweating, nausea
  • Hiatal Hernia

    • Part of the stomach pushes through the diaphragm into the chest cavity
    • Heartburn, belching, chest discomfort

Practical Tips to Prevent Diaphragm Pain

You don’t have to live with discomfort every time you run or enjoy a hearty meal. Try these strategies:

Before and During Exercise

  • Warm up with dynamic stretches and light jogging for 5–10 minutes.
  • Practice deep, rhythmic breathing: inhale through your nose, exhale through your mouth.
  • Build core strength—strong abdominal muscles support the diaphragm.
  • Stay hydrated; replace electrolytes during longer runs.
  • Increase intensity gradually; avoid sudden speed-ups.

Around Meal Times

  • Eat smaller, more frequent meals instead of one large feast.
  • Chew thoroughly and eat at a leisurely pace.
  • Avoid carbonated drinks and gas-forming foods if you’re prone to bloating.
  • Wait 1.5–2 hours after a big meal before intense exercise.
  • Wear loose-fitting clothing around your waist and abdomen.

When to Seek Medical Advice

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:

  • Severe or persistent pain lasting more than a few hours
  • Pain that radiates to your shoulder, jaw, or back
  • Difficulty breathing or shortness of breath at rest
  • Fever, chills, nausea, or vomiting
  • Signs of fainting, dizziness, or rapid heartbeat

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.


Final Thoughts

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.

Thinking about asking ChatGPT?Ask me instead

Tell your friends about us.

We would love to help them too.

smily Shiba-inu looking

For First Time Users

What is Ubie’s Doctor’s Note?

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.