Why Does My Chest Hurt When I Sneeze or Cough?

Chest pain during a sneeze or cough is most often caused by strained muscles or inflamed cartilage in the chest wall. In fact, nearly 45% of all chest pain cases seen in primary care turn out to be musculoskeletal, not cardiac. That’s reassuring, but it’s not the only possibility. Several conditions, from pulled muscles between the ribs to inflamed lung linings, can make every cough or sneeze feel like a sharp stab.

Why Coughing and Sneezing Create So Much Force

A cough generates surprisingly intense pressure inside your chest. Measured in studies, intrathoracic pressure during a voluntary cough ranges from about 58 to 214 cmHâ‚‚O, roughly equivalent to 1 to 3 PSI concentrated across your rib cage and lungs. That entire burst of force builds and releases in about two-tenths of a second. Sneezing produces a similarly explosive contraction of the diaphragm and chest wall muscles.

This rapid spike in pressure compresses your ribs, stretches the muscles between them, and pushes against your lungs and their linings. If anything in that chain is already irritated, inflamed, or injured, the sudden force amplifies the pain dramatically. That’s why you might feel fine breathing normally but get hit with sharp pain the moment you sneeze.

Strained Muscles Between the Ribs

The intercostal muscles sit between each pair of ribs, helping your chest expand and contract with every breath. Straining them is one of the most common reasons for chest pain when coughing or sneezing. You can pull these muscles through repetitive motions like rowing or swimming, a direct blow to the chest, or even a prolonged coughing fit from a cold.

Typical signs include sharp pain in the upper back or rib area, tenderness when you press between the ribs, muscle stiffness when twisting your torso, and pain that clearly worsens with deep breaths, coughs, or sneezes. Some people also feel muscle spasms in the area. A mild strain usually heals within a few days. Moderate strains can take 3 to 7 weeks, and a severe tear (where the muscle fibers fully separate) takes longer.

While you’re healing, you can reduce the jolt of a cough or sneeze by “splinting”: pressing a small pillow or your folded hands firmly against the painful area right before you cough. This braces the muscles and limits how much they stretch during the sudden contraction.

Costochondritis: Inflamed Rib Cartilage

Each of your upper ribs connects to your breastbone through a short piece of cartilage. When that cartilage becomes inflamed, the condition is called costochondritis, and it can produce a sharp or aching pain right along the center of your chest that spikes with coughing, sneezing, or even just taking a deep breath.

There’s no blood test or imaging scan that confirms costochondritis directly. Doctors diagnose it by pressing along your breastbone to check for tenderness and moving your rib cage and arms to see if they can reproduce the pain. They may order an ECG or chest X-ray, but those tests are meant to rule out heart problems or other conditions rather than to confirm the cartilage inflammation itself. Costochondritis usually resolves on its own over several weeks, though it can linger.

Pleurisy: Inflamed Lung Lining

Your lungs are wrapped in two thin membranes called the pleura. Normally, these layers glide smoothly against each other as you breathe. When they become inflamed (a condition called pleurisy), their surfaces roughen and scrape together with every breath, producing a sharp, stabbing pain that gets worse when you inhale deeply, cough, or sneeze. A doctor listening with a stethoscope may hear a characteristic scratching sound called a friction rub.

The outer membrane contains pain-sensing nerves, so when inflammatory chemicals are released into the space between the two layers, the pain can be intense and very localized. Viruses are a common trigger. Influenza, respiratory syncytial virus, and several other common infections can inflame the pleura. Pneumonia and other lung infections are also frequent causes. More serious possibilities include blood clots in the lung (pulmonary embolism) and pericarditis, which is inflammation of the sac around the heart. Because pleuritic chest pain can signal something urgent, it’s worth getting checked out rather than assuming it will pass.

Hiatal Hernia

A hiatal hernia happens when part of the stomach pushes up through the opening in the diaphragm where the esophagus passes through. Because it sits right at the junction between your abdomen and chest, the pain can feel like chest pain, abdominal pain, or both. Coughing, sneezing, bending over, or lifting something heavy can compress or pinch a larger hernia, producing a sudden flare of discomfort. If coughing or sneezing consistently triggers pain that feels like it’s behind the breastbone or in the upper abdomen, and you also deal with acid reflux or difficulty swallowing, a hiatal hernia could be the source. Pain that’s getting more frequent or more intense with these activities may be a sign the hernia is worsening.

Collapsed Lung (Pneumothorax)

In rare cases, the pressure spike from a sneeze can rupture small air blisters (called blebs) that sit on the surface of the lungs. When one of these bursts, air leaks into the space surrounding the lung and the lung partially collapses. The hallmark symptoms are sudden, sharp chest pain and shortness of breath that come on together.

This is most common in men between 20 and 40 who are tall and lean. Smoking significantly raises the risk, as does a history of previous pneumothorax or underlying lung disease. A genetic component also appears to run in some families. A collapsed lung is a medical emergency that needs immediate attention.

How to Tell What’s Causing Your Pain

The location, quality, and timing of the pain offer useful clues. Musculoskeletal causes like intercostal strain and costochondritis tend to produce pain you can pinpoint with a finger, often near the breastbone or along the side of the rib cage, and the area is usually tender to touch. The pain worsens when you twist, press on the spot, or move your arms in certain ways.

Pleurisy typically feels like a sharp, knife-like pain on one side of the chest that tracks closely with each breath cycle, not just with coughs and sneezes. Hiatal hernia pain often overlaps with digestive symptoms like heartburn. A collapsed lung comes on suddenly and is accompanied by noticeable difficulty breathing.

If your pain is mild, reproducible by pressing on the chest wall, and started after physical activity or a bout of heavy coughing, a muscle strain or costochondritis is the most likely explanation. If the pain is severe, came on suddenly, or is accompanied by trouble breathing, swelling in one leg, sudden upper back or neck pain, or any signs of stroke such as difficulty speaking or weakness on one side of the body, that warrants emergency care.

Reducing Pain While You Heal

For musculoskeletal causes, the splinting technique mentioned earlier is one of the simplest and most effective strategies. Hold a pillow firmly against your chest before you feel the cough or sneeze coming on. This limits how far the muscles and cartilage stretch during the sudden contraction, noticeably reducing the pain.

Gentle stretching of the upper body, applied heat or ice, and over-the-counter anti-inflammatory options can help with both intercostal strains and costochondritis. Avoid movements that provoke the pain, but don’t stop breathing deeply altogether. Shallow breathing to avoid discomfort can lead to other problems like reduced lung expansion. If you’re dealing with a persistent cough from a cold or respiratory infection that keeps aggravating the pain, treating the cough itself breaks the cycle of repeated irritation.