Rib pain is a common problem that can occur for various reasons. Ribs are fixed in place by muscles and tendons. When those muscles are used too much or too harshly, it can cause pain. Most of the time, the pain is caused by a pulled muscle, which can occur from one violent cough, a few coughing episodes, or persistent coughing.
Rib pain from coughing is a common symptom that may be caused by persistent or violent coughing. In some cases, rib pain may be due to a problem with the lungs, the sac that the lungs sit in, or the muscles of the chest.
Typically, rib pain from coughing does not require immediate medical attention and resolves spontaneously within a few days. Still, you should see your healthcare provider if the pain is unbearable, lasts more than two weeks, or prevents you from taking deep breaths.
Treatment of rib pain from coughing may include pain relievers, cough suppressants, wearing a rib binder, and taking a break from physically demanding activities.
Usually, it feels like a dull ache, but even a pulled rib muscle can cause severe, sharp pain. The pain often worsens when taking a deep breath, coughing, or sneezing. If it’s an injury, there may be pinpoint tenderness that is painful when pressed on with a finger. Rarely, there is overlying skin bruising or discoloration. However, chest wall pain can sometimes be caused by the lungs or the sac surrounding the lungs, not the ribs themselves. In those cases, there will probably be other symptoms indicating something’s wrong with the lungs or other tissues.
RELATED: What causes coughing? Related conditions and treatments
Coughing too much can cause musculoskeletal injuries, much like doing too many sit-ups may make the muscles between your ribs sore. Specifically, these musculoskeletal injuries may be intercostal muscle strain, cartilage inflammation (costochondritis), bruising, or rib fracture.
The most common injury caused by coughing is intercostal muscle strain. The intercostal muscles are the muscles between the ribs. They connect the ribs to one another and help control the expansion and contraction of the chest wall. Persistent or violent coughing works these muscles a bit too hard. It’s like running a marathon without training or exercising too hard and pulling a muscle somewhere. Like any other pulled muscle, rib muscle strain heals on its own with time and rest.
Costochondritis is injury or inflammation of the cartilage that joins the ribs to the breastbone (sternum). Because of the location in the middle of the chest, most people describe the pain as “chest pain” rather than rib pain. As with intercostal muscle strain, the pain worsens when breathing deeply or coughing. Costochondritis is a temporary condition that heals on its own with time and rest.
Bruised ribs are usually caused by trauma, like from falls, accidents, or getting hit in the ribs. They can be caused by chronic or forceful coughing. The pain is usually mild but worsens with taking deep breaths, coughing, or sneezing. Bruising takes a week or two to heal on its own.
Coughing rarely causes broken ribs. There are only a few reported incidents, usually involving older people with thin bones and osteoporosis. Most rib fractures heal on their own over a few weeks and over the counter analgesics (acetaminophen or ibuprofen) may be needed. Some rib fractures can damage other intrathoracic or intra-abdominal organs and require more medical intervention, such as when a fractured rib causes a hole in the lung (pneumothorax) or punctures other organs like the liver.
Sometimes, what feels like rib cage pain is instead a problem in the tissues under the ribs, like the lungs or the pleura (membranes that form a sack around the lungs). The problem may be the same one causing the cough and may include any of the following:
Pleurisy (inflammation of the sac surrounding the lungs)
Lung cancer, which can cause a chronic cough
A blood clot in the lungs
These conditions typically will have other symptoms, many of which are more concerning than rib pain. One distinguishing feature of the rib pain caused by these conditions is that it’s not always tender or painful to the touch, like a rib cage muscular injury is.
Not if the pain is minor and breathing is normal. But you should call a healthcare provider for medical advice if the cough lasts more than two weeks to make sure there isn’t a more serious problem.
If the pain is relentless, taking deep breaths is difficult, or you have other symptoms like shortness of breath or chest pressure, see a healthcare provider. People with osteoporosis should also see a healthcare provider if they experience rib cage pain due to coughing.
You should go to the hospital or urgent care if your pain feels like chest pain and is accompanied by symptoms like shoulder pain, back pain between the shoulder blades, arm pain, lightheadedness, or shortness of breath. These are signs of a possible heart attack and require emergency treatment.
The most concerning symptom is not the rib pain, but the chronic or severe cough that causes it. If a cough persists for longer than two weeks or you experience violent coughing fits, see a healthcare professional. If you’re already seeing a healthcare professional about the cough, tell them about the rib pain, too.
RELATED: What causes coughing? Related conditions and treatments
Healthcare professionals diagnose rib pain by trying to find the underlying cause of coughing and rib pain. If you see your primary care healthcare provider, they will perform a comprehensive history and exam (including lung function) and may order a chest X-ray. If needed, they may refer you to a specialist.
If there’s suspicion that a lung problem is the cause, they may perform further tests such as:
A chest X-ray
A CT scan of the lung
Bronchoscopy by a pulmonologist
If there’s chest pain, not just rib pain, the clinician may order a chest X-ray to assess the ribs and rule out lung pathology (like a mass or pneumonia). Other tests that may help evaluate the heart are an electrocardiogram (EKG) to assess the heart’s electrical rhythm and an echocardiogram (an ultrasound of the heart) to evaluate heart valves and overall heart function.
If the most likely problem is an injury, diagnosis is usually made based on the history, symptoms, and physical exam. The healthcare provider will palpate the rib cage and concentrate on the area that hurts. That’s usually enough for a diagnosis. If a rib is broken, the healthcare provider may obtain a chest X-ray or CT scan to make sure the lungs or other vital organs are not damaged.
If rib pain is due to muscle strain or bruised ribs, it could take weeks to get better. Rib fractures typically take about six to eight weeks to heal. If it’s a stress fracture, the pain may resolve in as little as three weeks.
For any musculoskeletal injury, the primary treatment involves pain relief and rest. For muscle strain, costochondritis, bruising, and rib fractures, over-the-counter (OTC) painkillers and home remedies like ice packs should be sufficient to control pain. For bad rib fractures or severe pain that interferes with breathing, a healthcare provider may use nerve blocks or prescribe a short course of opioids. They may also advise not performing activities that cause pain, such as sports, exercise, or any other exertion, to give the injury a chance to heal.
For a rib fracture or other painful rib cage injury, an incentive spirometer may be used at home to help maintain lung volume and decrease the chance of resulting pneumonia. When it hurts to take a deep breath, the air sacs may close or get infected because they are not being expanded, and secretions settle. Using an incentive spirometer encourages patients to take several deep breaths every hour and helps keep the lungs healthy.
Healthcare providers discourage the use of rib taping, rib binding, or rib braces. Although they help control the pain, they prevent people from breathing deeply and may even interfere with normal breathing. People using these devices are at an increased risk of developing pneumonia and other problems.
If coughing is still a problem, it will not only cause pain but could also worsen the injury. Instead of OTC cough suppressants, your healthcare provider may switch you to prescription cough suppressants to reduce the coughing. The cause of a chronic cough needs to be investigated, as this can result from uncontrolled asthma, COPD, or lung cancer.
RELATED: Antitussives: uses, common brands, and safety info
Rib cage pain due to any musculoskeletal injury from coughing will take time to get better, but it will get better. Unless there’s severe pain, a few tips can help manage the pain:
Take a break from strenuous activities.
Use ice packs or heating pads over the affected area. Only use them for 15 minutes of every hour to allow the skin to return to normal temperature.
Use a small pillow or other cushion as a brace when breathing deeply, coughing, or sneezing to help reduce the discomfort.
Move around—sitting around or lying about increases the risk of pneumonia and fluid build-up in the lungs.
Take 10 deep breaths per hour. If you have an incentive spirometer, use it, as it measures the volume of your deep inspirations.
Control the cough with OTC cough suppressants, throat lozenges, steam, hot showers, humidifiers, an air purifier, and by drinking plenty of fluids.
Though the cause of rib pain is usually benign and temporary, healthcare professionals know that rib cage pain may have a more ominous underlying cause. If the pain is mild and goes away in a couple of days, there’s no worry. If the pain is unbearable, persistent, lasts for more than two weeks, or is worsening, call a healthcare professional. They know the right questions to ask to rule out more serious problems.
How to cope with an intercostal muscle strain, Cleveland Clinic (2020)
Costochondritis, StatPearls (2024)
Bruised rib care, Mount Sinai
Clinical and radiological aspects of cough-induced rib fractures: A case report, Cureus (2020)
Initial evaluation and management of rib fractures, UpToDate, (2025)
Incentive spirometer, Cleveland Clinic (2022)
Leslie Greenberg, MD, is a board-certified practicing family physician with more than 25 years of doctoring experience. She was a psychology major at Northwestern University near Chicago, then graduated with an MD from the University of Nevada School of Medicine. She completed her family medicine residency at St. Joseph Hospital in Wichita, Kansas. She has trained more than 350 family medicine resident-physicians, been in private practice, and delivered babies for 22 years.
...Health education, drug info, wellness & more
Prescription savings vary by prescription and by pharmacy, and may reach up to 80% off cash price. This is a medical discount plan. This is NOT insurance. This program offers you the opportunity to locate providers of various types of medical services who will offer their services to you at discounted rates. The range of discounts for medical or ancillary services provided under the plan will vary depending on the type of provider and service received. You are fully responsible for paying for all health care services but will be entitled to receive a discount from those health care providers in accordance with the specific pre-negotiated discounted fee schedule. This program does not guarantee the quality of the services or procedures offered by the providers. Except for prescription drugs which you will pay directly to the pharmacy at the time of purchase, all other services received through a program provider will be charged to the credit card on file in your member account. The charge will include an administrative fee for use of the program. Towers Administrators LLC is the licensed discount medical plan organization with its administrative office located at 4510 Cox Road, Suite 111, Glen Allen, VA 23060. SingleCare Services, LLC is the marketer of the discount medical plan organization including its website, singlecare.com, with its corporate office located at 99 High Street, Suite 2800, Boston, MA 02110. For additional information, including an up-to-date list of providers, or assistance with any issue related to program membership, please contact member support any time at www.singlecare.com, or by calling toll-free 844-234-3057, 24 hours, 7 days a week (except major holidays). Pharmacy names, logos, brands, and other trademarks are the property of their respective owners.
Blog articles are not medical advice. They are intended for general informational purposes and are not meant to be a substitute for professional medical advice, diagnosis, or treatment. Always seek the advice of your physician or other qualified health provider with any questions you may have regarding a medical condition. If you think you may have a medical emergency, immediately call your physician or dial 911.
© 2025 SingleCare Administrators. All rights reserved
© 2025 SingleCare Administrators. All rights reserved