Pain around the ribs and back can be difficult to pinpoint because the discomfort may sit between two areas rather than in one obvious location. You might feel an ache along the side of your body, beneath the shoulder blade, between the ribs, or across the middle of your back. It may begin after exercise, lifting, coughing, or an awkward movement—or appear without a clear trigger.
Because the ribs are close to the lungs, spine, kidneys, and upper abdominal organs, pain in this region can understandably cause concern. Sometimes an internal condition is responsible, but many cases involve the muscles, ribs, joints, or nerves of the chest wall and back. How the pain started and what makes it better or worse can provide more useful clues than location alone.
Pain around the ribs and back is a symptom, not a diagnosis. Possible causes range from muscle strain and rib irritation to nerve problems, respiratory conditions, kidney disorders, and abdominal problems. Recognizing associated symptoms can help determine whether the pain is more consistent with a musculoskeletal problem or needs medical evaluation.
Table of Contents
- Where Can Pain Around the Ribs and Back Occur?
- Common Causes of Pain Around the Ribs and Back
- Nerve-Related Rib and Back Pain
- Spine-Related Causes of Rib and Back Pain
- Lung and Respiratory Causes
- Kidney and Abdominal Causes
- How Can You Tell If Rib and Back Pain May Be Musculoskeletal?
- Symptoms That Can Help Identify the Cause
- How Is Pain Around the Ribs and Back Diagnosed?
- Treatment for Pain Around the Ribs and Back
- When Should You See a Doctor?
- Emergency Warning Signs
- How to Prevent Pain Around the Ribs and Back
- What About Pain on One Side of the Back?
- Conclusion
- Frequently Asked Questions
Where Can Pain Around the Ribs and Back Occur?
Pain in this region can appear in several locations because the ribs, thoracic spine, muscles, joints, and nerves are closely connected.
You may feel discomfort:
-
Along the side of the ribs: Pain can wrap from the back toward the side or front of the chest.
-
Under the shoulder blade: Muscles, ribs, spinal joints, and nerves can all contribute to discomfort here.
-
Between the ribs: Intercostal muscles and nerves can produce pain between individual ribs.
-
Around the lower ribs: Pain in this area can overlap with problems involving muscles, ribs, kidneys, or the upper abdomen.
-
Across the middle back: The thoracic spine and surrounding muscles can cause pain between the shoulder blades or near the ribs.
The location can narrow down the possibilities, but it cannot identify the cause on its own.
Common Causes of Pain Around the Ribs and Back
1. Muscle Strain
A strained muscle is one of the more common causes of pain involving the ribs and back.
It may develop after lifting, reaching, exercising, twisting, repetitive work, or suddenly increasing your physical activity. Repeated coughing can also place stress on the muscles surrounding the rib cage.
Muscle-related pain may feel:
-
Aching or sore
-
Tight or uncomfortable
-
Sharp with particular movements
-
Tender when touched
-
Worse after physical activity
For example, someone who has not exercised for several weeks and suddenly performs a demanding upper-body workout may develop soreness around the shoulder blades, ribs, and middle back the following day.
Pain that changes noticeably when you bend, twist, reach, or press on the area can be consistent with a musculoskeletal source.
2. Intercostal Muscle Strain
The intercostal muscles sit between the ribs and help move the chest wall during breathing.
A sudden twist, heavy lift, strenuous workout, contact sport, fall, or prolonged coughing can strain these muscles. Because they move with the rib cage, an intercostal injury can hurt when you breathe deeply, cough, sneeze, laugh, or rotate your torso.
You may notice pain when:
-
Taking a deep breath
-
Coughing or sneezing
-
Twisting your torso
-
Reaching overhead
-
Getting out of bed
-
Pressing around the affected area
If breathing makes your back or rib pain worse, it is useful to distinguish ordinary painful movement from actual breathing difficulty. More information about this symptom pattern is available in our guide to back pain when breathing.
3. Rib Injury or Bruising
A direct blow to the chest or back can bruise the tissues around a rib or injure the rib itself.
Common causes include:
-
Falls
-
Contact sports
-
Direct impacts
-
Seat-belt pressure during a collision
-
Accidents involving the chest or upper back
A rib injury may hurt when you breathe deeply, cough, sneeze, laugh, twist, or lie on the affected side.
Significant pain after a fall, accident, or direct impact deserves medical attention, particularly if the pain is severe or breathing is difficult.
4. Rib Fracture
A fractured rib can cause localized pain that may extend around the side of the chest or toward the back.
Pain often becomes more noticeable with deep breathing, coughing, sneezing, twisting, or pressure over the injured area.
A fracture does not always produce obvious bruising or visible changes. If you have substantial pain following significant trauma, do not assume that the absence of bruising means there is no injury.
For more information about pain specifically concentrated around the posterior rib region, see our guide to back rib pain.
Nerve-Related Rib and Back Pain
5. Irritated or Compressed Nerve
Nerves originating from the thoracic spine travel around the chest wall between the ribs. Irritation of one of these nerves can produce pain that follows a band-like path around one side of the torso.
Nerve-related pain may feel:
-
Burning: The discomfort may feel hot rather than simply sore.
-
Shooting: Pain can travel along the side of the chest or back.
-
Tingling: Pins-and-needles sensations may occur.
-
Numbness: Part of the skin may feel less sensitive.
Nerve irritation can occur alongside spinal problems or other conditions affecting the nerves. Persistent numbness, weakness, or worsening neurological symptoms should be assessed by a healthcare professional.
6. Shingles
Shingles results from reactivation of the varicella-zoster virus. It can cause burning, tingling, pain, or unusual skin sensitivity along one side of the body before a rash appears.
When nerves around the chest or back are affected, the discomfort can feel like pain wrapping around the ribs.
A cluster of fluid-filled blisters on one side of the body is an important clue. If unexplained burning or skin sensitivity is followed by a rash, contact a healthcare professional promptly.
Spine-Related Causes of Rib and Back Pain
7. Thoracic Spine Problems
The thoracic spine forms the middle section of the back and connects with the ribs.
Problems affecting the thoracic vertebrae, discs, joints, or surrounding tissues can produce pain between the shoulder blades, across the middle back, or toward the ribs.
Possible contributors include joint irritation, disc-related problems, muscle tension, and age-related changes.
The discomfort may become more noticeable after prolonged sitting or with particular movements.
If you are experiencing more widespread symptoms throughout the back, understanding the broader causes covered in our guide to what causes back pain may provide additional context.
8. Poor Posture and Prolonged Sitting
Spending long periods at a computer or looking down at a phone can contribute to discomfort around the upper back and shoulder blades.
The muscles around the thoracic spine may remain active for extended periods, and the resulting stiffness or soreness can sometimes spread toward the ribs.
There is no single “perfect” posture that needs to be maintained all day. Regular movement is often more practical.
Try changing positions regularly, standing up, walking briefly, adjusting your workstation, and incorporating appropriate strengthening exercises into your routine.
Lung and Respiratory Causes
Not every episode of pain around the ribs and back is caused by the musculoskeletal system.
9. Pleurisy
Pleurisy occurs when the pleura—the thin layers of tissue surrounding the lungs—become inflamed.
It typically causes sharp pain that becomes worse with deep breathing, coughing, or sneezing. The discomfort may sometimes be felt toward the back or shoulder.
Pleurisy can have several causes, including respiratory infections and other inflammatory conditions.
Pain that is strongly associated with breathing, particularly when accompanied by cough, fever, or shortness of breath, should be medically evaluated.
10. Pneumonia
Pneumonia can cause symptoms such as cough, fever, breathing difficulty, and chest discomfort. Pain associated with inflammation around the lungs can sometimes be perceived toward the back or ribs.
The combination of rib or back pain with fever, cough, and breathing difficulty is more concerning for a respiratory infection than isolated soreness following physical activity.
11. Pulmonary Embolism
A pulmonary embolism occurs when a blood clot blocks a blood vessel in the lungs. It can cause sudden shortness of breath and chest pain that may worsen with breathing. Some people may also experience upper-back discomfort.
A pulmonary embolism is a medical emergency.
Sudden shortness of breath, severe chest or upper-back pain, coughing up blood, fainting, or a very rapid heartbeat requires emergency medical attention.
Kidney and Abdominal Causes
12. Kidney Problems
The kidneys are located toward the back of the abdomen beneath the lower ribs. Conditions affecting them can therefore cause pain around the side, flank, or lower rib region.
Kidney-related symptoms may include:
-
Fever or chills
-
Nausea or vomiting
-
Pain or burning during urination
-
Frequent urination
-
Blood in the urine
-
Severe pain in the side or back
These associated symptoms make a kidney or urinary problem more likely than an uncomplicated muscle strain.
13. Kidney Stones
Kidney stones can cause severe pain that begins in the side or back and may move toward the abdomen or groin.
The pain can occur in waves and may be intense.
Severe unexplained flank or back pain, particularly when accompanied by blood in the urine, fever, chills, vomiting, or difficulty urinating, requires medical assessment.
14. Digestive Causes
Some conditions affecting the digestive system can cause pain that is felt in the upper abdomen, ribs, or back.
Depending on the underlying problem, symptoms may include:
-
Abdominal pain
-
Bloating
-
Nausea
-
Vomiting
-
Changes in bowel movements
-
Pain associated with eating
Constipation can sometimes contribute to abdominal discomfort and back symptoms. If these symptoms occur together, you can read about whether constipation can cause back pain.
Persistent or severe abdominal and back pain should not automatically be attributed to a muscle problem.

How Can You Tell If Rib and Back Pain May Be Musculoskeletal?
No symptom pattern can confirm the cause at home, but certain features can make a muscle, rib, or joint problem more likely.
Signs That May Point Toward a Musculoskeletal Cause
-
Recent physical activity: Pain began after lifting, exercising, twisting, or repetitive work.
-
Pain with movement: Bending, reaching, or rotating the body changes the intensity.
-
Localized tenderness: Pressing on a particular area reproduces similar discomfort.
-
No systemic symptoms: There is no fever, significant breathing difficulty, or other concerning symptom.
-
Gradual improvement: Symptoms become less intense rather than progressively worsening.
These are clues, not a diagnosis. Some serious conditions can initially produce symptoms that resemble ordinary muscle pain.
Symptoms That Can Help Identify the Cause
The symptoms accompanying the pain may be more informative than its exact location.
Pain That Gets Worse With Breathing
Pain that increases with deep breathing, coughing, or sneezing can occur with an intercostal muscle strain, bruised rib, or fractured rib.
However, pleurisy and other respiratory conditions can also cause pain with breathing.
If you are experiencing actual shortness of breath rather than simply discomfort when taking a deep breath, seek medical attention.
Pain With Twisting or Movement
Pain that clearly changes when you twist, bend, reach, or change position can occur with musculoskeletal problems.
This pattern is particularly relevant when symptoms began after exercise, lifting, or repetitive activity.
Pain With Fever
Fever changes the picture because it can accompany infections and inflammatory conditions.
Rib or back pain together with fever may occur with respiratory infections, kidney infections, or other medical conditions and should be evaluated when significant or persistent.
Pain With Urinary Symptoms
Back or rib-area pain combined with burning urination, blood in the urine, fever, chills, or severe side pain may indicate a kidney or urinary problem.
Pain That Wraps Around the Chest
Pain that follows a narrow band around one side of the chest can occur when a thoracic nerve is irritated. Shingles can produce a similar pattern, particularly when a rash develops afterward.
How Is Pain Around the Ribs and Back Diagnosed?
Diagnosis usually begins with a detailed history and physical examination.
A healthcare professional may ask:
-
When did the pain start?
-
Was there an injury?
-
Did you recently exercise or lift something?
-
Does deep breathing make it worse?
-
Does twisting or bending change the pain?
-
Does the pain travel around the ribs?
-
Do you have a cough or fever?
-
Do you have urinary symptoms?
-
Are there abdominal or digestive symptoms?
-
Do you have numbness, tingling, or weakness?
The examination may involve the ribs, thoracic spine, surrounding muscles, breathing, and neurological function.
Do You Need Imaging?
Not everyone with rib and back pain needs an X-ray, CT scan, or MRI.
When symptoms strongly suggest a mild musculoskeletal problem and there are no warning signs, a healthcare professional may initially recommend conservative treatment and observation.
Imaging may be considered when there has been significant trauma, a fracture is suspected, neurological symptoms are present, pain persists without an explanation, or another underlying condition needs investigation.
The appropriate test depends on the suspected cause.
Treatment for Pain Around the Ribs and Back
Treatment depends on what is causing the pain.
For Mild Musculoskeletal Pain
When symptoms are mild and there are no warning signs, conservative measures may include:
-
Gentle movement: Avoid prolonged complete inactivity.
-
Activity modification: Temporarily reduce movements that clearly aggravate symptoms.
-
Heat or cold: A protected heat or cold pack may provide temporary relief.
-
Gradual return to activity: Increase exercise and lifting progressively as symptoms improve.
-
Physical therapy: Persistent musculoskeletal problems may benefit from an individualized rehabilitation program.
If symptoms are actually part of a broader back problem, treatment may need to address mobility, strength, movement habits, and other contributing factors.
For Rib Injuries
Rib injuries may take time to settle because the chest wall moves continuously during breathing.
Follow your healthcare professional’s advice regarding pain management and activity. Avoid tightly wrapping or binding the chest unless specifically instructed by a healthcare professional, because restricting chest movement can interfere with normal breathing.
For Nerve-Related Pain
Nerve pain requires attention to its underlying cause.
Depending on the diagnosis, treatment may include physical therapy, medication, or management of a spinal condition contributing to nerve irritation.
For Respiratory, Kidney, or Digestive Conditions
When pain originates from an internal medical condition, treatment needs to address that underlying problem.
A respiratory infection, kidney infection, kidney stone, or abdominal disorder may require specific medical treatment. Home care intended for a muscle strain should not substitute for medical evaluation when other symptoms suggest an internal cause.
When Should You See a Doctor?
Arrange a medical evaluation if pain around your ribs and back:
-
Does not improve: Symptoms continue without a gradual trend toward improvement.
-
Keeps returning: Recurrent unexplained pain deserves investigation.
-
Interferes with daily activities: Pain affects sleep, work, exercise, or normal movement.
-
Has no obvious cause: Persistent unexplained pain should be assessed.
-
Occurs with other symptoms: Fever, cough, urinary symptoms, abdominal pain, numbness, tingling, or weakness can indicate another cause.
-
Develops after significant trauma: A fall, collision, or direct blow may require assessment for rib or spinal injury.
Emergency Warning Signs
Most rib and back pain is not an emergency, but certain symptoms require immediate medical attention.
Seek Emergency Medical Care If You Have:
-
Severe difficulty breathing
-
Sudden severe chest or upper-back pain
-
Coughing up blood
-
Fainting or severe dizziness
-
A very rapid heartbeat with breathing difficulty
-
Blue or gray lips or skin
-
Severe pain following major trauma
-
New severe weakness or numbness
-
New loss of bladder or bowel control
These symptoms can occur with serious heart, lung, neurological, or traumatic conditions.
If chest discomfort is also present, it should not automatically be assumed to be coming from the ribs or back. Some chest symptoms can be related to the spine, while others require urgent assessment. Our guide to chest pain from back problems discusses the musculoskeletal connection in more detail.
How to Prevent Pain Around the Ribs and Back
Not every cause can be prevented, but several habits may reduce the risk of musculoskeletal pain.
Stay Physically Active
Regular physical activity helps maintain strength and mobility. Increase exercise intensity gradually instead of making sudden, large increases in workload.
Strengthen the Back and Core
Appropriate strengthening can support the muscles around the spine and upper body. Exercise should be progressed according to your current fitness level.
Warm Up Before Intense Exercise
A gradual warm-up allows you to increase physical demands progressively rather than placing a sudden workload on relatively unprepared muscles.
Use Sensible Lifting Technique
Avoid sudden twisting while carrying heavy objects. Keep the load reasonably close to your body and ask for help when something is too heavy or awkward to lift safely.
Change Positions Regularly
If you spend much of the day sitting, change position frequently and take brief movement breaks. Regular movement may help reduce stiffness associated with prolonged static positions.
What About Pain on One Side of the Back?
The side of the back where symptoms occur can provide additional information, although location alone cannot establish a diagnosis.
For example, discomfort lower on the right side can have different potential causes from pain around the upper ribs or shoulder blade. If your symptoms are concentrated in the lower right back, see our guide to lower back pain on the right side.
Likewise, symptoms affecting the lower back may require a different evaluation from pain centered around the ribs and thoracic spine.
Conclusion
Pain around the ribs and back can have many possible causes, including muscle strain, intercostal muscle injury, rib problems, nerve irritation, thoracic spine conditions, respiratory disorders, kidney problems, and abdominal conditions.
The overall pattern matters more than location alone. Pain that begins after lifting or exercise and changes with movement may suggest a musculoskeletal cause. Pain accompanied by fever, cough, urinary changes, significant abdominal symptoms, or breathing difficulty requires a broader evaluation.
Mild symptoms without warning signs may improve with activity modification, gentle movement, and gradual return to normal activity. Persistent, severe, unexplained, or worsening pain should be evaluated by a healthcare professional.
Seek emergency medical attention for severe breathing difficulty, sudden severe chest or upper-back pain, coughing up blood, fainting, blue or gray skin, or severe symptoms following major trauma.
Frequently Asked Questions
1. What causes pain around the ribs and back?
Common causes include muscle strain, intercostal muscle irritation, rib injuries, nerve irritation, and thoracic spine problems. Lung, kidney, and abdominal conditions can also cause pain in this region.
2. Why does my back hurt around my ribs?
The ribs connect with the thoracic spine and are surrounded by muscles, joints, nerves, and connective tissues. Irritation or injury involving any of these structures can cause pain around the ribs and back.
3. Can a muscle strain cause pain around the ribs and back?
Yes. A strained muscle around the upper back or ribs can cause aching or sharp pain, particularly with twisting, reaching, coughing, or deep breathing.
4. Why does my rib and back pain hurt when I breathe?
The rib cage and surrounding muscles move with every breath, so an injured muscle or rib can become painful during deep breathing. Lung and pleural conditions can also cause pain with breathing.
5. Can kidney problems cause pain around the ribs and back?
Yes. The kidneys are positioned beneath the lower ribs toward the back. Kidney-related pain may occur with urinary symptoms, fever, chills, nausea, or severe side pain.
6. Can poor posture cause pain around the ribs and back?
Prolonged sitting and limited movement can contribute to upper and middle back discomfort. Changing positions regularly and maintaining appropriate strength and mobility may help.
7. Is pain around the ribs and back always caused by the back?
No. Pain in this region can come from the ribs, muscles, nerves, spine, lungs, kidneys, or abdominal organs. Associated symptoms and the way the pain behaves help determine the possible source.
8. Should I exercise with rib and back pain?
Avoid exercises that clearly increase the pain, particularly heavy lifting and forceful twisting. Gentle movement may be appropriate for some mild musculoskeletal problems, but persistent or unexplained pain should be assessed before returning to strenuous activity.
9. How long does pain around the ribs and back take to heal?
Recovery depends on the underlying cause. A mild muscle strain may gradually improve, while rib injuries can take longer. Pain that does not improve or continues to worsen should be evaluated.
10. When is pain around the ribs and back serious?
Seek emergency medical attention for severe breathing difficulty, sudden severe chest or upper-back pain, coughing up blood, fainting, blue or gray lips or skin, or severe symptoms after major trauma. Persistent unexplained pain should also be medically evaluated.
Disclaimer: This article is intended for educational purposes only and should not be considered personalized medical advice.





