Pain from a rib fracture can be managed with OTC pain relievers, such as ibuprofen or acetaminophen. Your doctor may also prescribe stronger pain medication if necessary.