You may have a broken or a bruised rib. Most broken ribs heal on their own within six weeks. Restricting activities and icing the area regularly can help with healing and pain relief.
It's important to obtain adequate pain relief — if it hurts to breathe deeply, you may develop pneumonia. If oral medications don't help enough, your doctor might suggest injections of long-lasting anesthesia around the nerves that supply the ribs.
Once your pain is under control, your doctor might prescribe breathing exercises to help you breathe more deeply because shallow breathing can put you at risk of developing pneumonia.
In the past, doctors would use compression wraps — elastic bandages that you can wrap around your chest — to help splint and immobilize the area. Compression wraps aren't recommended for broken ribs anymore because they can keep you from breathing deeply, which can increase the risk of pneumonia.