Our Services
Medical Information
Helpful Resources
Published on: 10/26/2026
Rib soreness after days of forceful coughing most often comes from intercostal muscle strain, which feels sharp or achy over a specific spot, hurts more when you press it, twist, or take a deep breath, and typically eases within one to two weeks. Pleurisy, by contrast, involves inflamed lung lining and causes stabbing pain that spikes with each breath, often alongside fever, shortness of breath, or a wet cough, while costochondritis centers on tender cartilage right where the ribs meet the breastbone. Severe, unrelenting pain, a popping sensation, or pain after a hard cough can also signal a stress fracture of the rib, and warning signs like coughing up blood, high fever, or trouble breathing need prompt evaluation. There are several important distinctions and red flags to consider, so see below to understand more before deciding how to treat it.
Because these three conditions overlap but call for very different care, a few minutes of structured questions can help you tell muscle pain from something affecting your lungs. Take a free, instant, online symptom check to clarify what your rib pain is likely pointing to and what sensible next step to take.
Last reviewed for medical accuracy: 10/26/2026
When your ribs hurt after a coughing fit, the cause is often irritation or strain in the muscles and joints around the chest wall. Repeated, forceful coughing can place considerable stress on the muscles between the ribs, called the intercostal muscles. It can also irritate the cartilage that connects the ribs to the breastbone.
Most chest pain after coughing is not dangerous and improves as the cough settles. However, pain in the rib area can sometimes be linked to an infection, inflammation around the lungs, or—in less common cases—a broken rib or another condition needing prompt medical care. The location, quality, and triggers of the pain can offer useful clues, but they cannot replace an examination by a healthcare professional.
Coughing causes the muscles of the chest, abdomen, and diaphragm to contract suddenly and forcefully. A prolonged cough, whether caused by a cold, flu, asthma, allergies, reflux, or another problem, may lead to:
Pain may be felt at the front, side, or back of the chest. It can sometimes spread around the rib cage and feel sharp, aching, tight, or tender.
An intercostal muscle strain occurs when one or more muscles between the ribs become overstretched or irritated. Forceful coughing is a common trigger, especially when it continues for several days or weeks.
Intercostal muscle pain often:
You may also notice muscle tenderness or mild swelling. The pain is usually located in one specific area rather than deep throughout the chest.
A muscle strain commonly improves gradually over days to a few weeks, although recovery may take longer if the cough continues. Resting the area, using a cold or warm pack, and taking suitable pain relief may help. Some people find it useful to hold a pillow gently against the chest when coughing, but do not wrap the chest tightly, because restricting breathing can increase the risk of complications such as a chest infection.
Costochondritis is inflammation where the ribs join the breastbone, or sternum. It can follow repeated coughing, upper-body strain, or an infection, although the exact cause is not always clear.
The pain is commonly felt at the front of the chest, often on one side, near the upper ribs. It may be sharp or aching and can worsen with:
Pain that can be reproduced by gently pressing the sore area is more consistent with a chest-wall problem such as costochondritis or muscle strain. Even so, tenderness does not completely rule out other causes of chest pain.
Costochondritis often settles with time. A clinician may recommend appropriate anti-inflammatory medicine or another treatment, depending on your medical history. Do not take ibuprofen, aspirin, or similar medicines without checking first if you have a history of stomach ulcers, kidney disease, blood-thinning treatment, certain heart conditions, or medication allergies.
Pleurisy is inflammation of the pleura, the thin layers of tissue surrounding the lungs. It can occur with viral infections, pneumonia, or other inflammatory conditions.
Pleurisy usually causes a sharp, stabbing pain that gets worse when you:
Unlike a straightforward muscle strain, pleuritic pain may feel deeper and may not be particularly painful when you press on the ribs. You might also have symptoms such as fever, shortness of breath, chills, fatigue, or a cough producing mucus. These features can suggest an infection or another condition requiring assessment.
Because chest pain with breathing can have several causes, speak to a doctor if you think you may have pleurisy—especially if you have fever, breathing difficulty, worsening symptoms, or feel generally unwell.
A severe or prolonged cough can occasionally cause a rib stress injury or fracture, particularly in older adults and people with osteoporosis, long-term steroid use, or other conditions that weaken bones. A rib injury may cause:
Most rib fractures heal without surgery, but adequate pain control is important so you can breathe deeply and cough effectively. Seek medical advice if you suspect a broken rib. Avoid tightly binding the chest unless specifically instructed by a clinician.
There is overlap between these problems, so the following guide is only a general comparison:
A healthcare professional may listen to your lungs, examine the chest wall, check your oxygen level, and decide whether tests such as a chest X-ray are needed.
If your symptoms are mild and you have no warning signs:
If the cough has lasted more than a few weeks, keeps returning, or is interfering with sleep or daily activities, arrange a medical review. Treating the underlying cough is often the most important step in reducing rib pain.
For additional guidance, you might consider a free, online symptom check, using the doctor approved Ubie Symptom Checker. It can help you organize your symptoms and decide what level of care may be appropriate, but it does not replace an in-person diagnosis.
Speak to a doctor promptly about chest or rib pain that is severe, persistent, or getting worse. Seek emergency help immediately if you have:
These symptoms can indicate a serious heart, lung, or blood-vessel problem and should not be attributed automatically to coughing.
In short, ribs sore after prolonged coughing are commonly caused by an intercostal muscle strain or costochondritis, particularly when the pain is tender to touch and worsens with movement. Pleurisy is more likely when the pain feels deep and sharp with every breath, especially alongside fever or shortness of breath. If anything feels severe, unusual, or potentially life-threatening, speak to a doctor or seek emergency care rather than waiting for it to improve.
(References)
* Lawther PJ, Waller RE. Physical hazards. Postgrad Med J. 1975;51 Suppl 2:suppl 51: 5-9. PMID: 1161692.
* Levine H, Szanto PB, Cugell DW. Tuberculous pleurisy. An acute illness. Arch Intern Med. 1968 Oct;122(4):329-32. PMID: 5676418.
* Davies SC, Hewitt PE. Sickle cell disease. Br J Hosp Med. 1984 Jun;31(6):440-4. PMID: 6378295.
* MITCHELL JP. Cough fracture. Br Med J. 1951 Dec 22;2(4746):1492-3. doi: 10.1136/bmj.2.4746.1492. PMID: 14886632; PMCID: PMC2070873.
* Jindal A, Singhi S. Acute chest pain. Indian J Pediatr. 2011 Oct;78(10):1262-7. doi: 10.1007/s12098-011-0413-1. Epub 2011 May 4. PMID: 21541647.
* Zhai K, Lu Y, Shi HZ. Tuberculous pleural effusion. J Thorac Dis. 2016 Jul;8(7):E486-94. doi: 10.21037/jtd.2016.05.87. PMID: 27499981; PMCID: PMC4958858.
* Hamouda S, Chraiet K, Khalsi F, Bel Hadj I, Brini I, Smaoui H, Barsaoui S, Samoud A, Ben Becher S, Ben Jaballah N, Kechrid A, Tinsa F, Boussetta K. Community-acquired pleuropneumonia in children: Bacteriological and therapeutic challenges. Tunis Med. 2016 Apr;94(4):290-297. PMID: 27704513.
* Papatsiros V, Tzika E, Athanasiou L, Tassis P, Chaintoutis S, Christodoulopoulos G. In Vivo Effectiveness of Injectable Antibiotics on the Recovery of Acute Actinobacillus pleuropneumoniae-Infected Pigs. Microb Drug Resist. 2019 May;25(4):603-610. doi: 10.1089/mdr.2018.0277. Epub 2018 Dec 18. PMID: 30562148.
* Hunter MP, Goldin J, Regunath H. Pleurisy. 2024 Jan. PMID: 32644384.
* Bascom R, Dhingra R, Francomano CA. Respiratory manifestations in the Ehlers-Danlos syndromes. Am J Med Genet C Semin Med Genet. 2021 Dec;187(4):533-548. doi: 10.1002/ajmg.c.31953. Epub 2021 Nov 22. PMID: 34811894.
We would love to help them too.
For First Time Users
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.