Can Your Diaphragm Cramp? Causes, Signs & Relief

Yes, your diaphragm can cramp. It’s a skeletal muscle, just like the ones in your legs or arms, and it’s subject to the same involuntary contractions. The most common version of this is the “side stitch” you feel during exercise, but diaphragm cramps can also happen at rest, after eating, or in response to stress. Most are harmless and short-lived, though persistent or severe episodes deserve attention.

What a Diaphragm Cramp Feels Like

Your diaphragm sits just below your lungs, separating your chest from your abdomen. When it cramps, it tightens and doesn’t relax back into its normal curved position as you exhale. This creates a sharp or squeezing pain that can show up in several places: under your lower rib cage, in your side, across your chest, or even in your shoulder. Some people describe it as a deep ache, others as a sudden stabbing sensation.

The location can be confusing. Because the nerve controlling the diaphragm (the phrenic nerve) connects to the neck and shoulder area, a diaphragm cramp sometimes produces pain in the shoulder or even the jaw. This overlap has led researchers to suggest that some cases of unexplained chest pain, originally assumed to be cardiac, may actually originate from diaphragm cramping. If the cramp is severe, you may also feel short of breath, since the muscle isn’t moving through its full range to help you inhale and exhale normally.

The Side Stitch: The Most Common Version

The side stitch during exercise is by far the most familiar type of diaphragm-related cramp. About 70% of runners report experiencing one in the past year, and roughly one in five runners in any given event will get one. It’s 3.5 times more common in runners than walkers, which suggests intensity plays a role.

Age matters too. Around 77% of active people under 20 experience side stitches, compared to only 40% of those over 40. Women report them about four times more frequently than men in some studies. The pain tends to hit the right side more often, usually just below the ribs, and it typically fades once you slow down or stop.

The exact mechanism behind a side stitch isn’t fully settled. It was long attributed to the diaphragm alone, but current thinking is that irritation of the tissue lining the abdominal cavity likely plays a role as well. Regardless of the precise cause, the experience is essentially a cramp-like contraction in or around the diaphragm during vigorous movement.

Non-Exercise Causes

Diaphragm cramps don’t only happen when you’re running. Several other triggers can set them off:

  • Eating before activity. A large meal or spicy food can provoke diaphragm spasms in some people. The full stomach sits directly against the diaphragm, and the added pressure or irritation may trigger a contraction.
  • Stress and anxiety. Stress changes your breathing pattern, often making it shallow and rapid. This overworks the diaphragm and can lead to cramping or a fluttering sensation in the upper abdomen.
  • Electrolyte imbalances. Low levels of magnesium, calcium, potassium, or phosphorus interfere with normal muscle contraction and relaxation. These deficiencies can cause the diaphragm to fatigue or cramp, the same way they cause cramps in your calves or feet.
  • Phrenic nerve irritation. Anything that puts pressure on or damages the phrenic nerve, which controls the diaphragm, can cause spasms. This includes inflammation, tumors near the spine or chest, or even post-surgical irritation.

A rarer condition called diaphragmatic flutter involves repeated, involuntary contractions of the diaphragm that produce visible pulsing in the upper abdomen. These episodes tend to worsen with stress and throughout the day, and they can cause both chest and abdominal pain along with shortness of breath.

When It Might Not Be Your Diaphragm

Because diaphragm cramps can produce chest pressure, shoulder pain, and shortness of breath, they sometimes mimic more serious conditions. A heart attack, a blood clot in the lungs, or a collapsed lung can all cause sudden chest pain with difficulty breathing. The key differences: diaphragm cramps usually respond to slowing down and controlled breathing within minutes, they often have an obvious trigger like exercise or a recent meal, and they don’t come with symptoms like pain radiating down your arm, dizziness, cold sweats, or a sense of impending doom.

Ongoing diaphragm dysfunction can also masquerade as other problems. Reduced diaphragm function has been linked to gastroesophageal reflux, sleep disturbances, night sweats, chronic fatigue, and even lower back pain. If you have persistent or recurring pain in the areas the diaphragm influences, it’s worth considering whether the muscle itself is the source.

How to Relieve a Diaphragm Cramp

If you’re mid-exercise and feel that familiar side stitch, the most effective response is simple: slow down. Dropping your pace gives the muscle time to relax. Pair this with deliberate deep breathing. Inhale slowly through your nose, letting your belly expand, then exhale through pursed lips as if you’re gently blowing out candles. This activates the diaphragm through its full range of motion and encourages it to release.

Another technique that works well is to stop, stand up straight, and place your hands behind your head with fingers interlocked. This position opens up the chest and forces the diaphragm to do more of the breathing work, which can help reset the muscle. Some people find relief by pressing gently into the painful area while leaning slightly toward the side of the pain and exhaling slowly.

For cramps that aren’t exercise-related, lying on your back and placing a hand on your stomach to guide slow belly breathing can help. Breathe in through your nose for a count of four, feeling your hand rise, then exhale for a count of six or longer. This controlled pattern relaxes the diaphragm and also calms the nervous system if stress is contributing.

Preventing Diaphragm Cramps

If side stitches are a regular problem during exercise, a proper warm-up makes a real difference. Spend five to ten minutes stretching before your workout, with a focus on your torso and sides. Gentle side bends, trunk rotations, and reaching overhead can prepare the diaphragm and surrounding muscles for the work ahead.

Timing your meals matters too. Eating a large meal within one to two hours of exercise increases your chances of a cramp. If you need fuel close to a workout, keep it small and easy to digest. Avoid high-fat or high-fiber foods right before activity.

Staying on top of hydration and mineral intake also helps. Since low magnesium, potassium, and calcium are linked to muscle cramping across the body, including the diaphragm, making sure your diet includes enough of these minerals reduces your risk. Leafy greens, bananas, nuts, and dairy are practical sources.

For people who get diaphragm cramps from stress or anxiety, building a regular practice of diaphragmatic breathing outside of stressful moments trains the muscle and your breathing pattern. Even five minutes a day of slow belly breathing strengthens the diaphragm and makes it less prone to spasm when stress hits.