Doctors Note Logo

Published on: 9/25/2026

Chest pain when you cough: when it is muscle and when it is not

Chest pain that shows up only when you cough is often muscular, the result of strained chest wall muscles, irritated rib cartilage, or overworked intercostal muscles from repeated forceful coughing, and it typically feels sharp, easy to pinpoint, and tender when you press on the spot or twist your torso. It is less likely to be muscle when the pain arrives with fever, discolored or bloody mucus, breathlessness, a racing heart, leg swelling, fainting, or pain radiating into the arm, jaw, or back, which can signal pneumonia, pleurisy, a pulmonary embolism, or a cardiac problem. Duration of the cough, recent injury or illness, smoking history, and personal risk factors all change the picture, and there are several important distinctions to consider before assuming it is only a pulled muscle. See below to understand more.

Because muscle strain and serious chest conditions can feel remarkably similar in the first days, guessing wrong costs you either needless worry or critical time, so it helps to sort your specific pattern of symptoms now rather than wait and watch. Take a free, instant, online symptom check to see which causes best match what you are feeling and what your most sensible next step should be.

Last reviewed for medical accuracy: 09/25/2025

answer background

Explanation

Chest Pain When You Cough: When It’s Muscle and When It’s Not

Feeling like your chest is painful when you cough can be alarming. Often, the cause is simple muscle strain—but sometimes it signals a more serious lung, heart, or nerve issue. This guide will help you understand common causes, how to tell muscle pain apart from other problems, and when to seek medical care.


Why Your Chest Is Painful When You Cough

Coughing rapidly increases pressure inside your chest and abdomen. If tissues or organs are inflamed, injured, or irritated, you’ll feel a sharp or aching pain each time you force air out. Key pain pathways include:

  • Muscles and connective tissues between ribs
  • Ribs and cartilage where they meet breastbone (costochondral joints)
  • Lining of the lungs (pleura)
  • Nerves running along each rib
  • Heart lining (pericardium)

Muscle-Related Causes

When your chest pain is due to muscle or connective tissue, it’s often easier to manage at home. Look for these signs:

1. Intercostal Muscle Strain

  • Caused by over-exertion (heavy lifting, vigorous exercise, twisting)
  • Pain is localized, sharp with cough or deep breath
  • Tender if you press on the affected area
  • Improves gradually with rest and gentle stretching

2. Costochondritis

  • Inflammation of cartilage between ribs and breastbone
  • Pain is sharp or achy, often on the left side
  • Worse when pushing on the breastbone
  • May follow a viral illness or repeated coughing

3. Muscle Spasm or Cramp

  • Sudden, intense pain that may tighten chest wall
  • Triggered by dehydration or electrolyte imbalance
  • Relieved by gentle massage, heat, or over-the-counter pain relief

Non-Muscular (Serious) Causes

If the pain isn’t muscle-related, you’ll need to watch for additional symptoms. These conditions can be more serious and may require prompt medical attention.

1. Pleurisy (Pleuritis)

  • Inflammation of lung lining
  • Sharp, stabbing pain that worsens with cough or deep breath
  • Often follows viral infection or pneumonia
  • May be accompanied by fever and shortness of breath

2. Pneumonia

  • Infection of lung tissue
  • Cough with green or bloody sputum, fever, chills
  • Chest pain that feels worse on one side, especially when coughing
  • Labored breathing, fatigue

3. Pulmonary Embolism (Blood Clot)

  • Sudden, sharp chest pain, usually one side
  • Shortness of breath, rapid heart rate, sweating
  • May follow long travel or immobility

4. Pneumothorax (Collapsed Lung)

  • Sudden, severe one-sided chest pain
  • Shortness of breath that comes on quickly
  • Often occurs in tall, thin individuals or after chest injury

5. Pericarditis

  • Inflammation of heart lining
  • Sharp chest pain relieved by leaning forward
  • May radiate to neck, shoulder
  • Accompanied by fever, weakness

6. Rib Fracture

  • Pain at a specific rib, worse with cough, deep breath, or pressing on the spot
  • May follow trauma or severe cough
  • Breathing may be shallow to avoid pain

7. Shingles (Herpes Zoster)

  • Burning pain along a rib or side of chest
  • Follows by small blistering rash in a band
  • Initial pain often precedes rash by days

How to Tell Muscle Pain from Other Causes

Use the following checklist when your chest is painful when you cough:

Muscle-Related Not Muscle-Related
Location Localized, often near ribs or breastbone May be diffuse or feel deep inside chest
Tenderness Tender when you press the muscles Minimal or no tenderness on palpation
Movement Worse with certain movements or stretches Worse with cough or breath, regardless of movement
Onset Gradual or after clear exertion Sudden, without clear physical cause
Other Symptoms Mild discomfort, no fever or breathlessness Fever, fatigue, rapid heartbeat, shortness of breath

When to Worry: Red Flags

If you experience any of the following, seek medical attention right away:

  • Pain that is crushing, squeezing, or doesn’t improve with rest
  • Severe shortness of breath or difficulty breathing
  • Coughing up blood or large amounts of fluid
  • High fever (over 101°F/38.3°C) and chills
  • Rapid heartbeat, lightheadedness, or fainting
  • New rash or blisters along chest

Home Care for Muscle-Related Chest Pain

If you’re fairly confident your chest pain stems from muscle strain or costochondritis, try these steps:

  • Rest and avoid activities that worsen the pain
  • Apply a warm compress or heating pad to the area for 15–20 minutes, several times a day
  • Take over-the-counter pain relievers (ibuprofen, naproxen, or acetaminophen) as directed
  • Perform gentle chest and shoulder stretches once pain begins to ease
  • Maintain good posture to reduce chest wall strain

If pain persists beyond 2 weeks, worsens, or limits daily activities, have it checked by a healthcare professional.


Next Steps: Free, Online Symptom Check

Not sure what’s behind your cough-related chest pain? Consider a free, online symptom check, using the doctor approved Ubie Symptom Checker. It’s fast, confidential, and can guide you on whether to seek in-person care right away.

free, online symptom check, using the doctor approved Ubie Symptom Checker


When to See Your Doctor

Always trust your instincts. If you’re ever in doubt about the cause of your chest pain, call your doctor. Immediate medical care is crucial if you have:

  • Any red-flag symptoms listed above
  • Chest pain that feels unlike anything before
  • A history of heart or lung disease
  • Pain that doesn’t improve with home treatment

“Chest is painful when I cough” can be a minor muscle issue—or a sign that demands urgent attention. Early evaluation ensures you get the right treatment and peace of mind.

Speak to a doctor about anything that could be life-threatening or serious. Your health matters—don’t wait to get the advice you need.

(References)

  • * Littmann L, Miller RF, Humphrey SS. "Cough drops". J Cardiovasc Electrophysiol. 2002 Feb;13(2):198. doi: 10.1046/j.1540-8167.2002.00198.x. PMID: 11900300.

  • * Fauroux B, Clément A. Paediatric sarcoidosis. Paediatr Respir Rev. 2005 Jun;6(2):128-33. doi: 10.1016/j.prrv.2005.03.007. PMID: 15911458.

  • * Fuhrer G, Myers JN. Intrathoracic sarcoidosis. Dis Mon. 2009 Nov;55(11):661-74. doi: 10.1016/j.disamonth.2009.04.009. PMID: 19857641.

  • * Sano A, Tashiro K, Fukuda T. Cough-induced rib fractures. Asian Cardiovasc Thorac Ann. 2015 Oct;23(8):958-60. doi: 10.1177/0218492315596893. Epub 2015 Jul 22. PMID: 26207003.

  • * Shah SN, Bachur RG, Simel DL, Neuman MI. Does This Child Have Pneumonia?: The Rational Clinical Examination Systematic Review. JAMA. 2017 Aug 1;318(5):462-471. doi: 10.1001/jama.2017.9039. PMID: 28763554.

  • * Weinstock M, Vaidya A, El-Chemaly S, Godleski J, Henske E. The Verge of Collapse. N Engl J Med. 2018 Mar 29;378(13):e18. doi: 10.1056/NEJMimc1708586. PMID: 29590548.

  • * Galvez-Nino M, Ruiz R, Pinto JA, Roque K, Mantilla R, Raez LE, Mas L. Lung Cancer in the Young. Lung. 2020 Feb;198(1):195-200. doi: 10.1007/s00408-019-00294-5. Epub 2019 Nov 26. PMID: 31773258.

  • * Virdee G, Bleasdale J, Ikramullah M, Graham-Clarke E. Sertraline-induced hypersensitivity pneumonitis. BMJ Case Rep. 2019 Dec 19;12(12). doi: 10.1136/bcr-2019-230724. Epub 2019 Dec 19. PMID: 31862812; PMCID: PMC6936525.

  • * Taribagil P, Creer D, Tahir H. 'Long COVID' syndrome. BMJ Case Rep. 2021 Apr 19;14(4). doi: 10.1136/bcr-2020-241485. Epub 2021 Apr 19. PMID: 33875508; PMCID: PMC8057566.

  • * Kroczek AB, Mair M, Latshang T, Bumm R, Karajan TV. ["Literally torn apart by coughing"]. Inn Med (Heidelb). 2023 Feb;64(2):197-199. doi: 10.1007/s00108-022-01432-7. Epub 2022 Nov 28. PMID: 36441194.

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.