Side pain when you cough is almost always caused by the intense mechanical forces that coughing places on your chest wall, rib cage, and abdominal muscles. A single strong cough generates a spike of pressure inside your chest cavity, and when coughing goes on for days or weeks, those repeated forces can strain muscles, irritate cartilage, bruise tissues, and in uncommon cases even fracture a rib. The cause ranges from something as benign as a sore intercostal muscle to something that needs prompt medical attention, so the details matter.
What Actually Happens Inside Your Body During a Cough
Coughing is a coordinated, explosive act that involves far more than your lungs. You take a quick breath in, your vocal cords clamp shut, and then your abdominal and chest wall muscles contract hard against that closed airway. When the vocal cords release, air rushes out at high speed. Research measuring chest wall dynamics during coughing found that peak cough airflow increases dramatically with larger breath volumes, reaching well over six liters per second at higher lung volumes.1PubMed Central. Chest wall dynamics during voluntary and induced cough in healthy volunteers The pressures measured in the esophagus and abdomen during those coughs are substantial, reflecting just how much compressive force your muscles generate each time.
Your intercostal muscles, which run between your ribs, are doing heavy work during all of this. So are the muscles of your abdominal wall, particularly the obliques on your sides. These muscles are not built for sustained high-force contractions the way your legs are, so a bad cold or a weeks-long bout of bronchitis can push them well past their comfort zone. That is the most common reason your side hurts.
Strained Muscles Along the Rib Cage
The single most frequent cause of side pain during a cough is simple muscular strain. The intercostal muscles and the oblique abdominal muscles are both vulnerable because they contract forcefully with every cough and get little recovery time during an illness. After several days of frequent coughing, these muscles can develop micro-tears, inflammation, and the kind of deep soreness you might associate with an intense workout. The pain is usually sharp when you cough, sneeze, or twist, and dull or achy at rest.
You can often identify muscular pain because it is tender to the touch. Pressing on the sore spot reproduces the discomfort, and the pain tends to be worse with specific movements rather than constant. It also tends to be on one side, because most people cough with a slight rotation that loads one side more than the other. This kind of strain generally resolves on its own once the coughing stops, though it can linger for a week or two after the illness itself clears up.
Costochondritis and Cartilage Irritation
Your ribs connect to your breastbone through short segments of cartilage, and those junctions can become inflamed from the repeated jarring of a cough. This condition, called costochondritis, produces a sharp or burning pain along the front of your chest or at the sides where the ribs curve forward. It frequently gets mistaken for something more alarming because the pain can feel like it is coming from deep inside the chest.
The distinguishing feature of costochondritis is that pressing directly on the cartilage where a rib meets the breastbone reproduces the pain. It often affects more than one rib junction, and the discomfort tends to worsen not just with coughing but with deep breathing, reaching, or any movement that expands the rib cage. Like muscular strain, it resolves with time and reduced mechanical stress. Over-the-counter anti-inflammatory medications and local heat or ice can help manage it while you wait.
When Coughing Actually Cracks a Rib
It sounds alarming, but coughing hard enough to fracture a rib is a well-documented phenomenon. A large single-center analysis of 90 patients with cough-induced rib fractures found that the fractures developed in people with both short-duration and prolonged coughs, and that no trauma, cancer, or other explanation for the break was present.2PubMed Central. Cough-induced rib fractures: A comprehensive analysis of 90 patients in a single center The fractures typically occurred along the lateral or posterolateral portions of the ribs, which is where the bending stress from a cough is greatest.
You do not need to have osteoporosis for this to happen. A case report documented a postmenopausal woman with no clinical evidence of osteoporosis who fractured her right fifth rib purely from coughing.3PubMed Central. Cough-Induced Rib Fracture in a Postmenopausal Woman Without Clinical Evidence of Osteoporosis: A Case Report That said, people with reduced bone density, chronic steroid use, or conditions like COPD that involve prolonged and repeated coughing are at higher risk. The telltale sign of a cough-induced rib fracture is a sudden, localized, intense pain that appears during or immediately after a specific cough, often with a pop or snap. The pain is pinpoint, worsens with breathing and movement, and does not improve over a few days the way muscular soreness does.
Rib fractures from coughing usually heal on their own with rest, pain management, and time, though the healing window is typically four to six weeks. The main concern is making sure you keep breathing deeply enough to prevent pneumonia, because the temptation is to take only shallow breaths to avoid pain, which lets the lower portions of your lungs collapse and become infection-prone.
Lung and Pleural Problems That Cause Side Pain with Coughing
Not all cough-related side pain originates in the chest wall. The lungs themselves are insensitive to pain, but the pleura, the thin membrane that wraps around each lung and lines the inside of the rib cage, is loaded with nerve endings. When the pleura becomes inflamed, a condition called pleurisy, every breath and every cough drags the irritated surfaces across each other. The resulting pain is sharp, stabbing, and distinctly worsened by inhalation and coughing. It tends to be one-sided and can radiate to the shoulder.
Pleurisy can arise from a viral or bacterial infection, pneumonia, or autoimmune inflammation. It is one of the conditions where side pain during a cough is actually a clue to the underlying lung problem rather than just a mechanical consequence of coughing itself.
In rare cases, forceful coughing can cause a pneumothorax, where air leaks out of the lung into the space between the lung and the chest wall. One case report documented an otherwise healthy man who developed bilateral pneumothorax along with air in the tissue around the heart and under the skin, all triggered by a coughing bout.4PubMed. Cough-induced bilateral spontaneous pneumothorax A pneumothorax typically causes sudden, sharp chest or side pain with shortness of breath that does not resolve. It is uncommon in otherwise healthy people but is a reason to take suddenly worsening symptoms seriously.
Pulmonary embolism, a blood clot in the lungs, is another condition that can present with side or chest pain that worsens with coughing and deep breathing. It often comes with shortness of breath and sometimes with coughing up blood. If your side pain appeared suddenly, you are also short of breath, and you have risk factors like recent immobility, surgery, or a long flight, this possibility is worth ruling out urgently.
Abdominal Wall Injuries from Coughing
The pain is not always between or around the ribs. Forceful, prolonged coughing can injure the muscles of the abdominal wall, particularly the internal oblique muscles that wrap around your sides. The mechanism is straightforward: the spike in intra-abdominal pressure that each cough generates can rupture small blood vessels inside these muscles, causing a hematoma, essentially a bruise deep inside the muscle tissue.5PubMed Central. Severe Abdominal Pain due to Cough‐Induced Internal Oblique Muscle Hematoma: A Case Report This produces severe, localized abdominal or flank pain that can be mistaken for an organ problem like appendicitis or a kidney stone.
People taking blood thinners are at elevated risk because their blood does not clot as readily, so a small vessel tear that would normally stop bleeding quickly can grow into a sizable hematoma. If you develop sudden, severe side or abdominal pain during a coughing illness, particularly if you take anticoagulant medication, it is worth getting evaluated rather than assuming it is just a pulled muscle.
A related but less dramatic version of this is a simple abdominal muscle strain. The obliques and the rectus abdominis (the “six-pack” muscles) can get overworked from coughing in the same way the intercostal muscles can. This is felt as soreness across the belly or sides that worsens with coughing, laughing, or getting up from a lying position. It resolves on its own but can be surprisingly painful in the meantime.
Nerve Pain That Lingers After the Cough Is Gone
Sometimes the cough clears up, but the side pain sticks around for weeks or months. One underappreciated cause is intercostal neuralgia, where one of the nerves running between the ribs becomes irritated, entrapped, or damaged. This can happen after a rib fracture, but it can also develop from prolonged inflammation and swelling in the intercostal muscles themselves.
A case report described a 48-year-old woman who developed persistent intercostal neuralgia after sustaining multiple rib fractures on both sides from violent coughing. Her pain persisted despite the fractures healing, and she eventually required nerve-targeted surgery to achieve lasting relief.6PubMed Central. Treatment of Intercostal Neuralgia Following Cough-induced Rib Fractures With Targeted Muscle Reinnervation That is an extreme case, but milder versions of intercostal nerve irritation are probably more common than recognized. If your side pain persists well beyond when the cough resolves, is burning or electric in character, or follows a band-like pattern along one rib, nerve involvement is worth considering.
Intercostal neuralgia is often managed with anti-inflammatory medications, nerve-calming drugs like gabapentin, or local nerve blocks. The key is recognizing that the pain source has shifted from the muscle or bone to the nerve itself, because the treatment approach changes accordingly.
Who Is More Vulnerable
Certain groups are more likely to develop significant side pain from coughing. People with chronic lung disease, particularly COPD, face a compounding problem: their cough is chronic, and the muscles doing the coughing are often already compromised. Research has shown that respiratory and limb muscle dysfunction is common in COPD patients, driven by factors like chronic hyperinflation of the lungs and physical deconditioning.7PubMed Central. Muscle dysfunction in chronic obstructive pulmonary disease: update on causes and biological findings Weakened muscles that are also overworked are a recipe for strain and injury.
Older adults, people with reduced bone density, anyone on long-term corticosteroids, and people taking blood thinners are all at elevated risk for the more serious mechanical complications like rib fractures and muscle hematomas. Pregnancy also changes the picture because the abdominal wall is already under stretch, the rib cage flares outward to accommodate the uterus, and the increased intra-abdominal pressure from coughing has less room to dissipate. Pregnant people with persistent coughs sometimes develop painful separations of the rib cartilage or significant abdominal muscle strain.
Practical Steps When Your Side Hurts from Coughing
For the most common cause, muscular strain, the approach is fairly intuitive. Over-the-counter anti-inflammatory medications like ibuprofen reduce both pain and the underlying inflammation. Holding a pillow firmly against your side when you feel a cough coming provides external support that limits how much the muscles stretch during the explosive contraction, and many people find this surprisingly effective. Applying heat to the sore area between coughing episodes can help relax the muscle and improve blood flow.
Treating the cough itself is equally important. If your cough is from a viral upper respiratory infection, it will usually resolve within two to three weeks. If it is lingering beyond that, or if it is productive with colored sputum, a trip to the doctor is warranted both to address the underlying cause and to reduce the mechanical damage from ongoing coughing. Cough suppressants can be helpful at night to allow the strained muscles some recovery time, though during the day it is generally better to let yourself cough productively to clear mucus.
Body position turns out to matter more than most people realize. A study measuring respiratory muscle force and cough mechanics across different postures found that sitting at roughly 60 degrees produced stronger muscle force, higher cough pressure, and greater peak airflow than lying flat, while also being rated as subjectively easier by participants.8PubMed. Effects of body postures on respiratory muscle force and coughing in healthy people This matters practically because a more efficient cough means you clear your airways with fewer attempts, reducing the total mechanical load on your sore muscles and ribs. Propping yourself up in bed rather than lying flat can both make coughing less painful and make each cough more productive.
When to Get It Checked Out
Most side pain from coughing is self-limiting and resolves once the cough does. But certain features should prompt a visit to your doctor or an emergency department:
- Sudden severe pain: A sharp, intense pain that begins during a specific cough, particularly if you felt or heard a pop, suggests a possible rib fracture.
- Shortness of breath: Pain with worsening breathlessness could indicate a pneumothorax, pulmonary embolism, or significant pleural inflammation.
- Coughing up blood: Even small amounts of blood in sputum alongside side pain warrant evaluation.
- Fever with localized pain: A combination of fever, productive cough, and side pain that worsens with breathing suggests pneumonia with possible pleural involvement.
- Pain on blood thinners: Sudden flank or abdominal pain while taking anticoagulants raises the possibility of a muscle hematoma that could expand.
- Pain that outlasts the cough: If the cough is gone but the side pain persists beyond two to three weeks, nerve irritation, an undiagnosed fracture, or another structural issue may be present.
For any of these scenarios, the initial evaluation usually involves a physical exam and imaging, often starting with a chest X-ray. Rib fractures from coughing do not always show up on initial X-rays, so if a fracture is strongly suspected but the X-ray is normal, a follow-up X-ray in ten days or a CT scan may be needed. Ultrasound is useful for identifying muscle hematomas and pleural fluid.
Why One Side and Not the Other
People frequently notice that the pain is more on one side than the other, and they wonder if that means something specific is wrong on that side. Usually it does not. During a cough, most people twist slightly, and the direction of that twist loads one side of the rib cage and abdominal wall more than the other. Which side gets overloaded depends on your habitual cough mechanics, your handedness, and even how you tend to brace yourself. If you sleep predominantly on one side during an illness, the muscles on that side may stiffen in a shortened position and then get irritated more when they have to stretch during a cough.
The exception is when the pain is truly fixed to one spot and does not shift with position changes. Localized, persistent, one-sided pain is more suggestive of a structural issue like a rib fracture, costochondritis at a specific rib junction, or pleural irritation from an underlying lung process on that side. Pain that moves around, varies in location from day to day, or is present on both sides is more likely muscular.
The Chronic Cough Problem
A cold that lasts a week or two is one thing, but chronic cough, lasting eight weeks or more, represents a fundamentally different mechanical challenge for the chest wall. The sheer cumulative load of thousands of forceful coughs per day over months means that the tissues never get a chance to recover. Chronic cough is most often caused by postnasal drip, asthma, or gastroesophageal reflux, and addressing the underlying driver is the single most effective way to stop the associated side pain.
People with chronic cough sometimes develop a cycle where the pain from coughing causes them to brace their torso in a guarded position, which changes their breathing pattern, which worsens the cough mechanics, which increases the strain. Breaking that cycle usually requires treating the cough source, managing the pain directly with anti-inflammatory medications or muscle relaxants, and sometimes working with a physical therapist on breathing mechanics and rib cage mobility. Chronic cough clinics, increasingly available at larger medical centers, specialize in identifying and treating the overlapping causes that keep the cough going.
For some chronic cough patients, the side pain itself becomes the primary complaint even when the cough intensity is moderate. This is particularly common in people who have developed intercostal nerve sensitization, where the nerves have been irritated for so long that they begin firing pain signals at lower and lower thresholds. Gentle coughs that would not bother a healthy person trigger significant pain. Recognizing this pattern is important because it shifts the treatment focus from cough suppression to nerve-targeted pain management.