Why Does the Middle of My Back Hurt When I Cough?

Mid-back pain that flares with every cough is almost always the result of the enormous mechanical force a cough places on the thoracic spine and the structures surrounding it. The thoracic segment of your spine runs roughly from the base of the neck to the bottom of the ribcage, and it serves as an anchor point for ribs, large muscle groups, and a dense web of ligaments that all get yanked on during the explosive contraction of a cough. Most of the time the cause is something benign and self-limiting, like a strained muscle or an irritated joint, but the same symptom can occasionally point to something that needs medical attention.

The Forces a Cough Puts on Your Mid-Back

Coughing is not a gentle event. It involves a rapid, coordinated contraction of muscles across your entire trunk. Research using surface electromyography shows that both the primary expiratory muscles (the rectus abdominis, obliques, and lower intercostals) and the accessory muscles (the trapezius, pectoralis major, deltoid, and latissimus dorsi) all fire during a voluntary cough, with the expiratory muscles activating earlier and sustaining their contraction longer than the accessory group.1Thorax. Differences in motor activation of voluntary and reflex cough in humans Several of those muscles attach directly to the thoracic vertebrae or to the ribs where they meet the spine. The latissimus dorsi, for instance, has broad attachments across the lower thoracic spine, and the trapezius covers the upper portion. When these muscles contract violently and simultaneously, the vertebrae, joints, and discs of the mid-back absorb a large share of the resulting force.

A single hard cough generates brief but substantial intrathoracic pressure. When you are coughing dozens or hundreds of times a day during a bad respiratory infection, those forces accumulate. That repetitive loading is why cough-related mid-back pain tends to appear during or shortly after an illness rather than from a single isolated cough.

Muscle Strain Is the Most Common Cause

If your mid-back pain started during a stretch of heavy coughing and feels like a deep ache or a sharp catch when you cough, the most likely explanation is a strained muscle or group of muscles. The intercostal muscles between your ribs, the paraspinal muscles running alongside the spine, and the larger muscles that cross the thoracic region (like the latissimus dorsi and lower trapezius) can all develop micro-tears or spasms from the repetitive explosive contractions coughing demands. The pain usually worsens with movement, deep breathing, or twisting, and it often feels tender to the touch.

This kind of strain tends to resolve on its own within a few days to a couple of weeks once the coughing subsides. Gentle stretching, over-the-counter anti-inflammatory medication, and applying heat or ice can help in the meantime. Supporting your mid-back with a pillow or cushion when you feel a cough coming can also reduce the jolt, since giving the torso something to brace against lessens the free movement the spine has to absorb.

Costovertebral and Facet Joint Irritation

Your ribs do not just float in space. Each rib connects to the thoracic spine at two small joints: the costovertebral joint (where the rib head meets the vertebral body) and the costotransverse joint (where the rib meets the bony bump on the side of the vertebra). These joints have cartilage, ligaments, and a capsule, just like a knee or a knuckle, and they can become inflamed or irritated. Because the ribs move every time you breathe, and move a lot more when you cough, these joints take a beating during a prolonged illness.

Costovertebral joint dysfunction often produces a localized, sharp pain right alongside the spine that worsens with deep breathing, coughing, and twisting. It can mimic pain from a disc problem or even cardiac pain depending on which level is affected. Physical therapists and chiropractors are generally familiar with this type of joint irritation and can sometimes provide relief through mobilization techniques.

In people with inflammatory conditions like ankylosing spondylitis, the costovertebral joints can become a significant source of chronic thoracic pain. CT imaging of patients with ankylosing spondylitis who reported lower thoracic pain found abnormal costovertebral joint findings in the vast majority, including erosions, sclerosis, and joint widening, with bony bridging and eventual fusion in those with longer disease duration.2Oxford Academic (British Journal of Rheumatology). Costovertebral Joint Changes in Ankylosing Spondylitis with Thoracic Pain If your mid-back pain during coughing is part of a broader pattern of morning stiffness, reduced chest expansion, or chronic pain that improves with movement and worsens with rest, an inflammatory condition is worth discussing with your doctor.

Thoracic Disc Problems

Disc herniations are far less common in the thoracic spine than in the neck or lower back, partly because the ribcage limits how much movement the thoracic vertebrae undergo. But they do happen, and coughing is one of the activities that increases pressure inside the spinal canal enough to aggravate them. A thoracic disc herniation can press on nearby spinal nerves, producing pain that radiates around one side of the trunk following the path of the affected intercostal nerve.

A case report of a professional baseball pitcher illustrates the pattern: he developed left-sided chest wall pain in the lower rib region, and MRI revealed a disc herniation at the T9-T10 level pressing on the nerve root, with accompanying reduced sensation on that side of the chest.3PubMed Central. Unusual chest wall pain caused by thoracic disc herniation in a professional baseball pitcher That wrapping, band-like pain pattern is characteristic of thoracic radicular pain, which is estimated to account for a portion of the roughly five percent of outpatient pain-clinic referrals attributed to thoracic pain overall.4Pain Practice. Thoracic pain

Coughing, sneezing, and straining all raise intrathoracic and intraspinal pressure, which is why these actions make disc-related pain flare. If your mid-back pain radiates around one side of your torso or is accompanied by numbness, tingling, or a band-like sensation around your trunk, a thoracic disc issue may be contributing.

Rib Fractures From Coughing Alone

It sounds dramatic, but severe or prolonged coughing can actually fracture a rib. These cough-induced rib fractures are a specific type of stress fracture. The mechanism involves repetitive mechanical loading: each cough briefly deforms the rib, and if the coughing continues long enough, small cracks develop that can progress to a full fracture. The ribs most vulnerable tend to be the fifth through tenth, particularly in the middle third of the rib, along with the costochondral junctions where bone meets cartilage.5PubMed Central. Cough-induced rib fractures: A comprehensive analysis of 90 patients in a single center

Because those mid-range ribs attach to the mid-thoracic spine, a cough-induced rib fracture can easily register as mid-back pain rather than obviously “rib” pain. The discomfort is typically very localized, sharp with every breath or cough, and exquisitely tender to touch at one specific spot. It is worth noting that this is not exclusive to elderly or frail patients. Case reports describe rib fractures from coughing in young, otherwise healthy people who happened to have a persistent cough.6PubMed Central. Rib fracture secondary to cough-induced trauma If you have been coughing hard for a week or more and develop a sudden, sharply localized pain that worsens dramatically with any chest movement, a rib fracture is a real possibility worth getting checked.

Vertebral Compression Fractures

For older adults, particularly those with osteoporosis, coughing can cause fractures in the vertebral bodies themselves, not just the ribs. The mechanism is straightforward: osteoporotic bone is weakened, and the compressive forces of coughing can be enough to collapse a vertebral body. Research during the COVID-19 pandemic documented a pattern of thoracic compression fractures in elderly patients with prolonged coughs, with fractures clustering in the mid-thoracic spine.7PubMed Central. Risk factors for thoracic-osteoporotic thoracic vertebral compression fractures during the normalized prevention and control period of COVID-19 The combination of pre-existing vertebral deformity, ligament laxity, and bone loss from osteoporosis makes the mid-thoracic spine a high-stress point during coughing, contributing to fracture risk there specifically.

Compression fractures feel different from muscle strain. The pain tends to be constant, located directly over the spine, and worse with any weight-bearing activity. It often develops suddenly during or after a coughing episode. Some people notice a change in posture or a rounding of the upper back. If you are over sixty, have a known history of osteoporosis, or have been on long-term corticosteroids (which weaken bone), new mid-back pain during a cough-heavy illness should raise this possibility.

Less Common but Serious Causes

Most cough-related mid-back pain resolves as the cough resolves, but a few rarer conditions are worth knowing about because they require prompt treatment.

Spinal infections, including epidural abscesses, can cause thoracic pain that worsens with coughing or straining. The pain typically starts as a persistent, localized ache and escalates, sometimes with fever or signs of nerve compression like weakness or numbness in the legs.8PubMed Central. Spinal epidural abscess These are uncommon but can progress rapidly if untreated.

Tumors in or around the thoracic spine, whether primary or metastatic, can also produce pain that worsens with increased intrathoracic pressure from coughing. This type of pain tends to be constant and progressive, often worse at night, and not clearly related to a recent illness. Any mid-back pain that started without an obvious trigger and steadily worsens, especially in someone with a history of cancer, warrants investigation.

Pulmonary conditions, including pleurisy (inflammation of the lining around the lungs) and lower-lobe pneumonia, can refer pain to the mid-back. The pleural lining shares nerve supply with parts of the chest wall, so inflammation there can be felt as a sharp, stabbing mid-back pain that worsens with coughing or deep breathing. This pain is usually accompanied by other respiratory symptoms like shortness of breath, fever, or productive cough.

When Imaging and Medical Evaluation Make Sense

Not every episode of mid-back pain with coughing needs a trip to the doctor, much less an MRI. Current clinical guidelines from the American College of Radiology indicate that uncomplicated acute thoracic back pain does not typically require imaging, but that imaging should be considered if pain persists despite six weeks of conservative treatment.9Journal of the American College of Radiology. ACR Appropriateness Criteria® Thoracic Back Pain Earlier imaging is appropriate when “red flag” features are present, including a known or suspected history of cancer, recent infection, immunosuppression, significant trauma, or signs of myelopathy like leg weakness, gait changes, or bladder dysfunction.

In practical terms, you should see a doctor soon if:

  • Neurological symptoms: Weakness, numbness, or tingling in the legs, changes in bladder or bowel control, or difficulty walking.
  • Systemic signs: Fever, unexplained weight loss, or night sweats alongside the back pain.
  • Severe or worsening pain: Pain that is getting steadily worse rather than improving, or that keeps you awake at night.
  • Trauma or high-risk history: A recent fall, a history of cancer, long-term steroid use, or known osteoporosis.
  • Sudden onset of sharp, localized pain: This could suggest a rib or vertebral fracture, especially after prolonged heavy coughing.

If none of those apply and your pain seems clearly linked to a recent cough, it is reasonable to manage it at home for a few weeks and see your doctor if it has not improved by then.

Why the Mid-Back Specifically

People sometimes wonder why it is the middle of the back that hurts rather than the lower back or the chest itself. The answer lies in the anatomy of the region. The thoracic spine is the only section of the vertebral column directly connected to the ribcage, which means it absorbs forces from two directions: the axial loading that comes down through the spine and the lateral forces transmitted through the ribs during respiratory movements. The mid-thoracic vertebrae (roughly T4 through T8) sit at the apex of the natural thoracic curve, which makes them a stress concentration point. Any force that increases the rounding of the upper back, as coughing tends to do when you hunch forward, is amplified at this apex.

The muscle attachments in this region also contribute. The erector spinae group runs along the full length of the spine, but the mid-thoracic portion is where it is most tightly sandwiched between the spine and the ribcage. Spasm or strain here produces pain that feels deep and hard to localize, often described as a burning or aching sensation between the shoulder blades. This differs from lower-back strain, where people can usually point to a specific spot. The diffuse, hard-to-pinpoint quality of mid-thoracic pain is one reason people find it unsettling.

Managing the Pain While You Are Still Coughing

The frustrating reality of cough-related mid-back pain is that the treatment for the pain (rest the area, avoid aggravating movements) conflicts directly with the involuntary nature of coughing. You cannot simply stop coughing through willpower. A few strategies can help bridge the gap.

Treating the cough itself is the most direct approach. If your cough is productive and related to an infection, addressing the underlying infection shortens the period of mechanical stress. If it is a dry, persistent cough, discussing cough suppressants with your doctor can reduce the number of forceful contractions your spine absorbs each day. Over-the-counter options like dextromethorphan help some people, while a lingering post-infectious cough sometimes responds to inhaled corticosteroids or other prescription medications.

Bracing your trunk before a cough reduces the peak force on the spine. Hugging a pillow against your chest or pressing your back against a firm surface when you feel a cough coming gives the trunk muscles something to push against, distributing the load more evenly and reducing the whiplash-like motion of the thoracic spine. Hospital staff routinely teach this technique to post-surgical patients for the same reason.

Heat applied to the mid-back can relax the paraspinal muscles and reduce spasm between coughing bouts. Gentle, supported stretching, such as a doorway chest stretch or a cat-cow motion on your hands and knees, helps maintain mobility in the costovertebral joints and prevents the area from seizing up entirely. The goal is not aggressive stretching but keeping the muscles and joints moving enough that they do not stiffen into a pain-spasm cycle.

Sleeping position matters too. Lying flat on your back with a small rolled towel under the thoracic curve or sleeping on your side with a pillow between your knees can reduce overnight stiffness. Sleeping face-down tends to extend the thoracic spine and may aggravate costovertebral joint irritation.

Chronic Cough and Recurring Mid-Back Pain

A cough that lasts beyond eight weeks is classified as chronic, and its relationship with mid-back pain shifts from acute strain to a more complex problem. People with chronic cough from conditions like asthma, gastroesophageal reflux, or post-nasal drip may develop recurrent thoracic pain that flares with each exacerbation. Over time, the costovertebral joints, thoracic facets, and paraspinal muscles undergo repeated cycles of injury and incomplete healing, leading to a baseline of stiffness and irritability that does not fully resolve between flares.

In this situation, treating the underlying cause of the cough becomes even more critical than managing the back pain directly. Reflux-related cough, for example, often responds to dietary changes and acid-suppressing medication. Cough-variant asthma typically improves with inhaled bronchodilators and corticosteroids. Addressing the source of the cough breaks the cycle of repeated mechanical injury to the thoracic spine. Physical therapy focused on thoracic mobility and respiratory muscle strengthening can also reduce the intensity of pain during flare-ups by improving the shock-absorbing capacity of the muscles around the spine.