Coughing is a forceful reflex that protects your airways, but when it hurts, it can turn a simple cold into a miserable experience. The pain you feel when you cough is usually the result of intense pressure and muscle strain in your chest, throat, or abdomen. Most of the time, this pain is temporary and linked to a respiratory infection, but sometimes it signals a more specific issue that needs attention.
What Causes Pain When You Cough?
The mechanics of a cough are simple but powerful. Your brain sends a signal to your chest and abdominal muscles to contract forcefully. This creates a rapid burst of air to clear your lungs and throat. That force is significant. It puts stress on your rib cage, the muscles between your ribs, and your diaphragm.
When those structures are already irritated or strained, the added pressure of a cough causes pain. The most common cause is a recent respiratory infection like a cold, flu, or bronchitis. The repeated coughing fits exhaust the muscles, similar to doing too many sit-ups. The result is soreness that flares up every time you cough.
Another frequent cause is inflammation. If the lining of your lungs or airways is swollen from an infection, the pressure of a cough aggravates that inflamed tissue. This often feels like a sharp or burning pain in the chest.
Why Does My Chest Hurt When I Cough?
Chest pain with coughing is common, and the location of the pain often points to the source. The most common culprit is the intercostal muscles. These are the small muscles between your ribs. When you cough repeatedly, you strain them. This condition is called intercostal muscle strain, and it feels like a dull ache or sharp stab on one side of the chest.
Another source is the trachea and bronchi. These are your main breathing tubes. A severe respiratory infection can inflame them. Coughing then causes a raw, burning sensation in the center of your chest. This pain usually improves as the infection clears.
In some cases, the cartilage that connects your ribs to your breastbone becomes inflamed. This is known as costochondritis. It causes localized pain that is tender to the touch and worsens with coughing or deep breathing. It is generally harmless, though uncomfortable, and resolves over time.
When Is Cough Pain a Sign of Something Serious?
Most cough-related pain is benign and fades as the infection resolves. However, certain symptoms warrant immediate medical attention. You should see a doctor if your cough pain is accompanied by shortness of breath, difficulty breathing, or coughing up blood. These can be signs of pneumonia, a collapsed lung, or a pulmonary embolism.
Sharp chest pain that worsens with a deep breath or cough could indicate pleurisy. This is inflammation of the lining around the lungs. While pleurisy is often caused by a viral infection, it can also result from bacterial infections or autoimmune conditions.
If the pain is sudden, severe, and feels like pressure or squeezing in the chest, seek emergency care. This type of pain is not typical of a simple cough strain. It could be related to the heart and requires immediate evaluation. Do not wait to see if it passes.
Why Does My Head Hurt When I Cough?
Coughing increases pressure inside your skull. For many people, this causes a brief, sharp headache at the moment of the cough. This is called a primary cough headache. It is usually harmless, lasts for a few seconds or minutes, and resolves on its own.
However, some cough headaches are secondary. This means the pain is caused by an underlying problem, such as a structural issue in the brain or issues with spinal fluid pressure. Secondary cough headaches are often longer-lasting, more severe, or associated with dizziness or imbalance.
If you experience a headache from coughing that is persistent, worsening, or accompanied by neurological symptoms like vision changes or weakness, you should be evaluated by a doctor. Most primary cough headaches do not require treatment, but distinguishing between the two types is important.
Why Does My Back or Side Hurt When I Cough?
Pain in the back or side during a cough is often muscular. The muscles in your lower back and flanks help stabilize your torso during the cough reflex. Forceful coughing can strain these muscles, leading to soreness that is aggravated by movement or another cough.
Kidney issues can also cause pain in this area. A kidney infection or kidney stones typically cause pain in the flank, which is the side of your back just below the ribs. This pain is usually constant and sharp, and coughing or moving can make it worse. If you have fever, chills, or pain with urination alongside the back pain, seek medical care.
Another possibility is a rib fracture. This is more common in older adults or people with weakened bones from osteoporosis. A coughing fit can be strong enough to crack a rib. The pain is usually sharp, localized, and severe when you cough, twist, or press on the area.
How to Soothe Cough Pain at Home
If your pain is muscular and your breathing is normal, home care can help. Over-the-counter pain relievers like acetaminophen or ibuprofen can reduce soreness and inflammation. Always follow the dosing instructions on the label.
Applying a warm compress or heating pad to the sore area can relax tense muscles. Rest is important. Just as you would rest a sprained ankle, your chest and back muscles need time to recover from the strain of coughing.
Treating the cough itself is also key. A dry, hacking cough causes more strain than a productive one. Using a humidifier, drinking warm fluids, or taking a spoonful of honey can soothe an irritated throat and reduce the urge to cough. Honey should not be given to children under one year of age due to the risk of infant botulism.
If your cough is productive, meaning you are bringing up mucus, do not suppress it entirely. Coughing is how your body clears the lungs. Focus on staying hydrated to keep mucus thin and easier to expel.
When to See a Doctor for Cough Pain
You should see a doctor if your cough pain lasts longer than a few weeks or if it is severe enough to interfere with sleep or daily activities. Persistent pain that does not improve as the cough resolves warrants evaluation.
Seek immediate care if you experience any of the following:
- Shortness of breath or trouble breathing
- Coughing up blood or bloody mucus
- High fever that does not break
- Sharp chest pain that is constant, not just with coughing
- Dizziness, confusion, or fainting
- Swelling or pain in your leg, which could signal a blood clot
These symptoms can indicate a more serious condition like pneumonia, a blood clot in the lung, or heart problems. Do not delay getting evaluated.
Can You Prevent Cough Pain?
Preventing the cough is the most direct way to prevent the pain. Good hand hygiene and staying up to date on vaccines like the flu shot and COVID-19 booster can reduce your risk of respiratory infections. If you smoke, quitting reduces chronic coughing and the strain it places on your chest.
If you already have a cough, you can reduce the strain by supporting your chest. Holding a pillow against your abdomen or chest when you cough can brace the muscles and reduce the force of the reflex. This technique is often taught to people after surgery, but it works well for anyone with cough-related muscle pain.
Staying well-hydrated keeps the mucus in your airways thinner. This makes coughs more productive and less forceful. A forceful, dry cough is what causes the most muscle strain.
Frequently Asked Questions
Why does my chest hurt when I cough?
The muscles between your ribs are strained from the force of coughing. This is the most common cause of chest pain with a cough.
Can coughing cause back pain?
Yes, forceful coughing can strain the muscles in your lower back and flanks. This is usually temporary and improves as the cough resolves.
Is it normal for my head to hurt when I cough?
A brief headache at the moment of coughing is common and usually harmless. Persistent or severe headaches with coughing should be evaluated by a doctor.
How long does cough pain last?
Muscle strain from coughing usually improves within a few days to a week. Pain that lasts longer or worsens should be checked by a healthcare provider.

