Rib cage pain is most often caused by something musculoskeletal, meaning the bones, cartilage, or muscles around your ribs are irritated, strained, or inflamed. The most common culprit is costochondritis, an inflammation of the cartilage connecting your ribs to your breastbone. But rib cage pain can also signal problems with nearby organs like the gallbladder, spleen, kidneys, or heart, so the location and quality of the pain matter a lot in narrowing down what’s going on.
Costochondritis: The Most Common Cause
Costochondritis is inflammation where the rib cartilage meets the breastbone. It typically causes pain on both sides of the chest, right along the center, and it gets worse when you take a deep breath, cough, or stretch. The area feels tender when you press on it, but you won’t usually see redness or swelling. There’s often no obvious trigger, though it can follow a bad respiratory illness with prolonged coughing, a chest injury, or heavy physical strain.
One of the defining features of costochondritis is that doctors can reproduce the pain by pressing on specific spots along the breastbone or by having you move your arms and neck in certain positions. This is useful because it helps distinguish chest wall pain from something happening inside the chest. That said, tenderness on the surface doesn’t completely rule out deeper problems, so if the pain is severe or accompanied by other symptoms like shortness of breath, further testing may still be needed.
Costochondritis generally resolves on its own over several weeks. Anti-inflammatory pain relievers, gentle stretching, and avoiding movements that aggravate it are the typical approach.
Muscle Strains and Nerve Pain
The muscles between your ribs, called intercostal muscles, can get strained from heavy lifting, twisting, or even a forceful cough. This creates a sharp, localized pain that worsens with movement and breathing. It usually improves with rest over a week or two.
Intercostal neuralgia is a different kind of rib pain caused by irritation or damage to the nerves running along the underside of each rib. People describe it as sharp, stabbing, or burning, sometimes with numbness and tingling. It can feel like an electric jolt or a deep ache, and it often wraps around one side of the rib cage following the path of a single nerve. This type of pain can develop after shingles, surgery, or trauma to the chest wall. Treatment focuses on managing the nerve pain, sometimes with nerve block injections if it becomes chronic.
For both muscle strains and nerve-related pain, gentle movement tends to help more than staying completely still. A side-bend stretch (raising one arm overhead and leaning to the opposite side, holding for 20 seconds) can relieve tightness along the rib cage. Diaphragmatic breathing, where you focus on expanding your belly rather than your chest, helps keep the rib muscles from tightening further. Use pain as your guide: some discomfort during movement is normal, but pain that becomes unbearable or lingers afterward means you’re pushing too hard.
Rib Stress Fractures
You don’t need a major impact to fracture a rib. Stress fractures develop gradually from repetitive motion. Competitive rowers are especially prone to fractures in the middle ribs (ribs four through nine). Baseball pitchers, basketball players, weightlifters, and ballet dancers tend to develop first rib stress fractures. Novice golfers often get fractures toward the back of the rib cage.
The pain from a stress fracture is activity-specific at first. It shows up during the motion that caused it and fades with rest, but over time it can become constant. Recovery takes about four to six weeks of rest and avoiding the activity that triggered it. A chest X-ray is the standard first step in imaging, mainly to rule out complications like a collapsed lung. X-rays can miss hairline fractures, but their main purpose is confirming nothing more dangerous is happening.
Right-Side Rib Pain: Gallbladder, Liver, and Kidneys
Pain specifically under the right rib cage often points to organs rather than the rib cage itself. The gallbladder sits just below the liver on the right side, and when gallstones block the bile duct, you get a condition called biliary colic. This feels like intense pain or pressure under the right ribs, often after eating fatty foods. If bile backs up and the gallbladder becomes infected or severely inflamed, the pain becomes constant and may come with fever.
Hepatitis, or inflammation of the liver, can also cause upper right abdominal pain beneath the rib cage. Some people with hepatitis have no symptoms at all, while others feel a dull ache in that area along with fatigue and nausea.
Your kidneys sit just below the rib cage toward your back, so kidney stones or a kidney infection can feel like rib pain on either side. Kidney stone pain is typically severe and comes in waves, radiating from the back around to the front. A urinary tract infection that spreads upward to the kidneys can cause steady pain under the ribs along with fever, chills, and painful urination.
Left-Side Rib Pain: Heart and Spleen
Pain under the left rib cage raises different concerns. The most serious is a heart attack, which usually feels like heaviness, pressure, or a squeezing sensation in the center or left side of the chest. That discomfort can extend into the jaw, shoulder, arms, back, and even the right side of the body. Heart attack pain doesn’t typically get worse when you press on your ribs or change position, which helps distinguish it from musculoskeletal causes.
Pericarditis, an inflammation of the lining around the heart, causes sharp chest pain that may worsen when swallowing or lying down. It can come with irregular heartbeats and fever. An aortic dissection, a tear in the body’s largest artery, produces a sudden, severe tearing pain that often extends from the chest into the back.
The spleen sits in the upper left abdomen behind the stomach and under the rib cage. When it becomes enlarged, a condition called splenomegaly, it can cause pain or fullness under the left ribs. Common causes include mononucleosis (mono) and certain blood cancers like leukemia or lymphoma.
When Rib Pain Is an Emergency
Most rib cage pain is not dangerous, but certain combinations of symptoms need immediate attention. Get emergency help if your rib pain comes with:
- Difficulty breathing or feeling short of breath, especially after an injury to the chest
- A rapid heartbeat or drop in blood pressure (feeling faint, dizzy, or lightheaded)
- Chest pressure or heaviness that radiates to the jaw, arm, or back
- Severe abdominal tenderness or visible bruising from a seatbelt or impact injury
- Pain so intense you can’t manage it with over-the-counter medication
After chest trauma, older adults (over 65) and anyone with three or more fractured ribs face a higher risk of complications like a collapsed lung or internal bleeding. These situations benefit from emergency evaluation rather than a wait-and-see approach.
How Doctors Figure Out the Cause
Diagnosing rib cage pain starts with your description of the pain and a physical exam. Your doctor will press along the rib cage and breastbone to see if the pain is reproducible by touch, which points toward a musculoskeletal cause. They’ll also ask about the quality of the pain (sharp, burning, dull, pressure), what makes it better or worse, and whether it started after an injury, illness, or specific activity.
If a fracture or lung problem is suspected, a chest X-ray is the standard first imaging test. It’s not great at catching hairline fractures, but its main job is ruling out dangerous complications like a collapsed lung or fluid around the lungs. If organ-related causes are suspected, blood tests and an ultrasound of the abdomen can evaluate the liver, gallbladder, spleen, and kidneys. For heart-related concerns, an electrocardiogram and blood work checking for cardiac enzymes are typically the first steps.
The location, pattern, and triggers of your pain give your doctor the strongest clues. Pain that’s reproducible by pressing on the chest wall is reassuring. Pain that comes with shortness of breath, fever, or changes in blood pressure shifts the focus toward internal causes that need faster workup.