Why Does My Heart Hurt When I Breathe Out?

Sharp chest pain that hits when you breathe out is almost always caused by irritation or inflammation in the structures surrounding your heart and lungs, not by your heart itself. The most common culprits are inflamed rib cartilage, irritated lung lining, or a harmless nerve sensation called precordial catch syndrome. While the pain can feel alarming, breathing-related chest pain is more likely to come from the chest wall or lung lining than from a cardiac problem.

That said, a few serious conditions also cause pain tied to breathing. Understanding the differences can help you figure out what you’re dealing with and whether you need urgent care.

Costochondritis: The Most Common Cause

Costochondritis is inflammation of the cartilage connecting your ribs to your breastbone. It produces a sharp or aching pain, often on the left side of your chest, that worsens when you breathe deeply, cough, sneeze, or move your upper body. Because the cartilage shifts slightly with every breath, even exhaling can trigger it. The pain can radiate into your arms and shoulders, which is why many people mistake it for a heart problem.

The key distinction: costochondritis pain is reproducible. If you press on the area where your ribs meet your breastbone and the pain gets worse, that’s a strong clue. Heart attacks don’t get worse when you press on your chest. Costochondritis often shows up after heavy lifting, a new exercise routine, repetitive upper-body movement, or even a bad cough that lasted several days. It can also appear without an obvious cause.

For relief, ice the sore area for 10 to 20 minutes at a time during the first few days, switching to a low-heat heating pad after two or three days. Gentle stretching, held for 15 to 30 seconds just before the point of pain, three or four times a day, can speed recovery. Over-the-counter anti-inflammatory pain relievers help most people. The condition typically resolves on its own within a few weeks, though some cases linger longer.

Precordial Catch Syndrome

If you’re under 30 and experience sudden, needle-sharp pain near the left side of your chest that lasts anywhere from a few seconds to a couple of minutes, you’re likely dealing with precordial catch syndrome. Pediatricians estimate it accounts for 80% to 90% of chest pain cases in children and teens once chest injuries are ruled out. It’s most common in teenagers and young adults, particularly those with a lean or medium build, and it often shows up during growth spurts.

The pain typically strikes at rest or during a slouched posture, not during exercise. Breathing in or out makes it worse, and many people find that one slow, deep breath “pops” the sensation and ends the episode. It’s completely harmless, involves no underlying heart or lung problem, and most people outgrow it by their mid-20s, though occasional episodes can continue into adulthood.

Pleurisy: Inflamed Lung Lining

Your lungs are wrapped in two thin layers of tissue called the pleura, with a small amount of fluid between them that lets them glide smoothly as you breathe. When the outer layer becomes inflamed, a condition called pleurisy, those surfaces rub against each other instead of sliding. The result is a sharp, localized pain that worsens with any chest movement: breathing in, breathing out, coughing, sneezing, even laughing.

The outer pleural layer is laced with pain-sensing nerve fibers, while the inner layer covering the lungs has none. That’s why the pain feels so precise and surface-level rather than deep. If the inflammation sits along the lower part of the diaphragm, where the phrenic nerve runs, you might also feel referred pain in your neck or shoulder on the same side. A doctor can sometimes hear a “friction rub,” a rough, scratchy sound through a stethoscope, when the inflamed layers scrape together.

Pleurisy is most often triggered by a viral infection, but it can also follow pneumonia, a rib injury, or autoimmune conditions like lupus. Treatment depends on the underlying cause, but anti-inflammatory medications typically manage the pain while the inflammation resolves.

Pericarditis: Inflammation Around the Heart

Pericarditis is inflammation of the thin sac surrounding the heart. It produces sharp, stabbing chest pain that gets worse when you cough, swallow, breathe deeply, or lie flat. The hallmark sign is that sitting up and leaning forward eases the pain, something that doesn’t happen with a heart attack or most other causes. This positional relief occurs because leaning forward reduces contact between the inflamed sac and surrounding tissue.

Pericarditis is most often caused by a viral infection and tends to affect younger adults. It can feel frightening because the pain seems to come directly from the heart, but the condition is typically treatable and resolves within a few weeks. If you notice this specific pattern of sharp pain that improves with leaning forward, it’s worth getting evaluated promptly so treatment can begin early.

Pulmonary Embolism: The One to Watch For

A pulmonary embolism, a blood clot in the lungs, causes sharp chest pain that often worsens when you breathe in deeply, cough, or bend over. The pain can feel like a heart attack and may be accompanied by sudden shortness of breath, a rapid heartbeat, coughing up blood, or lightheadedness. This is a medical emergency.

Your risk is higher if you’ve recently been on a long flight or car ride, had surgery, been on bed rest, use hormonal birth control, or have a family history of blood clots. If chest pain with breathing comes on suddenly alongside any of these risk factors, or if you also feel short of breath or dizzy, call emergency services immediately.

How Doctors Figure Out the Cause

When you go in for chest pain that changes with breathing, the evaluation typically starts with your history: when the pain started, exactly where it is, what makes it better or worse, and whether you have other symptoms like fever, shortness of breath, or leg swelling. A physical exam will check whether pressing on the chest reproduces the pain (pointing toward a musculoskeletal cause) and whether abnormal sounds are present in the lungs or heart.

From there, testing depends on what the doctor suspects. An EKG checks for heart rhythm problems and signs of pericarditis. Blood work can detect markers of heart damage or inflammation. A chest X-ray can reveal fluid around the lungs, pneumonia, or other lung problems. If a blood clot is suspected, a specific blood test and CT scan of the lungs can confirm or rule it out. The 2021 guidelines from the American Heart Association emphasize that while most patients with chest pain won’t have a cardiac cause, the initial evaluation should focus on quickly identifying or ruling out life-threatening conditions first.

Managing Chest Wall Pain at Home

If your pain has been evaluated and traced to a musculoskeletal cause like costochondritis or a strained chest muscle, home care is straightforward. Rest the affected area and take a break from activities that worsen the pain. Ice for the first two to three days, then switch to heat. Slowly return to normal activity as the pain improves; if movement brings the pain back, that’s a signal to rest a bit longer.

One counterintuitive but important step: even though it hurts, try to cough or take one deep breath at least once every hour. Shallow breathing over days can increase your risk of developing pneumonia. Holding a pillow against your chest while you do this reduces the pain. Gentle stretching of the chest and upper back, held just before the point of pain for 15 to 30 seconds, repeated three or four times a day, can also help you recover faster.