Chest Pain When Coughing: Common Causes and When to Seek Care

Medically Reviewed By: Mark Aquino, NP – Urgent Care Nurse Practitioner, author of Physical Assessment for Nurses Simplified. This article is based on real-world urgent care experience and current clinical guidelines.

Follow us: Facebook | Twitter/X | Threads | BlueSky | Mastodon |

Share this:

Chest pain when coughing can happen because repeated coughing strains the muscles between the ribs. It can also occur with illnesses that affect the airways or lungs, including bronchitis and pneumonia. However, chest pain should not automatically be blamed on a cough. Some serious heart and lung problems can also cause pain that gets worse with coughing or deep breaths.

If your pain is mild, clearly linked to a recent cough, and you are breathing normally, it may improve as the cough settles. But seek prompt medical advice for chest pain that is severe, persistent, unexplained, or accompanied by breathing problems, fever, coughing up blood, fainting, or other warning signs.

Call 911 or seek emergency care now if you have chest pain with:

  • Pressure, squeezing, heaviness, or crushing pain in the chest
  • Pain that spreads to the arm, shoulder, jaw, neck, back, or between the shoulder blades
  • Shortness of breath, trouble breathing, blue or gray lips, or a feeling that you cannot catch your breath
  • Fainting, new confusion, severe dizziness, sweating, nausea, or a racing or irregular heartbeat
  • Sudden sharp chest pain plus shortness of breath, especially after recent surgery, prolonged bed rest, a long trip, or with one-sided leg swelling
  • Coughing up blood
  • Chest pain after a significant chest injury or with sudden severe weakness

These symptoms can occur with emergencies such as a heart attack, a blood clot in the lung, or a collapsed lung. Do not drive yourself if you feel faint, severely short of breath, or think you may be having a medical emergency. Call 911 or have someone call for you. [1,5]

Why does my chest hurt when I cough?

Coughing briefly raises pressure inside the chest and makes the chest wall muscles work. When tissues are already irritated or inflamed, a cough can trigger a sharp, sore, or pulling sensation. The location, quality, timing, and other symptoms may help a clinician narrow down the cause, but they cannot reliably diagnose the cause at home.

Chest wall muscle strain

A hard, frequent, or prolonged cough can strain the muscles between the ribs or irritate the cartilage where the ribs meet the breastbone. This often causes soreness that is worse with coughing, laughing, twisting, taking a deep breath, or pressing on the tender area. Pain from a muscle strain can be uncomfortable, but chest tenderness does not rule out other causes of chest pain. [1]

Acute bronchitis or another viral respiratory illness

Acute bronchitis, sometimes called a chest cold, happens when the airways in the lungs become swollen and produce mucus. It commonly causes cough with or without mucus, congestion, sore throat, tiredness, and mild body aches. Repeated coughing can leave the chest muscles sore. Viruses are the usual cause, and antibiotics do not help a typical viral chest cold. Symptoms of acute bronchitis generally last less than three weeks. [2]

Pneumonia

Pneumonia is an infection of the lungs. It can cause cough, fever or chills, fatigue, shortness of breath, and chest pain that is worse when breathing or coughing. Symptoms can range from mild to serious. Older adults and people with certain chronic health conditions or weakened immune systems may not always have a typical fever. [3]

Also read:  Mosquito Bite Swelling: What’s Normal and When to Seek Care

Inflammation around the lungs

The lungs are covered by a thin lining called the pleura. Problems affecting this lining can cause sharp or stabbing pain that worsens with a deep breath, cough, or sneeze. Pleuritic chest pain can occur with infections and other conditions, so it needs medical evaluation when it is new, significant, or paired with shortness of breath. [4]

Other possible causes

Not all chest pain with a cough comes from the lungs. Heartburn or other digestive conditions may cause burning chest discomfort. Shingles can cause one-sided burning or tingling pain before or with a rash. Anxiety or panic can also cause chest discomfort and fast breathing. Heart problems, blood clots in the lungs, and other serious conditions remain possible, especially when pain is sudden, severe, or accompanied by emergency warning signs. [1]

Symptoms that may help describe the problem

Try to notice the pattern of your symptoms, but do not use the pattern alone to decide that chest pain is harmless. Information that can help a healthcare professional includes:

  • When the pain started and whether it was sudden or gradual
  • Where it hurts: center of the chest, one side, under the ribs, or near the breastbone
  • Whether the pain feels sore, sharp, stabbing, burning, tight, heavy, or pressure-like
  • Whether coughing, deep breathing, movement, eating, lying down, or exercise makes it worse
  • Whether pressing on the area reproduces the pain
  • Whether you have fever, chills, wheezing, mucus, shortness of breath, leg swelling, rash, nausea, or heartburn
  • Whether you recently had a respiratory infection, chest injury, surgery, long-distance travel, or a period of limited movement

For example, pain that develops after days of frequent coughing and is sore with twisting may fit a chest wall strain. In contrast, chest pain with fever, worsening cough, shortness of breath, and unusual fatigue may need evaluation for pneumonia or another respiratory illness. [1,3]

What to do at home for mild cough-related chest soreness

Home care may be reasonable only when the pain is mild, you can breathe comfortably, you have no emergency warning signs, and the symptoms fit a minor respiratory illness or cough-related muscle soreness. If you are unsure whether your chest pain is minor, contact a healthcare professional rather than trying to self-diagnose it.

  • Rest and avoid activities that clearly worsen the pain. Avoid strenuous exercise until you know why your chest hurts and your symptoms are improving.
  • Drink fluids regularly. Fluids may help prevent dehydration and can make throat secretions easier to clear when you are sick.
  • Use a clean humidifier or cool-mist vaporizer. This may help ease cough-related irritation for some people. Keep the device clean according to its instructions.
  • Try warm liquids, throat lozenges, or cough drops if appropriate. Honey may help ease cough in adults and children age 1 year or older. Never give honey to a baby younger than 1 year. Lozenges can be a choking hazard for young children. [2]
  • Use a cool or warm compress on sore chest-wall muscles. Choose the temperature that feels more comfortable, protect the skin with a cloth barrier, and avoid sleeping with a heating pad.
  • Do not smoke or vape. Smoke and inhaled irritants can worsen coughing and airway inflammation.

Over-the-counter pain medicine precautions

Acetaminophen or a nonsteroidal anti-inflammatory drug (NSAID), such as ibuprofen or naproxen, may help some adults with minor muscle soreness or fever when used exactly as directed on the package. These medicines do not treat the underlying cause of chest pain. [7]

Also read:  Black Stool After Pepto-Bismol: What’s Normal and When to Seek Care

Check with a pharmacist or clinician before taking an NSAID if you have kidney disease, heart disease, high blood pressure, liver disease, a history of stomach ulcers or digestive bleeding, or if you take blood thinners. Do not give aspirin to children or teenagers with a viral illness unless their clinician specifically tells you to do so. [7]

Acetaminophen is included in many cold, flu, and prescription products. Taking more than one acetaminophen-containing medicine can accidentally lead to an unsafe total dose and serious liver damage. Read every label, follow package directions, and ask a pharmacist if you are not sure whether products overlap. People with liver disease or regular heavy alcohol use should ask a clinician about safe options before taking acetaminophen. [8]

When to contact a healthcare professional

Contact your primary care clinician, a same-day clinic, or urgent care promptly if you have chest pain when coughing and any of the following apply:

  • Fever, chills, worsening cough, or mucus that is bloody, rust-colored, or otherwise concerning
  • New wheezing, mild shortness of breath, or breathing that feels harder than usual
  • Chest pain that is severe, does not improve, or lasts more than a few days
  • A cough lasting more than three weeks, repeated episodes of bronchitis, or symptoms that improve and then return or worsen
  • Symptoms of pneumonia, such as chest pain with cough, fever, marked fatigue, and shortness of breath
  • A history of asthma, chronic obstructive pulmonary disease (COPD), heart disease, blood clots, cancer, or immune-system suppression
  • Pregnancy, recent childbirth, recent surgery, or a recent long period of limited movement along with new chest symptoms

Urgent care can be an appropriate option for stable symptoms that need same-day assessment, such as a possible chest infection without severe breathing difficulty. Emergency care is the safer choice when there are signs of a heart, lung, or circulation emergency, including sudden chest pain with shortness of breath, fainting, or coughing up blood. [1,5,6]

Special considerations for children

Children can develop chest soreness from frequent coughing, but chest pain, fast breathing, trouble breathing, bluish lips or face, dehydration, unusual sleepiness, or a child who is difficult to wake needs urgent medical attention. For babies younger than 3 months, a temperature of 100.4°F (38°C) or higher requires prompt medical care. [6]

Do not use adult cough or pain medicines for a child. Over-the-counter cough and cold medicines are not recommended for children younger than 6 years because they can cause serious side effects. Ask a pediatric clinician or pharmacist which treatments are appropriate for your child’s age and size. [2]

What a clinician may check

A clinician will usually ask about the pain, cough, medical history, medicines, recent illnesses, injury, travel, and blood-clot risk factors. They may listen to your heart and lungs and check your temperature, pulse, blood pressure, breathing rate, and oxygen level.

Depending on the symptoms and exam, testing may include a chest X-ray, an electrocardiogram (ECG or EKG) to check the heart’s electrical activity, blood tests, or tests for respiratory infections. The exact evaluation depends on what is most likely and what serious conditions need to be ruled out. [1,5]

How long can chest pain from coughing last?

If pain is from strained chest-wall muscles, it often begins to improve as the cough becomes less frequent, though soreness can linger for days or longer. Acute bronchitis symptoms generally last less than three weeks, while a cough after a respiratory infection may sometimes last longer. [2,9]

Also read:  Puncture Wound First Aid: When to Get Medical Care After Stepping on a Nail

Do not simply wait it out if the pain is worsening, new symptoms develop, or the cough lasts more than three weeks. A persistent cough can have many causes, including asthma, allergies, reflux, chronic lung conditions, or an ongoing infection. [9]

Can chest pain when coughing be prevented?

You cannot prevent every cough or respiratory infection, but lowering the chance of respiratory illness may also reduce cough-related chest discomfort. Stay up to date on recommended vaccines, wash or sanitize hands, cover coughs and sneezes, improve indoor air quality when possible, and avoid smoking and secondhand smoke. [2]

The most important point is to take chest pain seriously. Mild soreness after a hard cough is common, but chest pain with breathing trouble, fainting, sweating, pain spreading beyond the chest, coughing up blood, or sudden severe symptoms needs emergency evaluation.

References

1. MedlinePlus Medical Encyclopedia. Chest pain [Internet]. Bethesda (MD): National Library of Medicine (US); 2026 [cited 2026 Aug 22]. Available from: https://medlineplus.gov/ency/article/003079.htm

2. Centers for Disease Control and Prevention. Chest cold (acute bronchitis) basics [Internet]. Atlanta (GA): CDC; 2025 Jul 2 [cited 2026 Aug 22]. Available from: https://www.cdc.gov/acute-bronchitis/about/index.html

3. Centers for Disease Control and Prevention. About pneumonia [Internet]. Atlanta (GA): CDC; 2026 Feb 25 [cited 2026 Aug 22]. Available from: https://www.cdc.gov/pneumonia/about/index.html

4. National Heart, Lung, and Blood Institute. Pleural disorders: symptoms [Internet]. Bethesda (MD): National Institutes of Health; 2022 Mar 24 [cited 2026 Aug 22]. Available from: https://www.nhlbi.nih.gov/health/pleural-disorders/symptoms

5. Centers for Disease Control and Prevention. About venous thromboembolism (blood clots) [Internet]. Atlanta (GA): CDC [cited 2026 Aug 22]. Available from: https://www.cdc.gov/blood-clots/about/

6. Centers for Disease Control and Prevention. About respiratory illnesses [Internet]. Atlanta (GA): CDC; 2025 Aug 18 [cited 2026 Aug 22]. Available from: https://www.cdc.gov/respiratory-viruses/about/index.html

7. MedlinePlus Medical Encyclopedia. Over-the-counter pain relievers [Internet]. Bethesda (MD): National Library of Medicine (US); 2024 Oct 27 [cited 2026 Aug 22]. Available from: https://medlineplus.gov/ency/article/002123.htm

8. MedlinePlus. Acetaminophen: drug information [Internet]. Bethesda (MD): National Library of Medicine (US) [cited 2026 Aug 22]. Available from: https://medlineplus.gov/druginfo/meds/a681004.html

9. MedlinePlus Medical Encyclopedia. Cough [Internet]. Bethesda (MD): National Library of Medicine (US) [cited 2026 Aug 22]. Available from: https://medlineplus.gov/ency/article/003072.htm

Share this:

About the author: Mark Aquino MSN, FNP-C. Mark has a Masters of Science in Nursing from West Coast University and is a board certified family nurse practitioner with over 8 years of real world experience in healthcare and currently practicing in urgent care diagnosing and prescribing treatments in California, USA. He is author of the book Physical Assessment for Nurses Simplified.

Follow us: Facebook | Twitter/X | Threads | BlueSky | Mastodon |


Posted

in

by

Tags: