Key points

  • Back pain that clearly worsens with a deep breath most often comes from the ribs or the muscles between them, not from the spine itself.
  • The joints where the ribs meet the spine and breastbone can become irritated and painful in exactly the same breath-linked pattern as a muscle strain.
  • A small number of lung and chest causes, including a collapsed lung or a blood clot in the lung, also cause breath-linked back pain and need urgent recognition.
  • Pain that started after a cough, a sneeze, or a specific twisting movement points strongly toward a musculoskeletal cause rather than an internal one.
  • Breath-linked back pain with breathlessness, a fast heart rate, chest pain, or coughing up blood needs emergency assessment rather than a wait-and-see approach.

Back pain that gets noticeably worse with a deep breath is a specific and useful clue, even though it often feels alarming the first time it happens. Breathing is not something most people think about as a movement, but a full breath actually expands the rib cage considerably, and that expansion moves muscles, joints and tissue that can easily become a source of pain.

The good news is that the large majority of breath-linked back pain comes from the chest wall itself, the ribs, the muscles between them, and the small joints connecting them to the spine, rather than from anything inside the chest. This article explains how those common causes work, the rarer lung and chest causes worth knowing about, and the specific pattern of symptoms that means this particular kind of back pain should be seen urgently rather than monitored at home. It also covers the everyday habits, posture, a lingering cough, a particular sleeping position, that quietly keep an otherwise ordinary strain from settling on schedule.

Why breathing moves the pain at all

Every deep breath relies on the rib cage expanding outward and the diaphragm moving downward, a coordinated motion involving dozens of small joints and muscles working together. This is very different from the relatively simple bending and straightening the lumbar spine does, which is one reason breath-linked pain feels so distinctly different from ordinary mechanical back pain.

Because the rib cage has to expand with every single breath, any structure involved in that motion that is strained, inflamed, or irritated will be stressed repeatedly throughout the day, far more often than a muscle that is only loaded during specific movements like bending or lifting. This is part of why breath-linked pain can feel so persistent and hard to escape compared with other causes of back pain.

The specific structures involved, the intercostal muscles between the ribs, the costovertebral joints where the ribs meet the spine, and the costosternal joints at the front where the ribs meet the breastbone, each have a slightly different pattern of pain and tenderness, which is genuinely useful for narrowing down the cause before any imaging is needed.

Strained intercostal muscles

The intercostal muscles sit between each pair of ribs and are among the most common sources of breath-linked back and chest pain. They can be strained by a forceful cough or sneeze, an awkward twisting movement, an unaccustomed exercise involving the torso, or even prolonged shallow breathing caused by pain somewhere else in the body.

This kind of strain typically produces pain that is sharply localised to a specific area, often reproducible by pressing directly on the affected muscle, and clearly worse with a deep breath, a cough, or twisting the torso in a particular direction. It is usually one-sided, since a strain rarely affects both sides symmetrically.

Recovery generally follows the pattern of any muscle strain, meaningful improvement within one to two weeks with gentle movement, appropriate pain relief, and avoiding activities that clearly provoke it, though the breathing connection means that even talking, laughing or coughing can aggravate it in a way that other muscle strains elsewhere in the body don’t experience.

Costovertebral and costosternal joint irritation

The costovertebral joints, where each rib meets the spine at the back, and the costosternal joints, where the ribs meet the breastbone at the front, can each become irritated and painful independently of any muscle strain. This is sometimes grouped under the broader term costochondritis when it involves the cartilage connecting rib to breastbone specifically.

These joints can become irritated through sustained poor posture, a sudden twisting or reaching movement, a direct blow to the chest or back, or simply from the compensatory changes in breathing pattern that follow another painful condition elsewhere in the spine. Unlike a muscle strain, the pain from joint irritation is often felt as a more precise point of tenderness directly over the joint itself.

The pain pattern closely mirrors intercostal strain, worse with deep breathing, coughing, twisting and specific arm movements that load the rib cage, which is why distinguishing the two in practice often relies less on the symptom pattern and more on precisely where the tenderness is found on examination.

A handful of spinal conditions can also produce pain that worsens with breathing, though this is less common than a rib or muscle cause. A fracture in one of the thoracic vertebrae, whether from a fall, osteoporosis, or in rarer cases a tumour weakening the bone, can produce pain that sharply worsens with the chest expansion of a deep breath, since that movement puts additional stress through the fractured level.

Thoracic disc problems, while considerably less common than lumbar disc issues, can occasionally irritate a nerve root in a way that produces pain radiating around the rib cage in a band-like pattern, sometimes made worse by breathing or coughing because both increase pressure within the spinal canal briefly.

Degenerative changes in the thoracic spine, including arthritis in the small facet joints there, can also produce a breath-sensitive pattern, particularly in older adults, though this tends to develop gradually rather than appearing suddenly and is usually accompanied by broader stiffness rather than a single sharply localised point of pain.

The rarer chest and lung causes

A pneumothorax, a collapsed lung where air leaks into the space around the lung and prevents it from expanding fully, causes sudden, often severe, one-sided chest or back pain that is sharply worse with breathing, typically alongside breathlessness. It can happen without any injury at all, particularly in tall, thin young adults, or it can follow chest trauma. It is an uncommon but well-recognised cause that emergency physicians specifically screen for whenever sudden one-sided chest or back pain arrives together with breathlessness, precisely because it is treatable once correctly identified.

A pulmonary embolism, a blood clot that has travelled to the lungs, is a less common but serious cause of breath-linked chest and back pain, usually accompanied by breathlessness, a fast heart rate, and sometimes coughing up blood. It is more likely after recent surgery, a long flight, prolonged immobility, or in someone with a known clotting risk factor.

Pleurisy, inflammation of the lining around the lungs, typically from a viral or bacterial infection, produces a sharp pain that is dramatically worse with breathing and often accompanied by other signs of infection such as fever and a cough. Pneumonia itself can also cause breath-linked back pain, particularly when it affects the lower portion of a lung close to the diaphragm and back wall.

Pericarditis, inflammation of the lining around the heart, can also produce a sharp pain that worsens with breathing and lying flat, sometimes felt more toward the chest and left shoulder than the back, but close enough in pattern that it is occasionally confused with a musculoskeletal cause until an ECG and basic tests clarify the picture.

Everyday habits that keep it going

Shallow, guarded breathing is one of the most common reasons a simple rib strain takes longer than expected to settle. When a deep breath hurts, the natural instinct is to breathe more shallowly to avoid the pain, but sustained shallow breathing can itself cause secondary stiffness and discomfort in the chest wall, creating a cycle that outlasts the original strain.

Poor posture at a desk, particularly a rounded, collapsed sitting position, compresses the rib cage and can keep costovertebral joints irritated well after the original trigger has resolved. Sitting upright with the chest open, rather than hunched forward, genuinely reduces the ongoing load on these joints during a long working day.

A persistent cough from a cold, allergies, or reflux can repeatedly re-aggravate an intercostal strain or rib joint that would otherwise be settling, which is why addressing the underlying cause of a cough matters almost as much as treating the back pain itself when the two are linked.

Sleeping positions that compress one side of the rib cage, particularly lying directly on the painful side, tend to aggravate symptoms overnight and can be avoided simply by sleeping on the opposite side or propped slightly upright with pillows until the acute strain has settled.

Telling the patterns apart

A clear preceding trigger, a hard cough, a sneeze, lifting something awkwardly, or a new exercise involving the torso, points strongly toward a musculoskeletal cause, while pain that appeared with no trigger at all is worth taking more seriously, particularly if it arrived suddenly and severely.

Reproducibility is one of the most useful clues available without any imaging. Pain that can be reliably triggered or worsened by pressing on a specific spot, by twisting the torso a certain way, or by a specific arm movement, strongly suggests a rib, muscle or joint cause, because internal lung and chest causes generally aren’t affected by external pressure or positional changes in the same way.

Accompanying symptoms matter more than the back pain itself for deciding how urgently to act. Breathlessness that feels disproportionate to the pain, a racing or irregular heartbeat, fever, a persistent cough, or coughing up blood each shift the picture toward an internal cause that needs proper medical assessment rather than home management.

Age and risk factors shift the odds as well, even though they never settle the question on their own. A pneumothorax is more likely in a tall, thin young adult with no other explanation, while a pulmonary embolism is more likely after recent surgery, a long-haul flight, prolonged bed rest, or in someone taking hormonal medication, which is useful context to mention to a doctor even when the pain itself seems mechanical.

When to see a doctor

Straightforward intercostal strain or costovertebral joint irritation, with a clear trigger and a pain pattern that is reproducible on examination, can reasonably be managed initially with rest from the aggravating activity, appropriate pain relief, and gentle movement, with the expectation of steady improvement over one to two weeks.

Pain that persists beyond a few weeks without improvement, that is severe enough to make breathing genuinely shallow and uncomfortable, or that developed without any clear preceding trigger deserves a proper examination rather than continued self-management, partly to confirm the musculoskeletal diagnosis and partly to rule out a spinal cause like a fracture that needs its own specific treatment.

Sudden-onset pain with breathlessness, a fast or irregular heart rate, chest tightness or pressure, coughing up blood, or pain following a significant chest injury needs same-day emergency assessment rather than any period of waiting, since these particular combinations point toward causes, a collapsed lung or a blood clot in the lung among them, that genuinely cannot wait for a routine appointment.

Recovery outlook and preventing recurrence

A straightforward intercostal strain or costovertebral joint irritation usually improves steadily over one to two weeks once the aggravating activity is identified and avoided, with pain-free deep breathing typically the last thing to fully return rather than the first. Pushing through the pain to “test” it with repeated deep breaths or forceful coughs tends to prolong this timeline rather than speed it up.

Thoracic spine stiffness is a common, often overlooked, contributor to recurrent rib and chest-wall pain, since a stiff thoracic spine forces the ribs and their joints to compensate with more movement than they are designed for. Targeted thoracic mobility work, usually guided by a physiotherapist, can meaningfully reduce how often this type of pain recurs for people who experience it repeatedly.

Addressing posture at a desk, managing a chronic cough or reflux properly rather than tolerating it, and building general core and postural strength each reduce the likelihood of recurrence, since all three reduce the ongoing mechanical stress placed on the rib cage and the joints connecting it to the spine during normal daily activity.

For anyone who has had more than one episode of breath-linked back pain without a clear single cause identified, a proper assessment that looks specifically at thoracic spine mechanics and posture, rather than treating each episode in isolation as a new strain, is usually the more effective long-term approach.

Common questions

Why does my back hurt specifically when I breathe in deeply?

A deep breath expands the rib cage, which stretches and moves the muscles between the ribs, the joints connecting the ribs to the spine, and the surrounding soft tissue. If any of these structures is strained or irritated, that stretching movement reproduces the pain, which is why the pain tracks so closely with breathing rather than being constant.

Is back pain with breathing usually serious?

No, most of the time it reflects a musculoskeletal cause such as a strained intercostal muscle or an irritated rib joint, both of which are uncomfortable but not dangerous and typically settle with time. A smaller number of cases involve the lungs or chest, which is why specific accompanying symptoms matter for deciding how urgently to be seen.

What are the costovertebral joints, and can they cause this pain?

The costovertebral joints are the small joints where each rib attaches to the spine at the back. They can become irritated through poor posture, a sudden twisting movement, or prolonged shallow breathing from pain elsewhere, and when they are, breathing deeply, twisting the torso, or pressing over the joint itself tends to reproduce the pain precisely.

Can a collapsed lung cause back pain when breathing?

Yes, a collapsed lung, known medically as a pneumothorax, can cause sudden, sharp pain on one side of the chest or back that clearly worsens with breathing, often alongside breathlessness. This is uncommon but serious, and sudden onset of this combination, particularly without any clear muscular trigger, needs emergency assessment.

How can I tell if breath-linked back pain is muscular rather than something more serious?

A muscular or rib-joint cause typically follows a clear trigger, such as a strong cough, a sneeze, an awkward twist, or a new exercise, and the pain is reproducible by pressing on a specific spot or moving in a specific way. Pain that came on without any trigger, or that comes with breathlessness, a racing heart, fever, or coughing up blood, points away from a simple muscular cause.

When should breath-linked back pain be seen the same day?

Sudden-onset pain with breathlessness, a fast or irregular heartbeat, chest tightness, coughing up blood, or pain following a significant chest injury should be assessed the same day rather than waiting, since these combinations can indicate a collapsed lung, a blood clot in the lung, or another cause that genuinely needs prompt attention.

This article is for education, not a diagnosis. For advice about your specific case, speak with a specialist.

Medically reviewed by

Dr. Osama Kashlan, MD, MPH

Fellowship-trained in endoscopic and minimally invasive spine surgery

Ready when you are.

Speak with our team about your spine condition and the options available to you. No obligation - just clarity.