Pain when you cough usually means that the force of coughing is aggravating an inflamed, strained, or injured structure somewhere in your chest, abdomen, or back. Coughing generates a surprising amount of mechanical pressure. It contracts your diaphragm, tightens your abdominal wall, and briefly spikes the pressure inside your chest and spinal column. Any tissue that’s already irritated will protest under that force. The cause can range from a pulled muscle between your ribs to something more serious like a lung infection, and figuring out which one depends on where the pain is and what other symptoms come with it.
Strained Muscles Between Your Ribs
The most common and least worrisome explanation is a muscle strain. You have small muscles running between each rib called intercostal muscles, and a bout of intense or prolonged coughing can actually injure them. Once strained, every subsequent cough tugs on the damaged fibers and causes a sharp, localized pain you can usually pinpoint with a finger. If you can press on a specific spot between your ribs and reproduce the pain, that’s a strong sign the issue is muscular rather than coming from your lungs or heart.
A mild strain typically resolves within a few days. Moderate strains, where the muscle fibers are partially torn, can take three to seven weeks to heal. A severe tear may take longer, though most rib-area muscle injuries heal within about six weeks. During that time, the pain tends to flare with deep breaths, sneezing, twisting, or any movement that expands the rib cage.
Inflammation Where Ribs Meet the Breastbone
Costochondritis is inflammation of the cartilage that connects your ribs to your breastbone. It most often affects the upper ribs on the left side of the chest, and the pain is worst right at the junction where cartilage meets bone. It can feel sharp, achy, or like pressure, and it frequently radiates into the arms and shoulders. Coughing, sneezing, or any movement of the chest wall makes it worse.
Because the pain is on the left side of the chest and can spread to the arm, people sometimes worry they’re having a heart problem. The key difference is that costochondritis pain is reproducible: pressing on the sore spot at your breastbone triggers it. Heart-related chest pain generally isn’t tender to the touch. Costochondritis usually resolves on its own over a few weeks with rest, gentle stretching, and over-the-counter anti-inflammatory medication.
Pleurisy: Inflammation of the Lung Lining
Your lungs are wrapped in a two-layered membrane. The outer layer, which lines the inside of your chest wall, is packed with pain-sensing nerve fibers. When this lining becomes inflamed, a condition called pleurisy, the two layers rub against each other with every breath. Coughing forces a much larger and more abrupt movement than normal breathing, so it amplifies the pain dramatically. The result is a sharp, stabbing sensation in the chest that worsens with any respiratory movement.
Pleurisy is commonly triggered by viral infections, pneumonia, or other lung conditions. The pain tends to be one-sided and can radiate to the shoulder or neck depending on which part of the lining is inflamed. A doctor can sometimes hear a distinctive “friction rub” sound with a stethoscope when the inflamed surfaces scrape together. Treatment depends on the underlying cause, but the pain itself often improves as the infection or inflammation clears.
Acid Reflux and Chronic Cough
Acid reflux is one of the more surprising causes of cough-related pain, partly because it can cause the cough itself. Roughly 10 to 59 percent of chronic cough cases are linked to gastroesophageal reflux disease (GERD), and about 70 percent of people whose cough is reflux-related don’t have the classic symptoms of heartburn or acid taste. Instead, stomach contents irritate nerve endings in the esophagus, triggering a reflex arc through the vagus nerve that activates the cough center in the brain.
This creates a frustrating cycle. The reflux triggers the cough, and the forceful coughing increases abdominal pressure, which pushes more acid upward. If this sounds like your situation, especially if your cough is worse after meals, when lying down, or has lingered for more than eight weeks without an obvious respiratory cause, reflux is worth investigating. Many people see significant improvement with acid-reducing treatment.
Hernias That Flare With Coughing
An inguinal hernia occurs when tissue, usually part of the intestine, pushes through a weak spot in the abdominal wall near the groin. Coughing is one of the classic triggers for hernia pain because it sharply increases pressure inside the abdomen. You may notice a bulge on either side of the pubic bone that becomes more obvious when you cough, strain, or stand up. The area often has a burning or aching sensation, and in men, pain and swelling can extend into the scrotum if the protruding tissue descends that far.
If you already have a hernia and coughing makes it hurt, that’s expected. But sudden, severe groin pain with a hernia bulge that won’t push back in is a sign the tissue may be trapped (strangulated), which requires emergency treatment.
Back Pain and Disc Problems
Coughing can also cause or worsen back pain, particularly if you have a disc problem in your spine. When you cough, the sudden spike in pressure inside your abdomen and spinal column pushes outward against the intervertebral discs. If a disc is already bulging or weakened, that abrupt force can shift pressure from the center of the disc toward its edges, worsening a herniation. This can compress a nearby nerve root and send shooting pain down one leg, a symptom known as sciatica.
People with existing disc issues often describe coughing, sneezing, and straining as some of their worst pain triggers. If you’re getting sharp back or leg pain every time you cough, it’s worth getting evaluated for a disc problem, especially if you also have numbness, tingling, or weakness in a leg.
How to Reduce Pain While Coughing
Regardless of the cause, there are ways to make coughing less painful while you heal. A technique called splinted coughing can help: hold a pillow firmly against your chest or abdomen before you cough. The external pressure supports the muscles and tissues, reduces the sudden stretch across your ribs or abdominal wall, and makes the cough both more effective and less painful. This is the same method recommended for patients recovering from chest or abdominal surgery.
Lying on the side that hurts can also help if the pain is one-sided, because it limits how much that side of the rib cage expands. Treating the cough itself, whether with a humidifier, honey, or appropriate medication, reduces how often you’re aggravating the sore area. If you’ve been coughing hard for more than a week and the pain is getting worse rather than better, or if you’re straining hard enough to feel something pop, don’t wait it out.
Signs That Need Immediate Attention
Most cough-related pain is muscular or inflammatory and resolves as the underlying cough clears up. But certain symptoms alongside coughing pain signal something more urgent. Coughing up blood or pink-tinged mucus, difficulty breathing or swallowing, and chest pain that feels heavy or crushing rather than sharp and positional all warrant emergency evaluation. These can point to a pulmonary embolism, pneumonia, or a cardiac event, conditions where rapid diagnosis through chest imaging, heart monitoring, or blood tests for clotting and heart damage makes a critical difference in outcome.
Unexplained weight loss, fevers that keep returning, or a cough that has lasted more than three weeks without improvement are also signals to get checked. A chest X-ray can quickly rule out pneumonia, a collapsed lung, or other structural problems. From there, further testing depends on what the initial evaluation suggests.

