what does it mean when your ribs hurt when you cough?
If you feel a sharp pain when you cough, this can be a sign that you have strained one of the muscles that connect neighboring ribs, called intercostal muscles. Your intercostal muscles lie between your ribs and attach them to one another. They also stabilize your upper body and help you breathe.