Chest pain during coughing is usually caused by strain on the muscles, joints, or membranes in your chest rather than a problem with your heart itself. A forceful cough generates enormous pressure inside your chest cavity, up to 300 or even 450 mmHg, which squeezes the heart, large blood vessels, ribs, and surrounding tissues all at once. That pressure spike is why it can feel like the pain is coming from your heart even when the source is somewhere else entirely.
Several conditions cause this kind of pain, ranging from completely harmless muscle strain to issues that need prompt attention. Understanding the differences can help you figure out what’s going on.
What Coughing Does Inside Your Chest
Coughing is a surprisingly violent mechanical event. During the forceful exhale phase, intrathoracic pressure rises dramatically, compressing the heart and major blood vessels and pushing blood out toward the rest of your body. At the same time, the spike in pressure reduces blood flowing back to the heart through the veins. This combination temporarily changes how your heart fills and pumps, which is why a hard coughing fit can make you feel lightheaded or even faint.
That pressure doesn’t just affect circulation. It also puts stress on the rib joints, the muscles between your ribs, and the thin membranes lining your lungs. If any of those structures are inflamed, strained, or irritated, the force of a cough will aggravate them. The pressure can also stay slightly elevated for several seconds after a cough due to air trapping in the lungs, which is why the ache sometimes lingers between coughs.
Chest Wall Strain: The Most Common Cause
If the pain is sharp, localized to one spot, and gets worse when you press on your chest, move your torso, or take a deep breath, the most likely culprit is your chest wall rather than your heart. Two common versions of this are simple muscle strain and costochondritis, which is inflammation where a rib connects to the breastbone through cartilage.
Costochondritis makes breathing and chest movement painful. Coughing, sneezing, and even vomiting can flare it up because all of those motions force the inflamed cartilage to move. A doctor can usually diagnose it just by pressing along the rib joints and finding a tender spot. There’s no special test needed. The condition typically resolves on its own over days to weeks, and over-the-counter anti-inflammatory medication like ibuprofen helps manage the pain in the meantime.
Repeated coughing from a cold or bronchitis can also strain the intercostal muscles between your ribs, creating soreness that worsens with each subsequent cough. This creates a frustrating cycle where the illness makes you cough, and the coughing makes your chest hurt more.
Pleurisy: Inflammation Around the Lungs
Pleurisy is inflammation of the thin membrane that lines the outside of your lungs. Normally the two layers of this membrane glide smoothly against each other as you breathe. When they’re inflamed, they rub together like sandpaper, producing a sharp, stabbing pain that worsens with every breath, cough, or sneeze. The pain is usually localized to one area of the chest, and sometimes you or a doctor can actually feel a grating sensation (called a friction rub) over the sore spot.
The most common triggers are viral infections, pneumonia, and other respiratory illnesses. If a bacterial infection like pneumonia is causing it, antibiotics treat the underlying problem. Viral pleurisy often resolves on its own. In either case, anti-inflammatory medication helps with the pain, and resting in whatever position feels most comfortable makes a real difference. Finding a way to lie that puts less strain on the inflamed side, often by lying on the affected side to limit its movement, can reduce pain significantly.
Pericarditis: When It Really Is the Heart
Pericarditis is inflammation of the thin sac surrounding the heart, and it’s one scenario where the pain genuinely is cardiac. The chest pain from pericarditis is sharp and often gets worse when you cough, lie down, or breathe deeply. Sitting up and leaning forward typically eases it, which is a useful clue that distinguishes it from other types of heart pain.
Pericarditis is most often triggered by a viral infection and tends to affect younger adults more than older ones. It’s uncomfortable and concerning, but most cases resolve within a few weeks with anti-inflammatory treatment. It’s not the same thing as a heart attack, and it doesn’t carry the same risks, though it does warrant medical evaluation to rule out complications like fluid accumulation around the heart.
Acid Reflux and the Cough-Pain Cycle
Gastroesophageal reflux (GERD) can create a confusing overlap of symptoms. Acid irritating the esophagus causes a burning or pressure-like chest discomfort that many people describe as chest pain. At the same time, reflux triggers chronic coughing through two separate pathways: acid in the lower esophagus can stimulate a nerve reflex that provokes coughing, and tiny amounts of acid reaching the throat can irritate the airways directly.
The result is that GERD gives you both chest pain and a cough, and the coughing further aggravates the chest discomfort. If your pain tends to be worse after meals, when lying flat at night, or comes with a sour taste or throat irritation, reflux is worth considering as the source. It’s one of the most commonly overlooked causes of chronic cough.
Pulmonary Embolism: A Rare but Serious Cause
A blood clot in the lungs can cause sharp chest pain that worsens with breathing, coughing, or bending. The pain often comes on suddenly and is accompanied by shortness of breath that feels out of proportion to your activity level. Some people also cough up blood-tinged mucus. The clot blocks blood flow to a section of lung tissue, which can cause that tissue to die if not treated.
This is uncommon compared to the other causes on this list, but it’s the one that requires the most urgency. Risk factors include recent surgery, long periods of immobility (like a long flight or bed rest), use of hormonal birth control, and a personal or family history of blood clots.
How to Tell What’s Causing Your Pain
The character and location of the pain offer the strongest clues. Pain that’s sharp, stays in one spot, and gets worse when you press on your chest or twist your torso is most likely musculoskeletal. Pain that worsens specifically with breathing and coughing but not with pressing on the chest leans more toward pleurisy or pericarditis. A burning quality behind the breastbone, especially after eating, points toward reflux.
Cardiac pain from something like a heart attack is different from all of these. It’s typically a squeezing or pressure sensation in the center of the chest, often radiating to the jaw, arm, or back. It doesn’t usually change with breathing or body position, and it doesn’t get more painful when you press on the chest wall. Coughing isn’t a typical trigger for heart attack pain.
Certain symptoms alongside chest pain with coughing warrant immediate medical attention: a fever above 100.4°F, coughing up bloody mucus, sudden shortness of breath or difficulty breathing, and symptoms that have persisted for more than three weeks without improvement. Sudden onset of severe chest pain with breathlessness, especially if you have risk factors for blood clots, also calls for urgent evaluation.
Managing the Pain at Home
For musculoskeletal causes and mild pleurisy, anti-inflammatory pain relievers like ibuprofen reduce both pain and the underlying inflammation. Rest genuinely matters here. Find the body position that bothers you least and stick with it, especially during sleep. If you have an active cough from a cold or bronchitis, treating the cough itself with an appropriate suppressant can break the cycle of coughing and chest wall irritation.
Avoid smoking or exposure to irritants, which worsen both coughing and lung inflammation. If you suspect reflux, sleeping with your head elevated and avoiding large meals before bed can reduce both the cough and the chest discomfort. Even when you start feeling better, ease back into normal activity gradually. Pushing too hard too soon often brings the pain back.

