Why Does My Chest Hurt When I Exhale?

Chest pain that flares during exhalation almost always traces back to irritation of pain-sensitive tissue in or around the lungs, the chest wall, or the heart’s outer lining. Doctors call this type of breathing-related pain “pleuritic” because the pleura, a thin double-layered membrane surrounding each lung, is its most common source. But the list of potential causes runs longer than most people expect, from a pulled muscle between the ribs to a blood clot in a pulmonary artery, and figuring out which one applies to you depends on details like how the pain started, what else you feel alongside it, and how long it has lasted.

How Pain-Sensitive Tissue in Your Chest Creates the Sensation

Your lungs themselves have no pain nerves. Neither does the inner layer of the pleura (the visceral pleura) that sits directly on the lung surface. This means that even a significant lung problem, like a growing tumor or a patch of pneumonia, will not hurt until it reaches or irritates nearby structures that do have pain fibers. The outer layer of the pleura (the parietal pleura), however, is richly supplied with sensory nerves from the intercostal nerves that run between your ribs. When something inflames or stretches that outer layer, you feel sharp, well-localized pain in the area of your chest wall closest to the irritation.1Mayo Clinic Proceedings. Mechanisms of Thoracic Pain

This is why pleuritic chest pain behaves the way it does. Because the parietal pleura stretches and slides against the lung surface every time you breathe, any inflammation there turns each breath into a source of friction. Most people notice the pain more sharply during one phase of breathing than the other, and exhaling can hurt just as much as inhaling depending on the exact location and cause of irritation. Taking a deep breath, coughing, laughing, or twisting your torso tends to make it worse, because all of these movements increase the mechanical stress on inflamed pleural tissue.

The diaphragm adds another wrinkle. Its outer edges are supplied by the same lower intercostal nerves that serve the chest wall, so irritation along the diaphragm’s rim produces pain in the lower chest or upper abdomen.2Mayo Clinic Proceedings. Mechanisms of Pulmonary Pain That is why some people with pleuritic pain feel it surprisingly low, even near their belly button, which can lead them to suspect a stomach problem rather than a lung or pleural one.

Chest Wall and Rib Problems

The single most common cause of chest pain in people who visit a doctor worried about their heart turns out to be musculoskeletal. Costochondritis, an inflammation of the cartilage connecting the ribs to the breastbone, produces tenderness you can reproduce by pressing on the affected spot. The hallmark is localized soreness at the front of the chest that gets worse with movement and breathing.3ScienceDirect. Costosternal Syndrome Exhaling forcefully, twisting, or even reaching overhead can aggravate it.

Muscle strain works similarly. The intercostal muscles between each pair of ribs contract actively during exhalation, especially during forced or heavy breathing. If you have strained one of these muscles through exercise, repeated coughing, or awkward movement, exhaling recreates the very motion that damaged the tissue. The pain is usually one-sided, and you can often pinpoint the sore spot with a finger. Unlike pleuritic pain from the lungs, musculoskeletal chest pain tends not to come with fever, shortness of breath, or a cough producing discolored mucus.

A less recognized rib problem is slipping rib syndrome, in which a lower rib shifts out of its normal position and pinches the intercostal nerve beneath the rib above it. The displaced cartilage creates a clicking or popping sensation along with sharp, sometimes disabling pain in the lower chest or upper abdomen. The pain can worsen with any breathing motion, and it is frequently misdiagnosed as a gastrointestinal issue or muscle strain because imaging studies often look normal.4PubMed Central. A Comprehensive Review of Slipping Rib Syndrome: Treatment and Management

Lung Conditions That Hurt When You Breathe

Pleurisy, an inflammation of the pleura itself, is the classic lung-related cause of pain with breathing. It usually results from a viral or bacterial infection, though it can also accompany autoimmune disease, certain medications, or chest trauma. The inflamed pleural surfaces rub against each other with every breath cycle, producing a stabbing or catching sensation. A doctor listening with a stethoscope sometimes hears a “pleural rub,” a scratchy sound synchronous with breathing, that confirms the diagnosis.

Pneumonia causes pleuritic pain when infection in the lung tissue extends to the pleural surface. You would typically also have a fever, productive cough, and feel generally unwell. The pain tends to localize to one side of the chest, matching whichever lung is affected.

Pneumothorax, a collapsed lung, is a more dramatic cause. Air leaks into the space between the lung and the chest wall, increasing pressure and partially or fully deflating the lung. The pain is sudden, sharp, and usually one-sided, often accompanied by noticeable shortness of breath.5PubMed Central. Massive Spontaneous Pneumothorax Interestingly, the pain from a pneumothorax does not seem to come simply from the presence of free air in the pleural space. Research suggests it results from irritation of the parietal pleura by inflammatory material leaking from the ruptured bleb that allowed the air to escape in the first place.6PubMed. Hypothesis: chest pain in primary spontaneous pneumothorax Tall, thin young men and people who smoke are at higher risk, and cannabis use has also been linked to spontaneous cases.5PubMed Central. Massive Spontaneous Pneumothorax

A rarer but related condition is spontaneous pneumomediastinum, in which air leaks not into the pleural space but into the mediastinum, the central compartment of the chest that houses the heart and major blood vessels. Forceful coughing, vomiting, or vigorous exercise can trigger it, and the result is chest pain, sometimes with a crackling sensation under the skin of the neck or chest. It typically affects young adults and resolves on its own, though it requires evaluation to rule out more serious tears.7PubMed Central. Spontaneous Pneumomediastinum: A Rare Cause of Chest Pain

Heart-Related Causes

Not all breathing-related chest pain comes from the lungs or chest wall. Pericarditis, an inflammation of the sac surrounding the heart, produces sharp pain that often worsens with deep breathing and lying flat, and improves when you lean forward. Doctors diagnose it based on the combination of characteristic chest pain, a rubbing sound heard through the stethoscope, specific changes on an electrocardiogram, and sometimes fluid visible on an echocardiogram.8JAMA. Evaluation and Treatment of Pericarditis: A Systematic Review Most cases are triggered by a viral infection and resolve within a few weeks with anti-inflammatory medication, but pericarditis can recur and occasionally signals a more serious underlying condition.

The pain from pericarditis is easy to confuse with pleurisy because both are sharp, both change with breathing, and both can feel worse when you cough or take a deep breath. The leaning-forward trick is the most reliable bedside clue: pleural pain does not change much with body position, while pericardial pain often eases distinctly when you sit up and lean forward because this position lifts the inflamed pericardium away from surrounding structures.

Blood Clots in the Lungs

A pulmonary embolism, a blood clot that travels to the lungs, is the cause of pleuritic chest pain that doctors worry about most because it can be fatal if missed. The clot blocks blood flow to a section of lung tissue. When the blocked area is close enough to the pleural surface, the resulting tissue damage irritates the parietal pleura and produces sharp, breathing-related pain. About a third of people with acute pulmonary embolism develop pulmonary infarction, where the deprived lung tissue actually dies.9Thrombosis Research. Pulmonary infarction in acute pulmonary embolism

Alongside the pleuritic chest pain, pulmonary embolism often produces sudden shortness of breath, a rapid heart rate, and sometimes coughing up blood-tinged sputum. Risk factors include recent surgery, prolonged immobility (such as a long flight or hospital stay), use of hormonal contraceptives, and a personal or family history of blood clots. This is one of the situations where chest pain that worsens with exhaling warrants an emergency room visit rather than a wait-and-see approach.

Asthma and Airway-Related Pain

Asthma does not typically cause the sharp, knife-like pleuritic pain described above, but it can produce a different kind of chest discomfort tied to breathing. During an asthma flare, the airways narrow, and air gets trapped in the lungs because it cannot escape efficiently on exhalation. This gas trapping increases pressure inside the chest and stretches the lung tissue, producing a tight, squeezing sensation that people often describe as chest pain or chest tightness, especially while breathing out.10Critical Care. Clinical review: Mechanical ventilation in severe asthma

The sensation is more of a constriction than a stab. If your chest pain during exhalation is accompanied by wheezing, a dry cough, and difficulty getting air out rather than in, asthma or another airway-narrowing condition is a likely explanation. People with known asthma who notice new or worsening chest tightness should reassess whether their condition is adequately controlled, as worsening air trapping signals increasing obstruction.

Anxiety and Panic Attacks

Chest pain is one of the most frightening symptoms of a panic attack, and the fear it creates can feed the attack itself in a vicious loop. The mechanisms are not purely psychological. Panic attacks can produce chest pain through both cardiac and noncardiac pathways, and sometimes more than one of those pathways is active at once in the same person.11PubMed Central. Panic Disorder and Chest Pain: Mechanisms, Morbidity, and Management Hyperventilation during panic lowers carbon dioxide levels in the blood, which can cause coronary artery spasm and real changes in chest muscle tension. The result is genuine pain, not “all in your head,” even when the underlying trigger is emotional.

People with panic-related chest pain often describe it as sharp or pressing, and it frequently worsens with rapid or deep breathing. It can be hard to distinguish from cardiac or pleuritic pain in the moment, which is why emergency departments see many panic-attack patients. The distinguishing features are that panic pain tends to peak quickly and fade within minutes to an hour, it often comes with tingling in the hands and feet, lightheadedness, and a sense of doom, and cardiac testing afterward is normal. That said, the overlap between panic disorder and real cardiac or pulmonary problems is large enough that a first episode of unexplained chest pain still warrants medical evaluation.

Autoimmune Diseases That Target the Pleura

Chronic autoimmune conditions like lupus and rheumatoid arthritis can cause recurring pleuritic chest pain by inflaming the pleural lining. In lupus, the lungs and pleura are common targets. Lupus can produce pleurisy and pleural effusion (fluid buildup between the pleural layers), interstitial lung disease, inflammation of the lung tissue itself, and even a rare condition called shrinking lung syndrome in which the lung volumes progressively decrease.12PubMed Central. Lupus and the Lungs: The Assessment and Management of Pulmonary Manifestations of Systemic Lupus Erythematosus

Pleural involvement is surprisingly common in these diseases. Rheumatoid arthritis produces pleural pathology in roughly 5 to 20 percent of cases, while lupus does so in an estimated 17 to 60 percent.13Breathe. Clinical perspective and practices on pleural effusions in chronic systemic inflammatory diseases If you have a known autoimmune condition and develop new breathing-related chest pain, the connection is worth raising with your rheumatologist rather than assuming the pain is just a pulled muscle. Treatment typically focuses on controlling the underlying inflammation, and early management prevents pleural scarring that can restrict lung expansion permanently.

Chest Pain After COVID-19

Among the lingering symptoms people report after a COVID-19 infection, chest pain is one of the most common reasons for seeking medical attention. The SARS-CoV-2 virus has an affinity for multiple organs in the chest, including the heart, lungs, major blood vessels, lymph nodes, and peripheral nerves, which means post-COVID chest pain can arise from several different mechanisms at once.14PubMed Central. Evaluating chest pain in patients with post COVID conditions permission to think outside of the box Some people develop pericarditis weeks after the acute infection. Others have persistent pleuritic irritation, costochondritis from prolonged coughing during the illness, or small blood vessel dysfunction that produces atypical chest pain patterns.

The challenge with post-COVID chest pain is that it does not follow the tidy diagnostic categories that work for most other causes. A person might have residual lung inflammation and a sensitized chest wall and heightened anxiety all contributing to a pain that defies a single label. Clinicians evaluating post-COVID chest pain are encouraged to consider a broader range of possibilities than they normally would, because the virus leaves fingerprints on so many thoracic structures simultaneously.

When to Treat It at Home and When to Go to the ER

Most chest pain that worsens with breathing turns out to be musculoskeletal or related to a mild viral illness, and it resolves on its own or with over-the-counter anti-inflammatory medication within days to a couple of weeks. You can generally watch and wait if the pain is mild, you can point to a specific tender spot on your chest wall, you have no fever or shortness of breath, and you recently did something physically strenuous that could have strained a muscle.

Seek prompt medical evaluation if your pain comes with any of the following:

  • Sudden onset: Pain that appeared abruptly, especially if combined with shortness of breath, raises concern for a pneumothorax or pulmonary embolism.
  • Shortness of breath at rest: Any difficulty breathing that does not improve with sitting still warrants urgent assessment.
  • Fever and productive cough: This combination suggests pneumonia or another infection that may need antibiotics.
  • Coughing up blood: Even small amounts of blood-tinged sputum deserve same-day evaluation.
  • Leg swelling or recent immobility: A swollen, painful calf alongside new chest pain raises the suspicion for a deep vein thrombosis that has sent a clot to the lungs.
  • Known autoimmune disease: New pleuritic pain in someone with lupus or rheumatoid arthritis should be evaluated to rule out a disease flare affecting the pleura.

In children, the picture shifts somewhat. Organic causes of chest pain in children are more likely when the pain is acute rather than long-standing, disrupts sleep, or appears alongside fever or abnormal findings on examination. A child reporting sudden chest pain with worsening shortness of breath should be evaluated quickly for a possible pneumothorax or pneumomediastinum.15PubMed. Acute chest pain

What Doctors Do to Figure It Out

When you show up with pleuritic chest pain, a doctor’s first job is to separate the dangerous causes from the benign ones. The initial assessment relies heavily on your story: when the pain started, whether it was sudden or gradual, what makes it better or worse, and what other symptoms you have noticed. A physical exam checks for tenderness on pressing the chest wall (pointing toward a musculoskeletal cause), abnormal breath sounds (pointing toward pneumonia or effusion), and a friction rub heard through the stethoscope (pointing toward pleurisy or pericarditis).

From there, testing is guided by what the history and exam suggest. A chest X-ray can reveal pneumonia, a collapsed lung, or a pleural effusion. If a pulmonary embolism is a concern, a blood test called D-dimer helps screen, and a CT scan of the chest with contrast dye can visualize a clot directly. An electrocardiogram checks for pericarditis or other cardiac causes. Blood work looking for inflammatory markers and, in the right clinical context, autoimmune antibodies rounds out the picture. Many people with musculoskeletal chest pain will have entirely normal results on all of these tests, which is itself reassuring and informative.

One thing worth knowing: doctors do not always find a definitive answer. In a substantial number of people evaluated for pleuritic chest pain, no clear cause is identified after a reasonable workup. This is frustrating but not uncommon, and it usually means the cause is benign and self-limiting. If the pain persists or recurs, a follow-up visit allows reassessment with fresh eyes and sometimes catches something that was not apparent at first presentation.