Yes, your diaphragm can cramp. The diaphragm is a skeletal muscle, and like any skeletal muscle it can contract involuntarily, tetanically, or painfully — most familiarly as exercise-related transient abdominal pain (ETAP), the "stitch" that affects roughly 60 to 70 percent of runners at some point. The cramp is real; the popular explanations for it are mostly wrong. What follows is what the physiology actually supports, where the pain comes from, and how to respond when it hits.

What the diaphragm is and how it contracts

The diaphragm is a dome-shaped sheet of skeletal muscle, roughly 3 to 5 millimeters thick at its dome, separating the thoracic and abdominal cavities. It is the primary muscle of inspiration, responsible for about 70 to 80 percent of tidal volume at rest. When it contracts, the dome flattens and descends 1 to 2 centimeters during quiet breathing, dropping thoracic pressure and pulling air in.

Three features make it cramp-prone. First, it is a fatigue-resistant muscle by design — roughly 50 to 55 percent slow-twitch (type I) fibers — but it works continuously, about 12 to 20 breaths per minute at rest and far more during exercise. Second, it is under both voluntary and automatic control, driven by the phrenic nerve from spinal levels C3 to C5. Third, it has a limited blood supply relative to its workload during high-intensity effort, which matters for the mechanisms below.

A cramp, physiologically, is a sudden involuntary contraction. In the diaphragm the term gets used loosely, because the diaphragm rarely produces a classic palpable knot. What people feel is usually a sharp, localized pain rather than a visible spasm. That distinction is the first thing most thin explainers get wrong.

What the evidence says about the stitch

The leading explanation for exercise-related diaphragm pain is irritation of the parietal peritoneum — the lining of the abdominal cavity — rather than the muscle itself. The diaphragm's own surface is insensitive to pain; the peritoneum draped over it is not. Mechanical stress on that lining, from jolting organs or from the diaphragm pressing downward, produces the sharp catch.

Supporting this, the pain is far more common in activities with vertical jolting: running and horse riding, less so in cycling and swimming. A study of runners found stitch incidence rose with faster pace and with pre-exercise food intake, both of which increase visceral movement and peritoneal stretch.

The second mechanism is respiratory muscle fatigue. At intensities above roughly 80 percent of maximal oxygen uptake, the diaphragm's work of breathing can outstrip its blood supply, and fatigue accumulates. This produces a dull, diffuse ache rather than a sharp stitch. The two patterns — sharp peritoneal pain and dull fatigue ache — are different phenomena that get collapsed into one word.

A third contributor is diaphragm cramp proper, a true tetanic contraction. This is documented in swimmers who breathe in rapid, shallow patterns and in people who hyperventilate, where low carbon dioxide and altered electrolyte balance can trigger involuntary contraction. It is real but less common than the stitch.

How common, and under what conditions

Exercise-related transient abdominal pain affects an estimated 60 to 70 percent of runners annually and around 40 percent of swimmers. It is the most common gastrointestinal complaint in running, ahead of side ache's cousin, nausea.

Risk rises with four measurable factors: eating within 2 hours of exercise, drinking large volumes (more than about 500 milliliters) within 30 minutes of exercise, faster pace, and dehydration. Age matters too — incidence peaks in people under 30 and declines with age, likely because peritoneal sensitivity and breathing mechanics change.

The counterintuitive professional caveat: the diaphragm is rarely the source of the sharp stitch, yet the muscle and the pain are inseparable in practice. Treating the pain as purely mechanical misses the respiratory-fatigue component that shows up in the second half of long efforts.

Edge cases and red flags

Most diaphragm-area pain during exercise is benign and resolves within minutes of stopping. A minority of presentations warrant evaluation.

Pain that persists more than 24 hours after exercise ends. Pain accompanied by shortness of breath at rest, or by a change in breathing pattern that does not resolve. Sharp pain that localizes to one shoulder tip, which can signal diaphragmatic irritation from another source. Pain with fever, or with a new cough. Pain during minimal exertion, or pain that wakes you from sleep. A history of abdominal surgery or known hernia with new pain.

These do not mean a cramp is dangerous; they mean the presentation is not a simple stitch. Evaluation distinguishes benign ETAP from pericarditis, gallbladder disease, pleurisy, and musculoskeletal injury.

Myths that outrank the evidence

The most widespread misconception is that the stitch comes from a "lack of oxygen to the diaphragm" or from "trapped gas." Neither is well supported. The diaphragm receives blood and oxygen continuously; the pain correlates poorly with oxygen saturation.

A second myth is that the stitch is a hernia or a muscle tear. Imaging studies do not support structural injury in typical ETAP. The pain is functional and self-limited.

A third is that drinking water causes the stitch while eating does not, or the reverse. The evidence points to volume and timing more than to the type of intake, and both food and fluid raise risk when close to exercise.

A fourth is that the diaphragm "locks up" and must be stretched to release. There is no evidence of a locked diaphragm; the pain resolves with reduced effort and altered breathing, not by force.

Practical response and prevention

The practical hierarchy follows the mechanisms. When a stitch hits, slow the pace and switch to belly breathing — slow, deep diaphragmatic breaths. Many people find relief within 30 to 60 seconds. Pressing a hand into the painful side and exhaling forcefully against pursed lips helps some.

For prevention, the steps are concrete:

Leave at least 2 hours between a large meal and hard exercise; 3 hours for a very large meal. Limit fluid to about 300 to 500 milliliters in the 30 minutes before vigorous exercise. Warm up with 5 to 10 minutes of easy movement before intensity. Build respiratory fitness with 2 to 3 sessions per week of sustained moderate-intensity aerobic work. Practice belly breathing during easy runs to reduce accessory-muscle overuse. Stay hydrated across the day rather than in a bolus before exercise.

Table 1 compares the three common explanations and what the evidence supports.

Explanation Mechanism Evidence strength What it predicts
Peritoneal irritation Jolting stretches parietal peritoneum Strong Worse with running, full stomach, fast pace
Respiratory muscle fatigue Diaphragm work exceeds blood supply Moderate Worse late in hard efforts, dull ache
True diaphragm cramp Tetanic contraction from electrolyte or CO2 shifts Limited Rapid shallow breathing, hyperventilation

Table 2 lays out the expected time course of a typical episode.

Time after onset Typical experience Action
0–10 seconds Sharp catch, often one side Slow pace, breathe deeply
10–60 seconds Pain eases with reduced effort Belly breathing, hand pressure
1–3 minutes Residual soreness Continue easy movement
3–10 minutes Usually resolved Resume gradually if comfortable
10–30 minutes Occasional dull ache Hydrate, avoid immediate hard effort
Over 24 hours Should not persist Evaluate if it does

One threshold deserves explicit reconciliation: the "2-hour rule" for eating before exercise is a practical guideline, not a hard cutoff. Studies show risk rises progressively within that window rather than switching on at exactly 120 minutes. The same applies to the 500-milliliter fluid guidance; it is a reasonable upper bound for the 30 minutes before vigorous work, drawn from observational patterns, not a precise physiological threshold.

Limits of the evidence

The mechanisms above rest on a mix of small physiological studies and survey data, not large randomized trials. Peritoneal irritation is the best-supported explanation but has not been directly imaged during a stitch. Respiratory fatigue is well established in exercise physiology but its link to the sharp stitch specifically is inferential.

The result is that practical advice is reasonable but not precise. A 2-hour meal gap and modest pre-exercise fluid are low-risk habits with plausible benefit. They should not be treated as proven therapy, and persistent pain deserves real evaluation rather than another breathing drill.