Why Do My Ribs Hurt? Causes of Rib Cage Pain

Table of Contents
View All
Table of Contents

There are many possible causes of rib cage pain or pain in the area around your ribs. These can range from conditions that are simply uncomfortable to those that are life-threatening.

This article will look at musculoskeletal causes of rib cage pain, as well as pain that originates in organs within or outside of the rib cage.

X-ray on digital tablet
DragonImages / Getty Images

Rib Cage Anatomy and Structure

When looking at potential causes and how rib cage pain is evaluated, it's helpful to think about the structures in and around the rib cage.

Bony Structure

There are 12 ribs on each side of the chest. The upper seven ribs are attached directly to the breastbone (sternum) via cartilage. These are known as the "true ribs." The remaining five ribs are referred to as the "false ribs."

Of these, ribs eight through 10 are also attached to the sternum, but indirectly (they attach to the cartilage of the rib above which ultimately attaches to the sternum). Ribs 11 and 12 are not attached to the sternum either directly or indirectly and are called the floating ribs.

There can be variations to this pattern, with some people having an extra set of ribs and some having fewer ribs (usually fewer floating ribs).

Surrounding Structures

In addition to the bones that make up the ribs, sternum, and spine, as well as the attaching cartilage, there are many other structures associated with the rib cage that could potentially cause pain. This includes the intercostal muscles (the muscles between the ribs) and the diaphragm (the large muscle at the base of the chest cavity), ligaments, nerves, blood vessels, and lymph nodes.

Organs Within the Rib Cage

The rib cage functions to protect several organs. Organs protected by the rib cage include the:

  • Heart
  • Great vessels (the thoracic aorta and part of the superior and inferior vena cava)
  • Lungs and pleura (lining of the lungs)
  • Upper digestive tract (esophagus and stomach)
  • Liver (on the right side at the bottom of the rib cage)
  • Spleen (on the left side at the bottom of the rib cage)

The area between the lungs, called the mediastinum, also contains many blood vessels, nerves, lymph nodes, and other structures.

Organs Outside of the Rib Cage

Organs such as the gallbladder, pancreas, and kidneys are not inside the rib cage but they can sometimes cause pain that feels like it comes from the rib cage. The skin overlying the rib cage may also be affected by conditions (such as shingles) which cause pain.

Anatomical Variations

There are a number of variations that may be found in the rib cage that can, in turn, lead to or affect symptoms in this region.

  • Extra ribs: An extra rib lies above the first rib in 0.5% to 1% of the population and is called a cervical rib or neck rib.
  • Missing ribs, most often one of the floating ribs
  • Bifurcated (bifid) ribs, a condition present from birth in which the rib splits into two parts by the sternum
  • Pigeon chest (pectus carinatum), a deformity in which the ribs and sternum stick out from the body
  • Sunken chest (pectus excavatum), in which abnormal growth of the ribs results in the chest having a sunken appearance


There are many potential causes of pain that arises from the rib cagearea, including injuries, inflammation, infection, cancer, and referred pain from organs such as the heart, lungs, spleen, and liver.

In an outpatient clinic setting (such as a family practice clinic), musculoskeletal conditions are the most common cause of rib cage pain. In the emergency room, however, serious conditions that mimic rib cage pain (such as a pulmonary embolism) are more common.

Common Musculoskeletal Causes

Some of the more common musculoskeletal causes of rib cage pain include:


Muscle strains may occur with an injury or even coughing or bending. Rib fractures are relatively common and can sometimes cause intense pain. Ribs can also be bruised (bone bruise) without a fracture.

The sternum is infrequently fractured, but chest trauma can result in a number of abnormalities ranging from single fractures to flail chest, in which two adjacent ribs have two or more fractures each. With osteoporosis, rib fractures can sometimes occur with very little trauma.


Costochondritis is an inflammatory condition that involves the cartilage that connects the ribs to the sternum. The condition is common and the pain can sometimes mimic the pain felt in a heart attack.


Fibromyalgia is a relatively common cause of rib cage pain and can be challenging to both diagnose and treat (it's primarily a diagnosis of exclusion). Along with pain and morning stiffness, people with the condition often experience mental fog, fatigue, and other symptoms.

Rheumatoid Conditions

Common rheumatoid conditions that can cause rib cage pain include rheumatoid arthritis and psoriatic arthritis.

Intercostal Neuralgia

Intercostal neuralgia is a condition in which nerve pain (neuropathic pain) arises from an injury, shingles, nerve impingement, and more. It can be challenging both to diagnose and treat.

Slipping Rib Syndrome

Slipping rib syndrome (also called lower rib pain syndrome, rib tip syndrome, or 12th rib syndrome) is thought to be under-diagnosed and can cause significant pain in the lower ribs (the floating ribs). In the condition, it's thought that overly mobile floating ribs slip under the ribs above and pinch the intercostal nerves, nerves that supply the muscles that run between the ribs.

Other Causes

Other relatively common musculoskeletal causes can include pain related to conditions involving the thoracic spine (which not uncommonly causes chest pain in the front of the rib cage), Sternalis syndrome, and painful xiphoid syndrome (the xiphoid is the pointy bony growth at the bottom of the sternum).

Less Common Musculoskeletal Causes

Less common, but significant, musculoskeletal causes of rib cage pain can include:

Rib Stress Fractures

Rib stress fractures are an overuse injury commonly seen with activities such as rowing or backpacking. They can be challenging to diagnose, so it is important to let your healthcare provider know what type of exercises and sports you participate in.

Tietze Syndrome

Tietze syndrome is similar to costochondritis but less common. Unlike costochondritis, there is swelling that accompanies the inflammation of the cartilage connecting the ribs to the sternum.


A number of cancers can lead to rib cage pain. Both lung cancer and breast cancer commonly spread (metastasize) to bones, including those of the rib cage. This can occur with a number of other cancers as well.

Pain may be due to the presence of the tumor in bone (bone metastases) or due to fractures that result in weakened bones (pathologic fractures). In some cases, rib cage pain may be the first symptom of cancer.

These tumors may also grow directly into the rib cage and cause pain. Multiple myeloma is a blood-related cancer that may occur in the bone marrow of the rib cage and other bones and can also cause rib cage pain.

Other Less Common Musculoskeletal Causes

A sickle cell crisis (bone infarct or essentially a death of bone) is an uncommon cause of rib cage pain. Rheumatoid causes such as lupus are less commonly associated with rib cage pain.

Some other potential but infrequent causes include infections in joints in the rib cage (septic arthritis), polychondritis, and sternoclavicular hyperostosis.

Non-Musculoskeletal Causes

It can sometimes be very difficult to know whether pain that is felt in the rib cage is related to the rib cage itself, or to underlying structures. Some potential non-musculoskeletal causes of rib cage pain include the following:


Shingles is a condition in which the chickenpox virus (which remains in the body after the initial infection) reactivates. Symptoms include fever, chills, and rash distributed on one side of the body. However, pain, sometimes around the rib cage (which can be severe), often occurs before these other symptoms, making shingles difficult to diagnose.

Heart Disease

Heart disease not uncommonly causes pain that is felt as rib cage pain, and women especially, tend to have atypical symptoms such as these. The possibility of a heart attack should always be considered in a person who has any form of chest-related pain. Pericarditis, an inflammation of the membrane that lines the heart, is also a potential cause.

Enlargement of the Aorta

Enlargement of the large artery (aorta) in the chest may cause rib cage pain. Risk factors include the condition Marfan's syndrome as well as cardiovascular disease.

Lung Conditions

Lung conditions such as pneumonia or lung cancer may cause rib cage pain. Lung cancer, in particular, may irritate nerves that lead to pain that feels like it originates in the rib cage. Pulmonary emboli, or blood clots in the legs (deep venous thromboses) that break off and travel to the lungs are a serious cause of rib cage pain.

Pleural Conditions

Inflammation of the pleura (pleurisy) or the build-up of fluid between the two layers of pleura can cause rib cage pain. This may cause pain with a deep breath and in some positions more than others.

Enlargement of the Spleen

Spleen enlargement, such as with some blood-related conditions or cancers, may cause rib cage pain. The spleen may also become enlarged (and sometimes rupture with mild trauma) with infectious mononucleosis.

Liver Conditions

Inflammation or scarring of the liver, such as with hepatitis or cirrhosis, may cause rib cage pain.

Digestive System Conditions

Gastroesophageal reflux disease (GERD) often causes heartburn, but can also cause other types of pain. Peptic ulcer disease or gastritis are other potential causes.

Referred Pain From Outside of the Rib Cage

Organs outside of the rib cage may also cause pain that feels like it arises in the rib cage. Some of the organs that can be associated with rib cage pain include:

  • Gallbladder: Gallstones or cholecystitis (infection of the gallbladder)
  • Pancreas: Pancreatitis or pancreatic tumors
  • Kidneys and ureters: Kidney stones may sometimes cause referred pain that's felt in the rib cage (and is often severe).

Rib Cage Pain in Pregnancy

Rib cage pain, especially in the upper ribs, is relatively common in pregnancy. Most of the time it's thought that the pain is due to the positioning of the baby or related to the round ligament.

Much less commonly, and after the 20th week of gestation, pain on the right side felt under the lower ribs is sometimes a sign of preeclampsia or HELLP syndrome, a medical emergency.

When to See a Healthcare Provider

If you are experiencing rib cage pain that does not have an obvious explanation, it's important to make an appointment to see your healthcare provider.

Symptoms that should alert you to call 911 include:

  • Chest pressure or tightening
  • Pain in the rib cage that radiates into your arm, back, or jaw
  • Heart palpitations
  • Shortness of breath, especially of sudden onset
  • Pain that is severe
  • Sudden onset of sweating
  • Lightheadedness
  • New onset confusion or change in consciousness
  • Coughing up blood, even if only a very small amount
  • Difficulty swallowing
  • Numbness or tingling in your arms or legs


In order to determine the cause or causes of rib cage pain, your healthcare provider will take a careful medical history and may do a number of different tests.


A careful history is essential in making a diagnosis when the cause of rib cage pain in unknown.

To narrow down potential causes, your healthcare provider may ask a number of questions. Some of these include:

  • What is the quality of your pain? Is the pain sharp or dull?
  • How long have you had the pain? Did it start gradually or abruptly?
  • Have you ever experienced pain like this in the past?
  • Where is the location of your pain? Is it localized or diffuse? Does it affect both sides of your chest or is it isolated to the left side or right side?
  • Is there anything that makes your pain better or worse? For example, pain with a deep breath (pleuritic chest pain) may suggest pleurisy or other lung conditions. Movement may worsen musculoskeletal pain.
  • Is the pain present at rest or only with movement?
  • Is the pain worse during the day or at night? Pain that is worse at night may suggest serious causes such as an infection, fracture, or cancer.
  • Is the pain worse in one particular position?
  • Does pain occur when you press on any area of your chest?
  • If you also have neck or shoulder pain, does it radiate to your arms? Do you have any weakness, tingling, or numbness in your fingers?
  • What medical conditions do you have and have you had? For example, a history of early stage breast cancer in the past might raise concern over a recurrence in the rib cage.
  • What illnesses have your family members experienced (family history)?
  • Do you or have you ever smoked?
  • What other symptoms have you experienced? Symptoms such as palpitations, shortness of breath, a cough, a rash, jaundice (a yellowish discoloration of the skin), nausea, vomiting, and itchy skin, should be shared with your healthcare provider.

Physical Exam

On physical examination, your healthcare provider will likely begin with an examination of your chest. They will palpate (touch) your chest to look for any localized areas of tenderness, such as over a fracture or inflammation.

With costochondritis, pain is most commonly noted with palpation to the left of the sternum in a very localized region. Swelling may be related can occur if Tietze syndrome is present or with an injury such as a fracture.

With fractures, tenderness is usually very localized. With sternalis syndrome, pain is often felt over the front of the rib cage, and palpation can cause the pain to radiate to both sides of the chest. With intercostal neuralgia, pain may be felt over the whole chest or along one rib, but can not usually be reproduced with palpation.

Range of motion tests, such as having you lean forward (flexion), stand up straight (extension), and turn to the right and left are done to see if any of these movements can reproduce the pain.

An examination of your skin will be done to look for any evidence of shingles rash, and an examination of your extremities might show signs of a rheumatoid condition such as any swelling or deformity of joints. In addition to examining your chest, your healthcare provider will likely listen to your heart and lungs and palpate your abdomen for any tenderness.

A pleural friction rub is a breath sound that may be heard with inflammation of the lining of the lungs (the pleura). Other breath sounds might suggest underlying pneumonia or other lung conditions.

In women, a breast exam may be done to look for any masses (that may have spread to the ribs).

Labs and Tests

A number of laboratory tests may be considered depending on your history and physical exam. This may include markers for rheumatoid conditions and more. Blood chemistry including a liver panel, as well as a complete blood count may give important clues.


Imaging tests are often needed if trauma has occurred, or if there are any signs to suggest an underlying cancer or lung disease. A regular X-ray may be helpful if something is seen, but cannot rule out either a fracture or lung cancer.

X-rays are better for visualizing the ribs, but can still easily miss rib fractures. In order to diagnose many rib fractures or stress fractures, an MRI may be needed. A bone scan is another good option both for detecting fractures and looking for potential bone metastases.

A chest computed tomography scan (CT scan) is often done if there is concern over lung cancer or pleural effusion. With cancer, a positron emission tomography (PET) scan can be good both for looking at bony abnormalities and other soft tissue spread, such as tumors in the mediastinum.

Since abdominal conditions (such as gallbladder or pancreatic conditions) may cause rib cage pain, an ultrasound or CT scan of the abdomen may be done.

Diagnostic Procedures

Other procedures may be needed to diagnose some conditions that can cause referred pain to the rib cage.

An electrocardiogram (ECG) may be done to look for any evidence of heart damage (such as a heart attack) and to detect abnormal heart rhythms. An echocardiogram (ultrasound of the heart) can give further information about the heart and also detect a pericardial effusion (fluid between the membranes lining the heart) if present.

If a person has had a choking episode or has risk factors for lung cancer, a bronchoscopy may be done. In this procedure, a tube is inserted through the mouth (after sedation) and threaded down into the large airways. A camera at the end of the scope allows a healthcare provider to directly visualize the area inside the bronchi.

Endoscopy may be done to visualize the esophagus or stomach for conditions involving these organs.


The treatment of rib cage pain will depend on the underlying cause. Sometimes this simply requires reassurance and advice to avoid activities and movements that aggravate the pain.

Rib fractures are difficult to treat, and many healthcare providers opt for conservative treatments such as wrapping the rib cage due to the potential for complications.

For musculoskeletal causes of rib cage pain, a number of options may be considered including pain control, stretching, physical therapy, or local injections of numbing medication.

For non-musculoskeletal causes, the underlying problem or disease will need to be addressed in order to treat the rib pain.

A Word From Verywell

Rib cage pain can signal a number of different musculoskeletal conditions as well as non-musculoskeletal conditions within or outside of the chest. Some of these conditions can be challenging to diagnose. However, healthcare providers have a wide array of options that should ultimately be able to identify the cause of the pain and lead to an appropriate treatment plan.

3 Sources
Verywell Health uses only high-quality sources, including peer-reviewed studies, to support the facts within our articles. Read our editorial process to learn more about how we fact-check and keep our content accurate, reliable, and trustworthy.
  1. Fliegel BE, Menezes RG. Anatomy, thorax, cervical rib. StatPearls.

  2. Winzenberg T, Jones G, Callisaya M. Musculoskeletal chest wall pain. Australian Family Physician. 2015;44(8):540-544.

  3. Wilkerson RG, Ogunbodede AC. Hypertensive Disorders of PregnancyEmerg Med Clin North Am. 2019;37(2):301-316. doi:10.1016/j.emc.2019.01.008

Additional Reading

By Lynne Eldridge, MD
 Lynne Eldrige, MD, is a lung cancer physician, patient advocate, and award-winning author of "Avoiding Cancer One Day at a Time."