Why Does It Hurt to Breathe in My Chest?

Sharp chest pain when you breathe in is usually caused by inflammation or irritation of the tissues in or around your lungs. The medical term for this type of pain is “pleuritic chest pain,” and it has a wide range of causes, from a pulled muscle between your ribs to a blood clot in your lung. Respiratory problems account for about 36% of chest pain cases seen in emergency departments, followed by musculoskeletal issues (22%) and cardiovascular causes (21%).

Why Breathing Triggers the Pain

Your lungs are wrapped in a two-layered membrane called the pleura. The inner layer, which sits directly on the lungs, has no pain receptors. But the outer layer, pressed against your rib cage, is wired with nerve fibers from the same nerves that run between your ribs. When anything inflames or irritates that outer layer, every breath expands your rib cage and stretches those nerves. The result is a sharp, stabbing pain that gets worse when you inhale deeply, cough, or twist your torso.

This same basic mechanism applies whether the inflammation comes from an infection, an injury, or a blood clot. The location and intensity of the pain often correspond to whichever section of that outer membrane is irritated, which is why the pain sometimes feels like it’s in your side, your back, or directly behind your breastbone.

Musculoskeletal Causes

The most common and least dangerous explanation is a problem with the muscles, cartilage, or joints of your chest wall. Costochondritis, an inflammation of the cartilage connecting your ribs to your breastbone, is one of the most frequent culprits. It produces a sharp or aching pain right where one or two ribs meet the sternum, and you can usually reproduce it by pressing on the sore spot. It often develops after heavy lifting, a respiratory infection with lots of coughing, or no obvious trigger at all.

A strained intercostal muscle (the small muscles between your ribs) causes similar pain. You’ll notice it most when you take a deep breath, twist, or reach overhead. These injuries typically heal on their own within a few weeks. Other chest wall conditions include slipping rib syndrome, which causes pain along the lower chest or upper abdomen, and painful xiphoid syndrome, a tenderness at the small piece of cartilage at the bottom of your breastbone.

Lung Infections

Pneumonia and bronchitis both cause chest pain when breathing, but they feel different. Bronchitis inflames the airways leading to your lungs, producing a persistent cough, mucus, and a raw soreness in the center of your chest that worsens with each coughing fit. Pneumonia goes deeper, inflaming the tiny air sacs in the lungs themselves. It causes sharper, more localized pain, usually on one side, along with fever, difficulty breathing, and a cough that may bring up colored mucus.

Pneumonia is one of the most common diagnoses in people who show up to the emergency department with chest pain, accounting for roughly 24% of cases in one study. When a lung infection spreads to the pleural membrane, it causes pleurisy on top of the underlying infection, making every breath noticeably painful.

Blood Clots in the Lung

A pulmonary embolism, a blood clot that travels to the lungs, is the most common serious cause of sharp chest pain with breathing. It’s found in 5% to 21% of patients who visit an emergency department with this type of pain. The pain is often sudden, sharp, and felt when you breathe in deeply. It can stop you from being able to take a full breath.

Other symptoms that point to a blood clot include sudden shortness of breath even at rest, a rapid or irregular heartbeat, clammy or bluish skin, and lightheadedness or fainting. Risk factors include recent surgery, long periods of immobility (like a long flight), use of hormonal birth control, and a personal or family history of blood clots. This is a medical emergency that requires immediate treatment.

Heart-Related Causes

Pericarditis is an inflammation of the sac surrounding your heart. It produces a sharp chest pain that gets worse when you lie down or breathe deeply, and improves when you sit up and lean forward. That positional pattern is one of the clearest ways to distinguish it from other causes. Pericarditis often follows a viral infection and is more common in younger adults.

Heart attacks can also cause chest pain, though the pain typically feels different: more like pressure, squeezing, or fullness rather than a sharp stab with each breath. Heart attack pain often spreads to the arms, neck, jaw, back, or stomach. It can last more than a few minutes, or come and go. If chest pain is accompanied by a cold sweat, nausea, unusual fatigue, or lightheadedness, call 911.

Collapsed Lung

A pneumothorax, or collapsed lung, causes sudden chest pain and shortness of breath that come on without warning. It happens when air leaks into the space between the lung and chest wall, causing part or all of the lung to deflate. It’s more common in tall, thin young men and in people with underlying lung disease, but it can happen to anyone. The pain is typically sharp, one-sided, and worse with breathing. A small collapse may resolve on its own with monitoring, while a larger one requires a procedure to remove the trapped air.

Acid Reflux and Esophageal Causes

Your esophagus runs right alongside your heart inside your chest cavity, and the same sensory nerves carry signals from both organs to your brain. This makes it genuinely difficult to tell whether chest pain is coming from your heart, your lungs, or your digestive tract. Chronic acid reflux (GERD) is actually the most common cause of noncardiac chest pain overall. When stomach acid backwashes into your esophagus, it burns the lining and produces pain you feel in your chest.

Reflux pain tends to be a burning sensation rather than a sharp stab, and it often worsens after eating, when lying flat, or when bending over. Esophageal muscle spasms can cause even more intense, squeezing chest pain that closely mimics a heart attack. If your chest pain comes with a sour taste, frequent burping, or a feeling of food stuck in your throat, reflux is a likely contributor.

How Doctors Figure Out the Cause

Because the list of possible causes ranges from harmless to life-threatening, doctors follow a specific sequence to rule out the most dangerous possibilities first. The evaluation typically starts with your history and a physical exam. If pressing on your chest reproduces the exact pain, a musculoskeletal cause like costochondritis is likely, though doctors are careful here because heart-related chest pain can occasionally feel reproducible on palpation too.

Most people with unexplained sharp chest pain when breathing will get a chest X-ray, which can reveal pneumonia, a collapsed lung, or fluid around the lungs. An electrocardiogram checks for heart problems like pericarditis or a heart attack, and blood tests can measure markers of heart damage or inflammation. If a blood clot is suspected, a specific blood test (called a D-dimer) helps determine whether a CT scan of the lung blood vessels is needed. The vast majority of people get a clear answer from this initial workup.

Symptoms That Need Emergency Care

Chest pain with breathing has many benign explanations, but certain combinations of symptoms signal a true emergency. Call 911 or go to the nearest emergency room if your chest pain comes with any of the following:

  • Sudden, severe shortness of breath that doesn’t improve with rest
  • Pain spreading to your arm, jaw, neck, or back
  • Rapid or irregular heartbeat
  • Lightheadedness or fainting
  • Coughing up blood
  • Bluish or clammy skin
  • Cold sweat, nausea, or unusual fatigue

Chest pain that came on suddenly, is getting worse, or occurred after recent surgery or prolonged immobility also warrants urgent evaluation. If the pain is mild, reproducible by pressing on your chest, and not accompanied by any of these warning signs, it’s more likely musculoskeletal, but a visit to your doctor can confirm that and put your mind at ease.