Rib pain most often comes from the muscles between your ribs or the cartilage connecting your ribs to your breastbone, not from the ribs themselves. These soft-tissue causes account for the majority of cases and typically resolve on their own within a few days to several weeks. Less commonly, rib pain signals a fracture, inflammation around the lungs, or a condition affecting the lower ribs. The key to figuring out what’s going on is paying attention to exactly where it hurts, what makes it worse, and whether you have any other symptoms.
Muscle Strain Between the Ribs
The muscles that run between each rib, called intercostal muscles, are some of the most commonly strained muscles in the torso. They work every time you breathe, twist, or reach, which means they’re easy to overuse and slow to rest. A strain here produces a sharp or pulling pain along the side of the rib cage that gets noticeably worse when you cough, sneeze, or take a deep breath.
These strains often come from movements people don’t think of as risky: twisting while lifting weights, reaching overhead to paint a ceiling, repetitive motions in rowing or swimming, or even forceful swings in golf or tennis. Mild strains heal within a few days. Moderate strains, where more muscle fibers are torn, take 3 to 7 weeks. A complete tear can take longer, though most rib-area muscle injuries resolve within about 6 weeks. During recovery, the pain tends to flare with any bending or twisting of the upper body.
Costochondritis: Pain Near the Breastbone
If the pain is concentrated in the front of your chest, right where your ribs meet the breastbone, the likely culprit is costochondritis. This is inflammation of the cartilage at that junction, and it can feel alarmingly like heart-related chest pain, which is why many people with costochondritis end up in the emergency room. The difference is that pressing on the sore spot reproduces the pain, and the discomfort typically sharpens with certain movements or deep breathing.
The exact cause is often unclear. It can follow a bout of heavy coughing, a chest injury, unusual physical exertion, or an upper respiratory illness. Sometimes it appears with no obvious trigger at all. Costochondritis is not dangerous, but it can linger for weeks and occasionally recurs. Over-the-counter anti-inflammatory pain relievers and gentle stretching are the standard approach to managing it.
Rib Fractures and Stress Fractures
A broken rib causes intense, localized pain that worsens with every breath. Falls, direct blows to the chest, and car accidents are the obvious causes, but ribs can also fracture from surprisingly little force. Prolonged, forceful coughing is a well-documented trigger: in one study, 85% of cough-related rib fractures occurred in people who had been coughing for three weeks or longer. Osteoporosis makes this even more likely, since weakened bone can crack under stresses that healthy ribs would absorb easily.
Standard chest X-rays miss a significant number of rib fractures. Their sensitivity has been reported as low as 38% to 50%, meaning roughly half of all rib fractures won’t show up on the initial film. CT scans are far more reliable, catching the vast majority of fractures. Ultrasound is also emerging as a useful bedside tool that may outperform plain X-rays. So if your X-ray comes back normal but the pain is severe and pinpointed, a fracture hasn’t necessarily been ruled out.
Most isolated rib fractures heal on their own in about six weeks. The main treatment is pain control so you can keep breathing deeply enough to prevent pneumonia, which is the biggest complication of rib fractures. Splinting or wrapping the chest is no longer recommended because restricting breathing creates more problems than it solves.
Pleurisy: Pain That Changes With Breathing
Pleurisy is inflammation of the thin tissue lining your lungs and the inside of your chest wall. When these two layers become inflamed, they rub against each other like sandpaper every time your lungs expand. This produces a sharp, stabbing pain that worsens when you breathe in, cough, or sneeze, and notably lessens or stops when you hold your breath. That pause-and-relief pattern is the hallmark of pleuritic pain.
The pain can also spread to your shoulders or back and worsen with upper body movement. Pleurisy is usually caused by a viral infection, but it can also result from bacterial pneumonia, a blood clot in the lung, or autoimmune conditions. Because some of those underlying causes are serious, pleurisy-type pain warrants medical evaluation, especially if it comes with fever, persistent shortness of breath, or a cough that produces discolored mucus.
Slipping Rib Syndrome
This underdiagnosed condition affects the three lowest “floating” ribs (ribs eight through ten), which are connected to the rib cage by cartilage rather than directly to the breastbone. When that cartilage loosens or tears, the rib tip can slip out of position and hook under the rib above it, causing a sharp pain in the lower chest or upper abdomen. You might hear or feel a popping or clicking sensation when it happens.
The pain often comes and goes, triggered by certain postures, bending, or reaching. It’s frequently misdiagnosed as gallbladder trouble, a pulled muscle, or unexplained abdominal pain because of where it’s felt. A doctor familiar with the condition can check for it using a simple physical exam called the hooking maneuver: they curl their fingers under the lower edge of your rib cage and gently lift. If this reproduces your pain (and sometimes the pop), slipping rib syndrome is the likely diagnosis. Treatment ranges from avoiding aggravating movements and nerve blocks to, in persistent cases, surgical stabilization.
How to Tell What’s Causing Your Pain
Location and triggers give you the best clues. Pain at the front of the chest near the breastbone that’s tender to the touch points toward costochondritis. Pain along the side that worsens with twisting or reaching suggests a muscle strain, especially if you recently changed your exercise routine or did repetitive overhead work. A very specific, intense sore spot after a fall, blow, or prolonged cough raises the possibility of a fracture. Sharp pain that tracks perfectly with your breathing cycle and eases when you hold your breath is characteristic of pleurisy. Lower rib pain with clicking or popping fits slipping rib syndrome.
Some patterns need prompt medical attention. Rib pain after a serious accident, shortness of breath that’s getting worse, pain in the abdomen or shoulder following a chest injury, or coughing up blood all suggest a rib fracture may have damaged a nearby organ like the lung, liver, or spleen. Rib pain paired with sudden severe breathlessness, dizziness, or pain that radiates into the jaw or left arm should be treated as a potential cardiac or vascular emergency.
Managing Rib Pain at Home
For muscle strains and costochondritis, the basics are effective: over-the-counter anti-inflammatory medication, ice for the first 48 to 72 hours, and avoiding the specific movement that triggered the pain. The hardest part of recovery is that you can’t fully rest your ribs since they move every time you breathe. Sleeping on the unaffected side or propped up slightly with pillows can reduce overnight discomfort.
Gentle, controlled breathing exercises help prevent the shallow breathing habit that rib pain encourages. Taking only small, cautious breaths might feel protective, but it can lead to mucus buildup in the lungs and, eventually, infection. Holding a pillow firmly against the sore area when you cough or sneeze provides a surprising amount of relief by bracing the ribs and reducing their movement during the sudden pressure change. If pain isn’t improving after two weeks, or is getting worse rather than better, that’s a reasonable point to get imaging and a closer evaluation.