Why Do My Back Ribs Hurt? Muscles, Nerves & More

Pain in your back ribs most often comes from strained muscles, irritated joints where the ribs meet the spine, or nerve irritation, though it can sometimes signal an issue with a nearby organ like the kidneys or gallbladder. The cause usually depends on where exactly the pain sits, what makes it worse, and whether it came on suddenly or built up over time.

Muscle Strain Between the Ribs

The most common and least worrisome cause of back rib pain is a strained intercostal muscle, the small muscles that run between each rib. These strains produce a sharp pain in the upper back or rib cage that gets noticeably worse when you cough, sneeze, or take a deep breath. The area will feel tender to the touch, and you may notice stiffness or tension that limits how freely you can twist or bend.

These strains happen from repetitive overhead work (like painting a ceiling), twisting motions in sports like golf or tennis, heavy lifting, or a direct blow to the rib cage from a fall or collision. Sometimes there’s no single event you can point to. Gradual, repetitive stress can irritate these muscles over days or weeks, with pain slowly worsening rather than appearing all at once. Most intercostal strains heal with rest and avoiding the movements that triggered them, though they can linger for several weeks if you keep aggravating the area.

Joint Irritation Where Ribs Meet the Spine

Each rib connects to your thoracic spine through a small joint called a costotransverse joint. These joints allow the subtle rib movement that happens every time you breathe, twist, or reach. When they become inflamed, they produce a stinging pain in the space between the shoulder blade and spine that can be easy to mistake for a pure back problem.

Repeated movements of the shoulder (especially reaching overhead or rotating outward), frequent head turning, and twisting through the torso can all inflame these joints through overuse. A compression injury, like the force of a seatbelt during a car collision, is another common trigger. The pain tends to be localized to one side, worsens with trunk rotation, and may feel like it’s deep under the shoulder blade rather than on the surface.

Nerve Pain Along the Ribs

Intercostal neuralgia is nerve pain that follows the path of a rib, producing a sharp, burning, or stabbing sensation that wraps in a band from your back around to your chest or abdomen. It feels distinctly different from muscle pain. Instead of a dull ache or stiffness, you may notice burning, tingling, or numbness along a strip of skin. Even light touch on the affected area can feel disproportionately painful.

The most well-documented causes are shingles (a reactivation of the chickenpox virus that targets a nerve) and prior chest surgery. But nerve irritation can also result from a rib fracture, pregnancy, obesity, or chronic forceful coughing, all of which stretch or compress the intercostal nerves. One useful physical sign: if bending your torso toward the painful side makes it worse, that points toward nerve or rib compression. If bending away from the painful side hurts more, the pain may be coming from the lung lining instead.

Slipping Rib Syndrome

If you feel a clicking or popping sensation along your lower ribs, slipping rib syndrome is worth considering. This happens when the fibrous attachments holding the lower ribs (typically the 8th, 9th, or 10th) loosen or rupture, allowing the cartilage tip to slip and irritate the intercostal nerve beneath it. The result is a sharp, radiating pain that’s usually on one side and often spreads to the upper abdomen or back.

The pain flares with movement, especially bending forward, lifting, or rotating the trunk. It affects people of all ages, from adolescents to those in their 80s, and is slightly more common in women. Diagnosis is straightforward: a clinician hooks their fingers under the lower rib margin and pulls upward. If this reproduces the familiar pain, slipping rib syndrome is the likely cause. Many cases improve simply by avoiding the movements that trigger episodes, though nerve blocks or, rarely, surgical correction may be needed for persistent cases.

Organ-Related Causes

Not all back rib pain starts in the ribs themselves. Several organs can refer pain to the posterior rib cage, and these causes are important to recognize because they need different treatment.

Kidney Pain

Your kidneys sit behind your stomach, tucked under the lower ribs near your spine. Kidney pain from an infection or stone is felt in the flank, the area below your ribs on one or both sides of the spine. It tends to feel deeper than muscle pain and doesn’t change much with movement or position. If the pain comes with fever, painful urination, or blood in your urine, the kidneys are a strong suspect.

Gallbladder Pain

Gallbladder problems typically start as a severe gripping pain in the upper right abdomen, but the pain frequently radiates around the lower ribs or straight through to the back. It can also be referred to the lower tip of the right shoulder blade or the right lower ribs posteriorly. This pain often follows a fatty meal and can last anywhere from 30 minutes to several hours.

Pleurisy

Pleurisy is inflammation of the thin lining around the lungs. It causes a sharp chest pain that worsens specifically when you breathe in and out, and it can spread to the shoulders or back. The hallmark feature is that the pain lessens or stops entirely when you hold your breath. That breathing-dependent pattern distinguishes it from most musculoskeletal causes.

Rib Fractures

Rib fractures are the most common thoracic injury after even minor blunt trauma. A fall, a direct hit during sports, or even a severe coughing spell (especially in people with osteoporosis) can crack a rib. The pain is sharp, localized to the fracture site, and intensifies with breathing, coughing, or pressing on the area.

Isolated rib fractures are generally treated conservatively with pain management and rest. A standard chest X-ray is usually sufficient for diagnosis, and further imaging like a CT scan is typically reserved for cases where a pathologic fracture (from a tumor or bone disease) is suspected. Most uncomplicated rib fractures heal in six to eight weeks.

How to Tell These Apart

The pattern of your pain offers the best clues. Pain that worsens with twisting, reaching, or pressing on the area is most likely muscular or joint-related. Pain that follows a band-like path around the rib cage with burning or tingling suggests nerve involvement. Deep flank pain that doesn’t change with movement points toward the kidneys. Pain tied closely to breathing in and out, especially if it stops when you hold your breath, suggests the lung lining.

A few patterns warrant urgent attention. Worsening shortness of breath, coughing up blood, a visible change in the shape of the rib area (like a new lump or dent), or feeling generally unwell with fever alongside rib pain all call for prompt evaluation. If your rib pain follows an injury and prevents you from taking a deep breath, or if you develop new abdominal or shoulder pain after a chest injury, seek care within the same day. For pain that lingers beyond six weeks without improvement, a medical evaluation can help identify causes that aren’t obvious from symptoms alone.