I have asthma and currently have very bad pain behind my right rib, like sore muscle from a spasm. Started a few months ago. I was in my car and I twisted to reach my purse to get something. Instead of grabbing my purse I just twisted my body and I got a cramp and I actually felt something flip roll and twisted and knotted up and cramped. I had to stop and twist myself back in the opposite direction and raise my right arm up over my head and turn my upper body in direction to make it uncramp. Brutal!! Now when I try wash my hair bent over sink and put my hairbow in, anything that raises my arms especially if Im beding it cause a muscle spasm behind my rib. Go figure. Long story short. I've been coughing alot and the asthma has flared up. Now my rib wall is so sore extremely. I went to the doctor because it hurts to cough, can't carry a conversation without getting winded. Out of breath and the pain wont stop. It hurt worse riding in the car any bumps in road turn my head it was aweful. Well I've been out of inhaler also. Pain in rib on right and muscle so bad. Took exray to may sure my lung didn't collapse all good inflated doctor said. He gave me steroid pack, oh and I had to ask, will you give a script for inhaler, right DA I said I have asthma, ok, so he did. Been on it two days. Sitting in the car at pharmacy I took a puff of inhaler, actually about six and before I left I had a little relief, the pain wasnt gone, but it was so much more easy to back up and drive myself home and the little spots in the road didn't kill me in pain . so the inhaler was needed, and I can't believe I had to ask the doctor for that. So two days in. Still hurt. Not near as bad. But the steroid pills help for a good few hours the pain eases and returns so its working a little. And while taking the steroid pack you ca not take pain pills or anti inflammatory medicines. I have to wait a week before I can take pain relievers. So there is a name of the muscle spasm type maybe unfortunate it will return because the stress and damage to that muscle behind the rib is now for keeps. I'm in severe pain now, hurts pretty bad. I researched some trying to find whats wrong but possible respiratory infection that got worse not taking the inhaler that caused the stress on muscle from continious coughing, oh and body twist a few months ago. Costochondritis
Check out info for Costochondritis right sided muscle pain behing or along the rib