Why Do I Have Pain in My Back Right Side When I Breathe?

Pain in the right side of your back that flares with each breath most commonly results from a strained muscle or irritated rib joint, but it can also be a sign of a lung condition, a kidney or gallbladder problem, or, less frequently, a cardiovascular emergency. The key to figuring out what is going on lies in the character of the pain, what else accompanies it, and how long it has lasted. Because the back is layered with muscles, nerves, ribs, and organs that all shift slightly every time you inhale, a surprising range of conditions can produce this particular symptom.

Muscle Strains and Rib-Joint Irritation

The simplest and most common explanation is musculoskeletal. Muscles between the ribs (the intercostals), along the spine, and around the shoulder blade all stretch and contract during breathing. If one of those muscles is strained from an awkward sleeping position, a sudden twist, heavy lifting, or even a bout of intense coughing, the repetitive movement of breathing can produce a sharp, localized pain on one side. Costochondritis, an inflammation of the cartilage connecting ribs to the breastbone, is another frequent culprit. Although costochondritis is usually felt in the front of the chest, the pain can radiate around to the back, and it is often mistaken for something more serious like heart disease or pleurisy.1PubMed Central. Musculoskeletal chest wall pain

What makes musculoskeletal pain distinctive is that you can usually reproduce it by pressing on the sore spot, twisting your torso, or reaching overhead. It tends to feel worse with certain postures and better with rest or over-the-counter anti-inflammatories. There is no fever, no cough, and no shortness of breath at rest. If those criteria fit, the odds strongly favor a muscle or joint issue rather than an organ problem. That said, the relief of hearing “it’s just a muscle” should not make you ignore pain that persists for weeks or worsens steadily.

Vertebral Compression Fractures

If you are older or have osteoporosis, a compression fracture in one of the thoracic vertebrae can cause sudden back pain that worsens dramatically with breathing. The fractured bone destabilizes the segment of the spine where the ribs attach, so every expansion of the rib cage tugs on the injury. One study of patients with osteoporotic thoracic compression fractures found that their lung-function measurements were substantially below normal before treatment; after a stabilizing procedure, forced vital capacity improved from roughly 58% of the predicted value to about 76% within three months, and pain scores dropped sharply.2Clinical Spine Surgery. The Effect of Vertebroplasty on Pulmonary Function in Patients With Osteoporotic Compression Fractures of the Thoracic Spine That improvement illustrates how tightly linked thoracic spinal pain and breathing capacity are: when the fracture hurt less, patients were finally able to take a full breath.

Lung Conditions That Hurt When You Breathe

The medical term for pain that sharpens with breathing is “pleuritic” pain, named after the pleura, the two-layered membrane that wraps around each lung. When the pleura becomes inflamed, the two layers rub against each other during inhalation, producing a stabbing sensation that can localize to the front, side, or back of the chest. Because the right lung is slightly larger and has three lobes compared to the left lung’s two, right-sided pleuritic pain is common.

Several lung conditions produce this kind of pain:

  • Pneumonia: A bacterial or viral infection in the lung often causes fever, cough, and pleuritic pain. When the infection involves the lower lobe of the right lung, which sits against the back of the rib cage, the pain is felt in the right back. One well-documented case involved a patient whose complicated pneumonia led to worsening shortness of breath and pleuritic back pain that required surgical intervention.3Annals of the American Thoracic Society. Progressive Dyspnea and Back Pain after Complicated Pneumonia
  • Pulmonary embolism: A blood clot that travels to the lung can cause sudden, sharp chest or back pain along with breathlessness. The pain tends to be one-sided and pleuritic. In one reported case, a young woman presented with cough, mild blood-tinged sputum, and a week of middle-to-lower back pain; imaging revealed a pulmonary embolism with a pleural effusion and signs of lung infarction.4Pleural Diseases. Middle and Low Back Pain Due to Pulmonary Embolism With Ipsilateral Pleural Effusion Back pain as the main symptom of a pulmonary embolism is easy to misattribute to a muscle problem, which is what makes the condition dangerous.
  • Pneumothorax: A collapsed lung classically causes sudden chest pain and difficulty breathing, but it does not always present that way. A case report documented a healthy young nonsmoking man whose primary complaint was severe back pain; imaging ultimately revealed a spontaneous pneumothorax. The authors stressed that a high level of suspicion is needed when the presentation is atypical.5PubMed Central. When back pain masks a pneumothorax: Atypical presentation in a healthy young nonsmoker male
  • Pleurisy: Sometimes the pleural lining becomes inflamed on its own, without an obvious infection or clot. Viral pleurisy is relatively common and tends to resolve on its own, but the pain during the acute phase can be intense enough to make you dread every inhale.

The distinguishing feature of lung-related back pain is that it usually comes with at least one respiratory symptom: a cough, shortness of breath, or a sense that something is wrong beyond just pain. Fever is a strong hint toward infection. If your pain arrived suddenly and you feel winded doing things that normally would not wind you, consider the lungs high on the list.

Kidney and Gallbladder Problems

Your right kidney sits just below the rib cage in the back, and the gallbladder tucks under the liver on the right side. Both organs are close enough to the diaphragm and lower ribs that problems in either one can produce pain that seems to track with breathing.

Kidney stones are a classic cause of right-sided flank pain that can extend into the back. The pain is often described as waves of intense cramping, but it can also be a constant ache that intensifies when you breathe deeply because the kidney shifts slightly with each diaphragm contraction. A kidney infection (pyelonephritis) produces similar pain along with fever, nausea, and sometimes painful urination.

Gallbladder attacks, usually from gallstones blocking the bile duct, tend to produce pain in the upper right abdomen that radiates to the right shoulder blade and back. The pain often starts after a fatty meal, builds over minutes to hours, and may worsen with deep breathing because the inflamed gallbladder sits right beneath the diaphragm. A liver abscess, although uncommon, can produce a similar pattern of right-upper-quadrant pain radiating to the back.

Why Breathing Connects to Pain in Distant Organs

It seems odd that a kidney stone or a gallbladder problem could hurt more when you inhale, but the connection is the diaphragm and the way your nervous system processes pain signals. The diaphragm is the muscular sheet that powers breathing. When it contracts and flattens downward during inhalation, it pushes abdominal organs slightly lower, changes pressure inside the chest and abdomen, and moves the ribs outward. If any organ near the diaphragm is inflamed or irritated, that mechanical shift aggravates it with each breath.

There is also a neural explanation. Pain signals from the diaphragm, the heart, and the lungs converge on the same spinal cord neurons that carry sensation from the skin and muscles of the chest and back. Research on spinal cord neurons in primates showed that stimulation of phrenic nerve fibers (the nerve that controls the diaphragm) excited a large proportion of the same neurons that relay pain from the chest wall.6PubMed. Convergence of phrenic and cardiopulmonary spinal afferent information on cervical and thoracic spinothalamic tract neurons in the monkey: implications for referred pain from the diaphragm and heart Your brain receives these overlapping signals and sometimes misinterprets the source, which is why an inflamed organ beneath the diaphragm can register as back pain, shoulder pain, or chest wall pain. This phenomenon of referred pain explains why a duodenal ulcer, for instance, can masquerade as mid-back pain for weeks before the true cause is discovered.7PubMed. Low back pain caused by a duodenal ulcer

Aortic Dissection and Cardiovascular Causes

This is the rare but genuinely life-threatening possibility. An aortic dissection occurs when the inner layer of the aorta tears, allowing blood to force its way between the layers of the vessel wall. The hallmark is sudden, severe, “tearing” pain in the chest or back. The trouble is that the pain can present in vague or atypical ways. Studies have found that only about 15% to 43% of confirmed aortic dissection cases are correctly diagnosed at first presentation, in part because the pain is easily attributed to musculoskeletal causes.8Orthopedic Reviews. Aortic Dissection Masquerading as Musculoskeletal Chest and Back Pain

Aortic dissection is most common in people over 60 with a history of high blood pressure, but it can occur in younger people with connective-tissue disorders or a history of stimulant drug use. The pain is usually sudden in onset and described as the worst pain the person has ever felt, which distinguishes it from the gradual buildup of a muscle strain. If you experience sudden, tearing back pain with lightheadedness, a sense of impending doom, or differences in blood pressure or pulse between your two arms, call emergency services immediately.

Thoracic Nerve Irritation

Thoracic radiculopathy, where a nerve root exiting the mid-spine becomes compressed or irritated, is an underrecognized cause of pain that worsens with breathing. Because the thoracic spine is relatively immobile compared to the neck and lower back, nerve problems here are less common and frequently overlooked. The pain tends to follow a band-like pattern around one side of the chest or abdomen, and it can be burning, sharp, or electric in character.

The causes range from a herniated disc to degenerative bony spurs narrowing the space where the nerve exits the spine. Case reports have documented thoracic radiculopathy caused by unusual conditions including tumors along the paraspinal area and foraminal stenosis from bony spurs of the thoracic vertebrae.9PubMed Central. Thoracic Radiculopathy due to Rare Causes Breathing aggravates the pain because the ribs articulate with the thoracic vertebrae, so every rib expansion tugs on the irritated nerve root. If your pain follows a band around one side, feels worse with certain spinal movements, and does not come with cough, fever, or shortness of breath, a nerve issue is worth investigating.

Red Flags That Warrant Emergency Care

Most right-sided back pain with breathing turns out to be something manageable: a pulled muscle, a minor rib-joint irritation, or a self-limiting viral pleurisy. But certain warning signs raise the probability of something serious enough to need urgent attention. A study of back-pain patients in the emergency department found that several “red flags” substantially increased the likelihood of serious underlying pathology. Fever had the highest predictive value by a wide margin. Other strong indicators included unexplained weight loss, urinary symptoms, flank pain, and writhing-type pain that prevents the person from finding a comfortable position.10PubMed. Back pain “red flags”: which are most predictive of serious pathology in the Emergency Department?

As a practical guide, seek prompt medical evaluation if your right-sided back pain with breathing is accompanied by any of the following:

  • Fever or chills: suggests infection such as pneumonia or a kidney infection
  • Sudden onset of severe pain: raises concern for a pulmonary embolism, pneumothorax, or aortic dissection
  • Shortness of breath at rest: indicates a lung or cardiovascular problem beyond a simple muscle strain
  • Coughing up blood: can accompany pulmonary embolism or serious lung infection
  • Unexplained weight loss: a red flag for malignancy or chronic infection
  • Numbness, weakness, or loss of bladder control: suggests spinal cord or nerve-root compression requiring urgent evaluation

Pain that started after a known injury, improves with rest and basic anti-inflammatories, and is not accompanied by any of the above is much less likely to be dangerous. Still, any back pain with breathing that persists beyond two weeks without improvement is worth discussing with a doctor, even if it does not seem alarming. Conditions like a small pleural effusion or a slowly growing kidney stone can simmer for weeks before becoming obvious.

Breathing Techniques and Pain Management

If your pain is musculoskeletal, the irony is that avoiding deep breaths to escape the pain can actually make things worse. Shallow breathing for prolonged periods can lead to stiffness in the rib joints, tension in the accessory breathing muscles of the neck and upper chest, and even reduced lung capacity over time. A systematic review of 20 studies found that slow deep breathing, when added to other treatments for spinal pain, produced meaningful reductions in pain and disability.11PubMed Central. Breathing interventions for spinal pain: A systematic review and meta-analysis The evidence was graded as low certainty, so it is not a guaranteed fix, but the principle is sound: gentle, progressive return to normal breathing patterns helps break the pain-guarding cycle where you breathe shallowly, stiffen up, and then experience more pain when you finally do take a full breath.

Practical strategies include placing a warm compress over the sore area before practicing slow, controlled inhalations through the nose. Breathing into the belly rather than lifting the shoulders can reduce how much the upper ribs move, which is helpful when the pain is around the shoulder-blade area. If you have been diagnosed with a specific condition like pleurisy or a rib fracture, your doctor may recommend a short course of prescription anti-inflammatories or, in some cases, a nerve block to control the pain while the underlying issue heals. The goal is always to keep breathing as normally as possible, because prolonged shallow breathing increases the risk of mucus buildup and secondary lung infections, especially in older adults or people recovering from surgery.

When the Right Side Matters

People often wonder whether pain on the right side specifically points to different conditions than left-sided pain. There is some truth to this, though it is not an absolute rule. The right side of the body houses the liver, gallbladder, and right kidney, so referred pain from any of these organs tends to be right-sided. A right lower-lobe pneumonia or a right-sided pulmonary embolism will naturally produce right back pain. Conversely, left-sided back pain with breathing might raise more concern about the heart or spleen, though cardiac pain is far more commonly felt in the center of the chest or the left arm rather than the back.

The side of the pain narrows the list of possible organ-related causes, but it does not help much for musculoskeletal or nerve-related problems, which can occur on either side depending on which muscle, rib, or nerve root is involved. A healthcare provider evaluating your symptoms will combine the location of the pain with its character (sharp vs. dull, constant vs. intermittent), its timing (sudden onset vs. gradual), associated symptoms (fever, cough, nausea), and your personal risk factors (smoking history, recent immobility, known osteoporosis) to figure out which diagnostic path to follow. Imaging like a chest X-ray, CT scan, or ultrasound is often the quickest way to sort out whether the cause is in the lungs, the spine, or an abdominal organ.