Rib pain when you breathe usually comes from inflammation or irritation in the structures surrounding your lungs, not the lungs themselves. Your lungs don’t actually have pain receptors, but the tissue lining them, the muscles between your ribs, the cartilage connecting your ribs to your breastbone, and the nerves running along your rib cage all do. When any of these structures are inflamed, injured, or compressed, the expansion of your chest during a breath stretches them and triggers pain.
Most causes are not dangerous and resolve on their own, but a few are medical emergencies. Understanding the pattern, location, and accompanying symptoms of your pain helps narrow down what’s going on.
Why Breathing Makes It Hurt
Every breath you take expands your rib cage outward and downward. Muscles between your ribs contract, cartilage flexes, and the thin membrane lining your chest cavity (the pleura) slides against the membrane coating your lungs. If any of those tissues are inflamed, strained, or damaged, that normal movement becomes painful. The outer pleural lining is wired with the same sensory nerves that serve your rib cage and skin, so inflammation there produces sharp, localized pain that spikes every time your chest moves. The inner lining, right against the lung, has no pain receptors at all, which is why lung problems can sometimes progress silently until they reach the outer lining or chest wall.
Costochondritis: The Most Common Culprit
Costochondritis is inflammation of the cartilage that connects your ribs to your breastbone. It’s one of the most frequent reasons people show up worried about chest pain, and it’s harmless, though it can feel alarming. The pain often starts suddenly or builds gradually and can radiate across your chest, mimicking heart-related pain. The key distinguishing feature: the pain is reproducible by pressing on the spot where a rib meets the breastbone. A doctor will feel along your sternum for tenderness, move your rib cage, and ask you to swing your arms to see if any of those motions recreate the pain.
Costochondritis typically resolves on its own within a few weeks. Over-the-counter anti-inflammatory medications, gentle stretching, and heat or ice usually manage it well. In some cases it can signal an underlying inflammatory condition like ankylosing spondylitis, especially if it keeps coming back.
Pleurisy: Inflammation of the Lung Lining
Pleurisy occurs when the two thin layers of tissue separating your lungs from your chest wall become inflamed. The hallmark is sharp chest pain that worsens when you breathe in, cough, or sneeze. You might also notice the pain gets worse when you move your upper body, and it can spread to your shoulders or back. Many people with pleurisy instinctively take shallow breaths to avoid triggering the pain, which can lead to noticeable shortness of breath.
The causes range widely. Viral infections like the flu are a common trigger, as are bacterial pneumonia, autoimmune conditions like lupus or rheumatoid arthritis, and even a pulmonary embolism (blood clot in the lung). Some people develop fever or a cough alongside the chest pain, but not always. Because the underlying causes vary so much in severity, pleurisy that doesn’t improve within a few days or comes with fever, worsening shortness of breath, or a cough producing discolored mucus warrants medical evaluation.
Muscle Strains and Rib Injuries
The intercostal muscles between your ribs are responsible for expanding and contracting your rib cage with every breath. Straining them through forceful twisting, heavy lifting, intense coughing, or even an aggressive sneeze is surprisingly common. The result is a sore, achy spot on your rib cage that flares with deep breaths, laughing, or any trunk rotation. Unlike costochondritis, the tenderness is typically along the side of the rib cage rather than at the breastbone.
Rib fractures produce similar but usually more intense pain. Ribs are curved and somewhat flexible, so they absorb a fair amount of force before breaking. When they do fracture, it’s usually at the outer curve, the weakest point. You’ll feel pain at the injury site that worsens with any rib cage movement: breathing, coughing, laughing, even rolling over in bed. Sometimes you can feel or hear a grinding sensation (crepitus) at the fracture site. A nondisplaced rib fracture in an otherwise healthy person takes 6 to 12 weeks to heal. There’s no cast for a broken rib. Treatment centers on pain management, breathing exercises to prevent pneumonia, and gradually returning to normal activity.
A severe injury involving multiple fractures can create a condition called flail chest, where a section of the rib cage moves inward when you inhale instead of outward. This is a medical emergency and typically only occurs after significant trauma.
Nerve Pain Along the Ribs
Intercostal neuralgia is pain caused by injury or inflammation of the nerves that run along the underside of each rib. It feels different from muscular or cartilage pain. People describe it as sharp, burning, or stabbing, often in a band that wraps around one side of the chest or abdomen. Numbness or tingling may accompany the pain. It can be constant or come and go, and it worsens with breathing, coughing, sneezing, or jumping.
Common causes include previous chest surgery (the incision can damage a nerve), shingles, a pinched nerve from a spinal issue, or pregnancy. One particularly tricky scenario: shingles can cause burning rib pain for several days before any rash appears. The pain typically follows a single stripe around one side of the body, and the rash eventually shows up in that same distribution. If you’re over 50 and develop unexplained burning pain on one side of your rib cage, shingles is worth considering even if you don’t see a rash yet.
Serious Causes That Need Immediate Attention
Most rib pain with breathing is not an emergency, but two conditions deserve quick recognition.
A pulmonary embolism, a blood clot that travels to the lungs, causes sharp chest pain that worsens with deep breaths, bending, or leaning over. It can feel like a heart attack. The pain often comes on suddenly and is accompanied by unexplained shortness of breath, a rapid heart rate, or lightheadedness. Risk factors include recent surgery, prolonged immobility (long flights, bed rest), birth control pills, and a history of blood clots. If you have sharp breathing-related chest pain with sudden shortness of breath or faintness, call emergency services. One in 300 people with chest pain who drive themselves to the emergency department has a cardiac arrest on the way.
A pneumothorax (collapsed lung) happens when air leaks into the space between your lung and chest wall, causing the lung to partially or fully deflate. It produces sudden, sharp chest pain on one side along with shortness of breath. It can occur after chest trauma, but in tall, thin young adults it sometimes happens spontaneously.
How to Read Your Symptoms
The pattern and context of your pain offers strong clues about the cause. Pain that you can reproduce by pressing a specific spot on your chest, especially near the breastbone, points toward costochondritis. Pain that wraps around one side in a band pattern suggests nerve involvement. Dull, achy pain that worsens with trunk movement and started after physical exertion is likely a muscle strain. Sharp pain that came on suddenly with shortness of breath, especially if you have risk factors for blood clots, is the scenario that demands urgent attention.
Pain that’s been present for a few days, stays in one area, gets a little better with rest, and isn’t accompanied by fever, shortness of breath, or lightheadedness is usually safe to monitor and treat with over-the-counter pain relief and rest. New chest pain that is sudden, severe, or accompanied by difficulty breathing, fainting, or fever represents a different situation entirely and calls for prompt medical evaluation. Sharp, breathing-related chest pain is actually less likely to be heart-related than dull, pressure-like chest pain, but the overlap between serious and benign causes is real enough that unexplained or worsening symptoms shouldn’t be brushed off.