Question: why do my ribs hurt when i cough?
Answer: 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.