Why Does My Upper Back Hurt When I Breathe In?

Upper back pain when you breathe in usually means something in your rib cage, spine, or the muscles connecting them is irritated and getting aggravated by the expansion of your chest. Every time you inhale, your ribs lift and rotate outward, your diaphragm pulls downward, and dozens of small joints and muscles activate in a coordinated motion. If any of those structures is inflamed, strained, or out of position, you’ll feel it with each breath.

The causes range from a simple muscle strain that heals on its own to conditions that need prompt medical attention. Here’s how to make sense of what’s happening.

How Breathing Moves Your Upper Back

Your ribs don’t just hang in place. Each one connects to your spine at two small joints in the back, then wraps around and attaches to your breastbone in the front through cartilage. When you breathe in, your diaphragm contracts and drops, increasing the vertical space inside your chest. At the same time, the muscles between your ribs (the intercostals) pull the rib cage upward and outward, expanding your chest in all directions.

This means a deep breath creates movement at every point where a rib meets your spine. Those joints, called costovertebral joints, sit right along the upper and middle back. Any inflammation, stiffness, or injury at those connection points turns a normal breath into a painful one. The same goes for the intercostal muscles, the cartilage at the front of the ribs, and the lining around the lungs. All of these structures move with every breath you take, which is why the pain can feel so persistent and hard to ignore.

Muscle Strain: The Most Common Cause

An intercostal muscle strain is one of the most frequent reasons for upper back pain that worsens with breathing. These are the thin muscle layers running between each rib, and they can get strained from a sudden twist, a hard cough, lifting something heavy, or even sleeping in an awkward position. The pain tends to be sharp at first and then settles into a dull ache that flares up when you inhale deeply, cough, or sneeze.

You’ll often notice tenderness when you press on the area between the ribs, along with stiffness that makes it hard to twist your torso. Many people instinctively start taking shallow breaths to avoid the pain, which can leave you feeling short of breath even though your lungs are fine. Most intercostal strains heal within a few days to eight weeks, depending on severity. Mild cases resolve with rest and gentle movement, while more significant tears take longer.

Joint Irritation in the Thoracic Spine

The costovertebral joints, where each rib attaches to the vertebrae in your mid and upper back, are synovial joints with cartilage, fluid, and ligaments. They can become inflamed from poor posture, repetitive strain, or a sudden awkward movement. When one of these joints is irritated, you’ll typically feel a localized, stabbing pain near your spine that gets worse with deep breaths and rotation.

This type of pain is common in people who sit for long periods with rounded shoulders, since that posture compresses the joints and limits their normal movement. Over time, the joints stiffen, and then a sudden deep breath forces them through a range of motion they’re no longer accustomed to. The result is a sharp catch in the upper back that can feel alarming but is rarely dangerous.

Pleurisy: When the Lung Lining Is Inflamed

Pleurisy happens when the two thin layers of tissue surrounding your lungs become swollen and inflamed. Normally, these layers glide smoothly against each other as you breathe. When they’re inflamed, they rub together like two pieces of sandpaper, causing a sharp, stabbing chest pain that can radiate to your upper back and shoulders.

The key feature of pleurisy is that the pain lessens or stops when you hold your breath, since the rubbing pauses when your chest isn’t moving. It worsens with deep breaths, coughing, and sneezing. Pleurisy is usually caused by a viral infection, though it can also follow pneumonia, autoimmune conditions, or a chest injury. Unlike a muscle strain, pleurisy often comes with other symptoms like fever, a dry cough, or general fatigue. If the pain is new and sharp and you feel unwell, it’s worth getting checked.

Slipping or Misaligned Ribs

Sometimes a rib can slip slightly out of its normal position, irritating the nerve that runs along its lower edge. When this happens, you might feel or even hear a clicking or popping sensation in your rib cage. The initial pain is sharp and stabbing, then often settles into a lingering dull ache that flares when you breathe deeply or move your upper body.

Slipping rib syndrome most commonly affects the lower ribs (ribs eight through ten), so the pain tends to show up in the lower chest, upper abdomen, or flank area, sometimes radiating into the upper back. It can be tricky to diagnose because imaging often looks normal, and the pain can mimic other conditions. A physical exam where a provider manually moves the ribs is usually the most reliable way to identify it.

Acid Reflux and Referred Pain

This one surprises people. Gastroesophageal reflux (GERD) can cause pain between the shoulder blades that worsens with deep breathing, especially after meals or when lying down. The esophagus and the nerves in your upper back share overlapping nerve pathways, so inflammation in the esophagus can send pain signals to your back. This is called referred pain.

If your upper back pain tends to follow meals, comes with a burning sensation in your chest or throat, or gets worse when you lie flat, reflux may be a contributing factor. The breathing connection likely comes from the fact that deep inhalation increases pressure changes in the abdomen and chest, which can push stomach acid upward.

When the Pain Signals Something Serious

Most upper back pain with breathing is musculoskeletal and resolves on its own. But certain combinations of symptoms point to conditions that need immediate attention.

A pulmonary embolism (a blood clot in the lungs) can cause sharp chest or back pain that worsens with deep breaths or movement. Other signs include sudden shortness of breath even at rest, a fast heartbeat, coughing up blood, pale or bluish skin, dizziness, and fainting. If you also have leg pain, swelling, or warmth in one leg, that raises the likelihood further. This is a 911 situation.

A collapsed lung (pneumothorax) is another possibility, particularly in tall, thin young men, who face the highest risk. Primary spontaneous pneumothorax affects roughly 7 to 18 per 100,000 men annually, compared to 1 to 6 per 100,000 women. It causes sudden sharp pain on one side and difficulty breathing. Once it happens, there’s an estimated 13 to 60 percent chance it will happen again.

Pneumonia can also cause upper back pain with breathing, typically alongside fever, a productive cough, and feeling generally sick. If your pain came on suddenly with any of these accompanying symptoms, get evaluated promptly.

A Breathing Technique That Helps

When upper back pain makes every breath uncomfortable, your instinct is to breathe shallowly. That works short-term but can leave you lightheaded and anxious. Diaphragmatic breathing lets you get a full breath while minimizing the rib cage expansion that triggers pain.

Lie on your back with your knees bent and your head supported. Place one hand on your upper chest and the other just below your rib cage. Breathe in slowly through your nose, directing the breath downward so your stomach rises and pushes your lower hand outward. The hand on your chest should stay as still as possible. This shifts the work of breathing to your diaphragm instead of your intercostal muscles and rib joints, reducing the mechanical stress on your upper back.

Once you’re comfortable lying down, try the same technique sitting in a chair with your shoulders relaxed. Over time, this pattern becomes more natural and can significantly reduce breathing-related back pain while the underlying cause heals.

Narrowing Down Your Cause

A few questions can help you sort through the possibilities. Did the pain start after a specific event, like heavy lifting, a fall, or a bad coughing spell? That points toward a muscle strain or rib joint irritation. Is the pain sharp and localized, with a spot you can point to? Musculoskeletal causes tend to produce focal tenderness. Does the pain stop completely when you hold your breath? That’s characteristic of pleurisy. Does it follow meals or worsen lying down? Consider reflux.

Pain that came on suddenly with no clear trigger, accompanied by shortness of breath, a fast heartbeat, or leg swelling, falls into a different category entirely and warrants emergency evaluation. For everything else, the timeline matters: musculoskeletal pain that isn’t improving after a couple of weeks, or that’s getting progressively worse, is worth having assessed by a provider who can examine your rib mobility and rule out less common causes.