Doctors Note Logo

Published on: 9/13/2026

Why does my upper back hurt when I cough or sneeze while lying down?

Upper back pain that flares with coughing or sneezing while lying down is often caused by sudden pressure on strained intercostal or thoracic muscles, irritated spinal joints, or inflamed rib cartilage, since these forceful movements contract the chest and back muscles while your body weight limits the spine's ability to absorb the jolt. Less commonly, it can point to conditions involving the lungs or pleura, such as pneumonia, pleurisy, or a blood clot, or to a herniated thoracic disc, a compression fracture, or acid reflux that worsens when you are flat. Warning signs like shortness of breath, fever, chest tightness, coughing up blood, numbness, or pain after a fall deserve prompt medical attention. There are several possible explanations, and the specific pattern of your symptoms matters a great deal, so see below to understand the important details before deciding what to do next.

Because the causes range from a simple muscle strain to something that needs urgent care, the fastest way to narrow things down is to answer a few targeted questions about your symptoms; take a free, instant, online symptom check to see which conditions match your situation and get clear guidance on your next steps.

Last reviewed for medical accuracy: 09/12/2026

answer background

Explanation

Why Does My Upper Back Hurt When I Cough?

Feeling a sharp twinge in your upper back every time you cough or sneeze while lying down can be alarming—and uncomfortable. This type of pain often has a clear explanation, ranging from simple muscle strain to more serious conditions. Understanding the most common causes, warning signs, and self-care strategies can help you manage symptoms and know when to seek medical advice.

Common Causes

  1. Muscular Strain or Ligament Sprain

    • Overuse or sudden movement can pull small muscles or ligaments around your thoracic spine.
    • Coughing or sneezing increases pressure inside your chest, jolting strained tissues and causing pain.
    • Poor posture—especially slouching in bed or on the couch—can make muscles more prone to strain.
  2. Rib or Vertebral Stress Reaction

    • Repeated coughing can stress ribs where they attach to vertebrae, leading to inflammation.
    • Tiny cracks (stress fractures) in ribs or vertebrae may occur in people with weakened bones (osteoporosis).
  3. Degenerative Spine Changes

    • As we age, discs between vertebrae can lose fluid and height, leading to bone-on-bone contact or herniation.
    • Arthritic changes around facet joints of the upper spine can become painful when internal pressure spikes.
  4. Pleurisy or Lung Inflammation

    • The lining around your lungs (pleura) can become inflamed from infection, injury or autoimmune disease.
    • Coughing makes inflamed pleura rub together, causing sharp pain that may be felt in the upper back.
  5. Pneumonia or Bronchitis

    • Chest infections can irritate chest wall muscles and pleura.
    • A deep, hacking cough against inflamed tissues often triggers back or side pain.
  6. Referred Pain from Heart or Esophagus (Less Common)

    • In rare cases, heart inflammation (pericarditis) or esophageal spasms can refer pain to the upper back.
    • This typically comes with chest discomfort, shortness of breath or swallowing difficulties.

Red Flags: When to Seek Immediate Care

Most causes of back pain with coughing are benign and improve with self-care, but certain warning signs require prompt evaluation:

• Sudden, severe chest or back pain that radiates to your jaw, arm or abdomen
• Difficulty breathing, rapid heart rate or sweating
• High fever, chills or productive cough with green/yellow phlegm
• Numbness, tingling or weakness in arms or legs
• History of trauma (fall, accident) or known osteoporosis
• Unexplained weight loss, night sweats or loss of appetite

If you experience any of these, call emergency services or see a doctor right away.

Self-Care and Home Remedies

Most mild cases improve with simple measures. Try these first:

• Rest and Positioning

  • Lie on a firm, supportive surface—avoid sinking into overly soft mattresses.
  • Use a small pillow under your neck and another under your knees to keep your spine neutral.

• Ice and Heat

  • Apply ice packs for 15–20 minutes several times a day during the first 48 hours to reduce inflammation.
  • After 48 hours, switch to heat packs (or warm showers) to relax tight muscles.

• Gentle Stretching

  • While standing, clasp hands behind your back and gently lift to open up your chest.
  • Do slow, controlled neck tilts (ear to shoulder) and thoracic rotations (twisting your upper body) to ease stiffness.

• Over-the-Counter Pain Relief

  • Nonsteroidal anti-inflammatory drugs (NSAIDs) like ibuprofen or naproxen can reduce pain and swelling.
  • Always follow the dosing instructions and check with a pharmacist or doctor if you have other health conditions.

• Improve Cough Technique

  • Support your chest and back with a pillow when coughing or sneezing to cushion the impact.
  • Cough into a folded towel or crook of your elbow to minimize jarring movements.

Physical Therapy and Exercise

If pain persists beyond a week or two, a physical therapist can design a program to:

• Strengthen upper-back and shoulder muscles
• Correct posture imbalances
• Teach you safe movement patterns to prevent future strain
• Improve flexibility in the thoracic spine

Medical Treatments

When home care isn’t enough, medical options include:

• Prescription Muscle Relaxants – for severe muscle spasms
• Corticosteroid Injections – to reduce inflammation around inflamed joints or nerves
• Bracing – in case of rib stress fractures or vertebral compression fractures
• Antibiotics – if a bacterial lung infection like pneumonia is confirmed

Diagnosis: What to Expect

Your doctor will take a thorough history and perform a physical exam. They may order:

• X-rays or MRI – to look for fractures, arthritis or disc problems
• Chest X-ray – if pneumonia or pleurisy is suspected
• Blood tests – to check for infection or inflammatory markers
• Pulmonary function tests – for underlying lung disease

Free Online Symptom Check

If you’re not sure how urgent your symptoms are, you can do a free, online symptom check, using the doctor approved Ubie Symptom Checker.

When to Follow Up

• If pain worsens or spreads into your arms, legs or abdomen
• If you develop new neurological symptoms (numbness, weakness)
• If your cough persists more than 3–4 weeks despite treatment
• If you start losing weight, have night sweats or prolonged fevers

Remember, persistent or severe pain deserves a healthcare provider’s attention.

Take-Home Message

“Why does my upper back hurt when I cough?” Usually, it’s due to strained muscles, inflamed joints or pressure changes affecting tissues in your chest and spine. With proper rest, posture adjustments, gentle stretching and over-the-counter pain relief, most people improve in days to weeks. However, if you notice any red-flag symptoms or if discomfort lingers, speak to a doctor to rule out serious causes and get tailored treatment.

(References)

  • * Vanleeuw P, Calozet Y, Eucher P, Rubay J, Schoevaerdts JC. Cardiac myxoma. Cardiovasc Surg. 1993 Dec;1(6):654-6. doi: 10.1177/096721099300100608. PMID: 8076115.

  • * Gleiter CH, Jägle C, Gresser U, Mörike K. Candesartan. Cardiovasc Drug Rev. 2004 Winter;22(4):263-84. doi: 10.1111/j.1527-3466.2004.tb00146.x. PMID: 15592574.

  • * Shahul HA, Manu MK, Mohapatra AK, Magazine R. Ortner's syndrome. BMJ Case Rep. 2014 Mar 11;2014. doi: 10.1136/bcr-2013-200950. Epub 2014 Mar 11. PMID: 24618861; PMCID: PMC3962976.

  • * McCarthy J, Davis A. Diagnosis and Management of Vertebral Compression Fractures. Am Fam Physician. 2016 Jul 1;94(1):44-50. PMID: 27386723.

  • * Davis D, Taqi M, Vasudevan A. Sciatica. 2026 Jan. PMID: 29939685.

  • * Finley CR, Chan DS, Garrison S, Korownyk C, Kolber MR, Campbell S, Eurich DT, Lindblad AJ, Vandermeer B, Allan GM. What are the most common conditions in primary care? Systematic review. Can Fam Physician. 2018 Nov;64(11):832-840. PMID: 30429181; PMCID: PMC6234945.

  • * Eggeling S. [Pneumothorax]. Zentralbl Chir. 2021 Feb;146(1):126-144. doi: 10.1055/a-1256-6008. Epub 2021 Feb 15. PMID: 33588508.

  • * Rudolph M, Peng J, Wu PE. Cystadénome séreux bénin accompagné de toux et de lombalgie. CMAJ. 2021 Oct 25;193(42):E1650-E1651. doi: 10.1503/cmaj.202850-f. PMID: 34697106; PMCID: PMC8562988.

  • * Bascom R, Dhingra R, Francomano CA. Respiratory manifestations in the Ehlers-Danlos syndromes. Am J Med Genet C Semin Med Genet. 2021 Dec;187(4):533-548. doi: 10.1002/ajmg.c.31953. Epub 2021 Nov 22. PMID: 34811894.

  • * Chamo M, Kull C, Khani H. [Acupuncture with an Aftermath]. Praxis (Bern 1994). 2023;112(4):239-241. doi: 10.1024/1661-8157/a004023. PMID: 36919318.

Thinking about asking ChatGPT?Ask me instead

Tell your friends about us.

We would love to help them too.

smily Shiba-inu looking

For First Time Users

What is Ubie’s Doctor’s Note?

We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.

Was this page helpful?

Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.